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 .
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
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
;
47 class XMLHatchStyleContext
: public SvXMLStyleContext
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
71 css::uno::Reference
< css::io::XOutputStream
> mxBase64Stream
;
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
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
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
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: */