1*ecfe53c5SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*ecfe53c5SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*ecfe53c5SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*ecfe53c5SAndrew Rist * distributed with this work for additional information 6*ecfe53c5SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*ecfe53c5SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*ecfe53c5SAndrew Rist * "License"); you may not use this file except in compliance 9*ecfe53c5SAndrew Rist * with the License. You may obtain a copy of the License at 10*ecfe53c5SAndrew Rist * 11*ecfe53c5SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*ecfe53c5SAndrew Rist * 13*ecfe53c5SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*ecfe53c5SAndrew Rist * software distributed under the License is distributed on an 15*ecfe53c5SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*ecfe53c5SAndrew Rist * KIND, either express or implied. See the License for the 17*ecfe53c5SAndrew Rist * specific language governing permissions and limitations 18*ecfe53c5SAndrew Rist * under the License. 19*ecfe53c5SAndrew Rist * 20*ecfe53c5SAndrew Rist *************************************************************/ 21*ecfe53c5SAndrew Rist 22*ecfe53c5SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _XMLOFF_FILLSTYLECONTEXTS_HXX_ 25cdf0e10cSrcweir #define _XMLOFF_FILLSTYLECONTEXTS_HXX_ 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <com/sun/star/io/XOutputStream.hpp> 28cdf0e10cSrcweir #include <xmloff/xmlstyle.hxx> 29cdf0e10cSrcweir #include<rtl/ustring.hxx> 30cdf0e10cSrcweir 31cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////////////// 32cdf0e10cSrcweir // draw:gardient context 33cdf0e10cSrcweir 34cdf0e10cSrcweir class XMLGradientStyleContext: public SvXMLStyleContext 35cdf0e10cSrcweir { 36cdf0e10cSrcweir private: 37cdf0e10cSrcweir ::com::sun::star::uno::Any maAny; 38cdf0e10cSrcweir rtl::OUString maStrName; 39cdf0e10cSrcweir 40cdf0e10cSrcweir public: 41cdf0e10cSrcweir TYPEINFO(); 42cdf0e10cSrcweir 43cdf0e10cSrcweir XMLGradientStyleContext( SvXMLImport& rImport, sal_uInt16 nPrfx, const rtl::OUString& rLName, 44cdf0e10cSrcweir const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList ); 45cdf0e10cSrcweir virtual ~XMLGradientStyleContext(); 46cdf0e10cSrcweir 47cdf0e10cSrcweir virtual void EndElement(); 48cdf0e10cSrcweir 49cdf0e10cSrcweir virtual sal_Bool IsTransient() const; 50cdf0e10cSrcweir }; 51cdf0e10cSrcweir 52cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////////////// 53cdf0e10cSrcweir // draw:hatch context 54cdf0e10cSrcweir 55cdf0e10cSrcweir class XMLHatchStyleContext: public SvXMLStyleContext 56cdf0e10cSrcweir { 57cdf0e10cSrcweir private: 58cdf0e10cSrcweir ::com::sun::star::uno::Any maAny; 59cdf0e10cSrcweir rtl::OUString maStrName; 60cdf0e10cSrcweir 61cdf0e10cSrcweir public: 62cdf0e10cSrcweir TYPEINFO(); 63cdf0e10cSrcweir 64cdf0e10cSrcweir XMLHatchStyleContext( SvXMLImport& rImport, sal_uInt16 nPrfx, const rtl::OUString& rLName, 65cdf0e10cSrcweir const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList ); 66cdf0e10cSrcweir virtual ~XMLHatchStyleContext(); 67cdf0e10cSrcweir 68cdf0e10cSrcweir virtual void EndElement(); 69cdf0e10cSrcweir 70cdf0e10cSrcweir virtual sal_Bool IsTransient() const; 71cdf0e10cSrcweir }; 72cdf0e10cSrcweir 73cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////////////// 74cdf0e10cSrcweir // draw:fill-image context 75cdf0e10cSrcweir 76cdf0e10cSrcweir class XMLBitmapStyleContext: public SvXMLStyleContext 77cdf0e10cSrcweir { 78cdf0e10cSrcweir private: 79cdf0e10cSrcweir ::com::sun::star::uno::Any maAny; 80cdf0e10cSrcweir rtl::OUString maStrName; 81cdf0e10cSrcweir ::com::sun::star::uno::Reference < ::com::sun::star::io::XOutputStream > mxBase64Stream; 82cdf0e10cSrcweir 83cdf0e10cSrcweir public: 84cdf0e10cSrcweir TYPEINFO(); 85cdf0e10cSrcweir 86cdf0e10cSrcweir XMLBitmapStyleContext( SvXMLImport& rImport, sal_uInt16 nPrfx, const rtl::OUString& rLName, 87cdf0e10cSrcweir const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList ); 88cdf0e10cSrcweir virtual ~XMLBitmapStyleContext(); 89cdf0e10cSrcweir 90cdf0e10cSrcweir virtual SvXMLImportContext *CreateChildContext( 91cdf0e10cSrcweir sal_uInt16 nPrefix, 92cdf0e10cSrcweir const ::rtl::OUString& rLocalName, 93cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList ); 94cdf0e10cSrcweir 95cdf0e10cSrcweir virtual void EndElement(); 96cdf0e10cSrcweir 97cdf0e10cSrcweir virtual sal_Bool IsTransient() const; 98cdf0e10cSrcweir }; 99cdf0e10cSrcweir 100cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////////////// 101cdf0e10cSrcweir // draw:transparency context 102cdf0e10cSrcweir 103cdf0e10cSrcweir class XMLTransGradientStyleContext: public SvXMLStyleContext 104cdf0e10cSrcweir { 105cdf0e10cSrcweir private: 106cdf0e10cSrcweir ::com::sun::star::uno::Any maAny; 107cdf0e10cSrcweir rtl::OUString maStrName; 108cdf0e10cSrcweir 109cdf0e10cSrcweir public: 110cdf0e10cSrcweir TYPEINFO(); 111cdf0e10cSrcweir 112cdf0e10cSrcweir XMLTransGradientStyleContext( SvXMLImport& rImport, sal_uInt16 nPrfx, const rtl::OUString& rLName, 113cdf0e10cSrcweir const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList ); 114cdf0e10cSrcweir virtual ~XMLTransGradientStyleContext(); 115cdf0e10cSrcweir 116cdf0e10cSrcweir virtual void EndElement(); 117cdf0e10cSrcweir 118cdf0e10cSrcweir virtual sal_Bool IsTransient() const; 119cdf0e10cSrcweir }; 120cdf0e10cSrcweir 121cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////////////// 122cdf0e10cSrcweir // draw:marker context 123cdf0e10cSrcweir 124cdf0e10cSrcweir class XMLMarkerStyleContext: public SvXMLStyleContext 125cdf0e10cSrcweir { 126cdf0e10cSrcweir private: 127cdf0e10cSrcweir ::com::sun::star::uno::Any maAny; 128cdf0e10cSrcweir rtl::OUString maStrName; 129cdf0e10cSrcweir 130cdf0e10cSrcweir public: 131cdf0e10cSrcweir TYPEINFO(); 132cdf0e10cSrcweir 133cdf0e10cSrcweir XMLMarkerStyleContext( SvXMLImport& rImport, sal_uInt16 nPrfx, const rtl::OUString& rLName, 134cdf0e10cSrcweir const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList ); 135cdf0e10cSrcweir virtual ~XMLMarkerStyleContext(); 136cdf0e10cSrcweir 137cdf0e10cSrcweir virtual void EndElement(); 138cdf0e10cSrcweir 139cdf0e10cSrcweir virtual sal_Bool IsTransient() const; 140cdf0e10cSrcweir }; 141cdf0e10cSrcweir 142cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////////////// 143cdf0e10cSrcweir // draw:marker context 144cdf0e10cSrcweir 145cdf0e10cSrcweir class XMLDashStyleContext: public SvXMLStyleContext 146cdf0e10cSrcweir { 147cdf0e10cSrcweir private: 148cdf0e10cSrcweir ::com::sun::star::uno::Any maAny; 149cdf0e10cSrcweir rtl::OUString maStrName; 150cdf0e10cSrcweir 151cdf0e10cSrcweir public: 152cdf0e10cSrcweir TYPEINFO(); 153cdf0e10cSrcweir 154cdf0e10cSrcweir XMLDashStyleContext( SvXMLImport& rImport, sal_uInt16 nPrfx, const rtl::OUString& rLName, 155cdf0e10cSrcweir const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList ); 156cdf0e10cSrcweir virtual ~XMLDashStyleContext(); 157cdf0e10cSrcweir 158cdf0e10cSrcweir virtual void EndElement(); 159cdf0e10cSrcweir 160cdf0e10cSrcweir virtual sal_Bool IsTransient() const; 161cdf0e10cSrcweir }; 162cdf0e10cSrcweir 163cdf0e10cSrcweir #endif // _XMLOFF_FILLSTYLECONTEXTS_HXX_ 164