summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/browser/dbtreemodel.hxx
blob: 6984264589a992af90288cf544f32a9835fdd6b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/*************************************************************************
 *
 *  OpenOffice.org - a multi-platform office productivity suite
 *
 *  $RCSfile: dbtreemodel.hxx,v $
 *
 *  $Revision: 1.17 $
 *
 *  last change: $Author: kz $ $Date: 2006-10-05 13:01:46 $
 *
 *  The Contents of this file are made available subject to
 *  the terms of GNU Lesser General Public License Version 2.1.
 *
 *
 *    GNU Lesser General Public License Version 2.1
 *    =============================================
 *    Copyright 2005 by Sun Microsystems, Inc.
 *    901 San Antonio Road, Palo Alto, CA 94303, USA
 *
 *    This library is free software; you can redistribute it and/or
 *    modify it under the terms of the GNU Lesser General Public
 *    License version 2.1, as published by the Free Software Foundation.
 *
 *    This library is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *    Lesser General Public License for more details.
 *
 *    You should have received a copy of the GNU Lesser General Public
 *    License along with this library; if not, write to the Free Software
 *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 *    MA  02111-1307  USA
 *
 ************************************************************************/

#ifndef DBAUI_DBTREEMODEL_HXX
#define DBAUI_DBTREEMODEL_HXX

#ifndef _COM_SUN_STAR_CONTAINER_XNAMEACCESS_HPP_
#include <com/sun/star/container/XNameAccess.hpp>
#endif
#ifndef _SVLBOX_HXX
#include <svtools/svlbox.hxx>
#endif
#ifndef _SVLBOXITM_HXX
#include <svtools/svlbitm.hxx>
#endif
#ifndef _DBAUI_MODULE_DBU_HXX_
#include "moduledbu.hxx"
#endif
#ifndef _SBA_UNODATBR_HXX_
#include "unodatbr.hxx"
#endif
#ifndef DBACCESS_SOURCE_UI_INC_DOCUMENTCONTROLLER_HXX
#include "documentcontroller.hxx"
#endif
#ifndef _DBAUI_COMMON_TYPES_HXX_
#include "commontypes.hxx"
#endif

// syntax of the tree                   userdata
// datasource                           holds the connection
//      queries                         holds the nameaccess for the queries
//          query                       holds the query
//      tables                          holds the nameaccess for the tables
//          table                       holds the table
//      bookmarks                       holds the nameaccess for the document links
//          table                       holds the document links


namespace com { namespace sun { namespace star { namespace lang { class XMultiServiceFactory; } } } }

namespace dbaui
{
    //========================================================================
    //= DBTreeListModel
    //========================================================================
    class DBTreeListModel : public SvLBoxTreeList
    {
    public:
        struct DBTreeListUserData
        {
            /// if the entry denotes a table or query, this is the respective UNO object
            ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >
                                            xObjectProperties;
            /// if the entry denotes a object container, this is the UNO interface for this container
            ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
                                            xContainer;
            /// if the entry denotes a data source, this is the connection for this data source (if already connection)
            SharedConnection                xConnection;
            /** if the entry denotes a data source, this is the connector between the model and the controller,
                keeping the model alive as long as necessary
            */
            ModelControllerConnector        aController;
            SbaTableQueryBrowser::EntryType eType;
            String                          sAccessor;

            DBTreeListUserData();
            ~DBTreeListUserData();
        };
    };
}

