sw/source/ui/vba/vbaapplication.cxx | 3 ++- sw/source/ui/vba/vbaapplication.hxx | 1 - 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit e60012e6ae4d7ea76787d4ec723ccb6c6c27555a Author: Tor Lillqvist <[email protected]> AuthorDate: Mon Jan 21 17:33:01 2019 +0200 Commit: Tor Lillqvist <[email protected]> CommitDate: Fri Sep 20 09:57:53 2019 +0200 Implement WordBasic.FileSave() Change-Id: Iafb5be16ebb23aa09e0300a77c2f2dbe29b85cad (cherry picked from commit bd70fbe1d93c72dda2e8518975cf0b94e606199e) Reviewed-on: https://gerrit.libreoffice.org/79152 Reviewed-by: Tor Lillqvist <[email protected]> Tested-by: Tor Lillqvist <[email protected]> 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 _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
