diff options
author | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-03-16 13:36:35 +0100 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-03-16 13:36:35 +0100 |
commit | c2297610c51057e3a8f4716ffc0b9a570c4876e8 (patch) | |
tree | 38ae59942d09e7f1567df6a2fc6d34adb061134f /sd/source/ui/toolpanel/TaskPaneToolPanel.cxx | |
parent | 263bcb1a8f686afe66f4fe53b76929423fc6ce43 (diff) |
slidecopy: de/activate panels via the drawing framework
Instead of simply letting svtool's ToolPanelDeck decide on panel activation, requests are re-routed through
the view's ConfigurationController. So, clicking onto a tab just requests the activation of the respective
resource, which in turn - when the requested configuration becomes the active configuration - will activate
the ToolPanel.
Diffstat (limited to 'sd/source/ui/toolpanel/TaskPaneToolPanel.cxx')
-rw-r--r-- | sd/source/ui/toolpanel/TaskPaneToolPanel.cxx | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/sd/source/ui/toolpanel/TaskPaneToolPanel.cxx b/sd/source/ui/toolpanel/TaskPaneToolPanel.cxx index 11735d5433bd..3e5a7ba3065f 100644 --- a/sd/source/ui/toolpanel/TaskPaneToolPanel.cxx +++ b/sd/source/ui/toolpanel/TaskPaneToolPanel.cxx @@ -38,18 +38,34 @@ namespace sd { namespace toolpanel { //...................................................................................................................... + /** === begin UNO using === **/ + using ::com::sun::star::uno::Reference; + using ::com::sun::star::uno::XInterface; + using ::com::sun::star::uno::UNO_QUERY; + using ::com::sun::star::uno::UNO_QUERY_THROW; + using ::com::sun::star::uno::UNO_SET_THROW; + using ::com::sun::star::uno::Exception; + using ::com::sun::star::uno::RuntimeException; + using ::com::sun::star::uno::Any; + using ::com::sun::star::uno::makeAny; + using ::com::sun::star::uno::Sequence; + using ::com::sun::star::uno::Type; + using ::com::sun::star::drawing::framework::XResourceId; + /** === end UNO using === **/ + //================================================================================================================== //= TaskPaneToolPanel //================================================================================================================== //------------------------------------------------------------------------------------------------------------------ TaskPaneToolPanel::TaskPaneToolPanel( ToolPanelDeck& i_rPanelDeck, ::std::auto_ptr< ControlFactory >& i_rControlFactory, - const Image& i_rImage, const USHORT i_nTitleResId, const ULONG i_nHelpId ) + const Image& i_rImage, const USHORT i_nTitleResId, const ULONG i_nHelpId, const Reference< XResourceId >& i_rPanelResourceId ) :m_pPanelDeck( &i_rPanelDeck ) ,m_pControlFactory( i_rControlFactory ) ,m_pControl() ,m_aImage( i_rImage ) ,m_sTitle( SdResId( i_nTitleResId ) ) ,m_aHelpId( i_nHelpId ) + ,m_xPanelResourceId( i_rPanelResourceId ) { ENSURE_OR_THROW( m_pControlFactory.get(), "illegal control factory" ); } |