diff options
author | Armin Le Grand <Armin.Le.Grand@cib.de> | 2017-11-16 18:47:29 +0100 |
---|---|---|
committer | Armin Le Grand <Armin.Le.Grand@cib.de> | 2017-11-18 13:07:47 +0100 |
commit | 487ac20ecd73cf3d98071ba30cf5597d957017f7 (patch) | |
tree | 8777e0a1e7917ab054723327a59089b264c4a567 /editeng | |
parent | 059469926e359153b9b291790ef2df84fa63fda9 (diff) |
RotateFlyFrame3: add support for AutoContour
For transformed FlyFrames with no Border and no Padding it
would be nice to immediately start using AutoContour, added
first implementation to do so.
Added several conditions for AutoContour, need to
work on reaction on changes to these. Corrected
needed transform adaptions to Contour(s)
Change-Id: Ia3d7845fd5d50c8a413d592ae07ce2041ccc91b9
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/items/frmitems.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx index c2bfc5e290fb..bb61ccaccc86 100644 --- a/editeng/source/items/frmitems.cxx +++ b/editeng/source/items/frmitems.cxx @@ -3157,6 +3157,22 @@ SvxBrushItem::~SvxBrushItem() { } +bool SvxBrushItem::isUsed() const +{ + if (GPOS_NONE != GetGraphicPos()) + { + // graphic used + return true; + } + else if (0xff != GetColor().GetTransparency()) + { + // color used + return true; + } + + return false; +} + sal_uInt16 SvxBrushItem::GetVersion( sal_uInt16 /*nFileVersion*/ ) const { return BRUSH_GRAPHIC_VERSION; |