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 #pragma once
21 
22 #include <com/sun/star/io/XOutputStream.hpp>
23 #include <xmloff/xmlstyle.hxx>
24 #include <rtl/ustring.hxx>
25 
26 // draw:gradient context
27 
29 {
30 private:
31  css::uno::Any maAny;
32  OUString maStrName;
33 
34 public:
35 
36  XMLGradientStyleContext( SvXMLImport& rImport, sal_Int32 nElement,
37  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList );
38  virtual ~XMLGradientStyleContext() override;
39 
40  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
41 
42  virtual bool IsTransient() const override;
43 };
44 
45 // draw:hatch context
46 
48 {
49 private:
50  css::uno::Any maAny;
51  OUString maStrName;
52 
53 public:
54 
55  XMLHatchStyleContext( SvXMLImport& rImport, sal_Int32 nElement,
56  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList );
57  virtual ~XMLHatchStyleContext() override;
58 
59  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
60 
61  virtual bool IsTransient() const override;
62 };
63 
64 // draw:fill-image context
65 
67 {
68 private:
69  css::uno::Any maAny;
70  OUString maStrName;
71  css::uno::Reference < css::io::XOutputStream > mxBase64Stream;
72 
73 public:
74 
75  XMLBitmapStyleContext( SvXMLImport& rImport, sal_Int32 nElement,
76  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList );
77  virtual ~XMLBitmapStyleContext() override;
78 
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;
81 
82  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
83 
84  virtual bool IsTransient() const override;
85 };
86 
87 // draw:transparency context
88 
90 {
91 private:
92  css::uno::Any maAny;
93  OUString maStrName;
94 
95 public:
96 
97  XMLTransGradientStyleContext( SvXMLImport& rImport, sal_Int32 nElement,
98  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList );
99  virtual ~XMLTransGradientStyleContext() override;
100 
101  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
102 
103  virtual bool IsTransient() const override;
104 };
105 
106 // draw:marker context
107 
109 {
110 private:
111  css::uno::Any maAny;
112  OUString maStrName;
113 
114 public:
115 
116  XMLMarkerStyleContext( SvXMLImport& rImport, sal_Int32 nElement,
117  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList );
118  virtual ~XMLMarkerStyleContext() override;
119 
120  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
121 
122  virtual bool IsTransient() const override;
123 };
124 
125 // draw:marker context
126 
128 {
129 private:
130  css::uno::Any maAny;
131  OUString maStrName;
132 
133 public:
134 
135  XMLDashStyleContext( SvXMLImport& rImport, sal_Int32 nElement,
136  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList );
137  virtual ~XMLDashStyleContext() override;
138 
139  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
140 
141  virtual bool IsTransient() const override;
142 };
143 
144 /* 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