Version 7.5.1.1, tag libreoffice-7.5.1.1
[LibreOffice.git] / xmloff / source / style / FillStyleContext.hxx
blob3b17c29c823963150f9ad3e19d3347ad92885864
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 #pragma once
22 #include <com/sun/star/io/XOutputStream.hpp>
23 #include <xmloff/xmlstyle.hxx>
24 #include <rtl/ustring.hxx>
26 // draw:gradient context
28 class XMLGradientStyleContext: public SvXMLStyleContext
30 private:
31 css::uno::Any maAny;
32 OUString maStrName;
34 public:
36 XMLGradientStyleContext( SvXMLImport& rImport, sal_Int32 nElement,
37 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList );
38 virtual ~XMLGradientStyleContext() override;
40 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
42 virtual bool IsTransient() const override;
45 // draw:hatch context
47 class XMLHatchStyleContext: public SvXMLStyleContext
49 private:
50 css::uno::Any maAny;
51 OUString maStrName;
53 public:
55 XMLHatchStyleContext( SvXMLImport& rImport, sal_Int32 nElement,
56 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList );
57 virtual ~XMLHatchStyleContext() override;
59 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
61 virtual bool IsTransient() const override;
64 // draw:fill-image context
66 class XMLBitmapStyleContext: public SvXMLStyleContext
68 private:
69 css::uno::Any maAny;
70 OUString maStrName;
71 css::uno::Reference < css::io::XOutputStream > mxBase64Stream;
73 public:
75 XMLBitmapStyleContext( SvXMLImport& rImport, sal_Int32 nElement,
76 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList );
77 virtual ~XMLBitmapStyleContext() override;
79 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
80 sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
82 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
84 virtual bool IsTransient() const override;
87 // draw:transparency context
89 class XMLTransGradientStyleContext: public SvXMLStyleContext
91 private:
92 css::uno::Any maAny;
93 OUString maStrName;
95 public:
97 XMLTransGradientStyleContext( SvXMLImport& rImport, sal_Int32 nElement,
98 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList );
99 virtual ~XMLTransGradientStyleContext() override;
101 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
103 virtual bool IsTransient() const override;
106 // draw:marker context
108 class XMLMarkerStyleContext: public SvXMLStyleContext
110 private:
111 css::uno::Any maAny;
112 OUString maStrName;
114 public:
116 XMLMarkerStyleContext( SvXMLImport& rImport, sal_Int32 nElement,
117 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList );
118 virtual ~XMLMarkerStyleContext() override;
120 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
122 virtual bool IsTransient() const override;
125 // draw:marker context
127 class XMLDashStyleContext: public SvXMLStyleContext
129 private:
130 css::uno::Any maAny;
131 OUString maStrName;
133 public:
135 XMLDashStyleContext( SvXMLImport& rImport, sal_Int32 nElement,
136 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList );
137 virtual ~XMLDashStyleContext() override;
139 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
141 virtual bool IsTransient() const override;
144 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */