xref: /aoo42x/main/dbaccess/source/ui/inc/dsitems.hxx (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #ifndef _DBAUI_DATASOURCEITEMS_HXX_
29 #define _DBAUI_DATASOURCEITEMS_HXX_
30 
31 typedef sal_Int32   ItemID;
32 
33 //========================================================================
34 //= item ids for the data source administration dialog
35 
36 #define DSID_NAME					1			// name of a data source, SfxStringItem
37 #define DSID_ORIGINALNAME			2			// orginal name, internal, SfxStringItem
38 #define DSID_CONNECTURL				3			// connection URL, SfxStringItem
39 #define DSID_TABLEFILTER			4			// table filter, OStringListItem
40 #define DSID_TYPECOLLECTION			5			// collection of data source types, ODsnTypeCollection
41 #define DSID_INVALID_SELECTION		6			// is the selection (thus the set data) invalid?, SfxBoolItem
42 #define DSID_READONLY				7			// is the selection (thus the set data) readonly?, SfxBoolItem
43 #define DSID_USER					8			// the user name used for logon, SfxStringItem
44 #define DSID_PASSWORD				9			// the password used for logon, SfxStringItem
45 #define DSID_ADDITIONALOPTIONS		10			// additional options used for connecting, SfxStringItem
46 #define DSID_CHARSET				11			// character set to use, SfxStringItem by now
47 #define DSID_PASSWORDREQUIRED		12			// is the password required to connect?, SfxBoolItem
48 #define	DSID_SHOWDELETEDROWS		13			// show deleted rows?, SfxBoolItem
49 #define DSID_ALLOWLONGTABLENAMES	14			// allow tables names longer than 8.3?, SfxBoolItem
50 #define DSID_JDBCDRIVERCLASS		15			// JDBC driver class, SfxStringItem
51 #define DSID_FIELDDELIMITER			16			// field delimiter, SfxUInt16Item
52 #define DSID_TEXTDELIMITER			17			// text delimiter, SfxUInt16Item
53 #define DSID_DECIMALDELIMITER		18			// decimal delimiter, SfxUInt16Item
54 #define DSID_THOUSANDSDELIMITER		19			// thousands delimiter, SfxUInt16Item
55 #define DSID_TEXTFILEEXTENSION		20			// extension for text files, SfxStringItem
56 #define DSID_TEXTFILEHEADER			21			// the text file contains a header?, SfxBoolItem
57 #define DSID_PARAMETERNAMESUBST		22
58 #define DSID_CONN_PORTNUMBER		23
59 #define DSID_SUPPRESSVERSIONCL		24			// meta data: sal_True if the data source described by the set is to-be-deleted
60 #define DSID_DATASOURCE_UNO			25			// meta data: OPropertySetItem, the data source the set represents
61 #define DSID_CONN_SHUTSERVICE		26
62 #define DSID_CONN_DATAINC			27
63 #define DSID_CONN_CACHESIZE			28
64 #define DSID_CONN_CTRLUSER			29
65 #define DSID_CONN_CTRLPWD			30
66 #define DSID_USECATALOG				31			// should the driver use the catalog name when the database is filebased
67 #define DSID_CONN_HOSTNAME			32
68 #define DSID_CONN_LDAP_BASEDN		33
69 #define DSID_CONN_LDAP_PORTNUMBER	34
70 #define DSID_CONN_LDAP_ROWCOUNT		35
71 #define DSID_SQL92CHECK				36
72 #define DSID_AUTOINCREMENTVALUE		37
73 #define DSID_AUTORETRIEVEVALUE		38
74 #define DSID_AUTORETRIEVEENABLED	39
75 #define DSID_APPEND_TABLE_ALIAS		40
76 #define DSID_MYSQL_PORTNUMBER		41
77 #define DSID_IGNOREDRIVER_PRIV		42
78 #define DSID_BOOLEANCOMPARISON		43
79 #define DSID_ORACLE_PORTNUMBER		44
80 #define DSID_ENABLEOUTERJOIN		45
81 #define DSID_CATALOG				46
82 #define DSID_SCHEMA					47
83 #define DSID_INDEXAPPENDIX			48
84 #define DSID_CONN_LDAP_USESSL		49
85 #define DSID_DOCUMENT_URL   		50
86 #define DSID_DOSLINEENDS            51
87 #define DSID_DATABASENAME           52
88 #define DSID_AS_BEFORE_CORRNAME     53
89 #define DSID_CHECK_REQUIRED_FIELDS  54
90 #define DSID_IGNORECURRENCY         55
91 #define DSID_CONN_SOCKET            56
92 #define DSID_ESCAPE_DATETIME        57
93 #define DSID_NAMED_PIPE             58
94 #define DSID_PRIMARY_KEY_SUPPORT    59
95 #define DSID_MAX_ROW_SCAN           60
96 #define DSID_RESPECTRESULTSETTYPE   61
97     // don't forget to adjust DSID_LAST_ITEM_ID below!
98 
99 
100 //========================================================================
101 //= item range. Adjust this if you introduce new items above
102 
103 #define DSID_FIRST_ITEM_ID	DSID_NAME
104 #define DSID_LAST_ITEM_ID	DSID_RESPECTRESULTSETTYPE
105 
106 #endif // _DBAUI_DATASOURCEITEMS_HXX_
107 
108