diff options
author | Armin Le Grand <Armin.Le.Grand@cib.de> | 2017-09-28 10:20:15 +0200 |
---|---|---|
committer | Armin Le Grand <Armin.Le.Grand@cib.de> | 2017-10-20 14:13:22 +0200 |
commit | d9b16effeda21488911d1b5035f9d3be05731ca2 (patch) | |
tree | 3c16a374a8bb42c7b0207e0e34bcacd66efb150f /include/basegfx | |
parent | 4ddd74e2d119eb7b25df75a65fcb214ce08ec672 (diff) |
RotGrfFlyFrame: Adapt Crop functionality to rotated Graphic
The FlyFrame which may contain a Graphic needs working Crop,
interactive and in core. Adapted this to work with now possible
rotation, changed common code in svx which has to handle cases
for Draw/Impress/Calc and Writer differently. Tried to use as
much in common as possible. Additionally furter adaptions
to rotation itself.
Change-Id: Ia961e9490e2627c74220b186116f5aa4fcabca78
Diffstat (limited to 'include/basegfx')
-rw-r--r-- | include/basegfx/matrix/b2dhommatrixtools.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/basegfx/matrix/b2dhommatrixtools.hxx b/include/basegfx/matrix/b2dhommatrixtools.hxx index c60a6ac96c21..e462bad54b8e 100644 --- a/include/basegfx/matrix/b2dhommatrixtools.hxx +++ b/include/basegfx/matrix/b2dhommatrixtools.hxx @@ -126,6 +126,13 @@ namespace basegfx fRadiant); } + /// special for creating a mapping for a Range rotated around it's center + /// while keeping AspectRatio unchanged and staying inside the given Range + /// by optimally using the available space (no overlap or outside allowed) + BASEGFX_DLLPUBLIC B2DHomMatrix createRotateAroundCenterKeepAspectRatioStayInsideRange( + const basegfx::B2DRange& rTargetRange, + double fRotate); + /// special for the case to map from source range to target range BASEGFX_DLLPUBLIC B2DHomMatrix createSourceRangeTargetRangeTransform( const B2DRange& rSourceRange, |