diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-09 11:20:52 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-10-12 09:13:33 +0200 |
commit | 0f8873612829f7946ea6c3114b050320520eb75a (patch) | |
tree | 564d2582a85c6796f4552c5d2bef4e091e42a4b8 /chart2/source/controller/inc/ChartController.hxx | |
parent | 3e6ff89b5ca9c9b164deae82ab24a7ba1552e89e (diff) |
loplugin:mergeclasses
Change-Id: Icd01de71fe87e0bf17eba39f5b00fc9a46765509
Diffstat (limited to 'chart2/source/controller/inc/ChartController.hxx')
-rw-r--r-- | chart2/source/controller/inc/ChartController.hxx | 96 |
1 files changed, 32 insertions, 64 deletions
diff --git a/chart2/source/controller/inc/ChartController.hxx b/chart2/source/controller/inc/ChartController.hxx index 59a374100fb6..80b4f6095089 100644 --- a/chart2/source/controller/inc/ChartController.hxx +++ b/chart2/source/controller/inc/ChartController.hxx @@ -77,57 +77,15 @@ namespace chart { class UndoGuard; - -enum ChartDrawMode { CHARTDRAW_INSERT, CHARTDRAW_SELECT }; - -class WindowController -{ -public: - virtual ~WindowController() {}; - - virtual void PrePaint(vcl::RenderContext& rRenderContext) = 0; - virtual void execute_Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect) = 0; - virtual void execute_MouseButtonDown( const MouseEvent& rMEvt ) = 0; - virtual void execute_MouseMove( const MouseEvent& rMEvt ) = 0; - virtual void execute_Tracking( const TrackingEvent& rTEvt ) = 0; - virtual void execute_MouseButtonUp( const MouseEvent& rMEvt ) = 0; - virtual void execute_Resize() = 0; - virtual void execute_Activate() = 0; - virtual void execute_Deactivate() = 0; - virtual void execute_GetFocus() = 0; - virtual void execute_LoseFocus() = 0; - virtual void execute_Command( const CommandEvent& rCEvt ) = 0; - virtual bool execute_KeyInput( const KeyEvent& rKEvt ) = 0; - - /** get help text to be shown in a quick help - - @param aAtLogicPosition the position in logic coordinates (of the - window) of the mouse cursor to determine for - which object help is requested. - - @param bIsBalloonHelp determines whether to return the long text version - (balloon help) or the shorter one (quick help). - - @param rOutQuickHelpText is filled with the quick help text - - @param rOutEqualRect is filled with a rectangle that denotes the region - in which the quick help does not change. - - @return </sal_True>, if a quick help should be shown. - */ - virtual bool requestQuickHelp( - ::Point aAtLogicPosition, bool bIsBalloonHelp, - OUString & rOutQuickHelpText, ::com::sun::star::awt::Rectangle & rOutEqualRect ) = 0; - - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > CreateAccessible() = 0; -}; - class ChartWindow; class DrawModelWrapper; class DrawViewWrapper; class ReferenceSizeProvider; class ViewElementListProvider; +enum ChartDrawMode { CHARTDRAW_INSERT, CHARTDRAW_SELECT }; + + class ChartController : public ::cppu::WeakImplHelper < ::com::sun::star::frame::XController //comprehends XComponent (required interface) ,::com::sun::star::frame::XDispatchProvider //(required interface) @@ -142,7 +100,6 @@ class ChartController : public ::cppu::WeakImplHelper < ,::com::sun::star::util::XModeChangeListener ,::com::sun::star::frame::XLayoutManagerListener > - , public WindowController { friend class DrawCommandDispatch; friend class ShapeController; @@ -406,26 +363,37 @@ public: const ::com::sun::star::uno::Any& aInfo ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - // chart2::WindowController - virtual void PrePaint(vcl::RenderContext& rRenderContext) SAL_OVERRIDE; - virtual void execute_Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect) SAL_OVERRIDE; - virtual void execute_MouseButtonDown( const MouseEvent& rMEvt ) SAL_OVERRIDE; - virtual void execute_MouseMove( const MouseEvent& rMEvt ) SAL_OVERRIDE; - virtual void execute_Tracking( const TrackingEvent& rTEvt ) SAL_OVERRIDE; - virtual void execute_MouseButtonUp( const MouseEvent& rMEvt ) SAL_OVERRIDE; - virtual void execute_Resize() SAL_OVERRIDE; - virtual void execute_Activate() SAL_OVERRIDE; - virtual void execute_Deactivate() SAL_OVERRIDE; - virtual void execute_GetFocus() SAL_OVERRIDE; - virtual void execute_LoseFocus() SAL_OVERRIDE; - virtual void execute_Command( const CommandEvent& rCEvt ) SAL_OVERRIDE; - virtual bool execute_KeyInput( const KeyEvent& rKEvt ) SAL_OVERRIDE; - - virtual bool requestQuickHelp( + // WindowController stuff + void PrePaint(vcl::RenderContext& rRenderContext); + void execute_Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect); + void execute_MouseButtonDown( const MouseEvent& rMEvt ); + void execute_MouseMove( const MouseEvent& rMEvt ); + void execute_MouseButtonUp( const MouseEvent& rMEvt ); + void execute_Resize(); + void execute_Command( const CommandEvent& rCEvt ); + virtual bool execute_KeyInput( const KeyEvent& rKEvt ); + + /** get help text to be shown in a quick help + + @param aAtLogicPosition the position in logic coordinates (of the + window) of the mouse cursor to determine for + which object help is requested. + + @param bIsBalloonHelp determines whether to return the long text version + (balloon help) or the shorter one (quick help). + + @param rOutQuickHelpText is filled with the quick help text + + @param rOutEqualRect is filled with a rectangle that denotes the region + in which the quick help does not change. + + @return </sal_True>, if a quick help should be shown. + */ + bool requestQuickHelp( ::Point aAtLogicPosition, bool bIsBalloonHelp, - OUString & rOutQuickHelpText, ::com::sun::star::awt::Rectangle & rOutEqualRect ) SAL_OVERRIDE; + OUString & rOutQuickHelpText, ::com::sun::star::awt::Rectangle & rOutEqualRect ); - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > CreateAccessible() SAL_OVERRIDE; + ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > CreateAccessible(); static bool isObjectDeleteable( const ::com::sun::star::uno::Any& rSelection ); |