Examples of gotoPreviousWord()


Examples of com.sun.star.text.XWordCursor.gotoPreviousWord()

            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.XWordCursor.gotoPreviousWord()

                    "Two ".equals(string));
        }
        bSuccess = xWordCursor.gotoNextWord(false);
        assure("gotoNextWord(): succeeded", !bSuccess);
        xTextCursor.collapseToEnd();
        bSuccess = xWordCursor.gotoPreviousWord(true);
        assure("gotoPreviousWord(): failed", bSuccess);
        {
            String string = xTextCursor.getString();
            assure("gotoPreviousWord(): wrong string: " + string,
                    "words".equals(string));
View Full Code Here

Examples of com.sun.star.text.XWordCursor.gotoPreviousWord()

        {
            String string = xTextCursor.getString();
            assure("gotoPreviousWord(): wrong string: " + string,
                    "words".equals(string));
        }
        bSuccess = xWordCursor.gotoPreviousWord(false);
        assure("gotoPreviousWord(): succeeded", !bSuccess);
        bSuccess = xWordCursor.gotoEndOfWord(true);
        assure("gotoEndOfWord(): failed", bSuccess);
        {
            String string = xTextCursor.getString();
View Full Code Here

Examples of com.sun.star.text.XWordCursor.gotoPreviousWord()

                    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.XWordCursor.gotoPreviousWord()

                         "Two ", string);
        }
        bSuccess = xWordCursor.gotoNextWord(false);
        assertFalse("gotoNextWord(): succeeded", bSuccess);
        xTextCursor.collapseToEnd();
        bSuccess = xWordCursor.gotoPreviousWord(true);
        assertTrue("gotoPreviousWord(): failed", bSuccess);
        {
            String string = xTextCursor.getString();
            assertEquals("gotoPreviousWord(): wrong string",
                         "words", string);
View Full Code Here

Examples of com.sun.star.text.XWordCursor.gotoPreviousWord()

        {
            String string = xTextCursor.getString();
            assertEquals("gotoPreviousWord(): wrong string",
                         "words", string);
        }
        bSuccess = xWordCursor.gotoPreviousWord(false);
        assertFalse("gotoPreviousWord(): succeeded", bSuccess);
        bSuccess = xWordCursor.gotoEndOfWord(true);
        assertTrue("gotoEndOfWord(): failed", bSuccess);
        {
            String string = xTextCursor.getString();
View Full Code Here

Examples of com.sun.star.text.XWordCursor.gotoPreviousWord()

            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.XWordCursor.gotoPreviousWord()

            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.XWordCursor.gotoPreviousWord()

                    "Two ".equals(string));
        }
        bSuccess = xWordCursor.gotoNextWord(false);
        assure("gotoNextWord(): succeeded", !bSuccess);
        xTextCursor.collapseToEnd();
        bSuccess = xWordCursor.gotoPreviousWord(true);
        assure("gotoPreviousWord(): failed", bSuccess);
        {
            String string = xTextCursor.getString();
            assure("gotoPreviousWord(): wrong string: " + string,
                    "words".equals(string));
View Full Code Here

Examples of com.sun.star.text.XWordCursor.gotoPreviousWord()

        {
            String string = xTextCursor.getString();
            assure("gotoPreviousWord(): wrong string: " + string,
                    "words".equals(string));
        }
        bSuccess = xWordCursor.gotoPreviousWord(false);
        assure("gotoPreviousWord(): succeeded", !bSuccess);
        bSuccess = xWordCursor.gotoEndOfWord(true);
        assure("gotoEndOfWord(): failed", bSuccess);
        {
            String string = xTextCursor.getString();
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.