summaryrefslogtreecommitdiff
path: root/offapi/org/libreoffice
diff options
context:
space:
mode:
authorStephan Bergmann <stephan.bergmann@allotropia.de>2024-04-11 10:52:12 +0200
committerStephan Bergmann <stephan.bergmann@allotropia.de>2024-04-11 15:22:40 +0200
commitfebd03e31b2e45f2c4ad3277939a1316fcf1cc79 (patch)
tree321969079c67fff5ff9da3e7d7592315430b1a45 /offapi/org/libreoffice
parentb6c10f89e25f43cac4eab8d596dbdba3c5e11ef2 (diff)
Move org.libreoffice.embindtest from udkapi to offapi
...so it will be able to use e.g. css.task.XJob in its tests Change-Id: I15e50c07ee4b1b315d2687dc7e7ea0c00ccc638c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165998 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Diffstat (limited to 'offapi/org/libreoffice')
-rw-r--r--offapi/org/libreoffice/embindtest/Constants.idl27
-rw-r--r--offapi/org/libreoffice/embindtest/Enum.idl21
-rw-r--r--offapi/org/libreoffice/embindtest/Exception.idl20
-rw-r--r--offapi/org/libreoffice/embindtest/Struct.idl20
-rw-r--r--offapi/org/libreoffice/embindtest/Test.idl16
-rw-r--r--offapi/org/libreoffice/embindtest/XTest.idl120
6 files changed, 224 insertions, 0 deletions
diff --git a/offapi/org/libreoffice/embindtest/Constants.idl b/offapi/org/libreoffice/embindtest/Constants.idl
new file mode 100644
index 000000000000..06ecd22fb56d
--- /dev/null
+++ b/offapi/org/libreoffice/embindtest/Constants.idl
@@ -0,0 +1,27 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
+/*
+ * 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 org { module libreoffice { module embindtest {
+
+constants Constants {
+ const boolean Boolean = True;
+ const byte Byte = -12;
+ const short Short = -1234;
+ const unsigned short UnsignedShort = 54321;
+ const long Long = -123456;
+ const unsigned long UnsignedLong = 3456789012;
+ const hyper Hyper = -123456789;
+ const unsigned hyper UnsignedHyper = 9876543210;
+ const float Float = -10.25;
+ const double Double = 100.5;
+};
+
+}; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
diff --git a/offapi/org/libreoffice/embindtest/Enum.idl b/offapi/org/libreoffice/embindtest/Enum.idl
new file mode 100644
index 000000000000..9056687aa0a6
--- /dev/null
+++ b/offapi/org/libreoffice/embindtest/Enum.idl
@@ -0,0 +1,21 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
+/*
+ * 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 org { module libreoffice { module embindtest {
+
+enum Enum {
+ E_10 = -10,
+ E_2 = -2,
+ E1 = 1,
+ E3 = 3
+};
+
+}; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
diff --git a/offapi/org/libreoffice/embindtest/Exception.idl b/offapi/org/libreoffice/embindtest/Exception.idl
new file mode 100644
index 000000000000..cc6e89d35df9
--- /dev/null
+++ b/offapi/org/libreoffice/embindtest/Exception.idl
@@ -0,0 +1,20 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
+/*
+ * 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 org { module libreoffice { module embindtest {
+
+exception Exception: com::sun::star::uno::Exception {
+ long m1;
+ double m2;
+ string m3;
+};
+
+}; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
diff --git a/offapi/org/libreoffice/embindtest/Struct.idl b/offapi/org/libreoffice/embindtest/Struct.idl
new file mode 100644
index 000000000000..6b9d36e40a1b
--- /dev/null
+++ b/offapi/org/libreoffice/embindtest/Struct.idl
@@ -0,0 +1,20 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
+/*
+ * 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 org { module libreoffice { module embindtest {
+
+struct Struct {
+ long m1;
+ double m2;
+ string m3;
+};
+
+}; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
diff --git a/offapi/org/libreoffice/embindtest/Test.idl b/offapi/org/libreoffice/embindtest/Test.idl
new file mode 100644
index 000000000000..ac7a1ece34f3
--- /dev/null
+++ b/offapi/org/libreoffice/embindtest/Test.idl
@@ -0,0 +1,16 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
+/*
+ * 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 org { module libreoffice { module embindtest {
+
+singleton Test: XTest;
+
+}; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
diff --git a/offapi/org/libreoffice/embindtest/XTest.idl b/offapi/org/libreoffice/embindtest/XTest.idl
new file mode 100644
index 000000000000..b3b5237ce2b4
--- /dev/null
+++ b/offapi/org/libreoffice/embindtest/XTest.idl
@@ -0,0 +1,120 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
+/*
+ * 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 org { module libreoffice { module embindtest {
+
+interface XTest {
+ boolean getBoolean();
+ boolean isBoolean([in] boolean value);
+ byte getByte();
+ boolean isByte([in] byte value);
+ short getShort();
+ boolean isShort([in] short value);
+ unsigned short getUnsignedShort();
+ boolean isUnsignedShort([in] unsigned short value);
+ long getLong();
+ boolean isLong([in] long value);
+ unsigned long getUnsignedLong();
+ boolean isUnsignedLong([in] unsigned long value);
+ hyper getHyper();
+ boolean isHyper([in] hyper value);
+ unsigned hyper getUnsignedHyper();
+ boolean isUnsignedHyper([in] unsigned hyper value);
+ float getFloat();
+ boolean isFloat([in] float value);
+ double getDouble();
+ boolean isDouble([in] double value);
+ char getChar();
+ boolean isChar([in] char value);
+ string getString();
+ boolean isString([in] string value);
+ type getType();
+ boolean isType([in] type value);
+ Enum getEnum();
+ boolean isEnum([in] Enum value);
+ Struct getStruct();
+ boolean isStruct([in] Struct value);
+ any getAnyVoid();
+ boolean isAnyVoid([in] any value);
+ any getAnyBoolean();
+ boolean isAnyBoolean([in] any value);
+ any getAnyByte();
+ boolean isAnyByte([in] any value);
+ any getAnyShort();
+ boolean isAnyShort([in] any value);
+ any getAnyUnsignedShort();
+ boolean isAnyUnsignedShort([in] any value);
+ any getAnyLong();
+ boolean isAnyLong([in] any value);
+ any getAnyUnsignedLong();
+ boolean isAnyUnsignedLong([in] any value);
+ any getAnyHyper();
+ boolean isAnyHyper([in] any value);
+ any getAnyUnsignedHyper();
+ boolean isAnyUnsignedHyper([in] any value);
+ any getAnyFloat();
+ boolean isAnyFloat([in] any value);
+ any getAnyDouble();
+ boolean isAnyDouble([in] any value);
+ any getAnyChar();
+ boolean isAnyChar([in] any value);
+ any getAnyString();
+ boolean isAnyString([in] any value);
+ any getAnyType();
+ boolean isAnyType([in] any value);
+ any getAnySequence();
+ boolean isAnySequence([in] any value);
+ any getAnyEnum();
+ boolean isAnyEnum([in] any value);
+ any getAnyStruct();
+ boolean isAnyStruct([in] any value);
+ any getAnyException();
+ boolean isAnyException([in] any value);
+ any getAnyInterface();
+ boolean isAnyInterface([in] any value);
+ sequence<boolean> getSequenceBoolean();
+ boolean isSequenceBoolean([in] sequence<boolean> value);
+ sequence<byte> getSequenceByte();
+ boolean isSequenceByte([in] sequence<byte> value);
+ sequence<short> getSequenceShort();
+ boolean isSequenceShort([in] sequence<short> value);
+ sequence<unsigned short> getSequenceUnsignedShort();
+ boolean isSequenceUnsignedShort([in] sequence<unsigned short> value);
+ sequence<long> getSequenceLong();
+ boolean isSequenceLong([in] sequence<long> value);
+ sequence<unsigned long> getSequenceUnsignedLong();
+ boolean isSequenceUnsignedLong([in] sequence<unsigned long> value);
+ sequence<hyper> getSequenceHyper();
+ boolean isSequenceHyper([in] sequence<hyper> value);
+ sequence<unsigned hyper> getSequenceUnsignedHyper();
+ boolean isSequenceUnsignedHyper([in] sequence<unsigned hyper> value);
+ sequence<float> getSequenceFloat();
+ boolean isSequenceFloat([in] sequence<float> value);
+ sequence<double> getSequenceDouble();
+ boolean isSequenceDouble([in] sequence<double> value);
+ sequence<char> getSequenceChar();
+ boolean isSequenceChar([in] sequence<char> value);
+ sequence<string> getSequenceString();
+ boolean isSequenceString([in] sequence<string> value);
+ sequence<type> getSequenceType();
+ boolean isSequenceType([in] sequence<type> value);
+ sequence<any> getSequenceAny();
+ boolean isSequenceAny([in] sequence<any> value);
+ sequence<sequence<string> > getSequenceSequenceString();
+ boolean isSequenceSequenceString([in] sequence<sequence<string> > value);
+ sequence<Enum> getSequenceEnum();
+ boolean isSequenceEnum([in] sequence<Enum> value);
+ sequence<Struct> getSequenceStruct();
+ boolean isSequenceStruct([in] sequence<Struct> value);
+ void throwRuntimeException();
+};
+
+}; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */