diff options
author | Andre Fischer <af@openoffice.org> | 2010-03-19 15:06:39 +0100 |
---|---|---|
committer | Andre Fischer <af@openoffice.org> | 2010-03-19 15:06:39 +0100 |
commit | b390fae1706b9c511158a03e4fd61f263be4e511 (patch) | |
tree | 644429f16c6834c397b10dee200a01aa7ed516ee /sd/source/ui/slidesorter/inc/view/SlideSorterView.hxx | |
parent | 8c23aba539c0f5764ec543e4cfa6bac2fc20e7ae (diff) |
renaissance1: #i107215# Reorganized and improved layouting.
Diffstat (limited to 'sd/source/ui/slidesorter/inc/view/SlideSorterView.hxx')
-rw-r--r-- | sd/source/ui/slidesorter/inc/view/SlideSorterView.hxx | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/sd/source/ui/slidesorter/inc/view/SlideSorterView.hxx b/sd/source/ui/slidesorter/inc/view/SlideSorterView.hxx index a9cad51af652..b5bdb91ade29 100644 --- a/sd/source/ui/slidesorter/inc/view/SlideSorterView.hxx +++ b/sd/source/ui/slidesorter/inc/view/SlideSorterView.hxx @@ -34,6 +34,7 @@ #include "SlideSorter.hxx" #include "model/SlsPageDescriptor.hxx" #include "model/SlsSharedPageDescriptor.hxx" +#include "view/SlsLayouter.hxx" #include "View.hxx" #include <sfx2/viewfrm.hxx> @@ -88,9 +89,11 @@ public: virtual ~SlideSorterView (void); void Dispose (void); - enum Orientation { HORIZONTAL, VERTICAL, GRID }; - void SetOrientation (const Orientation eOrientation); - Orientation GetOrientation (void) const; + /** Set the general way of layouting the page objects. Note that this + method does not trigger any repaints or layouts. + */ + bool SetOrientation (const Layouter::Orientation eOrientation); + Layouter::Orientation GetOrientation (void) const; void RequestRepaint (void); void RequestRepaint (const model::SharedPageDescriptor& rDescriptor); @@ -211,6 +214,8 @@ public: const bool bStateValue, const bool bAnimate = true); + void UpdateOrientation (void); + ::boost::shared_ptr<PageObjectPainter> GetPageObjectPainter (void); ::boost::shared_ptr<LayeredDevice> GetLayeredDevice (void) const; @@ -244,7 +249,7 @@ private: bool mbModelChangedWhileModifyEnabled; Size maPreviewSize; bool mbPreciousFlagUpdatePending; - Orientation meOrientation; + Layouter::Orientation meOrientation; ::boost::shared_ptr<controller::Properties> mpProperties; model::SharedPageDescriptor mpPageUnderMouse; bool mbIsMouseOverIndicationAllowed; @@ -258,9 +263,6 @@ private: void DeterminePageObjectVisibilities (void); void UpdatePreciousFlags (void); - - ::drawinglayer::primitive2d::Primitive2DSequence GetPrimitive2DHierarchy ( - const Region& rPaintArea) const; }; |