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 #ifndef DBA_XMLCOLUMN_HXX
24 #define DBA_XMLCOLUMN_HXX
25 
26 #include <xmloff/xmlictxt.hxx>
27 #include <com/sun/star/container/XNameAccess.hpp>
28 #include <com/sun/star/beans/XPropertySet.hpp>
29 
30 namespace dbaxml
31 {
32 	class ODBFilter;
33 	class OXMLColumn : public SvXMLImportContext
34 	{
35 		::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > m_xParentContainer;
36         ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >    m_xTable;
37 
38 		::rtl::OUString m_sName;
39 		::rtl::OUString m_sStyleName;
40         ::rtl::OUString m_sCellStyleName;
41 		::rtl::OUString m_sHelpMessage;
42         ::com::sun::star::uno::Any m_aDefaultValue;
43 		sal_Bool		m_bHidden;
44 
45 		ODBFilter& GetOwnImport();
46 	public:
47 
48 		OXMLColumn( ODBFilter& rImport
49 					, sal_uInt16 nPrfx
50 					,const ::rtl::OUString& rLName
51 					,const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList
52 					,const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& _xParentContainer
53                     ,const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >&    _xTable
54 					);
55 		virtual ~OXMLColumn();
56 		virtual void EndElement();
57 	};
58 // -----------------------------------------------------------------------------
59 } // namespace dbaxml
60 // -----------------------------------------------------------------------------
61 
62 #endif // DBA_XMLCOLUMN_HXX
63