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 _XMLTEXTCOLUMNSCONTEXT_HXX
25 #define _XMLTEXTCOLUMNSCONTEXT_HXX
26 
27 #include "XMLElementPropertyContext.hxx"
28 
29 
30 namespace rtl { class OUString; }
31 class XMLTextColumnsArray_Impl;
32 class XMLTextColumnSepContext_Impl;
33 class SvXMLTokenMap;
34 
35 class XMLTextColumnsContext :public XMLElementPropertyContext
36 {
37 	const ::rtl::OUString sSeparatorLineIsOn;
38 	const ::rtl::OUString sSeparatorLineWidth;
39 	const ::rtl::OUString sSeparatorLineColor;
40 	const ::rtl::OUString sSeparatorLineRelativeHeight;
41 	const ::rtl::OUString sSeparatorLineVerticalAlignment;
42 	const ::rtl::OUString sIsAutomatic;
43 	const ::rtl::OUString sAutomaticDistance;
44 
45 
46 	XMLTextColumnsArray_Impl *pColumns;
47 	XMLTextColumnSepContext_Impl	 *pColumnSep;
48 	SvXMLTokenMap	 		 *pColumnAttrTokenMap;
49 	SvXMLTokenMap	 		 *pColumnSepAttrTokenMap;
50 	sal_Int16				 nCount;
51     sal_Bool                 bAutomatic;
52     sal_Int32                nAutomaticDistance;
53 
54 public:
55 	TYPEINFO();
56 
57 	XMLTextColumnsContext(
58 		SvXMLImport& rImport, sal_uInt16 nPrfx,
59 		const ::rtl::OUString& rLName,
60 		const ::com::sun::star::uno::Reference<
61 			::com::sun::star::xml::sax::XAttributeList > & xAttrList,
62 		const XMLPropertyState& rProp,
63 		::std::vector< XMLPropertyState > &rProps );
64 
65 	virtual ~XMLTextColumnsContext();
66 
67 	virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
68 								   const ::rtl::OUString& rLocalName,
69 								   const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
70 
71 	virtual void EndElement();
72 };
73 
74 
75 #endif
76