From 7c9c5e1d801b32d99d9ca2aa46b3071a9f497f2f Mon Sep 17 00:00:00 2001 From: "Frank Schoenheit [fs]" Date: Fri, 9 Apr 2010 11:07:43 +0200 Subject: slidecopy: moved Frame/ResourceURL/Type from css.ui.UIElement to css.ui.XUIElement --- sfx2/workben/custompanel/ctp_panel.cxx | 22 ++++++++++++++++++++++ sfx2/workben/custompanel/ctp_panel.hxx | 3 +++ 2 files changed, 25 insertions(+) (limited to 'sfx2/workben') diff --git a/sfx2/workben/custompanel/ctp_panel.cxx b/sfx2/workben/custompanel/ctp_panel.cxx index 7f39b671c2b6..ee94287bedbf 100644 --- a/sfx2/workben/custompanel/ctp_panel.cxx +++ b/sfx2/workben/custompanel/ctp_panel.cxx @@ -37,6 +37,7 @@ #include #include #include +#include /** === end UNO includes === **/ #include @@ -72,9 +73,11 @@ namespace sd { namespace colortoolpanel using ::com::sun::star::awt::XDevice; using ::com::sun::star::awt::XGraphics; using ::com::sun::star::accessibility::XAccessible; + using ::com::sun::star::frame::XFrame; /** === end UNO using === **/ namespace WindowAttribute = ::com::sun::star::awt::WindowAttribute; namespace PosSize = ::com::sun::star::awt::PosSize; + namespace UIElementType = ::com::sun::star::ui::UIElementType; //================================================================================================================== //= helpers @@ -226,7 +229,26 @@ namespace sd { namespace colortoolpanel { } + //------------------------------------------------------------------------------------------------------------------ + Reference< XFrame > SAL_CALL PanelUIElement::getFrame() throw (RuntimeException) + { + // TODO + return NULL; + } + + //------------------------------------------------------------------------------------------------------------------ + ::rtl::OUString SAL_CALL PanelUIElement::getResourceURL() throw (RuntimeException) + { + return m_sResourceURL; + } + //------------------------------------------------------------------------------------------------------------------ + ::sal_Int16 SAL_CALL PanelUIElement::getType() throw (RuntimeException) + { + return UIElementType::TOOLPANEL; + } + + //------------------------------------------------------------------------------------------------------------------ Reference< XInterface > SAL_CALL PanelUIElement::getRealInterface( ) throw (RuntimeException) { ::osl::MutexGuard aGuard( m_aMutex ); diff --git a/sfx2/workben/custompanel/ctp_panel.hxx b/sfx2/workben/custompanel/ctp_panel.hxx index 5975af2badc1..57a1a91eaf3e 100644 --- a/sfx2/workben/custompanel/ctp_panel.hxx +++ b/sfx2/workben/custompanel/ctp_panel.hxx @@ -100,6 +100,9 @@ namespace sd { namespace colortoolpanel ); // XUIElement + virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > SAL_CALL getFrame() throw (::com::sun::star::uno::RuntimeException); + virtual ::rtl::OUString SAL_CALL getResourceURL() throw (::com::sun::star::uno::RuntimeException); + virtual ::sal_Int16 SAL_CALL getType() throw (::com::sun::star::uno::RuntimeException); virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getRealInterface( ) throw (::com::sun::star::uno::RuntimeException); // OComponentHelper -- cgit v1.2.3