LibreOffice Module xmloff (master)  1
FillStyleContext.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 
20 #ifndef INCLUDED_XMLOFF_SOURCE_STYLE_FILLSTYLECONTEXT_HXX
21 #define INCLUDED_XMLOFF_SOURCE_STYLE_FILLSTYLECONTEXT_HXX
22 
23 #include <com/sun/star/io/XOutputStream.hpp>
24 #include <xmloff/xmlstyle.hxx>
25 #include <rtl/ustring.hxx>
26 
27 // draw:gradient context
28 
30 {
31 private:
32  css::uno::Any maAny;
33  OUString maStrName;
34 
35 public:
36 
37  XMLGradientStyleContext( SvXMLImport& rImport, sal_Int32 nElement,
38  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList );
39  virtual ~XMLGradientStyleContext() override;
40 
41  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
42 
43  virtual bool IsTransient() const override;
44 };
45 
46 // draw:hatch context
47 
49 {
50 private:
51  css::uno::Any maAny;
52  OUString maStrName;
53 
54 public:
55 
56  XMLHatchStyleContext( SvXMLImport& rImport, sal_Int32 nElement,
57  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList );
58  virtual ~XMLHatchStyleContext() override;
59 
60  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
61 
62  virtual bool IsTransient() const override;
63 };
64 
65 // draw:fill-image context
66 
68 {
69 private:
70  css::uno::Any maAny;
71  OUString maStrName;
72  css::uno::Reference < css::io::XOutputStream > mxBase64Stream;
73 
74 public:
75 
76  XMLBitmapStyleContext( SvXMLImport& rImport, sal_Int32 nElement,
77  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList );
78  virtual ~XMLBitmapStyleContext() override;
79 
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;
82 
83  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
84 
85  virtual bool IsTransient() const override;
86 };
87 
88 // draw:transparency context
89 
91 {
92 private:
93  css::uno::Any maAny;
94  OUString maStrName;
95 
96 public:
97 
98  XMLTransGradientStyleContext( SvXMLImport& rImport, sal_Int32 nElement,
99  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList );
100  virtual ~XMLTransGradientStyleContext() override;
101 
102  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
103 
104  virtual bool IsTransient() const override;
105 };
106 
107 // draw:marker context
108 
110 {
111 private:
112  css::uno::Any maAny;
113  OUString maStrName;
114 
115 public:
116 
117  XMLMarkerStyleContext( SvXMLImport& rImport, sal_Int32 nElement,
118  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList );
119  virtual ~XMLMarkerStyleContext() override;
120 
121  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
122 
123  virtual bool IsTransient() const override;
124 };
125 
126 // draw:marker context
127 
129 {
130 private:
131  css::uno::Any maAny;
132  OUString maStrName;
133 
134 public:
135 
136  XMLDashStyleContext( SvXMLImport& rImport, sal_Int32 nElement,
137  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList );
138  virtual ~XMLDashStyleContext() override;
139 
140  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
141 
142  virtual bool IsTransient() const override;
143 };
144 
145 #endif // INCLUDED_XMLOFF_SOURCE_STYLE_FILLSTYLECONTEXT_HXX
146 
147 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
virtual ~XMLHatchStyleContext() override
XMLHatchStyleContext(SvXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
XMLTransGradientStyleContext(SvXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
XMLGradientStyleContext(SvXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
virtual ~XMLMarkerStyleContext() override
XMLMarkerStyleContext(SvXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
virtual bool IsTransient() const override
if this method returns true, its parent styles context should not add it to its container.
css::uno::Reference< css::io::XOutputStream > mxBase64Stream
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
XMLDashStyleContext(SvXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
virtual bool IsTransient() const override
if this method returns true, its parent styles context should not add it to its container.
virtual bool IsTransient() const override
if this method returns true, its parent styles context should not add it to its container.
XMLBitmapStyleContext(SvXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
virtual ~XMLBitmapStyleContext() override
virtual bool IsTransient() const override
if this method returns true, its parent styles context should not add it to its container.
virtual bool IsTransient() const override
if this method returns true, its parent styles context should not add it to its container.
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
virtual ~XMLTransGradientStyleContext() override
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
virtual bool IsTransient() const override
if this method returns true, its parent styles context should not add it to its container.
virtual ~XMLGradientStyleContext() override
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
virtual ~XMLDashStyleContext() override