#endif // DBAUI_DBTREEMODEL_HXX
899# 2009-06-24 12:10:29 +0200 oj r273327 : #i103030# some code changes 2009-06-24 09:44:14 +0200 oj r273311 : #i103030# some code changes 2009-06-24 09:24:42 +0200 oj r273309 : #i103030# add log 2009-06-24 09:03:29 +0200 fs r273308 : if a col's table name is schema.table, properly quote all parts 2009-06-24 08:56:06 +0200 oj r273307 : #i102691# changed string 2009-06-23 13:31:43 +0200 oj r273280 : #i102479# fix date, time and datetime 2009-06-23 12:51:28 +0200 oj r273277 : #i103020# clear old expression when updating to avoid dead pointers in treelist userdata 2009-06-23 12:17:16 +0200 oj r273275 : #i103030# add LogBridge 2009-06-23 11:53:10 +0200 oj r273272 : shawdowed var resolved 2009-06-23 11:48:49 +0200 oj r273270 : #i103030# add :log to uno env if var UNO_ENV_LOG is set 2009-06-23 11:47:47 +0200 oj r273269 : #i103030# add LogBridge 2009-06-23 11:47:11 +0200 oj r273268 : #i103030# add LogBridge 2009-06-23 08:05:08 +0200 oj r273253 : #i102934# add key for collapsing 2009-06-22 13:21:33 +0200 fs r273225 : merging latest changes from CWS dba32d 2009-06-22 13:15:22 +0200 fs r273221 : why restrict to 12 entries? 2009-06-22 08:12:21 +0200 oj r273196 : #i102655# choosen > chosen typo fixed 2009-06-22 08:08:04 +0200 oj r273195 : #i102657# typo fix 2009-06-22 08:06:28 +0200 oj r273194 : #i102934# expanding and collasping of section 2009-06-22 08:05:52 +0200 oj r273193 : #i102930# set focus in treelistbox 2009-06-22 08:04:56 +0200 oj r273192 : #i102929# enable tabstop 2009-06-19 13:18:26 +0200 oj r273157 : remove unused param 2009-06-19 10:07:05 +0200 oj r273149 : CWS-TOOLING: rebase CWS dba32e to trunk@272827 (milestone: DEV300:m50) 2009-06-19 07:32:40 +0200 oj r273146 : merge from dba32d to dba32e 2009-06-19 07:22:56 +0200 oj r273145 : merge from dba32d to dba32e 2009-06-19 07:22:33 +0200 oj r273144 : merge from dba32d to dba32e 2009-06-18 14:09:34 +0200 fs r273116 : merging the latest changes from CWS dba32d (up to revision 273108) herein, which effectively is a rebase to DEV300.m50 2009-06-18 08:50:35 +0200 oj r273098 : #i102894# fix for new line in text 2009-06-18 08:28:48 +0200 oj r273097 : #i102892# check any 2009-06-18 08:21:34 +0200 oj r273096 : check if error is valid 2009-06-16 13:49:28 +0200 fs r273019 : why make a drop down control by default? The form control factory in SVX does this better those days ... 2009-06-10 09:53:20 +0200 oj r272797 : add lic text 2009-06-10 09:48:55 +0200 oj r272796 : test added for i101618 2009-06-09 14:57:39 +0200 oj r272771 : #i101618# access database document only when script container is needed 2009-06-09 12:42:25 +0200 oj r272765 : #i102497# check type property 2009-06-09 12:32:49 +0200 oj r272764 : adjust test cases 2009-06-09 12:31:58 +0200 oj r272763 : adjust test cases 2009-06-09 12:31:22 +0200 oj r272762 : adjust test cases 2009-06-09 11:35:42 +0200 oj r272761 : check if error is valid 2009-06-09 11:29:42 +0200 oj r272760 : #i102497# longvarchar was missing 2009-06-08 14:52:49 +0200 fs r272733 : #i102564# when setting a new field, also set m_nFieldType 2009-06-08 13:51:20 +0200 oj r272730 : add tests 2009-06-05 14:38:01 +0200 oj r272686 : add dep 2009-06-05 14:35:00 +0200 oj r272684 : add new tests 2009-06-05 13:41:18 +0200 oj r272681 : code clean ups 2009-06-05 12:40:51 +0200 oj r272678 : code cleanup 2009-06-05 12:02:57 +0200 oj r272677 : code cleanup 2009-06-05 10:42:38 +0200 oj r272670 : #i49320# impl export of single rows and as RTF and HTML 2009-06-03 14:30:37 +0200 oj r272576 : #i79649# check if file matches filter wildcard 2009-06-03 13:41:57 +0200 oj r272560 : #i102470# impl not b like 'c' 2008-12-30CWS-TOOLING: integrate CWS sb102Jens-Heiner Rechtien 2008-12-11 16:18:12 +0100 sb r265332 : #i95065# cleanup, to make Windows linking work 2008-12-11 16:16:03 +0100 sb r265331 : #i95065# missing SAL_DLLPUBLIC_EXPORT 2008-12-09 17:40:28 +0100 sb r265122 : #i94469# move CJK specific configuration data to brand layer 2008-12-09 16:09:08 +0100 sb r265112 : #i96959# use PTHREAD_MUTEX_RECURSIVE on all platforms 2008-12-09 15:54:31 +0100 sb r265110 : #i95065# do not derive apphelper::LifeTimeGuard from osl::ResettableMutexGuard to avoid problems with VISIBILITY_HIDDEN=TRUE on MSC 2008-12-09 15:40:51 +0100 sb r265104 : #i95065# add VISIBILITY_HIDDEN=TRUE to connectivity/source/drivers/mozab 2008-12-09 15:36:21 +0100 sb r265102 : #i95501# updated SDK_HOME 2008-12-09 15:31:46 +0100 sb r265099 : typo (temppath vs. tmppath) 2008-12-08 11:48:08 +0100 sb r264979 : #i95065# removed spurious ExplicitCategoriesProvider.obj (ExplicitCategoriesProvider.cxx is not in this directory) 2008-12-07 19:41:07 +0100 sb r264960 : #i96994# erroneously doubled backslash caused visibility feature to be disabled for all GCC versions on Mac OS X 2008-12-06 23:54:49 +0100 sb r264948 : changes from trunk that CWS-TOOLING's rebase to DEV300:m37 (r264891) had missed, as files had been moved around on this CWS 2008-12-05 20:29:23 +0100 sb r264919 : #i85508# versions of flex apparently differ in whether input() resp. yyinput() returns zero or EOF upon end of file 2008-12-05 15:37:23 +0100 sb r264908 : #i95315# removed obsolete jut 2008-12-05 15:34:59 +0100 sb r264907 : #i95531# removed empty obsolete directories 2008-12-05 10:09:23 +0100 sb r264891 : CWS-TOOLING: rebase CWS sb102 to trunk@264807 (milestone: DEV300:m37) 2008-12-04 14:50:20 +0100 sb r264845 : #i95065# introduced VISIBILITY_HIDDEN makefile flag to reduce duplications; made additional libraries use VISIBILITY_HIDDEN=TRUE to avoid warnings with recent GCC 4 versions (had to split certain code directories to make changes that would otherwise erroneously affect multiple libraries built in the same makefile); changed connectivity::ORefVector to no longer derive from std::vector, as that caused problems with the MSC implementation of VISIBILITY_HIDDEN=TRUE; replaced uses of JNIEXPORT with SAL_DLLPUBLIC_EXPORT, as the former does not expand to visibility attributes on some platforms where the latter does 2008-12-03 11:29:38 +0100 sb r264759 : #i94583# remove unnecessary (and wrong) assertion check for rtl_getAppCommandArg return value (which is guaranteed to return osl_Process_E_None or not return at all) 2008-12-02 17:18:31 +0100 sb r264724 : #i96809# silenced GCC 4.3.2 warning 2008-12-02 13:29:34 +0100 sb r264695 : #i96797# make get_tmp_dir fail less often 2008-11-28 17:19:24 +0100 sb r264566 : #i95691# inadvertently missing from -c 264564 2008-11-28 17:07:50 +0100 sb r264564 : #i95691# only structs of exactly 1, 2, 4, or 8 bytes are returned through registers 2008-11-25 13:28:08 +0100 sb r264291 : #i96427# support for SAL_EXCEPTION_DLLPUBLIC_EXPORT (patch by np) 2008-11-21 14:45:22 +0100 sb r264140 : #i95428# added SAL_EXCEPTION_DLLPUBLIC_EXPORT and SAL_EXCEPTION_DLLPRIVATE 2008-11-19 13:19:37 +0100 sb r263984 : #i95525# removed erroneous application/octet-stream svn:mime-type properties 2008-10-01CWS-TOOLING: integrate CWS sb93Vladimir Glazounov 2008-06-25INTEGRATION: CWS jl104 (1.16.4); FILE MERGEDKurt Zenker 2008/06/19 10:12:36 jl 1.16.4.1: #i88078# cli-uno assemblies moved to ure 2008-04-11INTEGRATION: CWS changefileheader (1.2.50); FILE MERGEDRüdiger Timm 2008/03/31 07:26:47 rt 1.2.50.1: #i87441# Change license header to LPGL v3. 2008-04-11INTEGRATION: CWS changefileheader (1.5.32); FILE MERGEDRüdiger Timm 2008/03/31 07:26:47 rt 1.5.32.1: #i87441# Change license header to LPGL v3. 2008-04-11INTEGRATION: CWS changefileheader (1.2.44); FILE MERGEDRüdiger Timm 2008/03/31 07:26:47 rt 1.2.44.1: #i87441# Change license header to LPGL v3. 2008-04-11INTEGRATION: CWS changefileheader (1.6.44); FILE MERGEDRüdiger Timm 2008/03/31 07:26:47 rt 1.6.44.1: #i87441# Change license header to LPGL v3. 2008-04-11INTEGRATION: CWS changefileheader (1.8.44); FILE MERGEDRüdiger Timm 2008/03/31 07:26:47 rt 1.8.44.1: #i87441# Change license header to LPGL v3. 2008-04-11INTEGRATION: CWS changefileheader (1.3.44); FILE MERGEDRüdiger Timm 2008/03/31 07:26:47 rt 1.3.44.1: #i87441# Change license header to LPGL v3. 2008-04-11INTEGRATION: CWS changefileheader (1.3.2); FILE MERGEDRüdiger Timm 2008/03/31 07:26:46 rt 1.3.2.1: #i87441# Change license header to LPGL v3. 2008-04-11INTEGRATION: CWS changefileheader (1.5.22); FILE MERGEDRüdiger Timm 2008/03/31 07:26:46 rt 1.5.22.1: #i87441# Change license header to LPGL v3. 2008-04-11INTEGRATION: CWS changefileheader (1.15.2); FILE MERGEDRüdiger Timm 2008/03/31 07:26:46 rt 1.15.2.1: #i87441# Change license header to LPGL v3. 2008-03-18INTEGRATION: CWS sb83 (1.2.46); FILE MERGEDVladimir Glazounov 2008/03/10 14:51:56 sb 1.2.46.1: #i86870# pass -env args on to javaldx (BROKEN, NEEDS A BETTER FIX; but already extensively used in desktop/scripts/, anyway) 2008-03-18INTEGRATION: CWS sb83 (1.2.4); FILE MERGEDVladimir Glazounov 2008/01/07 15:24:45 sb 1.2.4.1: #i84985# added URE_OVERRIDE_JAVA_JFW_SHARED|USER_DATA 2008-03-18INTEGRATION: CWS sb83 (1.14.4); FILE MERGEDVladimir Glazounov 2008/01/07 15:24:45 sb 1.14.4.1: #i84985# added URE_OVERRIDE_JAVA_JFW_SHARED|USER_DATA 2007-10-15INTEGRATION: CWS sb71 (1.1.36); FILE MERGEDVladimir Glazounov 2007/04/27 14:13:46 sb 1.1.36.1: #i75466# Introduced URE_MORE_TYPES, URE_MORE_SERVICES, URE_MORE_JAVA_TYPES, URE_MORE_JAVA_CLASSPATH_URLS. 2007-10-15INTEGRATION: CWS sb71 (1.1.36); FILE MERGEDVladimir Glazounov 2007/04/27 14:13:45 sb 1.1.36.1: #i75466# Introduced URE_MORE_TYPES, URE_MORE_SERVICES, URE_MORE_JAVA_TYPES, URE_MORE_JAVA_CLASSPATH_URLS. 2007-10-15INTEGRATION: CWS sb71 (1.11.6); FILE MERGEDVladimir Glazounov 2007/10/02 09:48:11 sb 1.11.6.10: RESYNC: (1.12-1.13); FILE MERGED 2007/08/23 17:51:20 sb 1.11.6.9: RESYNC: (1.11-1.12); FILE MERGED 2007/08/16 14:45:45 sb 1.11.6.8: #i75466# Reclassified some Windows dlls as private instead of external: msvcp71.dll is the C++ runtime and is encapsulated by STLport; unicows.dll is encapsulated by uwinapi.dll; uwinapi.dll is home-brown in sal (and it will need to go public instead of private, just like jvmaccess and jvmfwk, but that is another step). 2007/08/13 12:43:31 sb 1.11.6.7: #i77184# Fixed previous change: r1.11.6.6 should have been identical to r1.11.6.4, but instead nonsense was checked in. 2007/08/13 12:03:48 sb 1.11.6.6: #i77184# Dropped libxml2wrapper again (do not use /DELAYLOAD for libxml2---to much trouble). 2007/07/23 13:43:30 sb 1.11.6.5: #i77184# Introduced libxml2wrapper. 2007/06/22 11:46:02 sb 1.11.6.4: #i78143# Merged in 1.11.8.2 and reformatted. 2007/06/14 14:51:34 sb 1.11.6.3: #i75466# Clarified that external libs are available to components in uno exe. 2007/06/12 15:09:38 sb 1.11.6.2: #i75466# Classified some files as [external]. 2007/04/27 14:13:45 sb 1.11.6.1: #i75466# Introduced URE_MORE_TYPES, URE_MORE_SERVICES, URE_MORE_JAVA_TYPES, URE_MORE_JAVA_CLASSPATH_URLS. 2007-09-27INTEGRATION: CWS sb76 (1.12.6); FILE MERGEDJens-Heiner Rechtien 2007/08/31 11:01:38 sb 1.12.6.1: #i77885# Consolidate stoc libraries; patch by jnavrati. 2007-08-30INTEGRATION: CWS mh230_SRC680 (1.2.14); FILE MERGEDVladimir Glazounov 2007/08/21 13:39:24 mh 1.2.14.1: add: libstdc++, #i70777# 2007-07-18INTEGRATION: CWS sb72 (1.11.10); FILE MERGEDOliver Bolte 2007/06/29 13:04:57 sb 1.11.10.1: #i78143# Merged in 1.11.8.2. 2007-05-09INTEGRATION: CWS bunoexttm (1.1.30); FILE MERGEDKurt Zenker 2007/02/16 17:21:00 kr 1.1.30.1: fixed: moved dependency from odk module to ure module 2007-03-09INTEGRATION: CWS ause076 (1.4.4); FILE MERGEDOliver Bolte 2007/02/28 16:19:33 hjs 1.4.4.1: #i74984# less forced shell calls 2007-01-25INTEGRATION: CWS ause069 (1.2.20); FILE MERGEDOliver Bolte 2006/12/01 14:14:15 hjs 1.2.20.1: #i70359# remove forced shell calls 2007-01-25INTEGRATION: CWS sb65 (1.2.22); FILE MERGEDOliver Bolte 2007/01/10 12:15:44 sb 1.2.22.1: #i73330# Added THIRDPARTYLICENSEREADME.html. 2007-01-25INTEGRATION: CWS sb65 (1.1.2); FILE ADDEDOliver Bolte 2007/01/10 12:16:21 sb 1.1.2.1: #i73330# Initial THIRDPARTYLICENSEREADME.html (provided by mh). 2007-01-25INTEGRATION: CWS sb65 (1.10.8); FILE MERGEDOliver Bolte 2007/01/10 12:15:44 sb 1.10.8.1: #i73330# Added THIRDPARTYLICENSEREADME.html. 2007-01-25INTEGRATION: CWS sb65 (1.1.26); FILE MERGEDOliver Bolte 2007/01/10 12:15:44 sb 1.1.26.1: #i73330# Added THIRDPARTYLICENSEREADME.html. 2006-11-22INTEGRATION: CWS hr33 (1.4.12); FILE MERGEDVladimir Glazounov 2006/05/02 17:01:26 hr 1.4.12.1: #i55967#: no prefix for STL header please 2006-09-15INTEGRATION: CWS writerfilter (1.9.4); FILE MERGEDOliver Bolte 2005/11/16 15:15:34 sb 1.9.4.3: #i57477# Missing unicows.dll added to Windows installation set. 2005/11/15 12:42:14 sb 1.9.4.2: #i57188# Improved wording. 2005/11/15 12:28:05 sb 1.9.4.1: #i57188# Store the path to the installed URE in the Windows registry.