diff options
author | Tor Lillqvist <tml@collabora.com> | 2019-01-21 17:33:01 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2019-09-20 09:57:53 +0200 |
commit | e60012e6ae4d7ea76787d4ec723ccb6c6c27555a (patch) | |
tree | 93df5b52e0518757bb850e91b576c7a230a9a2d2 /sw | |
parent | c417c4c231d43d5e6914b4ec833544006447b579 (diff) |
Implement WordBasic.FileSave()
Change-Id: Iafb5be16ebb23aa09e0300a77c2f2dbe29b85cad
(cherry picked from commit bd70fbe1d93c72dda2e8518975cf0b94e606199e)
Reviewed-on: https://gerrit.libreoffice.org/79152
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/vba/vbaapplication.cxx | 3 | ||||
-rw-r--r-- | sw/source/ui/vba/vbaapplication.hxx | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/vba/vbaapplication.cxx b/sw/source/ui/vba/vbaapplication.cxx index af7db0f26f79..97b9a59c5b6a 100644 --- a/sw/source/ui/vba/vbaapplication.cxx +++ b/sw/source/ui/vba/vbaapplication.cxx @@ -536,7 +536,8 @@ SwWordBasic::FileOpen( const OUString& Name, const uno::Any& ConfirmConversions, void SAL_CALL SwWordBasic::FileSave() { - // FIXME save it + uno::Reference< frame::XModel > xModel( mpApp->getCurrentDocument(), uno::UNO_SET_THROW ); + dispatchRequests(xModel,".uno:Save"); } void SAL_CALL diff --git a/sw/source/ui/vba/vbaapplication.hxx b/sw/source/ui/vba/vbaapplication.hxx index b32a372749cd..2b566ad94c82 100644 --- a/sw/source/ui/vba/vbaapplication.hxx +++ b/sw/source/ui/vba/vbaapplication.hxx @@ -111,7 +111,6 @@ public: // XSinkCaller virtual void SAL_CALL CallSinks( const OUString& Method, css::uno::Sequence< css::uno::Any >& Arguments ) override; -protected: virtual css::uno::Reference< css::frame::XModel > getCurrentDocument() override; }; #endif // INCLUDED_SW_SOURCE_UI_VBA_VBAAPPLICATION_HXX |