1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: xmlprcon.hxx,v $
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>
38 #ifndef _XMLOFF_XMLIMPPR_HXX
39 #include <bf_xmloff/xmlimppr.hxx>
41 #ifndef _XMLOFF_PROPERTYSETMAPPER_HXX
42 #include <bf_xmloff/xmlprmap.hxx>
44 #ifndef _UNIVERSALL_REFERENCE_HXX
45 #include <bf_xmloff/uniref.hxx>
48 namespace rtl
{ class OUString
; }
51 class SvXMLImportPropertyMapper
;
53 class SvXMLPropertySetContext
: public SvXMLImportContext
58 ::std::vector
< XMLPropertyState
> &rProperties
;
59 UniReference
< SvXMLImportPropertyMapper
> xMapper
;
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