summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2019-01-21 17:33:01 +0200
committerTor Lillqvist <tml@collabora.com>2019-01-21 17:34:37 +0200
commitbc02c97d87ff100ad9665f32c8d6fefde5023a6c (patch)
treeae99263c99b5abbaedb15dddeccab63f892718f4
parent3ec34d642dd062be56346cfb39d5832d423cf38e (diff)
Implement WordBasic.FileSave()
Change-Id: Iafb5be16ebb23aa09e0300a77c2f2dbe29b85cad
-rw-r--r--sw/source/ui/vba/vbaapplication.cxx3
-rw-r--r--sw/source/ui/vba/vbaapplication.hxx1
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/vba/vbaapplication.cxx b/sw/source/ui/vba/vbaapplication.cxx
index 2674a9c6efe1..90196adf5008 100644
--- a/sw/source/ui/vba/vbaapplication.cxx
+++ b/sw/source/ui/vba/vbaapplication.cxx
@@ -533,7 +533,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