summaryrefslogtreecommitdiff
path: root/sw/qa/complex/checkColor
diff options
context:
space:
mode:
authorsb <sb@openoffice.org>2010-05-14 13:50:22 +0200
committersb <sb@openoffice.org>2010-05-14 13:50:22 +0200
commitf9c107a9c4a7cea54e6bb133bb92da7e6b4a1d99 (patch)
treeb839cb0a05807f269f5f7a141f8a1ee4ad3407fb /sw/qa/complex/checkColor
parent3f5077dcef319f2ae226d11a4aa7c486849da189 (diff)
sb123: #i111598# OfficeConnection getFactory -> getComponentContext
Diffstat (limited to 'sw/qa/complex/checkColor')
-rwxr-xr-xsw/qa/complex/checkColor/CheckChangeColor.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/sw/qa/complex/checkColor/CheckChangeColor.java b/sw/qa/complex/checkColor/CheckChangeColor.java
index e77964dc2e21..a072072e18c8 100755
--- a/sw/qa/complex/checkColor/CheckChangeColor.java
+++ b/sw/qa/complex/checkColor/CheckChangeColor.java
@@ -4,6 +4,7 @@ import com.sun.star.awt.Size;
import com.sun.star.beans.XPropertySet;
import com.sun.star.container.XNameAccess;
import com.sun.star.container.XNameContainer;
+import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.style.XStyleFamiliesSupplier;
import com.sun.star.text.XTextDocument;
import com.sun.star.uno.Any;
@@ -61,7 +62,10 @@ public class CheckChangeColor {
}
@Before public void setUpDocument() throws com.sun.star.uno.Exception {
- document = SOfficeFactory.getFactory(connection.getFactory()).
+ document = SOfficeFactory.getFactory(
+ UnoRuntime.queryInterface(
+ XMultiServiceFactory.class,
+ connection.getComponentContext().getServiceManager())).
createTextDoc(null);
}