summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2019-02-06 12:08:59 +0200
committerTor Lillqvist <tml@collabora.com>2019-02-06 13:48:34 +0200
commitfffe41c1247eea37150f43f3b856d1ee45e6e31c (patch)
tree67067278b0d25638b4b5f76ea9c1c8de721128d8
parent02035ea7939894c03c57b88b2db50796e7dbb7bd (diff)
Add a dummy implementation of WordBasic.DocMaximize()
Change-Id: I972f9446560cc8ac51031dbc36fc05d438d150e7
-rw-r--r--oovbaapi/ooo/vba/word/XWordBasic.idl1
-rw-r--r--sw/source/ui/vba/vbaapplication.cxx10
2 files changed, 11 insertions, 0 deletions
diff --git a/oovbaapi/ooo/vba/word/XWordBasic.idl b/oovbaapi/ooo/vba/word/XWordBasic.idl
index 3b3fbe79f4cc..bbebd72ebd89 100644
--- a/oovbaapi/ooo/vba/word/XWordBasic.idl
+++ b/oovbaapi/ooo/vba/word/XWordBasic.idl
@@ -40,6 +40,7 @@ interface XWordBasic
[in] any SubType );
long AppMaximize( [in] string WindowName, [in] any State );
+ long DocMaximize( [in] any State );
};
}; }; };
diff --git a/sw/source/ui/vba/vbaapplication.cxx b/sw/source/ui/vba/vbaapplication.cxx
index 26c407f8f9bb..c29f9f562f51 100644
--- a/sw/source/ui/vba/vbaapplication.cxx
+++ b/sw/source/ui/vba/vbaapplication.cxx
@@ -110,6 +110,7 @@ public:
const css::uno::Any& SQLStatement, const css::uno::Any& SQLStatement1,
const css::uno::Any& OpenExclusive, const css::uno::Any& SubType) override;
virtual sal_Int32 SAL_CALL AppMaximize( const OUString& WindowName, const css::uno::Any& State ) override;
+ virtual sal_Int32 SAL_CALL DocMaximize( const css::uno::Any& State ) override;
};
SwVbaApplication::SwVbaApplication( uno::Reference<uno::XComponentContext >& xContext ):
@@ -648,4 +649,13 @@ SwWordBasic::AppMaximize( const OUString& WindowName, const css::uno::Any& State
return 0;
}
+sal_Int32 SAL_CALL
+SwWordBasic::DocMaximize( const css::uno::Any& State )
+{
+ SAL_INFO("sw.vba", "WordBasic.DocMaximize(State:=" << State << ")");
+
+ // FIXME: Implement if necessary
+ return 0;
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */