1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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
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
;
48 class XMLHatchStyleContext
: public SvXMLStyleContext
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
72 css::uno::Reference
< css::io::XOutputStream
> mxBase64Stream
;
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
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
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
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: */