nss: upgrade to release 3.73
[LibreOffice.git] / xmloff / source / style / FillStyleContext.hxx
blobaac0b8b31b15209cca54b7a968f0d4ef8ac3d23e
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:gradient context
29 class XMLGradientStyleContext: public SvXMLStyleContext
31 private:
32 css::uno::Any maAny;
33 OUString maStrName;
35 public:
37 XMLGradientStyleContext( SvXMLImport& rImport, sal_Int32 nElement,
38 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList );
39 virtual ~XMLGradientStyleContext() override;
41 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
43 virtual bool IsTransient() const override;
46 // draw:hatch context
48 class XMLHatchStyleContext: public SvXMLStyleContext
50 private:
51 css::uno::Any maAny;
52 OUString maStrName;
54 public:
56 XMLHatchStyleContext( SvXMLImport& rImport, sal_Int32 nElement,
57 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList );
58 virtual ~XMLHatchStyleContext() override;
60 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
62 virtual bool IsTransient() const override;
65 // draw:fill-image context
67 class XMLBitmapStyleContext: public SvXMLStyleContext
69 private:
70 css::uno::Any maAny;
71 OUString maStrName;
72 css::uno::Reference < css::io::XOutputStream > mxBase64Stream;
74 public:
76 XMLBitmapStyleContext( SvXMLImport& rImport, sal_Int32 nElement,
77 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList );
78 virtual ~XMLBitmapStyleContext() override;
80 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
81 sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
83 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
85 virtual bool IsTransient() const override;
88 // draw:transparency context
90 class XMLTransGradientStyleContext: public SvXMLStyleContext
92 private:
93 css::uno::Any maAny;
94 OUString maStrName;
96 public:
98 XMLTransGradientStyleContext( SvXMLImport& rImport, sal_Int32 nElement,
99 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList );
100 virtual ~XMLTransGradientStyleContext() override;
102 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
104 virtual bool IsTransient() const override;
107 // draw:marker context
109 class XMLMarkerStyleContext: public SvXMLStyleContext
111 private:
112 css::uno::Any maAny;
113 OUString maStrName;
115 public:
117 XMLMarkerStyleContext( SvXMLImport& rImport, sal_Int32 nElement,
118 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList );
119 virtual ~XMLMarkerStyleContext() override;
121 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
123 virtual bool IsTransient() const override;
126 // draw:marker context
128 class XMLDashStyleContext: public SvXMLStyleContext
130 private:
131 css::uno::Any maAny;
132 OUString maStrName;
134 public:
136 XMLDashStyleContext( SvXMLImport& rImport, sal_Int32 nElement,
137 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList );
138 virtual ~XMLDashStyleContext() override;
140 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
142 virtual bool IsTransient() const override;
145 #endif // INCLUDED_XMLOFF_SOURCE_STYLE_FILLSTYLECONTEXT_HXX
147 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */