Examples of gotoNextSentence()


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

        {
            // First, get the XSentenceCursor interface of our text cursor
            XSentenceCursor xSentenceCursor = (XSentenceCursor)
                UnoRuntime.queryInterface(XSentenceCursor.class, mxDocCursor );
            // Goto the next cursor, without selecting it
            xSentenceCursor.gotoNextSentence( false );
            // Get the XWordCursor interface of our text cursor
            XWordCursor xWordCursor = (XWordCursor) UnoRuntime.queryInterface(
                XWordCursor.class, mxDocCursor );
            // Skip the first four words of this sentence and select the fifth
            xWordCursor.gotoNextWord( false );
View Full Code Here

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

        xText.setString("This is a sentence. Another sentence.");
        xTextCursor.gotoStart(false);
        XSentenceCursor xSentenceCursor = (XSentenceCursor)
            UnoRuntime.queryInterface(XSentenceCursor.class, xTextCursor);

        bSuccess = xSentenceCursor.gotoNextSentence(true);
        assure("gotoNextSentence(): failed", bSuccess);
        {
            String string = xTextCursor.getString();
            assure("gotoNextSentence(): wrong string: " + string,
                    "This is a sentence. ".equals(string));
View Full Code Here

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

        {
            String string = xTextCursor.getString();
            assure("gotoNextSentence(): wrong string: " + string,
                    "This is a sentence. ".equals(string));
        }
        bSuccess = xSentenceCursor.gotoNextSentence(false);
        assure("gotoNextSentence(): succeeded", !bSuccess);
        // FIXME:
        // the sentence cursor seems to work differently than the word cursor
        xText.setString("This is a sentence. Another sentence. Sentence 3.");
        xTextCursor.gotoEnd(false);
View Full Code Here

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

            {
                    // First, get the XSentenceCursor interface of our text cursor
                    XSentenceCursor xSentenceCursor = (XSentenceCursor) UnoRuntime.queryInterface(
                            XSentenceCursor.class, mxDocCursor );
                    // Goto the next cursor, without selecting it
                    xSentenceCursor.gotoNextSentence( false );
                    // Get the XWordCursor interface of our text cursor
                    XWordCursor xWordCursor = (XWordCursor) UnoRuntime.queryInterface(
                        XWordCursor.class, mxDocCursor );
                    // Skip the first four words of this sentence and select the fifth
                    xWordCursor.gotoNextWord( false );
View Full Code Here

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

        xText.setString("This is a sentence. Another sentence.");
        xTextCursor.gotoStart(false);
        XSentenceCursor xSentenceCursor = (XSentenceCursor)
            UnoRuntime.queryInterface(XSentenceCursor.class, xTextCursor);

        bSuccess = xSentenceCursor.gotoNextSentence(true);
        assertTrue("gotoNextSentence(): failed", bSuccess);
        {
            String string = xTextCursor.getString();
            assertEquals("gotoNextSentence(): wrong string",
                         "This is a sentence. ", string);
View Full Code Here

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

        {
            String string = xTextCursor.getString();
            assertEquals("gotoNextSentence(): wrong string",
                         "This is a sentence. ", string);
        }
        bSuccess = xSentenceCursor.gotoNextSentence(false);
        assertFalse("gotoNextSentence(): succeeded", bSuccess);
        // FIXME:
        // the sentence cursor seems to work differently than the word cursor
        xText.setString("This is a sentence. Another sentence. Sentence 3.");
        xTextCursor.gotoEnd(false);
View Full Code Here

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

        {
            // First, get the XSentenceCursor interface of our text cursor
            XSentenceCursor xSentenceCursor = (XSentenceCursor)
                UnoRuntime.queryInterface(XSentenceCursor.class, mxDocCursor );
            // Goto the next cursor, without selecting it
            xSentenceCursor.gotoNextSentence( false );
            // Get the XWordCursor interface of our text cursor
            XWordCursor xWordCursor = (XWordCursor) UnoRuntime.queryInterface(
                XWordCursor.class, mxDocCursor );
            // Skip the first four words of this sentence and select the fifth
            xWordCursor.gotoNextWord( false );
View Full Code Here

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

        {
            // First, get the XSentenceCursor interface of our text cursor
            XSentenceCursor xSentenceCursor = (XSentenceCursor)
                UnoRuntime.queryInterface(XSentenceCursor.class, mxDocCursor );
            // Goto the next cursor, without selecting it
            xSentenceCursor.gotoNextSentence( false );
            // Get the XWordCursor interface of our text cursor
            XWordCursor xWordCursor = (XWordCursor) UnoRuntime.queryInterface(
                XWordCursor.class, mxDocCursor );
            // Skip the first four words of this sentence and select the fifth
            xWordCursor.gotoNextWord( false );
View Full Code Here

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

        xText.setString("This is a sentence. Another sentence.");
        xTextCursor.gotoStart(false);
        XSentenceCursor xSentenceCursor = (XSentenceCursor)
            UnoRuntime.queryInterface(XSentenceCursor.class, xTextCursor);

        bSuccess = xSentenceCursor.gotoNextSentence(true);
        assure("gotoNextSentence(): failed", bSuccess);
        {
            String string = xTextCursor.getString();
            assure("gotoNextSentence(): wrong string: " + string,
                    "This is a sentence. ".equals(string));
View Full Code Here

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

        {
            String string = xTextCursor.getString();
            assure("gotoNextSentence(): wrong string: " + string,
                    "This is a sentence. ".equals(string));
        }
        bSuccess = xSentenceCursor.gotoNextSentence(false);
        assure("gotoNextSentence(): succeeded", !bSuccess);
        // FIXME:
        // the sentence cursor seems to work differently than the word cursor
        xText.setString("This is a sentence. Another sentence. Sentence 3.");
        xTextCursor.gotoEnd(false);
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.