From ad4604428dc98686d00637b06fe09078873c9acf Mon Sep 17 00:00:00 2001 From: Muthu Subramanian Date: Wed, 17 Jul 2013 13:13:30 +0530 Subject: n#820077: Import images with duotone filter. Also, contains implementation for a simple duotone filter. (Port from commit: 8b716072410bcfd252739fb953d5ac198e27a895) --- .../oox/drawingml/fillpropertiesgroupcontext.hxx | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'oox/inc/oox/drawingml/fillpropertiesgroupcontext.hxx') diff --git a/oox/inc/oox/drawingml/fillpropertiesgroupcontext.hxx b/oox/inc/oox/drawingml/fillpropertiesgroupcontext.hxx index 81d8a6e0db20..2b6ab859a6cf 100644 --- a/oox/inc/oox/drawingml/fillpropertiesgroupcontext.hxx +++ b/oox/inc/oox/drawingml/fillpropertiesgroupcontext.hxx @@ -81,6 +81,30 @@ private: }; // ============================================================================ + +/** Context handler that imports the a:duotone element containing the colors + of a bitmap duotone transformation. */ +class DuotoneContext : public ::oox::core::ContextHandler +{ +public: + explicit DuotoneContext( + ::oox::core::ContextHandler& rParent, + const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastAttributeList >& rxAttribs, + BlipFillProperties& rBlipProps ); + virtual ~DuotoneContext(); + + virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastContextHandler > SAL_CALL + createFastChildContext( + sal_Int32 nElement, + const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastAttributeList >& rxAttribs ) + throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException ); + +private: + BlipFillProperties& mrBlipProps; + int mnColorIndex; +}; + + // ============================================================================ /** Context handler that imports the a:clrChange element containing the colors -- cgit v1.2.3