1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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
33 ::com::sun::star::uno::Any maAny
;
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 //////////////////////////////////////////////////////////////////////////////
51 class XMLHatchStyleContext
: public SvXMLStyleContext
54 ::com::sun::star::uno::Any maAny
;
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
75 ::com::sun::star::uno::Any maAny
;
77 ::com::sun::star::uno::Reference
< ::com::sun::star::io::XOutputStream
> mxBase64Stream
;
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(
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
102 ::com::sun::star::uno::Any maAny
;
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
123 ::com::sun::star::uno::Any maAny
;
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
144 ::com::sun::star::uno::Any maAny
;
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: */