Examples of gotoEndOfSentence()


Examples of com.sun.star.text.XSentenceCursor.gotoEndOfSentence()

                            XPropertySet.class, mxDocCursor );
                    xCursorProps.setPropertyValue ( "CharWeight", new Float (
                            com.sun.star.awt.FontWeight.BOLD ) );

                    // replace the '.' at the end of the sentence with a new string
                    xSentenceCursor.gotoEndOfSentence( false );
                    xWordCursor.gotoPreviousWord( true );
                    mxDocText.insertString ( xWordCursor,
                        ", which has been changed with text cursors!", true);
            }
            catch ( Exception e )
View Full Code Here

Examples of com.sun.star.text.XSentenceCursor.gotoEndOfSentence()

                XPropertySet.class, mxDocCursor );
            xCursorProps.setPropertyValue ( "CharWeight",
                             new Float(com.sun.star.awt.FontWeight.BOLD) );

            // replace the '.' at the end of the sentence with a new string
            xSentenceCursor.gotoEndOfSentence( false );
            xWordCursor.gotoPreviousWord( true );
            mxDocText.insertString (xWordCursor,
                                    ", which has been changed with text cursors!",
                                    true);
        }
View Full Code Here

Examples of com.sun.star.text.XSentenceCursor.gotoEndOfSentence()

                XPropertySet.class, mxDocCursor );
            xCursorProps.setPropertyValue ( "CharWeight",
                             new Float(com.sun.star.awt.FontWeight.BOLD) );

            // replace the '.' at the end of the sentence with a new string
            xSentenceCursor.gotoEndOfSentence( false );
            xWordCursor.gotoPreviousWord( true );
            mxDocText.insertString (xWordCursor,
                                    ", which has been changed with text cursors!",
                                    true);
        }
View Full Code Here

Examples of com.sun.star.text.XSentenceCursor.gotoEndOfSentence()

                            XPropertySet.class, mxDocCursor );
                    xCursorProps.setPropertyValue ( "CharWeight", new Float (
                            com.sun.star.awt.FontWeight.BOLD ) );

                    // replace the '.' at the end of the sentence with a new string
                    xSentenceCursor.gotoEndOfSentence( false );
                    xWordCursor.gotoPreviousWord( true );
                    mxDocText.insertString ( xWordCursor,
                        ", which has been changed with text cursors!", true);
            }
            catch ( Exception e )
View Full Code Here

Examples of com.sun.star.text.XSentenceCursor.gotoEndOfSentence()

            assure("gotoPreviousSentence(): wrong string: " + string,
                    "Another sentence. Sentence 3.".equals(string));
        }
        bSuccess = xSentenceCursor.gotoPreviousSentence(false);
        assure("gotoPreviousSentence(): succeeded", !bSuccess);
        bSuccess = xSentenceCursor.gotoEndOfSentence(true);
        assure("gotoEndOfSentence(): failed", bSuccess);
        {
            String string = xTextCursor.getString();
            assure("gotoEndOfSentence(): wrong string: " + string,
                    "This is a sentence.".equals(string));
View Full Code Here

Examples of com.sun.star.text.XSentenceCursor.gotoEndOfSentence()

            String string = xTextCursor.getString();
            assure("gotoStartOfSentence(): wrong string: " + string,
                    "Sentence 3.".equals(string));
        }
        xText.setString("");
        bSuccess = xSentenceCursor.gotoEndOfSentence(false);
        assure("gotoEndOfSentence(): succeeded", !bSuccess);
        bSuccess = xSentenceCursor.gotoStartOfSentence(false);
        assure("gotoStartOfSentence(): succeeded", !bSuccess);

        XParagraphCursor xParagraphCursor = (XParagraphCursor)
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.