merge the formfield patch from ooo-build
[ooovba.git] / dbaccess / source / ui / browser / dbtreemodel.hxx
blob332fe6c8e2af11d48e4334637540aeb8a46948de
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: dbtreemodel.hxx,v $
10 * $Revision: 1.21 $
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 DBAUI_DBTREEMODEL_HXX
32 #define DBAUI_DBTREEMODEL_HXX
34 #ifndef _COM_SUN_STAR_CONTAINER_XNAMEACCESS_HPP_
35 #include <com/sun/star/container/XNameAccess.hpp>
36 #endif
37 #ifndef _SVLBOX_HXX
38 #include <svtools/svlbox.hxx>
39 #endif
40 #ifndef _SVLBOXITM_HXX
41 #include <svtools/svlbitm.hxx>
42 #endif
43 #ifndef _SBA_UNODATBR_HXX_
44 #include "unodatbr.hxx"
45 #endif
46 #ifndef _DBAUI_COMMON_TYPES_HXX_
47 #include "commontypes.hxx"
48 #endif
50 // syntax of the tree userdata
51 // datasource holds the connection
52 // queries holds the nameaccess for the queries
53 // query holds the query
54 // tables holds the nameaccess for the tables
55 // table holds the table
57 #define CONTAINER_QUERIES ULONG( 0 )
58 #define CONTAINER_TABLES ULONG( 1 )
60 namespace com { namespace sun { namespace star { namespace lang { class XMultiServiceFactory; } } } }
62 namespace dbaui
64 struct DBTreeListUserData
66 /// if the entry denotes a table or query, this is the respective UNO object
67 ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >
68 xObjectProperties;
69 /// if the entry denotes a object container, this is the UNO interface for this container
70 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
71 xContainer;
72 /// if the entry denotes a data source, this is the connection for this data source (if already connection)
73 SharedConnection xConnection;
74 SbaTableQueryBrowser::EntryType eType;
75 String sAccessor;
77 DBTreeListUserData();
78 ~DBTreeListUserData();
82 #endif // DBAUI_DBTREEMODEL_HXX