diff options
author | Tor Lillqvist <tml@collabora.com> | 2018-03-22 12:46:56 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2018-05-31 10:13:03 +0200 |
commit | 0ee6b72bf50337157e603d42e33b4a1e6a2ec715 (patch) | |
tree | 8522b058bb15890c1d0703b939826db20b2e8b6d /sw/inc/swmodule.hxx | |
parent | ae50762741a967a20bae9f39f1f8f7aa7dd4e763 (diff) |
SwModule is a convenient (?) place for passing events to Automation clients
Generate Application.DocumentChange and Application.Quit events.
SfxHintId::DocChanged seems to correspond nicely enough to
Application.DocumentChange. It is generated a bit eagerly, but as its
documentation is fairly vague and no specific detailed information is
passed in parameters anyway, it probably doesn't hurt if a client gets
it a bit more often with LO than with some other product.
Can now remove the FIXME-marked Quit event things in SwVbaApplication.
Now need oovbaapi in many makefiles for them to compile.
Change-Id: I4d0c5b93b584f198bcc854002eec7aaba7909ecc
Reviewed-on: https://gerrit.libreoffice.org/55106
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'sw/inc/swmodule.hxx')
-rw-r--r-- | sw/inc/swmodule.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/inc/swmodule.hxx b/sw/inc/swmodule.hxx index 4a454faa970f..b9d871a50b08 100644 --- a/sw/inc/swmodule.hxx +++ b/sw/inc/swmodule.hxx @@ -31,6 +31,7 @@ #include "swdllapi.h" #include "shellid.hxx" #include "fldupde.hxx" +#include <ooo/vba/XSinkCaller.hpp> class Color; class SfxItemSet; @@ -119,6 +120,8 @@ class SW_DLLPUBLIC SwModule final : public SfxModule, public SfxListener, public void InsertEnv(SfxRequest&); void InsertLab(SfxRequest&, bool bLabel); + css::uno::Reference< ooo::vba::XSinkCaller > mxAutomationApplicationEventsCaller; + public: // public Data - used for internal Clipboard / Drag & Drop / XSelection SwTransferable *m_pDragDrop, *m_pXSelection; @@ -243,6 +246,9 @@ public: css::uno::Reference< css::linguistic2::XLanguageGuessing > const & GetLanguageGuesser(); + + void RegisterAutomationApplicationEventsCaller(css::uno::Reference< ooo::vba::XSinkCaller > const& xCaller); + void CallAutomationApplicationEventSinks(const OUString& Method, const css::uno::Sequence< css::uno::Any >& Arguments); }; inline const css::uno::Reference< css::linguistic2::XLinguServiceEventListener >& |