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 INCLUDED_XMLOFF_SOURCE_STYLE_FILLSTYLECONTEXT_HXX
21 #define INCLUDED_XMLOFF_SOURCE_STYLE_FILLSTYLECONTEXT_HXX
23 #include <com/sun/star/io/XOutputStream.hpp>
24 #include <xmloff/xmlstyle.hxx>
25 #include <rtl/ustring.hxx>
27 // draw:gardient context
29 class XMLGradientStyleContext
: public SvXMLStyleContext
32 ::com::sun::star::uno::Any maAny
;
38 XMLGradientStyleContext( SvXMLImport
& rImport
, sal_uInt16 nPrfx
, const OUString
& rLName
,
39 const com::sun::star::uno::Reference
< com::sun::star::xml::sax::XAttributeList
>& xAttrList
);
40 virtual ~XMLGradientStyleContext();
42 virtual void EndElement() SAL_OVERRIDE
;
44 virtual bool IsTransient() const SAL_OVERRIDE
;
49 class XMLHatchStyleContext
: public SvXMLStyleContext
52 ::com::sun::star::uno::Any maAny
;
58 XMLHatchStyleContext( SvXMLImport
& rImport
, sal_uInt16 nPrfx
, const OUString
& rLName
,
59 const com::sun::star::uno::Reference
< com::sun::star::xml::sax::XAttributeList
>& xAttrList
);
60 virtual ~XMLHatchStyleContext();
62 virtual void EndElement() SAL_OVERRIDE
;
64 virtual bool IsTransient() const SAL_OVERRIDE
;
67 // draw:fill-image context
69 class XMLBitmapStyleContext
: public SvXMLStyleContext
72 ::com::sun::star::uno::Any maAny
;
74 ::com::sun::star::uno::Reference
< ::com::sun::star::io::XOutputStream
> mxBase64Stream
;
79 XMLBitmapStyleContext( SvXMLImport
& rImport
, sal_uInt16 nPrfx
, const OUString
& rLName
,
80 const com::sun::star::uno::Reference
< com::sun::star::xml::sax::XAttributeList
>& xAttrList
);
81 virtual ~XMLBitmapStyleContext();
83 virtual SvXMLImportContext
*CreateChildContext(
85 const OUString
& rLocalName
,
86 const ::com::sun::star::uno::Reference
< ::com::sun::star::xml::sax::XAttributeList
> & xAttrList
) SAL_OVERRIDE
;
88 virtual void EndElement() SAL_OVERRIDE
;
90 virtual bool IsTransient() const SAL_OVERRIDE
;
93 // draw:transparency context
95 class XMLTransGradientStyleContext
: public SvXMLStyleContext
98 ::com::sun::star::uno::Any maAny
;
104 XMLTransGradientStyleContext( SvXMLImport
& rImport
, sal_uInt16 nPrfx
, const OUString
& rLName
,
105 const com::sun::star::uno::Reference
< com::sun::star::xml::sax::XAttributeList
>& xAttrList
);
106 virtual ~XMLTransGradientStyleContext();
108 virtual void EndElement() SAL_OVERRIDE
;
110 virtual bool IsTransient() const SAL_OVERRIDE
;
113 // draw:marker context
115 class XMLMarkerStyleContext
: public SvXMLStyleContext
118 ::com::sun::star::uno::Any maAny
;
124 XMLMarkerStyleContext( SvXMLImport
& rImport
, sal_uInt16 nPrfx
, const OUString
& rLName
,
125 const com::sun::star::uno::Reference
< com::sun::star::xml::sax::XAttributeList
>& xAttrList
);
126 virtual ~XMLMarkerStyleContext();
128 virtual void EndElement() SAL_OVERRIDE
;
130 virtual bool IsTransient() const SAL_OVERRIDE
;
133 // draw:marker context
135 class XMLDashStyleContext
: public SvXMLStyleContext
138 ::com::sun::star::uno::Any maAny
;
144 XMLDashStyleContext( SvXMLImport
& rImport
, sal_uInt16 nPrfx
, const OUString
& rLName
,
145 const com::sun::star::uno::Reference
< com::sun::star::xml::sax::XAttributeList
>& xAttrList
);
146 virtual ~XMLDashStyleContext();
148 virtual void EndElement() SAL_OVERRIDE
;
150 virtual bool IsTransient() const SAL_OVERRIDE
;
153 #endif // INCLUDED_XMLOFF_SOURCE_STYLE_FILLSTYLECONTEXT_HXX
155 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */