Lines Matching refs:textDocument
51 XTextDocument textDocument = null; field in CheckBreaks
87 textDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, xComponent); in testInsertDeleteLineBreak()
88 this.insertNewLine(textDocument, "Line1", true); in testInsertDeleteLineBreak()
89 this.insertNewLine(textDocument, "Line2", false); in testInsertDeleteLineBreak()
90 this.insertNewLine(textDocument, "Line3", false); in testInsertDeleteLineBreak()
91 this.insertNewLine(textDocument, "Line4", false); in testInsertDeleteLineBreak()
93 int lineCount = this.getLineCount(textDocument); in testInsertDeleteLineBreak()
95 this.deleteLineBreak(textDocument); in testInsertDeleteLineBreak()
96 lineCount = this.getLineCount(textDocument); in testInsertDeleteLineBreak()
100 SWUtil.saveAsODT(textDocument, FileUtil.getUrl(tempFilePathODT)); in testInsertDeleteLineBreak()
103 textDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class,xComponent); in testInsertDeleteLineBreak()
104 lineCount = this.getLineCount(textDocument); in testInsertDeleteLineBreak()
106 this.insertNewLine(textDocument, "Line added when open saved odt file", false); in testInsertDeleteLineBreak()
107 lineCount = this.getLineCount(textDocument); in testInsertDeleteLineBreak()
109 this.deleteLineBreak(textDocument); in testInsertDeleteLineBreak()
110 lineCount = this.getLineCount(textDocument); in testInsertDeleteLineBreak()
114 SWUtil.saveAs(textDocument, "MS Word 97", FileUtil.getUrl(tempFilePathDOC)); in testInsertDeleteLineBreak()
117 textDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class,xComponent); in testInsertDeleteLineBreak()
118 lineCount = this.getLineCount(textDocument); in testInsertDeleteLineBreak()
120 this.insertNewLine(textDocument, "Line added when open saved doc file", false); in testInsertDeleteLineBreak()
121 lineCount = this.getLineCount(textDocument); in testInsertDeleteLineBreak()
123 this.deleteLineBreak(textDocument); in testInsertDeleteLineBreak()
124 lineCount = this.getLineCount(textDocument); in testInsertDeleteLineBreak()
135 textDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, xComponent); in testInsertDeletePageBreak()
136 this.insertNewPage(textDocument, "Page1", true); in testInsertDeletePageBreak()
137 this.insertNewPage(textDocument, "Page2", false); in testInsertDeletePageBreak()
138 this.insertNewPage(textDocument, "Page3", false); in testInsertDeletePageBreak()
139 int pageCount = SWUtil.getPageCount(textDocument); in testInsertDeletePageBreak()
142 this.deleteFirstPage(textDocument); in testInsertDeletePageBreak()
143 pageCount = SWUtil.getPageCount(textDocument); in testInsertDeletePageBreak()
147 SWUtil.saveAsODT(textDocument, FileUtil.getUrl(tempFilePathODT)); in testInsertDeletePageBreak()
150 textDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class,xComponent); in testInsertDeletePageBreak()
151 pageCount = SWUtil.getPageCount(textDocument); in testInsertDeletePageBreak()
153 this.insertNewPage(textDocument, "Page4", false); in testInsertDeletePageBreak()
154 pageCount = SWUtil.getPageCount(textDocument); in testInsertDeletePageBreak()
157 this.deleteFirstPage(textDocument); in testInsertDeletePageBreak()
158 pageCount = SWUtil.getPageCount(textDocument); in testInsertDeletePageBreak()
162 SWUtil.saveAs(textDocument, "MS Word 97", FileUtil.getUrl(tempFilePathDOC)); in testInsertDeletePageBreak()
165 textDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class,xComponent); in testInsertDeletePageBreak()
166 pageCount = SWUtil.getPageCount(textDocument); in testInsertDeletePageBreak()
169 this.deleteFirstPage(textDocument); in testInsertDeletePageBreak()
170 pageCount = SWUtil.getPageCount(textDocument); in testInsertDeletePageBreak()
173 this.insertNewPage(textDocument, "Page5", false); in testInsertDeletePageBreak()
174 pageCount = SWUtil.getPageCount(textDocument); in testInsertDeletePageBreak()