Update ooo320-m1
[ooovba.git] / dbaccess / source / filter / xml / xmlHierarchyCollection.hxx
blobba292b105d91f490a136a34e6b0f39cac1106bf4
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: xmlHierarchyCollection.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 ************************************************************************/
30 #ifndef DBA_XMLHIERARCHYCOLLECTION_HXX
31 #define DBA_XMLHIERARCHYCOLLECTION_HXX
33 #include <xmloff/xmlictxt.hxx>
34 #include "xmlEnums.hxx"
35 #include <com/sun/star/container/XNameAccess.hpp>
36 #include <com/sun/star/beans/XPropertySet.hpp>
39 namespace dbaxml
41 class ODBFilter;
42 class OXMLHierarchyCollection : public SvXMLImportContext
44 ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > m_xParentContainer;
45 ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > m_xContainer;
46 ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > m_xTable;
47 ::rtl::OUString m_sName;
48 ::rtl::OUString m_sCollectionServiceName;
49 ::rtl::OUString m_sComponentServiceName;
51 ODBFilter& GetOwnImport();
52 public:
54 OXMLHierarchyCollection( ODBFilter& rImport
55 ,sal_uInt16 nPrfx
56 ,const ::rtl::OUString& rLName
57 ,const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList
58 ,const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& _xParentContainer
59 ,const ::rtl::OUString& _sCollectionServiceName
60 ,const ::rtl::OUString& _sComponentServiceName
62 OXMLHierarchyCollection( ODBFilter& rImport
63 ,sal_uInt16 nPrfx
64 ,const ::rtl::OUString& rLName
65 ,const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& _xContainer
66 ,const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _xTable
68 virtual ~OXMLHierarchyCollection();
70 virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
71 const ::rtl::OUString& rLocalName,
72 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
74 // -----------------------------------------------------------------------------
75 } // namespace dbaxml
76 // -----------------------------------------------------------------------------
78 #endif // DBA_XMLHIERARCHYCOLLECTION_HXX