diff options
author | Muthu Subramanian <sumuthu@novell.com> | 2011-08-23 12:44:51 +0530 |
---|---|---|
committer | Muthu Subramanian <sumuthu@novell.com> | 2011-08-23 12:48:52 +0530 |
commit | 68e756de2ec7f9aeb1b6a6a28468745eca114715 (patch) | |
tree | 1eeed94529aa59d41e536b2df197661ce7640b48 /oox/inc | |
parent | a54cb659d28fe9cd20253bdf03878ee26a42d50f (diff) |
n#657896 - Gradient Transparencies and Muticolor Gradient fills.
- Assumes axial gradient fills when more than 3 colors are present.
- Implements importing of Transparency Gradients.
Diffstat (limited to 'oox/inc')
-rwxr-xr-x | oox/inc/oox/drawingml/shapepropertymap.hxx | 3 | ||||
-rw-r--r-- | oox/inc/oox/helper/modelobjecthelper.hxx | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/oox/inc/oox/drawingml/shapepropertymap.hxx b/oox/inc/oox/drawingml/shapepropertymap.hxx index e012d4b2a9ac..e2326bdb5c21 100755 --- a/oox/inc/oox/drawingml/shapepropertymap.hxx +++ b/oox/inc/oox/drawingml/shapepropertymap.hxx @@ -59,6 +59,7 @@ enum ShapePropertyId SHAPEPROP_FillStyle, SHAPEPROP_FillColor, SHAPEPROP_FillTransparency, + SHAPEPROP_GradientTransparency, SHAPEPROP_FillGradient, /// Explicit fill gradient or name of a fill gradient stored in a global container. SHAPEPROP_FillBitmapUrl, /// Explicit fill bitmap URL or name of a fill bitmap URL stored in a global container. SHAPEPROP_FillBitmapMode, @@ -128,6 +129,8 @@ private: bool setLineDash( sal_Int32 nPropId, const ::com::sun::star::uno::Any& rValue ); /** Sets an explicit fill gradient, or creates a named fill gradient. */ bool setFillGradient( sal_Int32 nPropId, const ::com::sun::star::uno::Any& rValue ); + /** Creates a named transparency gradient. */ + bool setGradientTrans( sal_Int32 nPropId, const ::com::sun::star::uno::Any& rValue ); /** Sets an explicit fill bitmap URL, or creates a named fill bitmap URL. */ bool setFillBitmapUrl( sal_Int32 nPropId, const ::com::sun::star::uno::Any& rValue ); diff --git a/oox/inc/oox/helper/modelobjecthelper.hxx b/oox/inc/oox/helper/modelobjecthelper.hxx index e62c0ef66d1d..86459ecb7386 100644 --- a/oox/inc/oox/helper/modelobjecthelper.hxx +++ b/oox/inc/oox/helper/modelobjecthelper.hxx @@ -109,6 +109,8 @@ public: an internal constant name with a new unused index appended. */ ::rtl::OUString insertFillGradient( const ::com::sun::star::awt::Gradient& rGradient ); + ::rtl::OUString insertTransGrandient( const ::com::sun::star::awt::Gradient& rGradient ); + /** Inserts a new named fill bitmap URL, returns the bitmap name, based on an internal constant name with a new unused index appended. */ ::rtl::OUString insertFillBitmapUrl( const ::rtl::OUString& rGraphicUrl ); @@ -117,9 +119,11 @@ private: ObjectContainer maMarkerContainer; /// Contains all named line markers (line end polygons). ObjectContainer maDashContainer; /// Contains all named line dsahes. ObjectContainer maGradientContainer; /// Contains all named fill gradients. + ObjectContainer maTransGradContainer; /// Contains all named transparency Gradients. ObjectContainer maBitmapUrlContainer; /// Contains all named fill bitmap URLs. const ::rtl::OUString maDashNameBase; /// Base name for all named line dashes. const ::rtl::OUString maGradientNameBase; /// Base name for all named fill gradients. + const ::rtl::OUString maTransGradNameBase; /// Base name for all named fill gradients. const ::rtl::OUString maBitmapUrlNameBase; /// Base name for all named fill bitmap URLs. }; |