Examples of gotoStart()


Examples of ag.ion.bion.officelayer.text.ITextCursor.gotoStart()

  @Override
  public ICharacterProperties getCharacterProperties(int begin, int length) {
    try {
      ITextCursor cursor = textAdaptee.getTextCursorService()
          .getTextCursor();
      cursor.gotoStart(false);
      cursor.goRight((short) begin, false);
      cursor.goRight((short) length, true);
      return cursor.getCharacterProperties();
    } catch (TextException e) {
      // TODO Auto-generated catch block
View Full Code Here

Examples of com.sun.star.text.XTextCursor.gotoStart()


    private void addTextSectionCopies(){
        CurReportDocument.setLayoutSectionsVisible(false);
        XTextCursor xTextCursor = ReportDocument.createTextCursor(CurReportDocument.xTextDocument.getText());
        xTextCursor.gotoStart(false);
        for (int i = 0; i < CurReportDocument.CurDBMetaData.GroupFieldNames.length; i++){
            XNamed xNamedTextSection = addLinkedTextSection(xTextCursor, GROUPSECTION + Integer.toString(i + 1), null, null);
            xNamedTextSection.setName(COPYOFGROUPSECTION + (i+1));
            renameTableofLastSection(COPYOFTBLGROUPSECTION + (i+1));
        }
View Full Code Here

Examples of com.sun.star.text.XTextCursor.gotoStart()

        String FieldContent;
        int iCount = CurReportDocument.DBColumnsVector.size();
        for (int i = 0; i < iCount; i++) {
            CurDBColumn = (DBColumn) CurReportDocument.DBColumnsVector.elementAt(i);
            xNameCellCursor = ReportDocument.createTextCursor(CurDBColumn.xNameCell);
            xNameCellCursor.gotoStart(false);
            FieldContent = CurReportDocument.oTextFieldHandler.getUserFieldContent(xNameCellCursor);
            if (!FieldContent.equals("")){
                xNameCellCursor.goRight((short) 1, true);
                xNameCellCursor.setString(FieldContent);
            }
View Full Code Here

Examples of com.sun.star.text.XTextCursor.gotoStart()


    public void insertUserFieldToTableCell(TextFieldHandler oTextFieldHandler)
        {
            XTextCursor xTextCursor = TextDocument.createTextCursor(xNameCell);
            xTextCursor.gotoStart(false);
            xTextCursor.gotoEnd(true);
            xTextCursor.setString("");
            oTextFieldHandler.insertUserField(xTextCursor, CurDBField.FieldName, CurDBField.FieldTitle);
        }
View Full Code Here

Examples of com.sun.star.text.XTextCursor.gotoStart()

   
    public void insertUserFieldToTableCell(TextFieldHandler oTextFieldHandler, XCell xCell)
        {
            XTextCursor xTextCursor = TextDocument.createTextCursor(xCell);
            xTextCursor.gotoStart(false);
            xTextCursor.gotoEnd(true);
            xTextCursor.setString("");
            oTextFieldHandler.insertUserField(xTextCursor, CurDBField.FieldName, CurDBField.FieldTitle);
        }
   
View Full Code Here

Examples of com.sun.star.text.XTextCursor.gotoStart()

   
    public void addTextSectionCopies()
        {
            m_aDoc.setLayoutSectionsVisible(false);
            XTextCursor xTextCursor = ReportTextDocument.createTextCursor(m_aDoc.xTextDocument.getText());
            xTextCursor.gotoStart(false);
            for (int i = 0; i < getRecordParser().GroupFieldNames.length; i++)
            {
                XNamed xNamedTextSection = addLinkedTextSection(xTextCursor, ReportTextDocument.GROUPSECTION + Integer.toString(i + 1), null, null);
                xNamedTextSection.setName(ReportTextDocument.COPYOFGROUPSECTION + (i+1));
                renameTableofLastSection(ReportTextDocument.COPYOFTBLGROUPSECTION + (i+1));
View Full Code Here

Examples of com.sun.star.text.XTextCursor.gotoStart()

            int iCount = getDoc().DBColumnsVector.size();
            for (int i = 0; i < iCount; i++)
            {
                CurDBColumn = (DBColumn) getDoc().DBColumnsVector.elementAt(i);
                xNameCellCursor = ReportTextDocument.createTextCursor(CurDBColumn.xNameCell);
                xNameCellCursor.gotoStart(false);
                FieldContent = getDoc().oTextFieldHandler.getUserFieldContent(xNameCellCursor);
                if (!FieldContent.equals(""))
                {
                    xNameCellCursor.goRight((short) 1, true);
                    xNameCellCursor.setString(FieldContent);
View Full Code Here

Examples of com.sun.star.text.XTextCursor.gotoStart()

            oText.insertTextContent(oCursor, oTSC, false);

            XWordCursor oWordC = (XWordCursor) UnoRuntime.queryInterface(
                                         XWordCursor.class, oCursor);
            oCursor.setString("End of TextSection");
            oCursor.gotoStart(false);
            oCursor.setString("Start of TextSection ");
            oWordC.gotoEndOfWord(false);

            XInterface oTS2 = (XInterface) oDocMSF.createInstance(
                                      "com.sun.star.text.TextSection");
View Full Code Here

Examples of com.sun.star.text.XTextCursor.gotoStart()

                    UnoRuntime.queryInterface(XTextContent.class, oTS);
            oText.insertTextContent(oCursor, oTSC, false);
            XWordCursor oWordC = (XWordCursor)
                UnoRuntime.queryInterface(XWordCursor.class, oCursor);
            oCursor.setString("End of TextSection");
            oCursor.gotoStart(false);
            oCursor.setString("Start of TextSection ");
            oWordC.gotoEndOfWord(false);
            XInterface oTS2 = (XInterface) oDocMSF.createInstance
                ("com.sun.star.text.TextSection");
            oTSC = (XTextContent)UnoRuntime.queryInterface(XTextContent.class, oTS2);
View Full Code Here

Examples of com.sun.star.text.XTextCursor.gotoStart()

    }

    public void insertUserFieldToTableCell(TextFieldHandler oTextFieldHandler)
    {
        XTextCursor xTextCursor = TextDocument.createTextCursor(xNameCell);
        xTextCursor.gotoStart(false);
        xTextCursor.gotoEnd(true);
        xTextCursor.setString("");
        oTextFieldHandler.insertUserField(xTextCursor, CurDBField.getFieldName(), CurDBField.getFieldTitle());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.