xref: /AOO41X/main/xmloff/source/style/FillStyleContext.hxx (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir 
28*cdf0e10cSrcweir #ifndef _XMLOFF_FILLSTYLECONTEXTS_HXX_
29*cdf0e10cSrcweir #define _XMLOFF_FILLSTYLECONTEXTS_HXX_
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir #include <com/sun/star/io/XOutputStream.hpp>
32*cdf0e10cSrcweir #include <xmloff/xmlstyle.hxx>
33*cdf0e10cSrcweir #include<rtl/ustring.hxx>
34*cdf0e10cSrcweir 
35*cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
36*cdf0e10cSrcweir // draw:gardient context
37*cdf0e10cSrcweir 
38*cdf0e10cSrcweir class XMLGradientStyleContext: public SvXMLStyleContext
39*cdf0e10cSrcweir {
40*cdf0e10cSrcweir private:
41*cdf0e10cSrcweir 	::com::sun::star::uno::Any	maAny;
42*cdf0e10cSrcweir 	rtl::OUString				maStrName;
43*cdf0e10cSrcweir 
44*cdf0e10cSrcweir public:
45*cdf0e10cSrcweir 	TYPEINFO();
46*cdf0e10cSrcweir 
47*cdf0e10cSrcweir 	XMLGradientStyleContext( SvXMLImport& rImport,  sal_uInt16 nPrfx,  const rtl::OUString& rLName,
48*cdf0e10cSrcweir 		                   const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList );
49*cdf0e10cSrcweir 	virtual ~XMLGradientStyleContext();
50*cdf0e10cSrcweir 
51*cdf0e10cSrcweir 	virtual void EndElement();
52*cdf0e10cSrcweir 
53*cdf0e10cSrcweir 	virtual sal_Bool IsTransient() const;
54*cdf0e10cSrcweir };
55*cdf0e10cSrcweir 
56*cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
57*cdf0e10cSrcweir // draw:hatch context
58*cdf0e10cSrcweir 
59*cdf0e10cSrcweir class XMLHatchStyleContext: public SvXMLStyleContext
60*cdf0e10cSrcweir {
61*cdf0e10cSrcweir private:
62*cdf0e10cSrcweir 	::com::sun::star::uno::Any	maAny;
63*cdf0e10cSrcweir 	rtl::OUString				maStrName;
64*cdf0e10cSrcweir 
65*cdf0e10cSrcweir public:
66*cdf0e10cSrcweir 	TYPEINFO();
67*cdf0e10cSrcweir 
68*cdf0e10cSrcweir 	XMLHatchStyleContext( SvXMLImport& rImport,  sal_uInt16 nPrfx,  const rtl::OUString& rLName,
69*cdf0e10cSrcweir 		                   const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList );
70*cdf0e10cSrcweir 	virtual ~XMLHatchStyleContext();
71*cdf0e10cSrcweir 
72*cdf0e10cSrcweir 	virtual void EndElement();
73*cdf0e10cSrcweir 
74*cdf0e10cSrcweir 	virtual sal_Bool IsTransient() const;
75*cdf0e10cSrcweir };
76*cdf0e10cSrcweir 
77*cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
78*cdf0e10cSrcweir // draw:fill-image context
79*cdf0e10cSrcweir 
80*cdf0e10cSrcweir class XMLBitmapStyleContext: public SvXMLStyleContext
81*cdf0e10cSrcweir {
82*cdf0e10cSrcweir private:
83*cdf0e10cSrcweir 	::com::sun::star::uno::Any	maAny;
84*cdf0e10cSrcweir 	rtl::OUString				maStrName;
85*cdf0e10cSrcweir 	::com::sun::star::uno::Reference < ::com::sun::star::io::XOutputStream > mxBase64Stream;
86*cdf0e10cSrcweir 
87*cdf0e10cSrcweir public:
88*cdf0e10cSrcweir 	TYPEINFO();
89*cdf0e10cSrcweir 
90*cdf0e10cSrcweir 	XMLBitmapStyleContext( SvXMLImport& rImport,  sal_uInt16 nPrfx,  const rtl::OUString& rLName,
91*cdf0e10cSrcweir 		                   const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList );
92*cdf0e10cSrcweir 	virtual ~XMLBitmapStyleContext();
93*cdf0e10cSrcweir 
94*cdf0e10cSrcweir 	virtual SvXMLImportContext *CreateChildContext(
95*cdf0e10cSrcweir 			sal_uInt16 nPrefix,
96*cdf0e10cSrcweir 			const ::rtl::OUString& rLocalName,
97*cdf0e10cSrcweir 			const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
98*cdf0e10cSrcweir 
99*cdf0e10cSrcweir 	virtual void EndElement();
100*cdf0e10cSrcweir 
101*cdf0e10cSrcweir 	virtual sal_Bool IsTransient() const;
102*cdf0e10cSrcweir };
103*cdf0e10cSrcweir 
104*cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
105*cdf0e10cSrcweir // draw:transparency context
106*cdf0e10cSrcweir 
107*cdf0e10cSrcweir class XMLTransGradientStyleContext: public SvXMLStyleContext
108*cdf0e10cSrcweir {
109*cdf0e10cSrcweir private:
110*cdf0e10cSrcweir 	::com::sun::star::uno::Any	maAny;
111*cdf0e10cSrcweir 	rtl::OUString				maStrName;
112*cdf0e10cSrcweir 
113*cdf0e10cSrcweir public:
114*cdf0e10cSrcweir 	TYPEINFO();
115*cdf0e10cSrcweir 
116*cdf0e10cSrcweir 	XMLTransGradientStyleContext( SvXMLImport& rImport,  sal_uInt16 nPrfx,  const rtl::OUString& rLName,
117*cdf0e10cSrcweir 		                   const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList );
118*cdf0e10cSrcweir 	virtual ~XMLTransGradientStyleContext();
119*cdf0e10cSrcweir 
120*cdf0e10cSrcweir 	virtual void EndElement();
121*cdf0e10cSrcweir 
122*cdf0e10cSrcweir 	virtual sal_Bool IsTransient() const;
123*cdf0e10cSrcweir };
124*cdf0e10cSrcweir 
125*cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
126*cdf0e10cSrcweir // draw:marker context
127*cdf0e10cSrcweir 
128*cdf0e10cSrcweir class XMLMarkerStyleContext: public SvXMLStyleContext
129*cdf0e10cSrcweir {
130*cdf0e10cSrcweir private:
131*cdf0e10cSrcweir 	::com::sun::star::uno::Any	maAny;
132*cdf0e10cSrcweir 	rtl::OUString				maStrName;
133*cdf0e10cSrcweir 
134*cdf0e10cSrcweir public:
135*cdf0e10cSrcweir 	TYPEINFO();
136*cdf0e10cSrcweir 
137*cdf0e10cSrcweir 	XMLMarkerStyleContext( SvXMLImport& rImport,  sal_uInt16 nPrfx,  const rtl::OUString& rLName,
138*cdf0e10cSrcweir 		                   const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList );
139*cdf0e10cSrcweir 	virtual ~XMLMarkerStyleContext();
140*cdf0e10cSrcweir 
141*cdf0e10cSrcweir 	virtual void EndElement();
142*cdf0e10cSrcweir 
143*cdf0e10cSrcweir 	virtual sal_Bool IsTransient() const;
144*cdf0e10cSrcweir };
145*cdf0e10cSrcweir 
146*cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
147*cdf0e10cSrcweir // draw:marker context
148*cdf0e10cSrcweir 
149*cdf0e10cSrcweir class XMLDashStyleContext: public SvXMLStyleContext
150*cdf0e10cSrcweir {
151*cdf0e10cSrcweir private:
152*cdf0e10cSrcweir 	::com::sun::star::uno::Any	maAny;
153*cdf0e10cSrcweir 	rtl::OUString				maStrName;
154*cdf0e10cSrcweir 
155*cdf0e10cSrcweir public:
156*cdf0e10cSrcweir 	TYPEINFO();
157*cdf0e10cSrcweir 
158*cdf0e10cSrcweir 	XMLDashStyleContext( SvXMLImport& rImport,  sal_uInt16 nPrfx,  const rtl::OUString& rLName,
159*cdf0e10cSrcweir 		                   const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList );
160*cdf0e10cSrcweir 	virtual ~XMLDashStyleContext();
161*cdf0e10cSrcweir 
162*cdf0e10cSrcweir 	virtual void EndElement();
163*cdf0e10cSrcweir 
164*cdf0e10cSrcweir 	virtual sal_Bool IsTransient() const;
165*cdf0e10cSrcweir };
166*cdf0e10cSrcweir 
167*cdf0e10cSrcweir #endif	// _XMLOFF_FILLSTYLECONTEXTS_HXX_
168