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{
30private:
31 css::uno::Any maAny;
32 OUString maStrName;
33
34public:
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{
49private:
50 css::uno::Any maAny;
51 OUString maStrName;
52
53public:
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{
68private:
69 css::uno::Any maAny;
70 OUString maStrName;
71 css::uno::Reference < css::io::XOutputStream > mxBase64Stream;
72
73public:
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{
91private:
92 css::uno::Any maAny;
93 OUString maStrName;
94
95public:
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{
110private:
111 css::uno::Any maAny;
112 OUString maStrName;
113
114public:
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{
129private:
130 css::uno::Any maAny;
131 OUString maStrName;
132
133public:
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: */
friend class SvXMLImport
Definition: xmlictxt.hxx:49
virtual ~XMLBitmapStyleContext() override
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 css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
css::uno::Reference< css::io::XOutputStream > mxBase64Stream
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.
XMLDashStyleContext(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 ~XMLDashStyleContext() override
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 ...
XMLGradientStyleContext(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.
virtual ~XMLHatchStyleContext() override
XMLHatchStyleContext(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 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 ~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.
virtual bool IsTransient() const override
if this method returns true, its parent styles context should not add it to its container.
virtual ~XMLTransGradientStyleContext() 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 ...
XMLTransGradientStyleContext(SvXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)