Package com.sun.star.text

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


            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


                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

                    // insert into document.  Last argument indicates NOT to replace
                    // the text range text.

                    XTextCursor xTextCursor=oooExpression.getTextCursor();
                    Boolean didGoRight = xTextCursor.goRight((short) 1, false);
                    xTextCursor.getText().insertTextContent(xTextCursor, xTextField, false);
                }
                else{
                    /* get outputFieldMaster */
                    outputFieldMaster = xDependentTextField.getTextFieldMaster();
View Full Code Here

                // insert into document.  Last argument indicates NOT to replace
                // the text range text.

                XTextCursor xTextCursor=oooExpression.getTextCursor();
                xTextCursor.goRight((short) 1, false);
                xTextCursor.getText().insertTextContent(xTextCursor, xTextField, false);
            }
            else{
                /* get outputFieldMaster */
                errorFieldMaster = xDependentTextField.getTextFieldMaster();
View Full Code Here

                xFrameProps.setPropertyValue( "AnchorType",
                        TextContentAnchorType.AS_CHARACTER );
                xFrameProps.setPropertyValue("CLSID", OOODocument.CLSID_CHART);

                XTextCursor xTextCursor=oooExpression.getTextCursor();
                xTextCursor.goRight((short) 1, false);
                xTextCursor.getText().insertTextContent(
                        xTextCursor, xTC, false);
                XComponent xModel=
                        ((XEmbeddedObjectSupplier) UnoRuntime.queryInterface(
                        XEmbeddedObjectSupplier.class,xTC)).getEmbeddedObject();
View Full Code Here

            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

//        inserter.insertRange( new Range(3, 5, met2) );
        XTextContent xMeta = inserter.makeMeta();

        XText xDocText = m_xDoc.getText();
        XTextCursor xDocTextCursor = xDocText.createTextCursor();
        xDocTextCursor.goRight((short)3, false);
        xDocTextCursor.goRight((short)2, true);
        xDocText.insertTextContent(xDocTextCursor, xMeta, true);
//        xMeta.attach(xDocTextCursor);

        XMetadatable xMetadatable = (XMetadatable)
View Full Code Here

        XTextContent xMeta = inserter.makeMeta();

        XText xDocText = m_xDoc.getText();
        XTextCursor xDocTextCursor = xDocText.createTextCursor();
        xDocTextCursor.goRight((short)3, false);
        xDocTextCursor.goRight((short)2, true);
        xDocText.insertTextContent(xDocTextCursor, xMeta, true);
//        xMeta.attach(xDocTextCursor);

        XMetadatable xMetadatable = (XMetadatable)
            UnoRuntime.queryInterface(XMetadatable.class, xMeta);
View Full Code Here

        MetaNode met1 = new MetaNode( mkId("id") );
        XTextContent xMeta = inserter.makeMeta();

        XText xDocText = m_xDoc.getText();
        XTextCursor xDocTextCursor = xDocText.createTextCursor();
        xDocTextCursor.goRight((short)7, false);
        xDocTextCursor.goRight((short)2, true);
        xDocText.insertTextContent(xDocTextCursor, xMeta, true);
        xDocTextCursor.gotoStart(true);

        XMetadatable xMetadatable = (XMetadatable)
View Full Code Here

        XTextContent xMeta = inserter.makeMeta();

        XText xDocText = m_xDoc.getText();
        XTextCursor xDocTextCursor = xDocText.createTextCursor();
        xDocTextCursor.goRight((short)7, false);
        xDocTextCursor.goRight((short)2, true);
        xDocText.insertTextContent(xDocTextCursor, xMeta, true);
        xDocTextCursor.gotoStart(true);

        XMetadatable xMetadatable = (XMetadatable)
            UnoRuntime.queryInterface(XMetadatable.class, xMeta);
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.