diff options
author | Henry Castro <hcastro@collabora.com> | 2018-05-17 11:12:56 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2018-05-28 00:03:40 +0200 |
commit | 5f1ce0a77c63df597fba9d4cbd45be3a266343c3 (patch) | |
tree | 53c9322c16f62283a7cb842c1d6ee569beefd0a7 /sc/inc/scmod.hxx | |
parent | 539e8f1d80d497bd8d7ee031cb5772e49021b79c (diff) |
sc: release XTransferable2 when used with VBA compatibility helpers
Copy, Cut, PasteSpecial and Insert is used by Range excel object,
so after finishing executing the VBA script ensure to release XTransferable2
interface
Change-Id: I967a7ba1a1d101282f7a1b9d4b2e2ac3004f1c07
Reviewed-on: https://gerrit.libreoffice.org/54497
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Henry Castro <hcastro@collabora.com>
Diffstat (limited to 'sc/inc/scmod.hxx')
-rw-r--r-- | sc/inc/scmod.hxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sc/inc/scmod.hxx b/sc/inc/scmod.hxx index b2742ddba9a0..1ef0eed7b936 100644 --- a/sc/inc/scmod.hxx +++ b/sc/inc/scmod.hxx @@ -82,8 +82,7 @@ class ScModule: public SfxModule, public SfxListener, public utl::ConfigurationL ScDragData* m_pDragData; ScSelectionTransferObj* m_pSelTransfer; ScMessagePool* m_pMessagePool; - css::uno::Reference<css::datatransfer::XTransferable2> m_xClipData; // Only used by Vba helper functions - // there is no global InputHandler anymore, each View has its own + // there is no global InputHandler anymore, each View has it's own ScInputHandler* m_pRefInputHandler; ScViewCfg* m_pViewCfg; ScDocCfg* m_pDocCfg; @@ -175,11 +174,6 @@ public: void SetPrintOptions ( const ScPrintOptions& rOpt ); void InsertEntryToLRUList(sal_uInt16 nFIndex); - SC_DLLPUBLIC const css::uno::Reference<css::datatransfer::XTransferable2> & - GetClipData() { return m_xClipData; } - SC_DLLPUBLIC void SetClipData( - const css::uno::Reference<css::datatransfer::XTransferable2>& xTransferable) { m_xClipData = xTransferable; } - static void GetSpellSettings( LanguageType& rDefLang, LanguageType& rCjkLang, LanguageType& rCtlLang, bool& rAutoSpell ); static void SetAutoSpellProperty( bool bSet ); |