From f504bd1ac99fe9464d6a5e41febbdcab08af1c97 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 30 Jul 2024 09:13:35 +0200 Subject: Embind: Missing support for UNO polymorphic struct types Change-Id: I6bb29a951e6e5a3ed7d825172ba7b92ef95a5619 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171228 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- offapi/org/libreoffice/embindtest/Template.idl | 21 +++++++++++++++++++++ offapi/org/libreoffice/embindtest/XTest.idl | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 offapi/org/libreoffice/embindtest/Template.idl (limited to 'offapi/org/libreoffice') diff --git a/offapi/org/libreoffice/embindtest/Template.idl b/offapi/org/libreoffice/embindtest/Template.idl new file mode 100644 index 000000000000..73e94a491307 --- /dev/null +++ b/offapi/org/libreoffice/embindtest/Template.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 { + +struct Template { + T2 m1; + long m2; + T1 m3; + T2 m4; +}; + +}; }; }; + +/* 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 index 370363cf9a09..8d46c9e71d5a 100644 --- a/offapi/org/libreoffice/embindtest/XTest.idl +++ b/offapi/org/libreoffice/embindtest/XTest.idl @@ -44,6 +44,8 @@ interface XTest { boolean isStructLong([in] StructLong value); StructString getStructString(); boolean isStructString([in] StructString value); + Template getTemplate(); + boolean isTemplate([in] Template value); any getAnyVoid(); boolean isAnyVoid([in] any value); any getAnyBoolean(); -- cgit