summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2013-02-11 14:19:16 +0000
committerTor Lillqvist <tml@iki.fi>2013-02-12 08:39:22 +0000
commit61217a8c2f6a330b091444976267d72882cc3ca9 (patch)
tree6ae3ef958e6113ab9df52bbfebff311639d4219c
parentdf37dd7d3ce201d1ba5a0065c126db107ce18ead (diff)
add more missing adodb constants
Change-Id: Ia43e1c63aa3a1f72deaa20351f9fe59fcc021b62 (cherry picked from commit ed7012e9a324d322d68dac3cc9dda7bbbc3391ad) Reviewed-on: https://gerrit.libreoffice.org/2106 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
-rw-r--r--oovbaapi/UnoApi_oovbaapi.mk4
-rw-r--r--oovbaapi/ooo/vba/adodb/EditModeEnum.idl18
-rw-r--r--oovbaapi/ooo/vba/adodb/FieldAttributeEnum.idl27
-rw-r--r--oovbaapi/ooo/vba/adodb/LockTypeEnum.idl19
-rw-r--r--oovbaapi/ooo/vba/adodb/RecordStatusEnum.idl32
5 files changed, 100 insertions, 0 deletions
diff --git a/oovbaapi/UnoApi_oovbaapi.mk b/oovbaapi/UnoApi_oovbaapi.mk
index 7f668daff4ef..75431a77edce 100644
--- a/oovbaapi/UnoApi_oovbaapi.mk
+++ b/oovbaapi/UnoApi_oovbaapi.mk
@@ -164,13 +164,16 @@ $(eval $(call gb_UnoApi_add_idlfiles,oovbaapi,oovbaapi/ooo/vba/adodb,\
CursorOptionEnum \
CursorTypeEnum \
DataTypeEnum \
+ EditModeEnum \
ErrorValueEnum \
EventReasonEnum \
EventStatusEnum \
ExecuteOptionEnum \
+ FieldAttributeEnum \
FilterGroupEnum \
GetRowsOptionEnum \
IsolationLevelEnum \
+ LockTypeEnum \
MarshalOptionsEnum \
ObjectStateEnum \
ParameterAttributesEnum \
@@ -178,6 +181,7 @@ $(eval $(call gb_UnoApi_add_idlfiles,oovbaapi,oovbaapi/ooo/vba/adodb,\
PersistFormatEnum \
PositionEnum \
PropertyAttributesEnum \
+ RecordStatusEnum \
ResyncEnum \
SchemaEnum \
SearchDirectionEnum \
diff --git a/oovbaapi/ooo/vba/adodb/EditModeEnum.idl b/oovbaapi/ooo/vba/adodb/EditModeEnum.idl
new file mode 100644
index 000000000000..462f0ff3ca4a
--- /dev/null
+++ b/oovbaapi/ooo/vba/adodb/EditModeEnum.idl
@@ -0,0 +1,18 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+module ooo { module vba { module adodb {
+ constants EditModeEnum {
+ const long adEditAdd = 2;
+ const long adEditDelete = 4;
+ const long adEditInProgress = 1;
+ const long adEditNone = 0;
+ };
+}; }; };
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oovbaapi/ooo/vba/adodb/FieldAttributeEnum.idl b/oovbaapi/ooo/vba/adodb/FieldAttributeEnum.idl
new file mode 100644
index 000000000000..5c242058eaef
--- /dev/null
+++ b/oovbaapi/ooo/vba/adodb/FieldAttributeEnum.idl
@@ -0,0 +1,27 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+module ooo { module vba { module adodb {
+ constants FieldAttributeEnum {
+ const long adFldCacheDeferred = 4096;
+ const long adFldFixed = 16;
+ const long adFldIsNullable = 32;
+ const long adFldKeyColumn = 32768;
+ const long adFldLong = 128;
+ const long adFldMayBeNull = 64;
+ const long adFldMayDefer = 2;
+ const long adFldNegativeScale = 16384;
+ const long adFldRowID = 256;
+ const long adFldRowVersion = 512;
+ const long adFldUnknownUpdatable = 8;
+ const long adFldUnspecified = -1;
+ const long adFldUpdatable = 4;
+ };
+}; }; };
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oovbaapi/ooo/vba/adodb/LockTypeEnum.idl b/oovbaapi/ooo/vba/adodb/LockTypeEnum.idl
new file mode 100644
index 000000000000..1a277ee64592
--- /dev/null
+++ b/oovbaapi/ooo/vba/adodb/LockTypeEnum.idl
@@ -0,0 +1,19 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+module ooo { module vba { module adodb {
+ constants LockTypeEnum {
+ const long adLockBatchOptimistic = 4;
+ const long adLockOptimistic = 3;
+ const long adLockPessimistic = 2;
+ const long adLockReadOnly = 1;
+ const long adLockUnspecified = -1;
+ };
+}; }; };
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oovbaapi/ooo/vba/adodb/RecordStatusEnum.idl b/oovbaapi/ooo/vba/adodb/RecordStatusEnum.idl
new file mode 100644
index 000000000000..3ac3b602f767
--- /dev/null
+++ b/oovbaapi/ooo/vba/adodb/RecordStatusEnum.idl
@@ -0,0 +1,32 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+module ooo { module vba { module adodb {
+ constants RecordStatusEnum {
+ const long adRecCanceled = 256;
+ const long adRecCantRelease = 1024;
+ const long adRecConcurrencyViolation = 2048;
+ const long adRecDBDeleted = 262144;
+ const long adRecDeleted = 4;
+ const long adRecIntegrityViolation = 4096;
+ const long adRecInvalid = 16;
+ const long adRecMaxChangesExceeded = 8192;
+ const long adRecModified = 2;
+ const long adRecMultipleChanges = 64;
+ const long adRecNew = 1;
+ const long adRecObjectOpen = 16384;
+ const long adRecOK = 0;
+ const long adRecOutOfMemory = 32768;
+ const long adRecPendingChanges = 128;
+ const long adRecPermissionDenied = 65536;
+ const long adRecSchemaViolation = 131072;
+ const long adRecUnmodified = 8;
+ };
+}; }; };
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */