summaryrefslogtreecommitdiff
path: root/wizards/com
diff options
context:
space:
mode:
authorPascal Junck <pjunck@openoffice.org>2004-10-27 12:39:44 +0000
committerPascal Junck <pjunck@openoffice.org>2004-10-27 12:39:44 +0000
commite363b5f671cbb0cacdf172f4b57d600552846383 (patch)
tree8abe1f53e95043c9aceefb799582fc275583792d /wizards/com
parent83846d6fd972aeefdec34d09ddb38d407af59a77 (diff)
INTEGRATION: CWS dbwizard1 (1.3.4); FILE MERGED
2004/10/11 16:41:18 tv 1.3.4.2: RESYNC: (1.3-1.4); FILE MERGED 2004/08/13 15:01:30 bc 1.3.4.1: #111602# several changes for Formwizard and TableWizard Issue number: Submitted by: Reviewed by:
Diffstat (limited to 'wizards/com')
-rw-r--r--wizards/com/sun/star/wizards/text/TextDocument.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/wizards/com/sun/star/wizards/text/TextDocument.java b/wizards/com/sun/star/wizards/text/TextDocument.java
index f380edba8660..4cd68604ab43 100644
--- a/wizards/com/sun/star/wizards/text/TextDocument.java
+++ b/wizards/com/sun/star/wizards/text/TextDocument.java
@@ -2,9 +2,9 @@
*
* $RCSfile: TextDocument.java,v $
*
-* $Revision: 1.4 $
+* $Revision: 1.5 $
*
-* last change: $Author: obo $ $Date: 2004-09-08 14:36:20 $
+* last change: $Author: pjunck $ $Date: 2004-10-27 13:39:44 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -70,6 +70,7 @@ import com.sun.star.frame.XController;
import com.sun.star.frame.XDesktop;
import com.sun.star.frame.XFramesSupplier;
import com.sun.star.frame.XModel;
+import com.sun.star.frame.XStorable;
import com.sun.star.i18n.NumberFormatIndex;
import com.sun.star.awt.Rectangle;
import com.sun.star.awt.Size;
@@ -116,6 +117,7 @@ public class TextDocument {
public Size DocSize;
public com.sun.star.awt.Rectangle PosSize;
public com.sun.star.lang.Locale CharLocale;
+ public XStorable xStorable;
//creates an instance of TextDocument and creates a frame
public TextDocument(XMultiServiceFactory xMSF) {
@@ -153,13 +155,14 @@ public class TextDocument {
xWindowPeer = (XWindowPeer) UnoRuntime.queryInterface(XWindowPeer.class, xFrame.getComponentWindow());
xMSFDoc = (XMultiServiceFactory) UnoRuntime.queryInterface(XMultiServiceFactory.class, xTextDocument);
xNumberFormatsSupplier = (XNumberFormatsSupplier) UnoRuntime.queryInterface(XNumberFormatsSupplier.class, xTextDocument);
-
XDocumentInfoSupplier xDocInfoSuppl = (XDocumentInfoSupplier) UnoRuntime.queryInterface(XDocumentInfoSupplier.class, xTextDocument);
xDocInfo = xDocInfoSuppl.getDocumentInfo();
CharLocale = (Locale) Helper.getUnoStructValue((Object) xComponent, "CharLocale");
+ xStorable = (XStorable) UnoRuntime.queryInterface(XStorable.class, xTextDocument);
}
- //creates an instance of TextDocument and creates a frame with an empty document
+
+ //creates an instance of TextDocument and creates a frame with an empty document
public TextDocument(XMultiServiceFactory xMSF,XTextDocument _textDocument, boolean bshowStatusIndicator) {
this.xMSF = xMSF;
XDesktop xDesktop = Desktop.getDesktop(xMSF);
@@ -185,6 +188,7 @@ public class TextDocument {
CharLocale = (Locale) Helper.getUnoStructValue((Object) xComponent, "CharLocale");
}
+
public XTextDocument loadAsPreview(String sDefaultTemplate, boolean asTemplate) {
PropertyValue loadValues[] = new PropertyValue[3];
// open document in the Preview mode