From 2fc4f5cd750cc3899ffc6b2f831edcb01e7773b4 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Mon, 19 May 2014 16:00:39 -0400 Subject: Register OpenGL windows to ScGridWindow upon file load. Change-Id: I6fdce232ef41079f20a983dc72da032196078858 --- include/sfx2/sfxbasecontroller.hxx | 9 +++++++-- include/sfx2/viewsh.hxx | 7 +++++++ 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/sfx2/sfxbasecontroller.hxx b/include/sfx2/sfxbasecontroller.hxx index cff341714b74..5389d8f9978f 100644 --- a/include/sfx2/sfxbasecontroller.hxx +++ b/include/sfx2/sfxbasecontroller.hxx @@ -35,7 +35,8 @@ #include #include #include -#include +#include +#include #include #include #include @@ -60,7 +61,7 @@ sal_Int16 MapGroupIDToCommandGroup( sal_Int16 nGroupID ); // class declarations -typedef ::cppu::WeakImplHelper9 < css::frame::XController2 +typedef ::cppu::WeakImplHelper10 < css::frame::XController2 , css::frame::XControllerBorder , css::frame::XDispatchProvider , css::task::XStatusIndicatorSupplier @@ -69,6 +70,7 @@ typedef ::cppu::WeakImplHelper9 < css::frame::XController2 , css::frame::XDispatchInformationProvider , css::frame::XTitle , css::frame::XTitleChangeBroadcaster + , css::lang::XInitialization > SfxBaseController_Base; class SFX2_DLLPUBLIC SfxBaseController :public SfxBaseController_Base @@ -166,6 +168,9 @@ public: virtual void SAL_CALL addTitleChangeListener( const css::uno::Reference< css::frame::XTitleChangeListener >& xListener ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL removeTitleChangeListener( const css::uno::Reference< css::frame::XTitleChangeListener >& xListener ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; + // css::lang::XInitialization + virtual void SAL_CALL initialize( const ::css::uno::Sequence< ::css::uno::Any >& aArguments ) SAL_OVERRIDE; + // FIXME: TL needs this in sw/source/ui/uno/unotxdoc.cxx now; // either the _Impl name should vanish or there should be an "official" API SfxViewShell* GetViewShell_Impl() const; diff --git a/include/sfx2/viewsh.hxx b/include/sfx2/viewsh.hxx index 13eb515e9016..7c43c93c0c95 100644 --- a/include/sfx2/viewsh.hxx +++ b/include/sfx2/viewsh.hxx @@ -190,6 +190,13 @@ public: void VisAreaChanged(const Rectangle& rRect); // Misc + + /** + * Initialize is called after the frame has been loaded and the controller + * has been set. By the time this is called the document has been fully + * imported. + */ + virtual void Initialize(); virtual bool PrepareClose( bool bUI = true ); virtual OUString GetSelectionText( bool bCompleteWords = false ); virtual bool HasSelection( bool bText = true ) const; -- cgit v1.2.3