Add Document.Close event generation

Desktop / LibreOffice - Tor Lillqvist [collabora.com] - 31 May 2018 10:16 EDT

Use a similar idea as for the Application events. Use the SwDocShell to keep the XSinkCaller. Call the Close event from SwXTextDocument::close().

Change-Id: Ie873238c5a966fc859d45b59f424ae0e9f4fbfc7 Reviewed-on: https://gerrit.libreoffice.org/55110

6c8c727ffd97 Add Document.Close event generation
oovbaapi/ooo/vba/word/XDocument.idl | 5 +-
sw/inc/docsh.hxx | 6 +++
sw/source/ui/vba/vbadocument.cxx | 98 +++++++++++++++++++++++++++++++++++++
sw/source/ui/vba/vbadocument.hxx | 20 +++++++-
sw/source/uibase/app/docsh.cxx | 11 +++++
sw/source/uibase/uno/unotxdoc.cxx | 1 +
6 files changed, 139 insertions(+), 2 deletions(-)

Upstream: cgit.freedesktop.org


  • Share