diff options
author | Michael Meeks <michael.meeks@suse.com> | 2013-04-12 16:31:48 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-06-25 05:41:07 +0200 |
commit | 0036ced049d56557570b808f4c03df1127ca679e (patch) | |
tree | 14a4323d933d2716d36af1b07ae5e12aea9d4ca2 /sd/source/ui/slidesorter/inc/view/SlsPageObjectLayouter.hxx | |
parent | 9af5c13851482e95ff17f7cf4a46a5660f8588af (diff) |
slide-sorter: re-factor to improve bbox calcuation
Always use a SlsPageDescriptor to calculate bbox, so we can
adapt it to merge slides attributes where possible.
Change-Id: Id71945bbbb9adb069654ab712e22ea79fea96c1f
Diffstat (limited to 'sd/source/ui/slidesorter/inc/view/SlsPageObjectLayouter.hxx')
-rw-r--r-- | sd/source/ui/slidesorter/inc/view/SlsPageObjectLayouter.hxx | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/sd/source/ui/slidesorter/inc/view/SlsPageObjectLayouter.hxx b/sd/source/ui/slidesorter/inc/view/SlsPageObjectLayouter.hxx index 729788e888be..dc92d007ec0e 100644 --- a/sd/source/ui/slidesorter/inc/view/SlsPageObjectLayouter.hxx +++ b/sd/source/ui/slidesorter/inc/view/SlsPageObjectLayouter.hxx @@ -98,18 +98,29 @@ public: @param eCoodinateSystem The bounding box can be returned in model and in pixel (window) coordinates. + @param bIgnoreLocation + Return a position ignoring the slides' location, ie. as if + we were the first slide. */ Rectangle GetBoundingBox ( const model::SharedPageDescriptor& rpPageDescriptor, const Part ePart, - const CoordinateSystem eCoordinateSystem); + const CoordinateSystem eCoordinateSystem, + bool bIgnoreLocation = false); + + /// the size of the embedded preview: position independent + Size GetPreviewSize(const CoordinateSystem eCoordinateSystem); + + /// the maximum size of each tile, also position independent + Size GetGridMaxSize(const CoordinateSystem eCoordinateSystem); + + Image GetTransitionEffectIcon (void) const; + +private: Rectangle GetBoundingBox ( const Point& rPageObjectLocation, const Part ePart, const CoordinateSystem eCoordinateSystem); - Size GetSize ( - const Part ePart, - const CoordinateSystem eCoordinateSystem); Image GetTransitionEffectIcon (void) const { return maTransitionEffectIcon;} Image GetCustomAnimationEffectIcon (void) const { return maCustomAnimationEffectIcon;} |