diff options
author | Armin Le Grand <Armin.Le.Grand@cib.de> | 2017-11-09 11:35:09 +0100 |
---|---|---|
committer | Armin Le Grand <Armin.Le.Grand@cib.de> | 2017-11-18 13:07:45 +0100 |
commit | 4cee8018792c732aac638bd82c754ade915a4db9 (patch) | |
tree | c9c98e4d621674449766d2054d710b6ef02bb5d0 /sw/source/core/inc/frame.hxx | |
parent | c82cb453eb56fb37ad36cff6becde9d753eb829d (diff) |
RotateFlyFrame3: Added basic transformation support
In lcl_MoveAllLowers SwFrame(s) were directly modified,
not even by calling any member method what makes it hard to
react on changes to geometric definition(s). Added logic
to Transform a SwFrame, currently basic by using e.g.
SwFrame::Ltransform_translate, may be later unified to
general Transformation usage with a homogen Matrix
Change-Id: I7582fbd1472e12e481adacedda2e65cc0c282eac
Diffstat (limited to 'sw/source/core/inc/frame.hxx')
-rw-r--r-- | sw/source/core/inc/frame.hxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sw/source/core/inc/frame.hxx b/sw/source/core/inc/frame.hxx index 2d0a1c321372..7cb12dadad1a 100644 --- a/sw/source/core/inc/frame.hxx +++ b/sw/source/core/inc/frame.hxx @@ -205,6 +205,13 @@ public: // SwFrame of a SwFlyFrame) virtual basegfx::B2DHomMatrix getFrameAreaTransformation() const; virtual basegfx::B2DHomMatrix getFramePrintAreaTransformation() const; + + // RotateFlyFrame3 - Support for Transformations + // Diverse transformations, starting with a concrete translate that has + // to be mapped and currently directly changes SwRect(s) at SwFrames. For + // now stay on sigle actions (*_translate), bu tmaybe later unified to + // a single transform with a single B2DHomMatrix to apply + virtual void transform_translate(const Point& rOffset); }; /// RotateFlyFrame3: Helper class when you want to make your SwFrame derivate @@ -290,6 +297,15 @@ public: // state when itz was necessary to reset them temporarily (see above) void resetAreaDefinitionsToTransformed( SwFrameAreaDefinition& rSwFrameAreaDefinition); + + // check if used + bool isTransformationUsed() const + { + return !maFrameAreaTransformation.isIdentity() || !maFramePrintAreaTransformation.isIdentity(); + } + + // transform by given B2DHomMatrix + void doTransform(const basegfx::B2DHomMatrix aTransform); }; /** |