1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef DBA_XMLENUMS_HXX
24 #define DBA_XMLENUMS_HXX
25 
26 #define PROGRESS_BAR_STEP 20
27 
28 namespace dbaxml
29 {
30 	enum XMLDocTokens
31 	{
32 		XML_TOK_DOC_AUTOSTYLES,
33 		XML_TOK_DOC_SETTINGS,
34 		XML_TOK_DOC_DATABASE,
35 		XML_TOK_DOC_STYLES,
36 	    XML_TOK_DOC_SCRIPT
37 	};
38 	enum XMLDatabaseToken
39 	{
40 		XML_TOK_DATASOURCE,
41 		XML_TOK_FORMS,
42 		XML_TOK_REPORTS,
43 		XML_TOK_QUERIES,
44 		XML_TOK_TABLES,
45         XML_TOK_SCHEMA_DEFINITION
46 	};
47 	enum XMLDataSource
48 	{
49 		XML_TOK_CONNECTION_RESOURCE,
50 		XML_TOK_SUPPRESS_VERSION_COLUMNS,
51 		XML_TOK_JAVA_DRIVER_CLASS,
52 		XML_TOK_EXTENSION,
53 		XML_TOK_IS_FIRST_ROW_HEADER_LINE,
54 		XML_TOK_SHOW_DELETED,
55 		XML_TOK_IS_TABLE_NAME_LENGTH_LIMITED,
56 		XML_TOK_SYSTEM_DRIVER_SETTINGS,
57 		XML_TOK_ENABLE_SQL92_CHECK,
58 		XML_TOK_APPEND_TABLE_ALIAS_NAME,
59 		XML_TOK_PARAMETER_NAME_SUBSTITUTION,
60 		XML_TOK_IGNORE_DRIVER_PRIVILEGES,
61 		XML_TOK_BOOLEAN_COMPARISON_MODE,
62 		XML_TOK_USE_CATALOG,
63 		XML_TOK_BASE_DN,
64 		XML_TOK_MAX_ROW_COUNT,
65 		XML_TOK_LOGIN,
66 		XML_TOK_TABLE_FILTER,
67 		XML_TOK_TABLE_TYPE_FILTER,
68 		XML_TOK_AUTO_INCREMENT,
69 		XML_TOK_DELIMITER,
70 		XML_TOK_DATA_SOURCE_SETTINGS,
71 		XML_TOK_FONT_CHARSET,
72 		XML_TOK_ENCODING,
73         XML_TOK_DATABASE_DESCRIPTION,
74         XML_TOK_COMPOUND_DATABASE,
75         XML_TOK_DB_HREF,
76         XML_TOK_MEDIA_TYPE,
77         XML_TOK_DB_TYPE,
78         XML_TOK_HOSTNAME,
79         XML_TOK_PORT,
80         XML_TOK_LOCAL_SOCKET,
81         XML_TOK_DATABASE_NAME,
82         XML_TOK_CONNECTION_DATA,
83         XML_TOK_DRIVER_SETTINGS,
84         XML_TOK_JAVA_CLASSPATH,
85         XML_TOK_CHARACTER_SET,
86         XML_TOK_APPLICATION_CONNECTION_SETTINGS
87 	};
88     enum XMLDatabaseDescription
89     {
90         XML_TOK_FILE_BASED_DATABASE,
91         XML_TOK_SERVER_DATABASE
92     };
93 	enum XMLLogin
94 	{
95 		XML_TOK_USER_NAME,
96 		XML_TOK_IS_PASSWORD_REQUIRED,
97         XML_TOK_USE_SYSTEM_USER,
98         XML_TOK_LOGIN_TIMEOUT
99 	};
100 	enum XMLDataSourceInfo
101 	{
102 		XML_TOK_STRING,
103 		XML_TOK_FIELD,
104 		XML_TOK_DECIMAL,
105 		XML_TOK_THOUSAND,
106 		XML_TOK_ADDITIONAL_COLUMN_STATEMENT,
107 		XML_TOK_ROW_RETRIEVING_STATEMENT,
108 		XML_TOK_DATA_SOURCE_SETTING,
109 		XML_TOK_DATA_SOURCE_SETTING_VALUE,
110 		XML_TOK_DATA_SOURCE_SETTING_IS_LIST,
111 		XML_TOK_DATA_SOURCE_SETTING_TYPE,
112 		XML_TOK_DATA_SOURCE_SETTING_NAME
113 	};
114 	enum XMLDocuments
115 	{
116 		XML_TOK_COMPONENT,
117 		XML_TOK_COMPONENT_COLLECTION,
118 		XML_TOK_QUERY_COLLECTION,
119 		XML_TOK_QUERY,
120 		XML_TOK_TABLE,
121 		XML_TOK_COLUMN
122 	};
123 	enum XMLComponent
124 	{
125 		XML_TOK_HREF	,
126 		XML_TOK_TYPE	,
127 		XML_TOK_SHOW	,
128 		XML_TOK_ACTUATE ,
129 		XML_TOK_AS_TEMPLATE ,
130 		XML_TOK_COMPONENT_NAME
131 	};
132 	enum XMLType
133 	{
134 		XML_TYPE_FORMS,
135 		XML_TYPE_REPORTS,
136 		XML_TYPE_QUERIES,
137 		XML_TYPE_TABLES
138 	};
139 	enum XMLQueryTable
140 	{
141 		XML_TOK_QUERY_NAME,
142 		XML_TOK_COMMAND,
143 		XML_TOK_ESCAPE_PROCESSING,
144 		XML_TOK_FILTER_STATEMENT,
145 		XML_TOK_ORDER_STATEMENT,
146 		XML_TOK_UPDATE_TABLE,
147 		XML_TOK_CATALOG_NAME,
148 		XML_TOK_SCHEMA_NAME,
149 		XML_TOK_STYLE_NAME,
150 		XML_TOK_APPLY_FILTER,
151 		XML_TOK_APPLY_ORDER,
152 		XML_TOK_COLUMNS
153 	};
154 	enum XMLColumn
155 	{
156 		XML_TOK_COLUMN_NAME,
157 		XML_TOK_COLUMN_STYLE_NAME,
158 		XML_TOK_COLUMN_HELP_MESSAGE,
159 		XML_TOK_COLUMN_VISIBILITY,
160         XML_TOK_COLUMN_DEFAULT_VALUE,
161         XML_TOK_COLUMN_TYPE_NAME,
162         XML_TOK_COLUMN_VISIBLE,
163         XML_TOK_DEFAULT_CELL_STYLE_NAME
164 	};
165 // -----------------------------------------------------------------------------
166 } // namespace dbaxml
167 // -----------------------------------------------------------------------------
168 #endif // DBA_XMLENUMS_HXX
169