1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
22 #include <sal/types.h>
23 #include <svl/typedwhich.hxx>
25 class OptionalBoolItem
;
30 typedef sal_Int32 ItemID
;
32 // item ids for the data source administration dialog
34 #define DSID_NAME TypedWhichId<SfxStringItem>(1) // name of a data source, SfxStringItem
35 #define DSID_ORIGINALNAME TypedWhichId<SfxStringItem>(2) // original name, internal, SfxStringItem
36 #define DSID_CONNECTURL TypedWhichId<SfxStringItem>(3) // connection URL, SfxStringItem
37 #define DSID_TABLEFILTER 4 // table filter, OStringListItem
38 #define DSID_TYPECOLLECTION 5 // collection of data source types, ODsnTypeCollection
39 #define DSID_INVALID_SELECTION TypedWhichId<SfxBoolItem>(6) // is the selection (thus the set data) invalid?, SfxBoolItem
40 #define DSID_READONLY TypedWhichId<SfxBoolItem>(7) // is the selection (thus the set data) readonly?, SfxBoolItem
41 #define DSID_USER TypedWhichId<SfxStringItem>(8) // the user name used for logon, SfxStringItem
42 #define DSID_PASSWORD TypedWhichId<SfxStringItem>(9) // the password used for logon, SfxStringItem
43 #define DSID_ADDITIONALOPTIONS TypedWhichId<SfxStringItem>(10) // additional options used for connecting, SfxStringItem
44 #define DSID_CHARSET TypedWhichId<SfxStringItem>(11) // character set to use, SfxStringItem by now
45 #define DSID_PASSWORDREQUIRED TypedWhichId<SfxBoolItem>(12) // is the password required to connect?, SfxBoolItem
46 #define DSID_SHOWDELETEDROWS TypedWhichId<SfxBoolItem>(13) // show deleted rows?, SfxBoolItem
47 #define DSID_ALLOWLONGTABLENAMES TypedWhichId<SfxBoolItem>(14) // allow tables names longer than 8.3?, SfxBoolItem
48 #define DSID_JDBCDRIVERCLASS TypedWhichId<SfxStringItem>(15) // JDBC driver class, SfxStringItem
49 #define DSID_FIELDDELIMITER TypedWhichId<SfxStringItem>(16) // field delimiter, SfxUInt16Item
50 #define DSID_TEXTDELIMITER TypedWhichId<SfxStringItem>(17) // text delimiter, SfxUInt16Item
51 #define DSID_DECIMALDELIMITER TypedWhichId<SfxStringItem>(18) // decimal delimiter, SfxUInt16Item
52 #define DSID_THOUSANDSDELIMITER TypedWhichId<SfxStringItem>(19) // thousands delimiter, SfxUInt16Item
53 #define DSID_TEXTFILEEXTENSION TypedWhichId<SfxStringItem>(20) // extension for text files, SfxStringItem
54 #define DSID_TEXTFILEHEADER TypedWhichId<SfxBoolItem>(21) // the text file contains a header?, SfxBoolItem
55 #define DSID_PARAMETERNAMESUBST TypedWhichId<SfxBoolItem>(22)
56 #define DSID_CONN_PORTNUMBER TypedWhichId<SfxInt32Item>(23)
57 #define DSID_SUPPRESSVERSIONCL TypedWhichId<SfxBoolItem>(24) // meta data: sal_True if the data source described by the set is to-be-deleted
58 #define DSID_CONN_SHUTSERVICE TypedWhichId<SfxBoolItem>(25)
59 #define DSID_CONN_DATAINC TypedWhichId<SfxInt32Item>(26)
60 #define DSID_CONN_CACHESIZE TypedWhichId<SfxInt32Item>(27)
61 #define DSID_CONN_CTRLUSER TypedWhichId<SfxStringItem>(28)
62 #define DSID_CONN_CTRLPWD TypedWhichId<SfxStringItem>(29)
63 #define DSID_USECATALOG TypedWhichId<SfxBoolItem>(30) // should the driver use the catalog name when the database is filebased
64 #define DSID_CONN_HOSTNAME TypedWhichId<SfxStringItem>(31)
65 #define DSID_CONN_LDAP_BASEDN TypedWhichId<SfxStringItem>(32)
66 #define DSID_CONN_LDAP_PORTNUMBER TypedWhichId<SfxInt32Item>(33)
67 #define DSID_CONN_LDAP_ROWCOUNT TypedWhichId<SfxInt32Item>(34)
68 #define DSID_SQL92CHECK TypedWhichId<SfxBoolItem>(35)
69 #define DSID_AUTOINCREMENTVALUE TypedWhichId<SfxStringItem>(36)
70 #define DSID_AUTORETRIEVEVALUE TypedWhichId<SfxStringItem>(37)
71 #define DSID_AUTORETRIEVEENABLED TypedWhichId<SfxBoolItem>(38)
72 #define DSID_APPEND_TABLE_ALIAS TypedWhichId<SfxBoolItem>(39)
73 #define DSID_MYSQL_PORTNUMBER TypedWhichId<SfxInt32Item>(40)
74 #define DSID_IGNOREDRIVER_PRIV TypedWhichId<SfxBoolItem>(41)
75 #define DSID_BOOLEANCOMPARISON TypedWhichId<SfxInt32Item>(42)
76 #define DSID_ORACLE_PORTNUMBER TypedWhichId<SfxInt32Item>(43)
77 #define DSID_ENABLEOUTERJOIN TypedWhichId<SfxBoolItem>(44)
78 #define DSID_CATALOG TypedWhichId<SfxBoolItem>(45)
79 #define DSID_SCHEMA TypedWhichId<SfxBoolItem>(46)
80 #define DSID_INDEXAPPENDIX TypedWhichId<SfxBoolItem>(47)
81 #define DSID_CONN_LDAP_USESSL TypedWhichId<SfxBoolItem>(48)
82 #define DSID_DOCUMENT_URL TypedWhichId<SfxStringItem>(49)
83 #define DSID_DOSLINEENDS TypedWhichId<SfxBoolItem>(50)
84 #define DSID_DATABASENAME TypedWhichId<SfxStringItem>(51)
85 #define DSID_AS_BEFORE_CORRNAME TypedWhichId<SfxBoolItem>(52)
86 #define DSID_CHECK_REQUIRED_FIELDS TypedWhichId<SfxBoolItem>(53)
87 #define DSID_IGNORECURRENCY TypedWhichId<SfxBoolItem>(54)
88 #define DSID_CONN_SOCKET TypedWhichId<SfxStringItem>(55)
89 #define DSID_ESCAPE_DATETIME TypedWhichId<SfxBoolItem>(56)
90 #define DSID_NAMED_PIPE TypedWhichId<SfxStringItem>(57)
91 #define DSID_PRIMARY_KEY_SUPPORT TypedWhichId<OptionalBoolItem>(58)
92 #define DSID_MAX_ROW_SCAN TypedWhichId<SfxInt32Item>(59)
93 #define DSID_RESPECTRESULTSETTYPE TypedWhichId<SfxBoolItem>(60)
94 #define DSID_POSTGRES_PORTNUMBER TypedWhichId<SfxInt32Item>(61)
95 // don't forget to adjust DSID_LAST_ITEM_ID below!
97 // item range. Adjust this if you introduce new items above
99 #define DSID_FIRST_ITEM_ID DSID_NAME
100 #define DSID_LAST_ITEM_ID DSID_POSTGRES_PORTNUMBER
102 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */