diff options
author | Tor Lillqvist <tml@collabora.com> | 2019-02-06 12:08:59 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2019-02-06 13:50:55 +0200 |
commit | 3c42f006076ecd71371612d67d84381ac42b88da (patch) | |
tree | 4e3df90da4c7455e50f1590a7be8cb7915cbdbf9 | |
parent | 990c88a9a84c1960a704052f84318bc33b744fb5 (diff) |
Add a dummy implementation of WordBasic.DocMaximize()
Change-Id: I972f9446560cc8ac51031dbc36fc05d438d150e7
-rw-r--r-- | oovbaapi/ooo/vba/word/XWordBasic.idl | 1 | ||||
-rw-r--r-- | sw/source/ui/vba/vbaapplication.cxx | 10 |
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 de37ae1efddb..b48fecca1738 100644 --- a/sw/source/ui/vba/vbaapplication.cxx +++ b/sw/source/ui/vba/vbaapplication.cxx @@ -109,6 +109,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 ): @@ -650,4 +651,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: */ |