1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE script:module PUBLIC
"-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
3 <script:module xmlns:
script=
"http://openoffice.org/2000/script" script:
name=
"acConstants" script:
language=
"StarBasic">REM =======================================================================================================================
4 REM === The Access2Base library is a part of the LibreOffice project. ===
5 REM === Full documentation is available on http://www.access2base.com ===
6 REM =======================================================================================================================
10 REM Access2Base -----------------------------------------------------
11 Global Const Access2Base_Version =
"1.6.0"
14 REM -----------------------------------------------------------------
15 Global Const acSaveNo =
2
16 Global Const acSavePrompt =
0
17 Global Const acSaveYes =
1
20 REM -----------------------------------------------------------------
21 Global Const acDesign =
1
22 Global Const acNormal =
0
23 Global Const acPreview =
2
25 REM AcFormOpenDataMode
26 REM -----------------------------------------------------------------
27 Global Const acFormAdd =
0
28 Global Const acFormEdit =
1
29 Global Const acFormPropertySettings = -
1
30 Global Const acFormReadOnly =
2
33 REM -----------------------------------------------------------------
34 Global Const acViewDesign =
1
35 Global Const acViewNormal =
0
36 Global Const acViewPreview =
2
39 REM -----------------------------------------------------------------
40 Global Const acAdd =
0
41 Global Const acEdit =
1
42 Global Const acReadOnly =
2
45 REM -----------------------------------------------------------------
46 Global Const acDefault = -
1
47 Global Const acDiagram =
8
48 Global Const acForm =
2
49 Global Const acQuery =
1
50 Global Const acReport =
3
51 Global Const acTable =
0
52 ' Unexisting in MS/Access
53 Global Const acBasicIDE =
101
54 Global Const acDatabaseWindow =
102
55 Global Const acDocument =
111
56 Global Const acWelcome =
112
57 ' Subtype if acDocument
58 Global Const docWriter =
"Writer
"
59 Global Const docCalc =
"Calc
"
60 Global Const docImpress =
"Impress
"
61 Global Const docDraw =
"Draw
"
62 Global Const docMath =
"Math
"
65 REM -----------------------------------------------------------------
66 Global Const acDialog =
3
67 Global Const acHidden =
1
68 Global Const acIcon =
2
69 Global Const acWindowNormal =
0
72 REM -----------------------------------------------------------------
73 Global Const vbEmpty =
0
74 Global Const vbNull =
1
75 Global Const vbInteger =
2
76 Global Const vbLong =
3
77 Global Const vbSingle =
4
78 Global Const vbDouble =
5
79 Global Const vbCurrency =
6
80 Global Const vbDate =
7
81 Global Const vbString =
8
82 Global Const vbObject =
9
83 Global Const vbBoolean =
11
84 Global Const vbVariant =
12
85 Global Const vbByte =
17
86 Global Const vbUShort =
18
87 Global Const vbULong =
19
88 Global Const vbBigint =
35
89 Global Const vbDecimal =
37
90 Global Const vbArray =
8192
93 REM -----------------------------------------------------------------
94 Global Const vbOKOnly =
0 ' OK button only (default)
95 Global Const vbOKCancel =
1 ' OK and Cancel buttons
96 Global Const vbAbortRetryIgnore =
2 ' Abort, Retry, and Ignore buttons
97 Global Const vbYesNoCancel =
3 ' Yes, No, and Cancel buttons
98 Global Const vbYesNo =
4 ' Yes and No buttons
99 Global Const vbRetryCancel =
5 ' Retry and Cancel buttons
100 Global Const vbCritical =
16 ' Critical message
101 Global Const vbQuestion =
32 ' Warning query
102 Global Const vbExclamation =
48 ' Warning message
103 Global Const vbInformation =
64 ' Information message
104 Global Const vbDefaultButton1 =
128 ' First button is default (default) (VBA:
0)
105 Global Const vbDefaultButton2 =
256 ' Second button is default
106 Global Const vbDefaultButton3 =
512 ' Third button is default
107 Global Const vbApplicationModal =
0 ' Application modal message box (default)
108 REM MsgBox Return Values
109 REM -----------------------------------------------------------------
110 Global Const vbOK =
1 ' OK button pressed
111 Global Const vbCancel =
2 ' Cancel button pressed
112 Global Const vbAbort =
3 ' Abort button pressed
113 Global Const vbRetry =
4 ' Retry button pressed
114 Global Const vbIgnore =
5 ' Ignore button pressed
115 Global Const vbYes =
6 ' Yes button pressed
116 Global Const vbNo =
7 ' No button pressed
118 REM Dialogs Return Values
119 REM ------------------------------------------------------------------
120 Global Const dlgOK =
1 ' OK button pressed
121 Global Const dlgCancel =
0 ' Cancel button pressed
124 REM -----------------------------------------------------------------
125 Global Const acCheckBox =
5
126 Global Const acComboBox =
7
127 Global Const acCommandButton =
2 : Global Const acToggleButton =
122
128 Global Const acCurrencyField =
18
129 Global Const acDateField =
15
130 Global Const acFileControl =
12
131 Global Const acFixedLine =
24 ' FREE ENTRY (USEFUL IN DIALOGS)
132 Global Const acFixedText =
10 : Global Const acLabel =
10
133 Global Const acFormattedField =
1 ' FREE ENTRY TAKEN TO NOT CONFUSE WITH acTextField
134 Global Const acGridControl =
11
135 Global Const acGroupBox =
8 : Global Const acOptionGroup =
8
136 Global Const acHiddenControl =
13
137 Global Const acImageButton =
4
138 Global Const acImageControl =
14 : Global Const acImage =
14
139 Global Const acListBox =
6
140 Global Const acNavigationBar =
22
141 Global Const acNumericField =
17
142 Global Const acPatternField =
19
143 Global Const acProgressBar =
23 ' FREE ENTRY (USEFUL IN DIALOGS)
144 Global Const acRadioButton =
3 : Global Const acOptionButton =
3
145 Global Const acScrollBar =
20
146 Global Const acSpinButton =
21
147 Global Const acSubform =
112
148 Global Const acTextField =
9 : Global Const acTextBox =
9
149 Global Const acTimeField =
16
152 REM -----------------------------------------------------------------
153 Global Const acFirst =
2
154 Global Const acGoTo =
4
155 Global Const acLast =
3
156 Global Const acNewRec =
5
157 Global Const acNext =
1
158 Global Const acPrevious =
0
161 REM -----------------------------------------------------------------
162 Global Const acAnywhere =
0
163 Global Const acEntire =
1
164 Global Const acStart =
2
165 Global Const acDown =
1
166 Global Const acSearchAll =
2
167 Global Const acUp =
0
168 Global Const acAll =
0
169 Global Const acCurrent = -
1
172 REM -----------------------------------------------------------------
173 Global Const acActiveDataObject = -
1
174 Global Const acDataForm =
2
175 Global Const acDataQuery =
1
176 Global Const acDataServerView =
7
177 Global Const acDataStoredProcedure =
9
178 Global Const acDataTable =
0
181 REM -----------------------------------------------------------------
182 Global Const acFirst =
2
183 Global Const acGoTo =
4
184 Global Const acLast =
3
185 Global Const acNewRec =
5
186 Global Const acNext =
1
187 Global Const acPrevious =
0
190 REM -----------------------------------------------------------------
191 Global Const acQuitPrompt =
0
192 Global Const acQuitSaveAll =
1
193 Global Const acQuitSaveNone =
2
196 REM -----------------------------------------------------------------
197 Global Const acCmdAboutMicrosoftAccess =
35
198 Global Const acCmdAboutOpenOffice =
35
199 Global Const acCmdAboutLibreOffice =
35
200 Global Const acCmdVisualBasicEditor =
525
201 Global Const acCmdBringToFront =
52
202 Global Const acCmdClose =
58
203 Global Const acCmdToolbarsCustomize =
165
204 Global Const acCmdChangeToCommandButton =
501
205 Global Const acCmdChangeToCheckBox =
231
206 Global Const acCmdChangeToComboBox =
230
207 Global Const acCmdChangeToTextBox =
227
208 Global Const acCmdChangeToLabel =
228
209 Global Const acCmdChangeToImage =
234
210 Global Const acCmdChangeToListBox =
229
211 Global Const acCmdChangeToOptionButton =
233
212 Global Const acCmdCopy =
190
213 Global Const acCmdCut =
189
214 Global Const acCmdCreateRelationship =
150
215 Global Const acCmdDelete =
337
216 Global Const acCmdDatabaseProperties =
256
217 Global Const acCmdSQLView =
184
218 Global Const acCmdRemove =
366
219 Global Const acCmdDesignView =
183
220 Global Const acCmdFormView =
281
221 Global Const acCmdNewObjectForm =
136
222 Global Const acCmdNewObjectTable =
134
223 Global Const acCmdNewObjectView =
350
224 Global Const acCmdOpenDatabase =
25
225 Global Const acCmdRemove =
366
226 Global Const acCmdDesignView =
183
227 Global Const acCmdNewObjectQuery =
135
228 Global Const acCmdShowAllRelationships =
149
229 Global Const acCmdRemove =
366
230 Global Const acCmdDesignView =
183
231 Global Const acCmdNewObjectReport =
137
232 Global Const acCmdSelectAll =
333
233 Global Const acCmdRemoveTable =
84
234 Global Const acCmdDesignView =
183
235 Global Const acCmdOpenTable =
221
236 Global Const acCmdRename =
143
237 Global Const acCmdDelete =
337
238 Global Const acCmdDeleteRecord =
223
239 Global Const acCmdApplyFilterSort =
93
240 Global Const acCmdSnapToGrid =
62
241 Global Const acCmdViewGrid =
63
242 Global Const acCmdInsertHyperlink =
259
243 Global Const acCmdMaximumRecords =
508
244 Global Const acCmdObjectBrowser =
200
245 Global Const acCmdPaste =
191
246 Global Const acCmdPasteSpecial =
64
247 Global Const acCmdPrint =
340
248 Global Const acCmdPrintPreview =
54
249 Global Const acCmdSaveRecord =
97
250 Global Const acCmdFind =
30
251 Global Const acCmdUndo =
292
252 Global Const acCmdRefresh =
18
253 Global Const acCmdRemoveFilterSort =
144
254 Global Const acCmdRunMacro =
31
255 Global Const acCmdSave =
20
256 Global Const acCmdSaveAs =
21
257 Global Const acCmdFind =
30
258 Global Const acCmdSelectAll =
333
259 Global Const acCmdSelectAllRecords =
109
260 Global Const acCmdSendToBack =
53
261 Global Const acCmdSortDescending =
164
262 Global Const acCmdSortAscending =
163
263 Global Const acCmdTabOrder =
41
264 Global Const acCmdDatasheetView =
282
265 Global Const acCmdZoomSelection =
371
268 REM -----------------------------------------------------------------
269 Global Const acSendForm =
2
270 Global Const acSendNoObject = -
1
271 Global Const acSendQuery =
1
272 Global Const acSendReport =
3
273 Global Const acSendTable =
0
275 REM AcOutputObjectType
276 REM -----------------------------------------------------------------
277 Global Const acOutputTable =
0
278 Global Const acOutputQuery =
1
279 Global Const acOutputForm =
2
280 Global Const acOutputArray = -
1
283 REM -----------------------------------------------------------------
284 Global Const acUTF8Encoding =
76
287 REM -----------------------------------------------------------------
288 Global Const acFormatPDF =
"writer_pdf_Export
"
289 Global Const acFormatODT =
"writer8
"
290 Global Const acFormatDOC =
"MS Word
97"
291 Global Const acFormatHTML =
"HTML
"
292 Global Const acFormatODS =
"calc8
"
293 Global Const acFormatXLS =
"MS Excel
97"
294 Global Const acFormatXLSX =
"Calc MS Excel
2007 XML
"
295 Global Const acFormatTXT =
"Text - txt - csv (StarCalc)
"
298 REM -----------------------------------------------------------------
299 Global Const acExportQualityPrint =
0
300 Global Const acExportQualityScreen =
1
303 REM -----------------------------------------------------------------
304 Global Const acSysCmdAccessDir =
9
305 Global Const acSysCmdAccessVer =
7
306 Global Const acSysCmdClearHelpTopic =
11
307 Global Const acSysCmdClearStatus =
5
308 Global Const acSysCmdGetObjectState =
10
309 Global Const acSysCmdGetWorkgroupFile =
13
310 Global Const acSysCmdIniFile =
8
311 Global Const acSysCmdInitMeter =
1
312 Global Const acSysCmdProfile =
12
313 Global Const acSysCmdRemoveMeter =
3
314 Global Const acSysCmdRuntime =
6
315 Global Const acSysCmdSetStatus =
4
316 Global Const acSysCmdUpdateMeter =
2
319 REM -----------------------------------------------------------------
320 Global Const dbBigInt =
16
321 Global Const dbBinary =
9
322 Global Const dbBoolean =
1
323 Global Const dbByte =
2
324 Global Const dbChar =
18
325 Global Const dbCurrency =
5
326 Global Const dbDate =
8
327 Global Const dbDecimal =
20
328 Global Const dbDouble =
7
329 Global Const dbFloat =
21
330 Global Const dbGUID =
15
331 Global Const dbInteger =
3
332 Global Const dbLong =
4
333 Global Const dbLongBinary =
11 ' (OLE Object)
334 Global Const dbMemo=
12
335 Global Const dbNumeric =
19
336 Global Const dbSingle =
6
337 Global Const dbText =
10
338 Global Const dbTime =
22
339 Global Const dbTimeStamp =
23
340 Global Const dbVarBinary =
17
341 Global Const dbUndefined = -
1
343 REM Attributes property
344 REM -----------------------------------------------------------------
345 Global Const dbAutoIncrField =
16
346 Global Const dbDescending =
1
347 Global Const dbFixedField =
1
348 Global Const dbHyperlinkField =
32768
349 Global Const dbSystemField =
8192
350 Global Const dbUpdatableField =
32
351 Global Const dbVariableField =
2
354 REM -----------------------------------------------------------------
355 Global Const dbOpenForwardOnly =
8
356 Global Const dbSQLPassThrough =
64
357 Global Const dbReadOnly =
4
360 REM -----------------------------------------------------------------
361 Global Const dbQAction =
240
362 Global Const dbQAppend =
64
363 Global Const dbQDDL =
4 '96
364 Global Const dbQDelete =
32
365 Global Const dbQMakeTable =
128 '80
366 Global Const dbQSelect =
0
367 Global Const dbQSetOperation =
8 '128
368 Global Const dbQSQLPassThrough =
1 '112
369 Global Const dbQUpdate =
16 '48
372 REM -----------------------------------------------------------------
373 Global Const dbEditNone =
0
374 Global Const dbEditInProgress =
1
375 Global Const dbEditAdd =
2
378 REM -----------------------------------------------------------------
379 Global Const msoBarTypeNormal =
0 ' Usual toolbar
380 Global Const msoBarTypeMenuBar =
1 ' Menu bar
381 Global Const msoBarTypePopup =
2 ' Shortcut menu
382 Global Const msoBarTypeStatusBar =
11 ' Status bar
383 Global Const msoBarTypeFloater =
12 ' Floating window
385 Global Const msoControlButton =
1 ' Command button
386 Global Const msoControlPopup =
10 ' Popup, submenu
389 REM -----------------------------------------------------------------
390 Public Function vbNewLine() As String
392 If GetGuiType() = cstWindows Then vbNewLine = Chr(
13)
& Chr(
10) Else vbNewLine = Chr(
10)
393 End Function
' vbNewLine V1.4
.0