From 5abf9d268d51afeaea2ed6f2a81a92ad46dea1cd Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 16 Apr 2018 21:50:55 +0300 Subject: Add Resize() method to ooo.vba.word.XApplication Seems to be commonly called by 3rd-party Automation (and VB6) client code. Change-Id: I29ee5e7d95f3da2ffae0fac44151148be6e272ee --- sw/source/ui/vba/vbaapplication.hxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sw/source/ui/vba/vbaapplication.hxx') diff --git a/sw/source/ui/vba/vbaapplication.hxx b/sw/source/ui/vba/vbaapplication.hxx index 808f7c1c10b8..137db4d95591 100644 --- a/sw/source/ui/vba/vbaapplication.hxx +++ b/sw/source/ui/vba/vbaapplication.hxx @@ -34,6 +34,8 @@ #include #include +#include "vbawindow.hxx" + typedef cppu::ImplInheritanceHelper< VbaApplicationBase, ooo::vba::word::XApplication, ooo::vba::XSinkCaller > SwVbaApplication_BASE; // This class is currently not a singleton. One instance is created per document with (potential?) @@ -47,6 +49,7 @@ typedef cppu::ImplInheritanceHelper< VbaApplicationBase, ooo::vba::word::XApplic class SwVbaApplication : public SwVbaApplication_BASE { std::vector> mvSinks; + SwVbaWindow* getActiveSwVbaWindow(); public: explicit SwVbaApplication( css::uno::Reference< css::uno::XComponentContext >& m_xContext ); @@ -75,6 +78,7 @@ public: virtual void SAL_CALL setWindowState( sal_Int32 _windowstate ) override; virtual float SAL_CALL CentimetersToPoints( float Centimeters ) override; virtual void SAL_CALL ShowMe() override; + virtual void SAL_CALL Resize( sal_Int32 Width, sal_Int32 Height ) override; // XInterfaceWithIID virtual OUString SAL_CALL getIID() override; -- cgit