summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_sw/XMLMetaExporter.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod/_sw/XMLMetaExporter.java')
-rw-r--r--qadevOOo/tests/java/mod/_sw/XMLMetaExporter.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/qadevOOo/tests/java/mod/_sw/XMLMetaExporter.java b/qadevOOo/tests/java/mod/_sw/XMLMetaExporter.java
index dadcd90ddbd5..1de4f4baee13 100644
--- a/qadevOOo/tests/java/mod/_sw/XMLMetaExporter.java
+++ b/qadevOOo/tests/java/mod/_sw/XMLMetaExporter.java
@@ -28,7 +28,8 @@ import util.SOfficeFactory;
import util.XMLTools;
import com.sun.star.beans.XPropertySet;
-import com.sun.star.document.XDocumentInfoSupplier;
+import com.sun.star.document.XDocumentPropertiesSupplier;
+import com.sun.star.document.XDocumentProperties;
import com.sun.star.document.XExporter;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.text.XTextDocument;
@@ -129,12 +130,10 @@ public class XMLMetaExporter extends TestCase {
xEx.setSourceDocument(xTextDoc);
//set some meta data
- XDocumentInfoSupplier infoSup = UnoRuntime.queryInterface
- (XDocumentInfoSupplier.class, xTextDoc) ;
- XPropertySet docInfo = UnoRuntime.queryInterface
- (XPropertySet.class, infoSup.getDocumentInfo()) ;
- docInfo.setPropertyValue("Title", TITLE);
-
+ XDocumentPropertiesSupplier xPropSup = UnoRuntime.queryInterface
+ (XDocumentPropertiesSupplier.class, xTextDoc);
+ final XDocumentProperties xDocProps = xPropSup.getDocumentProperties();
+ xDocProps.setTitle(TITLE);
} catch (com.sun.star.uno.Exception e) {
e.printStackTrace(log) ;
throw new StatusException("Can't create component.", e) ;