diff options
author | Muthu Subramanian <sumuthu@suse.com> | 2013-07-17 12:59:40 +0530 |
---|---|---|
committer | Muthu Subramanian <sumuthu@suse.com> | 2013-07-17 13:02:07 +0530 |
commit | 8b716072410bcfd252739fb953d5ac198e27a895 (patch) | |
tree | 64c119dbc0db723bce6a205aaf8f189a128f7415 /include/oox | |
parent | 09fb28de3b29c426afa4c37e36268e883aa55923 (diff) |
n#820077: Import images with duotone filter.
Also, contains implementation for a simple duotone filter.
Diffstat (limited to 'include/oox')
-rw-r--r-- | include/oox/drawingml/fillproperties.hxx | 1 | ||||
-rw-r--r-- | include/oox/drawingml/fillpropertiesgroupcontext.hxx | 24 |
2 files changed, 25 insertions, 0 deletions
diff --git a/include/oox/drawingml/fillproperties.hxx b/include/oox/drawingml/fillproperties.hxx index fb9aa849e92e..4a54fa327546 100644 --- a/include/oox/drawingml/fillproperties.hxx +++ b/include/oox/drawingml/fillproperties.hxx @@ -93,6 +93,7 @@ struct BlipFillProperties OptValue< sal_Int32 > moContrast; /// Contrast in the range [-100000,100000]. Color maColorChangeFrom; /// Start color of color transformation. Color maColorChangeTo; /// Destination color of color transformation. + Color maDuotoneColors[2]; /// Duotone Colors /** Overwrites all members that are explicitly set in rSourceProps. */ void assignUsed( const BlipFillProperties& rSourceProps ); diff --git a/include/oox/drawingml/fillpropertiesgroupcontext.hxx b/include/oox/drawingml/fillpropertiesgroupcontext.hxx index 64980aa4c285..139521bdd2a5 100644 --- a/include/oox/drawingml/fillpropertiesgroupcontext.hxx +++ b/include/oox/drawingml/fillpropertiesgroupcontext.hxx @@ -76,6 +76,30 @@ private: PatternFillProperties& mrPatternProps; }; + // ============================================================================ + +/** Context handler that imports the a:duotone element containing the colors + of a bitmap duotone transformation. */ +class DuotoneContext : public ::oox::core::ContextHandler2 +{ +public: + explicit DuotoneContext( + ::oox::core::ContextHandler2Helper& rParent, + const ::oox::AttributeList& rAttribs, + BlipFillProperties& rBlipProps ); + virtual ~DuotoneContext(); + + virtual ::oox::core::ContextHandlerRef + onCreateContext( + sal_Int32 nElement, + const ::oox::AttributeList& rAttribs ) SAL_OVERRIDE; + +private: + BlipFillProperties& mrBlipProps; + int mnColorIndex; +}; + + // ============================================================================ /** Context handler that imports the a:clrChange element containing the colors of a bitmap color change transformation. */ |