xref: /aoo42x/main/xmloff/inc/xmloff/xmlprcon.hxx (revision ecfe53c5)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _XMLOFF_XMLPROPERTYSETCONTEXT_HXX
25 #define _XMLOFF_XMLPROPERTYSETCONTEXT_HXX
26 
27 #include <xmloff/xmlictxt.hxx>
28 #include <xmloff/xmlimppr.hxx>
29 #include <xmloff/xmlprmap.hxx>
30 #include <xmloff/uniref.hxx>
31 
32 namespace rtl { class OUString; }
33 
34 class SvXMLImportPropertyMapper;
35 
36 class SvXMLPropertySetContext : public SvXMLImportContext
37 {
38 protected:
39 	sal_Int32 mnStartIdx;
40 	sal_Int32 mnEndIdx;
41 	sal_uInt32 mnFamily;
42 	::std::vector< XMLPropertyState > &mrProperties;
43 	UniReference < SvXMLImportPropertyMapper >   mxMapper;
44 
45 public:
46 
47 	SvXMLPropertySetContext(
48 			SvXMLImport& rImport, sal_uInt16 nPrfx,
49 			const ::rtl::OUString& rLName,
50 			const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList,
51 			sal_uInt32 nFamily,
52 			::std::vector< XMLPropertyState > &rProps,
53 			const UniReference < SvXMLImportPropertyMapper > &rMap,
54 		  	sal_Int32 nStartIdx = -1, sal_Int32 nEndIdx = -1 );
55 
56 	virtual ~SvXMLPropertySetContext();
57 
58 	virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
59 									 const ::rtl::OUString& rLocalName,
60 									 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
61 
62 	// This method is called from this instance implementation of
63 	// CreateChildContext if the element matches an entry in the
64 	// SvXMLImportItemMapper with the mid flag MID_FLAG_ELEMENT_ITEM_IMPORT
65 	virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
66 								   const ::rtl::OUString& rLocalName,
67 								   const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList,
68 								   ::std::vector< XMLPropertyState > &rProperties,
69 								   const XMLPropertyState& rProp );
70 
71 };
72 
73 #endif	//  _XMLOFF_XMLPROPERTYSETCONTEXT_HXX
74 
75