diff options
Diffstat (limited to 'svx/inc')
-rw-r--r-- | svx/inc/svx/EnhancedCustomShape2d.hxx | 2 | ||||
-rw-r--r-- | svx/inc/svx/svdopath.hxx | 6 |
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; |