From 8c9901906bbc6b59baa0b2ef918b7e7fe89538b8 Mon Sep 17 00:00:00 2001 From: Andre Fischer Date: Fri, 23 Apr 2010 17:06:10 +0200 Subject: renaissance1: #i107215# Reorganized the selection function. Introduced button bar. --- sd/source/ui/slidesorter/inc/view/SlideSorterView.hxx | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'sd/source/ui/slidesorter/inc/view/SlideSorterView.hxx') diff --git a/sd/source/ui/slidesorter/inc/view/SlideSorterView.hxx b/sd/source/ui/slidesorter/inc/view/SlideSorterView.hxx index 2b068642930a..4afc5a74ccf0 100644 --- a/sd/source/ui/slidesorter/inc/view/SlideSorterView.hxx +++ b/sd/source/ui/slidesorter/inc/view/SlideSorterView.hxx @@ -63,6 +63,7 @@ class SlideSorterModel; namespace sd { namespace slidesorter { namespace view { +class ButtonBar; class LayeredDevice; class Layouter; class PageObjectPainter; @@ -198,18 +199,19 @@ public: /** The page under the mouse is not highlighted in some contexts. Call this method on context changes. */ - void SetIsMouseOverIndicationAllowed (const bool bIsAllowed); void UpdatePageUnderMouse (bool bAnimate); void UpdatePageUnderMouse ( const Point& rMousePosition, const bool bIsMouseButtonDown, const bool bAnimate = true); + void UpdatePageUnderMouse ( + const model::SharedPageDescriptor& rpDescriptor, + const Point& rMousePosition, + const bool bIsMouseButtonDown, + const bool bAnimate = true); void SetPageUnderMouse ( const model::SharedPageDescriptor& rpDescriptor, const bool bAnimate = true); - void SetButtonUnderMouse ( - const sal_Int32 nButtonIndex, - const bool bForce = false); bool SetState ( const model::SharedPageDescriptor& rpDescriptor, @@ -237,6 +239,8 @@ public: SharedSdWindow mpWindow; }; + ButtonBar& GetButtonBar (void) const; + protected: virtual void Notify (SfxBroadcaster& rBroadcaster, const SfxHint& rHint); @@ -255,18 +259,20 @@ private: Layouter::Orientation meOrientation; ::boost::shared_ptr mpProperties; model::SharedPageDescriptor mpPageUnderMouse; - bool mbIsMouseOverIndicationAllowed; + ::rtl::OUString msHelpText; sal_Int32 mnButtonUnderMouse; ::boost::shared_ptr mpPageObjectPainter; ::boost::shared_ptr mpSelectionPainter; Region maRedrawRegion; SharedILayerPainter mpBackgroundPainter; + ::boost::scoped_ptr mpButtonBar; /** Determine the visibility of all page objects. */ void DeterminePageObjectVisibilities (void); void UpdatePreciousFlags (void); + void Rearrange (void); }; -- cgit