bump product version to 5.0.4.1
[LibreOffice.git] / xmloff / source / style / FillStyleContext.hxx
blob2db39fd5db9f950501355cb7856edaa6bb4cb963
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 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
31 private:
32 ::com::sun::star::uno::Any maAny;
33 OUString maStrName;
35 public:
36 TYPEINFO_OVERRIDE();
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;
47 // draw:hatch context
49 class XMLHatchStyleContext: public SvXMLStyleContext
51 private:
52 ::com::sun::star::uno::Any maAny;
53 OUString maStrName;
55 public:
56 TYPEINFO_OVERRIDE();
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
71 private:
72 ::com::sun::star::uno::Any maAny;
73 OUString maStrName;
74 ::com::sun::star::uno::Reference < ::com::sun::star::io::XOutputStream > mxBase64Stream;
76 public:
77 TYPEINFO_OVERRIDE();
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(
84 sal_uInt16 nPrefix,
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
97 private:
98 ::com::sun::star::uno::Any maAny;
99 OUString maStrName;
101 public:
102 TYPEINFO_OVERRIDE();
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
117 private:
118 ::com::sun::star::uno::Any maAny;
119 OUString maStrName;
121 public:
122 TYPEINFO_OVERRIDE();
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
137 private:
138 ::com::sun::star::uno::Any maAny;
139 OUString maStrName;
141 public:
142 TYPEINFO_OVERRIDE();
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: */