Lines Matching refs:document

32 import com.sun.star.document.XDocumentProperties;
33 import com.sun.star.document.XDocumentPropertiesSupplier;
56 public static void saveAsDoc(XTextDocument document, String url) throws IOException { in saveAsDoc() argument
57 saveAs(document, "MS Word 97", url); in saveAsDoc()
62 …XTextDocument document = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, component); in saveAsDoc() local
63 saveAs(document, "MS Word 97", url); in saveAsDoc()
66 public static void saveAsODT(XTextDocument document, String url) throws IOException { in saveAsODT() argument
67 saveAs(document, "writer8", url); in saveAsODT()
70 …public static void saveAs(XTextDocument document, String filterValue, String url) throws IOExcepti… in saveAs() argument
71 XStorable store = (XStorable) UnoRuntime.queryInterface(XStorable.class, document); in saveAs()
80 public static void save(XTextDocument document) throws IOException { in save() argument
81 XStorable store = (XStorable) UnoRuntime.queryInterface(XStorable.class, document); in save()
85 public static XTextDocument saveAndReload(XTextDocument document, UnoApp app) throws Exception { in saveAndReload() argument
86 XStorable store = (XStorable) UnoRuntime.queryInterface(XStorable.class, document); in saveAndReload()
88 String url = document.getURL(); in saveAndReload()
89 app.closeDocument(document); in saveAndReload()
109 public static void moveCuror2End(XTextDocument document) { in moveCuror2End() argument
110 XText xText = document.getText(); in moveCuror2End()
115 public static void moveCuror2Start(XTextDocument document) { in moveCuror2Start() argument
116 XText xText = document.getText(); in moveCuror2Start()
128 …public static void setDocumentProperty(XTextDocument document, String prop, String propValue) thro… in setDocumentProperty() argument
130 XDocumentPropertiesSupplier.class, document); in setDocumentProperty()
148 …public static void insertBookmark(XTextDocument document, XTextCursor textCursor, String bookmarkN… in insertBookmark() argument
149 …ocFactory = (XMultiServiceFactory) UnoRuntime.queryInterface(XMultiServiceFactory.class, document); in insertBookmark()
154 document.getText().insertTextContent(textCursor, xBookmarkAsTextContent, true); in insertBookmark()
192 public static int getPageCount(XTextDocument document) throws Exception in getPageCount() argument
194 XModel xmodel = (XModel)UnoRuntime.queryInterface(XModel.class, document); in getPageCount()