Update ooo320-m1
[ooovba.git] / xmloff / source / style / FillStyleContext.hxx
blob9ed0c0b50b2aadbc636356bc53738a8843f2485f
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: FillStyleContext.hxx,v $
10 * $Revision: 1.7 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _XMLOFF_FILLSTYLECONTEXTS_HXX_
32 #define _XMLOFF_FILLSTYLECONTEXTS_HXX_
34 #include <com/sun/star/io/XOutputStream.hpp>
35 #include <xmloff/xmlstyle.hxx>
36 #include<rtl/ustring.hxx>
38 //////////////////////////////////////////////////////////////////////////////
39 // draw:gardient context
41 class XMLGradientStyleContext: public SvXMLStyleContext
43 private:
44 ::com::sun::star::uno::Any maAny;
45 rtl::OUString maStrName;
47 public:
48 TYPEINFO();
50 XMLGradientStyleContext( SvXMLImport& rImport, sal_uInt16 nPrfx, const rtl::OUString& rLName,
51 const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList );
52 virtual ~XMLGradientStyleContext();
54 virtual void EndElement();
56 virtual BOOL IsTransient() const;
59 //////////////////////////////////////////////////////////////////////////////
60 // draw:hatch context
62 class XMLHatchStyleContext: public SvXMLStyleContext
64 private:
65 ::com::sun::star::uno::Any maAny;
66 rtl::OUString maStrName;
68 public:
69 TYPEINFO();
71 XMLHatchStyleContext( SvXMLImport& rImport, sal_uInt16 nPrfx, const rtl::OUString& rLName,
72 const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList );
73 virtual ~XMLHatchStyleContext();
75 virtual void EndElement();
77 virtual BOOL IsTransient() const;
80 //////////////////////////////////////////////////////////////////////////////
81 // draw:fill-image context
83 class XMLBitmapStyleContext: public SvXMLStyleContext
85 private:
86 ::com::sun::star::uno::Any maAny;
87 rtl::OUString maStrName;
88 ::com::sun::star::uno::Reference < ::com::sun::star::io::XOutputStream > mxBase64Stream;
90 public:
91 TYPEINFO();
93 XMLBitmapStyleContext( SvXMLImport& rImport, sal_uInt16 nPrfx, const rtl::OUString& rLName,
94 const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList );
95 virtual ~XMLBitmapStyleContext();
97 virtual SvXMLImportContext *CreateChildContext(
98 sal_uInt16 nPrefix,
99 const ::rtl::OUString& rLocalName,
100 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
102 virtual void EndElement();
104 virtual BOOL IsTransient() const;
107 //////////////////////////////////////////////////////////////////////////////
108 // draw:transparency context
110 class XMLTransGradientStyleContext: public SvXMLStyleContext
112 private:
113 ::com::sun::star::uno::Any maAny;
114 rtl::OUString maStrName;
116 public:
117 TYPEINFO();
119 XMLTransGradientStyleContext( SvXMLImport& rImport, sal_uInt16 nPrfx, const rtl::OUString& rLName,
120 const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList );
121 virtual ~XMLTransGradientStyleContext();
123 virtual void EndElement();
125 virtual BOOL IsTransient() const;
128 //////////////////////////////////////////////////////////////////////////////
129 // draw:marker context
131 class XMLMarkerStyleContext: public SvXMLStyleContext
133 private:
134 ::com::sun::star::uno::Any maAny;
135 rtl::OUString maStrName;
137 public:
138 TYPEINFO();
140 XMLMarkerStyleContext( SvXMLImport& rImport, sal_uInt16 nPrfx, const rtl::OUString& rLName,
141 const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList );
142 virtual ~XMLMarkerStyleContext();
144 virtual void EndElement();
146 virtual BOOL IsTransient() const;
149 //////////////////////////////////////////////////////////////////////////////
150 // draw:marker context
152 class XMLDashStyleContext: public SvXMLStyleContext
154 private:
155 ::com::sun::star::uno::Any maAny;
156 rtl::OUString maStrName;
158 public:
159 TYPEINFO();
161 XMLDashStyleContext( SvXMLImport& rImport, sal_uInt16 nPrfx, const rtl::OUString& rLName,
162 const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList );
163 virtual ~XMLDashStyleContext();
165 virtual void EndElement();
167 virtual BOOL IsTransient() const;
170 #endif // _XMLOFF_FILLSTYLECONTEXTS_HXX_