Update ooo320-m1
[ooovba.git] / binfilter / inc / bf_xmloff / xmlprcon.hxx
blob6a6efa5c6e22881617fe7b95ed4b0f52a03790bb
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: xmlprcon.hxx,v $
10 * $Revision: 1.4 $
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 ************************************************************************/
31 #ifndef _XMLOFF_XMLPROPERTYSETCONTEXT_HXX
32 #define _XMLOFF_XMLPROPERTYSETCONTEXT_HXX
34 #ifndef _XMLOFF_XMLICTXT_HXX
35 #include <bf_xmloff/xmlictxt.hxx>
36 #endif
38 #ifndef _XMLOFF_XMLIMPPR_HXX
39 #include <bf_xmloff/xmlimppr.hxx>
40 #endif
41 #ifndef _XMLOFF_PROPERTYSETMAPPER_HXX
42 #include <bf_xmloff/xmlprmap.hxx>
43 #endif
44 #ifndef _UNIVERSALL_REFERENCE_HXX
45 #include <bf_xmloff/uniref.hxx>
46 #endif
48 namespace rtl { class OUString; }
49 namespace binfilter {
51 class SvXMLImportPropertyMapper;
53 class SvXMLPropertySetContext : public SvXMLImportContext
55 protected:
56 sal_Int32 nStartIdx;
57 sal_Int32 nEndIdx;
58 ::std::vector< XMLPropertyState > &rProperties;
59 UniReference < SvXMLImportPropertyMapper > xMapper;
61 public:
63 SvXMLPropertySetContext(
64 SvXMLImport& rImport, USHORT nPrfx,
65 const ::rtl::OUString& rLName,
66 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList,
67 ::std::vector< XMLPropertyState > &rProps,
68 const UniReference < SvXMLImportPropertyMapper > &rMap,
69 sal_Int32 nStartIdx = -1, sal_Int32 nEndIdx = -1 );
71 virtual ~SvXMLPropertySetContext();
73 virtual SvXMLImportContext *CreateChildContext( USHORT nPrefix,
74 const ::rtl::OUString& rLocalName,
75 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
77 // This method is called from this instance implementation of
78 // CreateChildContext if the element matches an entry in the
79 // SvXMLImportItemMapper with the mid flag MID_FLAG_ELEMENT_ITEM_IMPORT
80 virtual SvXMLImportContext *CreateChildContext( USHORT nPrefix,
81 const ::rtl::OUString& rLocalName,
82 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList,
83 ::std::vector< XMLPropertyState > &rProperties,
84 const XMLPropertyState& rProp );
88 }//end of namespace binfilter
89 #endif // _XMLOFF_XMLPROPERTYSETCONTEXT_HXX