bump product version to 4.1.6.2
[LibreOffice.git] / xmloff / source / style / FillStyleContext.hxx
blob6bfae84fb85879408ec3871ab466d78790a30537
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef _XMLOFF_FILLSTYLECONTEXTS_HXX_
21 #define _XMLOFF_FILLSTYLECONTEXTS_HXX_
23 #include <com/sun/star/io/XOutputStream.hpp>
24 #include <xmloff/xmlstyle.hxx>
25 #include<rtl/ustring.hxx>
27 //////////////////////////////////////////////////////////////////////////////
28 // draw:gardient context
30 class XMLGradientStyleContext: public SvXMLStyleContext
32 private:
33 ::com::sun::star::uno::Any maAny;
34 OUString maStrName;
36 public:
37 TYPEINFO();
39 XMLGradientStyleContext( SvXMLImport& rImport, sal_uInt16 nPrfx, const OUString& rLName,
40 const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList );
41 virtual ~XMLGradientStyleContext();
43 virtual void EndElement();
45 virtual sal_Bool IsTransient() const;
48 //////////////////////////////////////////////////////////////////////////////
49 // draw:hatch context
51 class XMLHatchStyleContext: public SvXMLStyleContext
53 private:
54 ::com::sun::star::uno::Any maAny;
55 OUString maStrName;
57 public:
58 TYPEINFO();
60 XMLHatchStyleContext( SvXMLImport& rImport, sal_uInt16 nPrfx, const OUString& rLName,
61 const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList );
62 virtual ~XMLHatchStyleContext();
64 virtual void EndElement();
66 virtual sal_Bool IsTransient() const;
69 //////////////////////////////////////////////////////////////////////////////
70 // draw:fill-image context
72 class XMLBitmapStyleContext: public SvXMLStyleContext
74 private:
75 ::com::sun::star::uno::Any maAny;
76 OUString maStrName;
77 ::com::sun::star::uno::Reference < ::com::sun::star::io::XOutputStream > mxBase64Stream;
79 public:
80 TYPEINFO();
82 XMLBitmapStyleContext( SvXMLImport& rImport, sal_uInt16 nPrfx, const OUString& rLName,
83 const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList );
84 virtual ~XMLBitmapStyleContext();
86 virtual SvXMLImportContext *CreateChildContext(
87 sal_uInt16 nPrefix,
88 const OUString& rLocalName,
89 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
91 virtual void EndElement();
93 virtual sal_Bool IsTransient() const;
96 //////////////////////////////////////////////////////////////////////////////
97 // draw:transparency context
99 class XMLTransGradientStyleContext: public SvXMLStyleContext
101 private:
102 ::com::sun::star::uno::Any maAny;
103 OUString maStrName;
105 public:
106 TYPEINFO();
108 XMLTransGradientStyleContext( SvXMLImport& rImport, sal_uInt16 nPrfx, const OUString& rLName,
109 const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList );
110 virtual ~XMLTransGradientStyleContext();
112 virtual void EndElement();
114 virtual sal_Bool IsTransient() const;
117 //////////////////////////////////////////////////////////////////////////////
118 // draw:marker context
120 class XMLMarkerStyleContext: public SvXMLStyleContext
122 private:
123 ::com::sun::star::uno::Any maAny;
124 OUString maStrName;
126 public:
127 TYPEINFO();
129 XMLMarkerStyleContext( SvXMLImport& rImport, sal_uInt16 nPrfx, const OUString& rLName,
130 const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList );
131 virtual ~XMLMarkerStyleContext();
133 virtual void EndElement();
135 virtual sal_Bool IsTransient() const;
138 //////////////////////////////////////////////////////////////////////////////
139 // draw:marker context
141 class XMLDashStyleContext: public SvXMLStyleContext
143 private:
144 ::com::sun::star::uno::Any maAny;
145 OUString maStrName;
147 public:
148 TYPEINFO();
150 XMLDashStyleContext( SvXMLImport& rImport, sal_uInt16 nPrfx, const OUString& rLName,
151 const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList );
152 virtual ~XMLDashStyleContext();
154 virtual void EndElement();
156 virtual sal_Bool IsTransient() const;
159 #endif // _XMLOFF_FILLSTYLECONTEXTS_HXX_
161 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */