summaryrefslogtreecommitdiff
path: root/svx/inc
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2017-04-24 16:37:46 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2017-05-06 18:08:16 +0200
commit3908064e9034074c82ed62bf60f5107f27ca4061 (patch)
tree138ad8ceb58228f93eff11a48c9a675b142f64b8 /svx/inc
parent3be7c158184b1b9fd60d71a59a02c8738bdf977e (diff)
Simplify sdr::properties::ItemChangeBroadcaster
Change-Id: Ie731294b6490165cf208335e7ec404a35f8a6a95
Diffstat (limited to 'svx/inc')
-rw-r--r--svx/inc/sdr/properties/itemsettools.hxx18
1 files changed, 8 insertions, 10 deletions
diff --git a/svx/inc/sdr/properties/itemsettools.hxx b/svx/inc/sdr/properties/itemsettools.hxx
index c9cb93261ad0..4559f8f2e3c8 100644
--- a/svx/inc/sdr/properties/itemsettools.hxx
+++ b/svx/inc/sdr/properties/itemsettools.hxx
@@ -21,11 +21,11 @@
#define INCLUDED_SVX_INC_SDR_PROPERTIES_ITEMSETTOOLS_HXX
#include <sal/types.h>
-#include <vcl/region.hxx>
+#include <tools/gen.hxx>
+#include <vector>
class SdrObject;
class SfxItemSet;
-namespace tools { class Rectangle; }
class Fraction;
// class to remember broadcast start positions
@@ -35,21 +35,19 @@ namespace sdr
{
class ItemChangeBroadcaster
{
- bool mbSingleRect;
- union {
- RectangleVector* mpRectangleVector;
- tools::Rectangle* mpRectangle;
- };
+ std::vector< tools::Rectangle > maRectangles;
public:
explicit ItemChangeBroadcaster(const SdrObject& rObj);
- ~ItemChangeBroadcaster();
sal_uInt32 GetRectangleCount() const
{
- return mbSingleRect ? 1 : mpRectangleVector->size();
+ return maRectangles.size();
+ }
+ const tools::Rectangle& GetRectangle(sal_uInt32 nIndex) const
+ {
+ return maRectangles[nIndex];
}
- const tools::Rectangle& GetRectangle(sal_uInt32 nIndex) const;
};
} // end of namespace properties
} // end of namespace sdr