diff options
author | Tor Lillqvist <tml@collabora.com> | 2019-02-06 11:58:56 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2019-02-06 13:48:33 +0200 |
commit | 02035ea7939894c03c57b88b2db50796e7dbb7bd (patch) | |
tree | fe58c7b73911918f941ac364ca73496727385205 | |
parent | 429f6cde5dcd48077e064de6dc0378886db7f842 (diff) |
Add a dummy implementation of WordBasic.AppMaximize()
Change-Id: I4606e5a3717c3717d105dd2e63c9fd7d2e1abf83
-rw-r--r-- | oovbaapi/ooo/vba/word/XWordBasic.idl | 2 | ||||
-rw-r--r-- | sw/source/ui/vba/vbaapplication.cxx | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/oovbaapi/ooo/vba/word/XWordBasic.idl b/oovbaapi/ooo/vba/word/XWordBasic.idl index 5150a431401b..3b3fbe79f4cc 100644 --- a/oovbaapi/ooo/vba/word/XWordBasic.idl +++ b/oovbaapi/ooo/vba/word/XWordBasic.idl @@ -38,6 +38,8 @@ interface XWordBasic [in] any SQLStatement1, [in] any OpenExclusive, [in] any SubType ); + + long AppMaximize( [in] string WindowName, [in] any State ); }; }; }; }; diff --git a/sw/source/ui/vba/vbaapplication.cxx b/sw/source/ui/vba/vbaapplication.cxx index d9e33430c9d1..26c407f8f9bb 100644 --- a/sw/source/ui/vba/vbaapplication.cxx +++ b/sw/source/ui/vba/vbaapplication.cxx @@ -109,6 +109,7 @@ public: const css::uno::Any& WritePasswordTemplate, const css::uno::Any& Connection, 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; }; SwVbaApplication::SwVbaApplication( uno::Reference<uno::XComponentContext >& xContext ): @@ -638,4 +639,13 @@ SwWordBasic::MailMergeOpenDataSource( const OUString& Name, const css::uno::Any& OpenExclusive, SubType ); } +sal_Int32 SAL_CALL +SwWordBasic::AppMaximize( const OUString& WindowName, const css::uno::Any& State ) +{ + SAL_INFO("sw.vba", "WordBasic.AppMaximize( WindowName:=" << WindowName << ", State:=" << State); + + // FIXME: Implement if necessary + return 0; +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |