summaryrefslogtreecommitdiff
path: root/sfx2/workben
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-04-09 11:07:43 +0200
committerFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-04-09 11:07:43 +0200
commit7c9c5e1d801b32d99d9ca2aa46b3071a9f497f2f (patch)
treef87209b85cb20fa1d654d4e14433d7f3d435f88c /sfx2/workben
parentd30937f3ef1f1c8c2f38d0923ab30607c0aceb7f (diff)
slidecopy: moved Frame/ResourceURL/Type from css.ui.UIElement to css.ui.XUIElement
Diffstat (limited to 'sfx2/workben')
-rw-r--r--sfx2/workben/custompanel/ctp_panel.cxx22
-rw-r--r--sfx2/workben/custompanel/ctp_panel.hxx3
2 files changed, 25 insertions, 0 deletions
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 <com/sun/star/awt/PosSize.hpp>
#include <com/sun/star/awt/XDevice.hpp>
#include <com/sun/star/awt/XGraphics.hpp>
+#include <com/sun/star/ui/UIElementType.hpp>
/** === end UNO includes === **/
#include <tools/diagnose_ex.h>
@@ -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