summaryrefslogtreecommitdiff
path: root/svx/inc
diff options
context:
space:
mode:
authorRadek Doulik <rodo@novell.com>2012-01-11 16:00:50 +0100
committerRadek Doulik <rodo@novell.com>2012-01-11 16:03:25 +0100
commit158e9271f4f9760a6ffa5700d9bb389d85d7b2ae (patch)
tree1761cb1e8f72970b2fd3e69ee3d1cdc9b64d91f5 /svx/inc
parent81856eecf42e56756c28df6e97dd859004755e4c (diff)
implemented custom shape subpaths darkening/lighting
Diffstat (limited to 'svx/inc')
-rw-r--r--svx/inc/svx/EnhancedCustomShape2d.hxx2
-rw-r--r--svx/inc/svx/svdopath.hxx6
2 files changed, 6 insertions, 2 deletions
diff --git a/svx/inc/svx/EnhancedCustomShape2d.hxx b/svx/inc/svx/EnhancedCustomShape2d.hxx
index ebd7f0bd7162..fa2a07970f18 100644
--- a/svx/inc/svx/EnhancedCustomShape2d.hxx
+++ b/svx/inc/svx/EnhancedCustomShape2d.hxx
@@ -130,7 +130,7 @@ class EnhancedCustomShape2d : public SfxItemSet
sal_Bool SetAdjustValueAsDouble( const double& rValue, const sal_Int32 nIndex );
sal_Int32 GetLuminanceChange( sal_uInt32 nIndex ) const;
- Color GetColorData( const Color& rFillColor, sal_uInt32 nIndex ) const;
+ Color GetColorData( const Color& rFillColor, sal_uInt32 nIndex, double dBrightness ) const;
void AdaptObjColor(SdrPathObj& rObj, const SfxItemSet& rCustomShapeSet,
sal_uInt32& nColorIndex, sal_uInt32 nColorCount);
sal_Bool GetParameter( double& rParameterReturnValue, const com::sun::star::drawing::EnhancedCustomShapeParameter&,
diff --git a/svx/inc/svx/svdopath.hxx b/svx/inc/svx/svdopath.hxx
index 2b1eeb7408bf..1037a56882fd 100644
--- a/svx/inc/svx/svdopath.hxx
+++ b/svx/inc/svx/svdopath.hxx
@@ -75,6 +75,9 @@ protected:
// for isolation of old Drag/Create code
ImpPathForDragAndCreate* mpDAC;
+ // brightness - used in EnhancedCustomShapes2d.cxx for DARKEN[LESS] and LIGHTEN[LESS] segments implementation
+ double mdBrightness;
+
protected:
// Hilfsfunktion fuer GET/SET/INS/etc. PNT
void ImpSetClosed(sal_Bool bClose);
@@ -86,11 +89,12 @@ protected:
public:
static sal_Bool ImpFindPolyPnt(const basegfx::B2DPolyPolygon& rPoly, sal_uInt32 nAbsPnt, sal_uInt32& rPolyNum, sal_uInt32& rPointNum);
virtual void SetRectsDirty(sal_Bool bNotMyself = sal_False);
+ double GetBrightness() { return mdBrightness; }
public:
TYPEINFO();
SdrPathObj(SdrObjKind eNewKind);
- SdrPathObj(SdrObjKind eNewKind, const basegfx::B2DPolyPolygon& rPathPoly);
+ SdrPathObj(SdrObjKind eNewKind, const basegfx::B2DPolyPolygon& rPathPoly, double dBrightness = 1.0);
virtual ~SdrPathObj();
virtual void TakeObjInfo(SdrObjTransformInfoRec& rInfo) const;