Package com.sun.star.text

Examples of com.sun.star.text.XTextTable


        }
    }


    private void renameTableofLastSection(String _snewname){
        XTextTable xTextTable = CurReportDocument.oTextTableHandler.getlastTextTable();
        XNamed xNamedTable = (XNamed) UnoRuntime.queryInterface(XNamed.class, xTextTable);
        xNamedTable.setName(_snewname);
    }
View Full Code Here


                addLinkedTextSection(xTextCursor, COPYOFRECORDSECTION, null, null);
                Object[][] RecordArray = new Object[1][RecordFieldCount];
                for (int i = 0; i < RecordArray[0].length; i++){
                    RecordArray[0][i] = Any.VOID;
                }
                XTextTable xTextTable = CurReportDocument.oTextTableHandler.getlastTextTable();
                OfficeDocument.ArraytoCellRange(RecordArray, xTextTable, 0, 1);
            }
            CurReportDocument.oTextSectionHandler.breakLinkofTextSections();
        } catch (Exception exception) {
        } catch (java.lang.Exception javaexception) {
View Full Code Here

        int DataLength = DataVector.size();
        if ((FieldCount > 0) && (DataLength > 0)) {
            addLinkedTextSection(xTextCursor, COPYOFRECORDSECTION, null, null);
            Object[][] RecordArray = new Object[DataLength][FieldCount];
            DataVector.copyInto(RecordArray);
            XTextTable xTextTable = CurReportDocument.oTextTableHandler.getlastTextTable();
            if (DataLength > 1)
                xTextTable.getRows().insertByIndex(xTextTable.getRows().getCount(), DataLength - 1);
            OfficeDocument.ArraytoCellRange(RecordArray, xTextTable, 0, 1);
        }
        DataVector.removeAllElements();
    }
View Full Code Here

        xTextCursor.getText().insertTextContent(xTextCursor, xTextSectionContent, true);
        Helper.setUnoPropertyValue(xTextSection, "LinkRegion", sLinkRegion);
        if (CurDBColumn != null){
            boolean bIsGroupTable = (sLinkRegion.equals(RECORDSECTION) != true);
            if (bIsGroupTable == true){
                XTextTable xTextTable = CurReportDocument.oTextTableHandler.getlastTextTable();
                XCellRange xCellRange = (XCellRange) UnoRuntime.queryInterface(XCellRange.class, xTextTable);
                CurDBColumn.modifyCellContent(xCellRange, CurGroupValue);
            }
        }
    } catch (Exception exception) {
View Full Code Here

      SrvObj = docMSF.createInstance( service );
    }
    catch( com.sun.star.uno.Exception cssuE ){
    }

    XTextTable TT = (XTextTable)UnoRuntime.queryInterface(
                            ifcClass, SrvObj );
                     
    if ( rows > 0 && columns > 0 )  {
      TT.initialize( rows, columns );
    }

    return TT;

  }
View Full Code Here

                if (CurDBColumn != null)
                {
                    boolean bIsGroupTable = (sLinkRegion.equals(ReportTextDocument.RECORDSECTION) != true);
                    if (bIsGroupTable == true)
                    {
                        XTextTable xTextTable = getDoc().oTextTableHandler.getlastTextTable();
                        XCellRange xCellRange = (XCellRange) UnoRuntime.queryInterface(XCellRange.class, xTextTable);
                        CurDBColumn.modifyCellContent(xCellRange, CurGroupValue);
                    }
                }
            }
View Full Code Here

            }
            return xNamedTextSection;
        }
    private void renameTableofLastSection(String _snewname)
        {
            XTextTable xTextTable = getDoc().oTextTableHandler.getlastTextTable();
            XNamed xNamedTable = (XNamed) UnoRuntime.queryInterface(XNamed.class, xTextTable);
            xNamedTable.setName(_snewname);
        }
View Full Code Here

                    Object[][] RecordArray = new Object[1][RecordFieldCount];
                    for (int i = 0; i < RecordArray[0].length; i++)
                    {
                        RecordArray[0][i] = Any.VOID;
                    }
                    XTextTable xTextTable = getDoc().oTextTableHandler.getlastTextTable();
                    OfficeDocument.ArraytoCellRange(RecordArray, xTextTable, 0, 1);
                }
                getDoc().oTextSectionHandler.breakLinkofTextSections();
            }
            catch (Exception exception)
View Full Code Here

            if ((FieldCount > 0) && (DataLength > 0))
            {
                addLinkedTextSection(xTextCursor, ReportTextDocument.COPYOFRECORDSECTION, null, null);
                Object[][] RecordArray = new Object[DataLength][FieldCount];
                DataVector.copyInto(RecordArray);
                XTextTable xTextTable = getDoc().oTextTableHandler.getlastTextTable();
                if (DataLength > 1)
                {
                    xTextTable.getRows().insertByIndex(xTextTable.getRows().getCount(), DataLength - 1);
                }
                OfficeDocument.ArraytoCellRange(RecordArray, xTextTable, 0, 1);
            }
            DataVector.removeAllElements();
        }
View Full Code Here

    * from table.
    */
    public synchronized TestEnvironment createTestEnvironment(
            TestParameters tParam, PrintWriter log ) throws StatusException {
        XInterface oObj = null;
        XTextTable oTable = null;

        log.println( "creating a test environment" );

        try {
            oTable = SOF.createTextTable( xTextDoc );
        } catch ( com.sun.star.uno.Exception e ) {
            e.printStackTrace( log );
            throw new StatusException("Couldn't create TextTable: "
                +e.getMessage(),e);
        }

        try {
            SOF.insertTextContent(xTextDoc, oTable );
        } catch ( com.sun.star.lang.IllegalArgumentException e ) {
            e.printStackTrace( log );
            throw new StatusException("Couldn't insert text content: "
                +e.getMessage(),e);
        }

        oObj = oTable.getColumns();

        log.println( "creating a new environment for TableColumns object" );
        TestEnvironment tEnv = new TestEnvironment( oObj );

        // adding relation for XTableColumns
View Full Code Here

TOP

Related Classes of com.sun.star.text.XTextTable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.