diff options
author | Andre Fischer <af@openoffice.org> | 2010-05-31 17:48:57 +0200 |
---|---|---|
committer | Andre Fischer <af@openoffice.org> | 2010-05-31 17:48:57 +0200 |
commit | be7fd6fad43488b196b7b6f34510bf9be2d5fce8 (patch) | |
tree | e5b71d171e00751c147ac388bdb59724676ffb4d /sd/source/ui/slidesorter/inc/view/SlsPageObjectLayouter.hxx | |
parent | 506928805ff99d435df21ebf8d0828c5698c53dc (diff) |
renaissance1: #i107215# Some small fixes and improvements.
Diffstat (limited to 'sd/source/ui/slidesorter/inc/view/SlsPageObjectLayouter.hxx')
-rw-r--r-- | sd/source/ui/slidesorter/inc/view/SlsPageObjectLayouter.hxx | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/sd/source/ui/slidesorter/inc/view/SlsPageObjectLayouter.hxx b/sd/source/ui/slidesorter/inc/view/SlsPageObjectLayouter.hxx index 4ec73ae8eb0b..ad4941475f55 100644 --- a/sd/source/ui/slidesorter/inc/view/SlsPageObjectLayouter.hxx +++ b/sd/source/ui/slidesorter/inc/view/SlsPageObjectLayouter.hxx @@ -57,6 +57,7 @@ public: area has to be, how many digits to except for the largest page number. */ PageObjectLayouter( + const ::boost::shared_ptr<Theme>& rpTheme, const Size& rPageObjectWindowSize, const Size& rPreviewModelSize, const SharedSdWindow& rpWindow, @@ -64,6 +65,8 @@ public: ~PageObjectLayouter(void); enum Part { + // The focus indicator is painted outside the actual page object. + FocusIndicator, // This is the outer bounding box that includes the preview, page // number, title. PageObject, @@ -114,23 +117,17 @@ public: const Point& rPageObjectLocation, const Part ePart, const CoordinateSystem eCoordinateSystem); - - /** Return the size in pixel of the whole page object. - */ - Size GetPageObjectSize (void) const; - - /** Return the size in pixel of the preview. - */ - Size GetPreviewSize (void) const; + Size GetSize ( + const Part ePart, + const CoordinateSystem eCoordinateSystem); Image GetTransitionEffectIcon (void) const; - // void Update (void); - private: SharedSdWindow mpWindow; Size maPageObjectSize; double mnModelToWindowScale; + Rectangle maFocusIndicatorBoundingBox; Rectangle maPageObjectBoundingBox; Rectangle maPageNumberAreaBoundingBox; Rectangle maPreviewBoundingBox; @@ -142,7 +139,8 @@ private: Rectangle CalculatePreviewBoundingBox ( Size& rPageObjectSize, const Size& rPreviewModelSize, - const sal_Int32 nPageNumberAreaWidth); + const sal_Int32 nPageNumberAreaWidth, + const sal_Int32 nFocusIndicatorWidth); }; |