summaryrefslogtreecommitdiff
path: root/sw/source
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:33:01 +0200
commitbd70fbe1d93c72dda2e8518975cf0b94e606199e (patch)
tree3b55728ef2b67f68f3a44d6d2fabc5181fa4ec80 /sw/source
parentb8b8f358da1b81f85c056ea32dd9372e641b345e (diff)
Implement WordBasic.FileSave()
Change-Id: Iafb5be16ebb23aa09e0300a77c2f2dbe29b85cad
Diffstat (limited to 'sw/source')
-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 2fd7d4943136..073d22eedf07 100644
--- a/sw/source/ui/vba/vbaapplication.cxx
+++ b/sw/source/ui/vba/vbaapplication.cxx
@@ -535,7 +535,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 295b2b9933b1..f8e454036247 100644
--- a/sw/source/ui/vba/vbaapplication.hxx
+++ b/sw/source/ui/vba/vbaapplication.hxx
@@ -112,7 +112,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