diff options
author | Gülşah Köse <gulsah.kose@collabora.com> | 2020-04-14 15:49:28 +0300 |
---|---|---|
committer | Gülşah Köse <gulsah.kose@collabora.com> | 2020-04-23 10:07:13 +0200 |
commit | 6454b6336b8de9a4c5899adeab552af6f794cdc4 (patch) | |
tree | efe9ea2e9b0131c4e9143cb1a085586de6f6e91a /drawinglayer | |
parent | 0e75f025419f878dc772391cea8d55765bceb9fc (diff) |
tdf#130058 Import shadow size.
Change-Id: Ie1cee377a33567088fb76ea47f0e6fc51d47f0fa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92188
Tested-by: Jenkins
Reviewed-by: Gülşah Köse <gulsah.kose@collabora.com>
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/attribute/sdrshadowattribute.cxx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/drawinglayer/source/attribute/sdrshadowattribute.cxx b/drawinglayer/source/attribute/sdrshadowattribute.cxx index 29e2e6f8bbb4..01ff66162ea5 100644 --- a/drawinglayer/source/attribute/sdrshadowattribute.cxx +++ b/drawinglayer/source/attribute/sdrshadowattribute.cxx @@ -30,14 +30,17 @@ namespace drawinglayer::attribute public: // shadow definitions basegfx::B2DVector maOffset; // shadow offset 1/100th mm + basegfx::B2DVector maSize; // [0.0 .. 2.0] double mfTransparence; // [0.0 .. 1.0], 0.0==no transp. basegfx::BColor maColor; // color of shadow ImpSdrShadowAttribute( const basegfx::B2DVector& rOffset, + const basegfx::B2DVector& rSize, double fTransparence, const basegfx::BColor& rColor) : maOffset(rOffset), + maSize(rSize), mfTransparence(fTransparence), maColor(rColor) { @@ -45,6 +48,7 @@ namespace drawinglayer::attribute ImpSdrShadowAttribute() : maOffset(basegfx::B2DVector()), + maSize(basegfx::B2DVector()), mfTransparence(0.0), maColor(basegfx::BColor()) { @@ -52,12 +56,14 @@ namespace drawinglayer::attribute // data read access const basegfx::B2DVector& getOffset() const { return maOffset; } + const basegfx::B2DVector& getSize() const { return maSize; } double getTransparence() const { return mfTransparence; } const basegfx::BColor& getColor() const { return maColor; } bool operator==(const ImpSdrShadowAttribute& rCandidate) const { return (getOffset() == rCandidate.getOffset() + && getSize() == rCandidate.getSize() && getTransparence() == rCandidate.getTransparence() && getColor() == rCandidate.getColor()); } @@ -72,10 +78,11 @@ namespace drawinglayer::attribute SdrShadowAttribute::SdrShadowAttribute( const basegfx::B2DVector& rOffset, + const basegfx::B2DVector& rSize, double fTransparence, const basegfx::BColor& rColor) : mpSdrShadowAttribute(ImpSdrShadowAttribute( - rOffset, fTransparence, rColor)) + rOffset, rSize, fTransparence, rColor)) { } @@ -113,6 +120,11 @@ namespace drawinglayer::attribute return mpSdrShadowAttribute->getOffset(); } + const basegfx::B2DVector& SdrShadowAttribute::getSize() const + { + return mpSdrShadowAttribute->getSize(); + } + double SdrShadowAttribute::getTransparence() const { return mpSdrShadowAttribute->getTransparence(); |