merge the formfield patch from ooo-build
[ooovba.git] / xmloff / inc / XMLChartStyleContext.hxx
blob412237f8294f0eca84237c2a8d84cc7eb222ba39
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XMLChartStyleContext.hxx,v $
10 * $Revision: 1.9 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _XMLOFF_XMLCHARTSTYLECONTEXT_HXX_
31 #define _XMLOFF_XMLCHARTSTYLECONTEXT_HXX_
33 #include <xmloff/XMLShapeStyleContext.hxx>
35 class XMLChartStyleContext : public XMLShapeStyleContext
37 private:
38 ::rtl::OUString msDataStyleName;
39 ::rtl::OUString msPercentageDataStyleName;
40 SvXMLStylesContext& mrStyles;
42 protected:
43 /// is called when an attribute at the (auto)style element is found
44 virtual void SetAttribute( sal_uInt16 nPrefixKey,
45 const ::rtl::OUString& rLocalName,
46 const ::rtl::OUString& rValue );
48 public:
49 TYPEINFO();
51 XMLChartStyleContext(
52 SvXMLImport& rImport, sal_uInt16 nPrfx,
53 const ::rtl::OUString& rLName,
54 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList,
55 SvXMLStylesContext& rStyles, sal_uInt16 nFamily );
56 virtual ~XMLChartStyleContext();
58 /// is called after all styles have been read to apply styles
59 void FillPropertySet(
60 const ::com::sun::star::uno::Reference<
61 ::com::sun::star::beans::XPropertySet > & rPropSet );
63 /// necessary for property context (element-property symbol-image)
64 virtual SvXMLImportContext *CreateChildContext(
65 sal_uInt16 nPrefix,
66 const ::rtl::OUString& rLocalName,
67 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
70 #endif // _XMLOFF_XMLCHARTSTYLECONTEXT_HXX_