summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-11-11 11:49:34 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-11-11 15:19:51 +0000
commit7c0bc672791b9738aac94109ea530106c6a84682 (patch)
treecad9a6c13c450f5b973d3bce77096af5f1298e72 /include
parentbc09385ce297219f1976a9ca41a0b30902b9326d (diff)
why have a pimpl with somethings in it and somethings not
Change-Id: I6151defcd9dddf4582ecf8d5952f6f8a825c545a
Diffstat (limited to 'include')
-rw-r--r--include/editeng/brushitem.hxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/editeng/brushitem.hxx b/include/editeng/brushitem.hxx
index 153590961ad1..45c5a3f5680d 100644
--- a/include/editeng/brushitem.hxx
+++ b/include/editeng/brushitem.hxx
@@ -42,12 +42,13 @@ enum SvxGraphicPosition
GPOS_AREA, GPOS_TILED
};
-class SvxBrushItem_Impl;
class EDITENG_DLLPUBLIC SvxBrushItem : public SfxPoolItem
{
Color aColor;
sal_Int32 nShadingValue;
- std::unique_ptr<SvxBrushItem_Impl> pImpl;
+ mutable std::unique_ptr<GraphicObject> xGraphicObject;
+ sal_Int8 nGraphicTransparency; //contains a percentage value which is
+ //copied to the GraphicObject when necessary
OUString maStrLink;
OUString maStrFilter;
SvxGraphicPosition eGraphicPos;
@@ -104,7 +105,7 @@ public:
const OUString& GetGraphicFilter() const { return maStrFilter; }
//UUUU get graphic transparency in percent
- sal_Int8 getGraphicTransparency() const;
+ sal_Int8 getGraphicTransparency() const { return nGraphicTransparency; }
void setGraphicTransparency(sal_Int8 nNew);
void SetGraphicPos( SvxGraphicPosition eNew );