diff options
Diffstat (limited to 'scripting/java/com/sun/star/script/framework/provider/EditorScriptContext.java')
-rw-r--r-- | scripting/java/com/sun/star/script/framework/provider/EditorScriptContext.java | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/scripting/java/com/sun/star/script/framework/provider/EditorScriptContext.java b/scripting/java/com/sun/star/script/framework/provider/EditorScriptContext.java index f00697f8738e..c6165818b6b7 100644 --- a/scripting/java/com/sun/star/script/framework/provider/EditorScriptContext.java +++ b/scripting/java/com/sun/star/script/framework/provider/EditorScriptContext.java @@ -28,8 +28,10 @@ import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XComponentContext; public class EditorScriptContext implements XScriptContext { + private XDesktop m_xDeskTop; private XComponentContext m_xComponentContext; + public EditorScriptContext(XComponentContext xmComponentContext, XDesktop xDesktop) { this.m_xComponentContext = xmComponentContext; @@ -42,15 +44,18 @@ public class EditorScriptContext implements XScriptContext { @return XModel interface */ public XModel getDocument() { - XModel xModel = UnoRuntime.queryInterface(XModel.class, - m_xDeskTop.getCurrentComponent()); + + XModel xModel = + UnoRuntime.queryInterface(XModel.class, m_xDeskTop.getCurrentComponent()); return xModel; } public XScriptInvocationContext getInvocationContext() { - XScriptInvocationContext xContext = UnoRuntime.queryInterface( - XScriptInvocationContext.class, getDocument()); + + XScriptInvocationContext xContext = + UnoRuntime.queryInterface(XScriptInvocationContext.class, getDocument()); + return xContext; } @@ -71,5 +76,4 @@ public class EditorScriptContext implements XScriptContext { public XComponentContext getComponentContext() { return m_xComponentContext; } - -} +}
\ No newline at end of file |