From 939331c0935d671984079051fda03feb3dcf23d9 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 23 Oct 2019 12:12:25 +0300 Subject: Add ooo.vba.word.XDocument.Close() method and implement Will be needed in COLEAT. And seems like a fairly obviously missing API otherwise, too. Change-Id: I990c605a7e3f9cff3b72f20a626477d010da9852 Reviewed-on: https://gerrit.libreoffice.org/81369 Reviewed-by: Tor Lillqvist Tested-by: Tor Lillqvist (cherry picked from commit b0b0788ba040be2bf42aa19313759ba9f4811d38) Reviewed-on: https://gerrit.libreoffice.org/83660 (cherry picked from commit 1562900446a99623a30fa9e719322a8c24132f9d) --- sw/source/ui/vba/vbadocument.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sw/source/ui/vba/vbadocument.cxx') diff --git a/sw/source/ui/vba/vbadocument.cxx b/sw/source/ui/vba/vbadocument.cxx index 0883afe12374..c49adef7fad0 100644 --- a/sw/source/ui/vba/vbadocument.cxx +++ b/sw/source/ui/vba/vbadocument.cxx @@ -524,6 +524,12 @@ SwVbaDocument::SaveAs( const uno::Any& FileName, const uno::Any& FileFormat, con return SaveAs2000( FileName, FileFormat, LockComments, Password, AddToRecentFiles, WritePassword, ReadOnlyRecommended, EmbedTrueTypeFonts, SaveNativePictureFormat, SaveFormsData, SaveAsAOCELetter ); } +void SAL_CALL +SwVbaDocument::Close( const uno::Any& SaveChanges, const uno::Any& /*OriginalFormat*/, const uno::Any& /*RouteDocument*/ ) +{ + VbaDocumentBase::Close( SaveChanges, uno::Any(), uno::Any() ); +} + void SAL_CALL SwVbaDocument::SavePreviewPngAs( const uno::Any& FileName ) { -- cgit