2071 Commits
Author SHA1 Message Date
Andrea Gelmini 7df83b4f6a Fix typos
Change-Id: If6fa146141e9481039ed533c574fa6301ceefedc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210171
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-08-29 16:29:06 +02:00
Andrea Gelmini b500a67843 Fix typos
Change-Id: If6fa146141e9481039ed533c574fa6301ceefedb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210170
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-29 16:23:54 +02:00
Andrea Gelmini 0eccf36557 Fix typos
Change-Id: Ie3c76e21678deb25c0d811efa11b2da30fc768a0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210168
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-08-29 15:41:56 +02:00
Andrea Gelmini e3630e633b Fix typos
Change-Id: Iac7dbf00495492c6be344c23029bf7dea1dbcf81
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210165
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-29 15:25:53 +02:00
Andrea Gelmini 5e3f6ad746 Fix typos
Change-Id: I47b8f887fac5dfcde9877ec867da36f3d866c21d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210167
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-29 13:38:27 +02:00
Andrea Gelmini abd6c5aa2e Fix typos
Change-Id: Idbec98ec0496de964a6651f95f9cd439ac4721db
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210169
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-28 16:25:42 +02:00
Andrea Gelmini 6aba0cf65f Fix typos
Change-Id: I5177597a64306b169dbc055eaf780eb9306b7303
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210166
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-28 09:09:00 +02:00
Andrea Gelmini 1178fa58a1 Fix typos
Change-Id: I9a4a964c5a4316c140d03b266ad46c504d918e6d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210050
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-08-27 20:33:32 +02:00
Andrea Gelmini 761031c65b Fix typos
Change-Id: Iceedcc9d63857dc6578892bf9ae23d9413d79320
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209903
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-08-25 09:15:09 +02:00
Andrea Gelmini 6152699835 Fix typos
Change-Id: Ic2f0c9f4bb0da72c3fed08cdbbc68ea102c39a38
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209485
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-23 11:27:09 +02:00
Andrea Gelmini 032814823d Fix typos
Change-Id: Ic7db19cb66f15dbac0d7b8b225c2e12cc0aa3957
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209418
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-20 19:07:20 +02:00
Andrea Gelmini 12051c954c Fix typos
Change-Id: I73c907ed17d513e9d07859bbb6bf1f149a0d7828
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209377
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-20 18:54:20 +02:00
Chiggy Wiggy b6d07bbe01 tdf#162563 Convert OfficeBean example from Applet to AWT
As Java applets were removed in Java 26, this patch recovers the
example in a new form, AWT instead of applet.

Change-Id: Ie0595b3a2cad426a956762af797310e9b891a449
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197015
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2026-08-16 19:07:26 +02:00
Hossein ddb95685dd Revert "Remove the Java OfficeBean example from the SDK"
This reverts commit 05ba63c6fc.

Reason for revert: The goal is to re-introduce the example with
AWT/Swing instead of applet in a subsequent patch, while preserving git
history.

Change-Id: I1210eea93149aefb5ad0f57216b2fbdaad9c224f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199755
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2026-08-16 13:14:31 +02:00
Andrea Gelmini 6da6760ed1 Fix typo "then"->"than" + "its" -> "it's"
Change-Id: I824cee5fe1ad6596e99ab0423797cefa29c81139
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202915
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-03-29 09:47:37 +02:00
Daniel Lee f838bd875f tdf#143122 Port the SWriter sdk example to cpp
Change-Id: I6846b31ab98787de8d62ffcff33fa166986cae05
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196251
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2026-02-16 13:00:04 +01:00
Stephan Bergmann 05ba63c6fc Remove the Java OfficeBean example from the SDK
...now that java.applet (which it built upon) has been removed from Java 26

Change-Id: Idae7d231c2bfd249a1cdfa036e5eeacb71bd3050
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198677
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
Tested-by: Jenkins
2026-02-04 16:55:39 +01:00
Xisco Fauli 9635351580 bump copyright year to 2026
Change-Id: If9b398d338f0a99b400b58c0f4d095a9b9ca5e4a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196417
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-01-02 19:28:56 +01:00
Hossein a6b38c4ce7 tdf#165608 Fix .NET examples bound to specific version
Previously, .NET SDK examples were bound specifically to .NET 8 target
version, or "net8.0". Now, the major/minor version of .NET SDK is
extracted from the output of invoking 'dotnet --version' command to
create the project file for .NET SDK examples.

For example:

$ dotnet --version
9.0.123

Then, the target will be 'net9.0', as is expected:

$ echo net$(dotnet --version | cut -d. -f1-2)
net9.0

Change-Id: Ibea3cfa0b9b68394dab6efdf4b5c0c34f7b4e882
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190774
Tested-by: Jenkins
Reviewed-by: Hossein   <hossein@libreoffice.org>
2025-09-10 21:25:22 +02:00
Michael Weghorn e00ddac69b odk: Drop a11y UNO API use from InputEvents example
The UNO a11y API is unpublished and has no stability
guarantuee whatsoever and is not meant to be used by external
users, so don't use it in the InputEvents example.

Change-Id: Ie98dc344b0459946976d881134f6fac9b7e1452a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185847
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2025-05-28 18:03:04 +02:00
Michael Weghorn 24c86762b1 odk examples: Drop unused recursive_acc_ctx
The only uses are commented ever since this
example was added in

    commit 2e52ac48e5
    Date:   Thu Jun 27 00:17:31 2024 +0200

        Added pyuno demo for key and mouse handlers and listeners.

and the UNO a11y API is unpublished, i.e. not meant
to be used in external code.

Change-Id: I39f50cdfca938bd260ee6c558c23e13776583565
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185846
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2025-05-28 18:02:53 +02:00
Manish 4eacc9dc0f tdf#162563 Remove remaining Java applet code and references
Change-Id: Icecb06ee056c3089e931f6fca8f0791ec67ccf8f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183740
Tested-by: Jenkins
Reviewed-by: Hossein   <hossein@libreoffice.org>
2025-04-07 23:36:29 +02:00
Samuel Mehrbrodt 7825e77751 Logo on api.libreoffice.org should link to itself
not to libreoffice.org

Change-Id: Ic6c66312720dc1921693015b6d904f5b12d19f03
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181355
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
2025-02-10 21:40:55 +01:00
Xisco Fauli 4852740395 bump copyright year to 2025
Change-Id: Id2d0597ed86a5f798eec22dde5b954c06442a2a1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179610
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2025-01-02 12:31:22 +01:00
Stephan Bergmann 603e92c7d9 Some PRODUCTNAME parametrization in SDK .html files
(and some places need a lower case LCPRODUCTNAME; plus some more clean up)

Change-Id: I7e97fcbe2e59ef22dffa7c0b47f076446873d09e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176539
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
2024-11-13 15:42:01 +01:00
RMZeroFour b4289da0b4 .NET Bindings: Ported examples for Native bridge
This patch include the following SDK examples ported to .NET
to test the new Native bridge:
- FirstLoadComponent
- HelloTextTableShape
- PathSettings
- PathSubstitution
- TerminationTest
- WriterDemo

The examples include VB.NET and F# as well to test support for
non-C# .NET languages.

Change-Id: I044df4777c7c091241d5b4284f4b6ee6c5de74f7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172778
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2024-09-18 08:11:26 +02:00
RMZeroFour c3c7b48fa9 .NET Bindings: Native bridge for .NET
This patch includes all marshalling and proxy handling code on the
.NET side as well as the native side needed for a fully functional
UNO bridge.

It also includes some changes and corrections to net_basetypes and
netmaker needed for the bridge to work properly.

It also includes the FirstUnoContact example in C# as demonstration.

Change-Id: I406932938a4415d24408fb41ddfa7d8eeb5d1f94
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170916
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2024-09-18 08:10:36 +02:00
Ilmari Lauhakangas 2c3bf9471d odk, oox, pyuno: fix issues found by Ruff linter
Change-Id: I79d56453877a10502768b522ca93da3990891c0b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171098
Tested-by: Jenkins
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-07-27 18:52:48 +02:00
Ilmari Lauhakangas 558b20d1ac comphelper, msicreator, odk: fix issues found by Ruff linter
Change-Id: I5ef65baeb0100b9d70b5c59c1d5f6f43ab951a22
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171092
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-07-27 15:42:26 +02:00
Andrea Gelmini 3a018f568b Fix typo
Change-Id: I4eb00c710a940371b2916ae52127f1ff7f808427
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170501
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
Tested-by: Jenkins
2024-07-19 14:41:40 +02:00
Ilmari Lauhakangas 4058ca814a tdf#158803 related: remove unnecessary comments
Change-Id: I25093100db0473bb907036b4f80e1bbc440cfb8c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170639
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-07-17 19:39:56 +02:00
Hossein abf2f24e5b Add lokconvert odk example
This exmaple converts a file to PDF using LibreOfficeKit library.

Change-Id: Idc4afafc9541986617f0cc4d46cd89e25ae12051
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169998
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2024-07-16 02:00:18 +02:00
Moritz Duge 2e52ac48e5 Added pyuno demo for key and mouse handlers and listeners.
Change-Id: I5b2f70061c5eee7a1068ec110d34ddadc5200bff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169584
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Tested-by: Jenkins
2024-07-15 06:45:00 +02:00
Andrea Gelmini e91404b8b6 Fix typo
Change-Id: I4706e1f5a2de6f1a0e48bd5e297eb904ac66f581
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168458
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
Tested-by: Jenkins
2024-06-05 14:52:40 +02:00
Andrea Gelmini f32848500a Fix typo
Change-Id: Ice2853eb7a14bd614b9bb53ce13667602c6e07eb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168457
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
Tested-by: Jenkins
2024-06-05 14:52:19 +02:00
RMZeroFour 32eaef8ddb tdf#143123 Port Java clipboard examples to Python
This commit ports the Clipboard example from
odk/examples/DevelopersGuide/OfficeDev/ to Python.

The original Java example code was moved to a java/ subdirectory, and
the new Python code was added to the python/ subdirectory. Necessary
changes were made in the corresponding Makefiles.

Along with the sample code in Clipboard.java, the ClipboardListener,
ClipboardOwner and TextTransferable classes were ported.

Change-Id: Ic3a48023cfc78b770ae64adb2aee2b4d0bcefaff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165225
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2024-06-05 01:45:19 +02:00
RMZeroFour 21d7936b32 tdf#143123 Port Java PathSubstitution example to Python
This commit ports the PathSubstitution example in
odk/examples/DevelopersGuide/OfficeDev/ to Python.

The original Java example code was moved to a java/ subdirectory, and
the new Python code was added to the python/ subdirectory. Necessary
changes were made in the corresponding Makefiles.

The example can be run with: ./instdir/program/python \
./odk/examples/DevelopersGuide/OfficeDev/PathSubstitution/\
python/path_substitution_test.py

Change-Id: I6c7a8af86cee2dc9cb5384e42bd9644847f28767
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166264
Reviewed-by: Hossein <hossein@libreoffice.org>
Tested-by: Jenkins
2024-06-04 15:16:38 +02:00
Ilmari Lauhakangas aa4188b8a6 Remove remaining dynamic exception specifications in odk/examples
as begun in

commit ddcc98fa50
Author: Stephan Bergmann <sbergman@redhat.com>
Date:   Wed Jul 22 13:41:12 2020 +0200

    Remove obsolete dynamic exception specifications from SDK example C++ code

Change-Id: I70a799655f7633e255d80e829f12a88a27a3c2f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167289
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2024-05-26 14:31:10 +02:00
Leonard Sasse f97944cca2 tdf#158803 pyflakes F821: undefined name 'com' and remove bare except clauses
Change-Id: Id116753a19a4fa5a29ad9a4f61f5ba3bf1ce95d1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165451
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-05-21 11:43:46 +02:00
Hossein 12447b7c70 Fix odk examples build on 32 bit systems
It is required to cast integer literals to sal_Int32 when passing them
to Any().

Change-Id: I377f88fc3441d8e4bc7afdb2411c1fd140853134
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167739
Tested-by: Jenkins
Reviewed-by: René Engelhard <rene@debian.org>
Tested-by: René Engelhard <rene@debian.org>
2024-05-16 17:14:22 +02:00
Ilmari Lauhakangas 8a73c5725f odk: classes in java.lang package do not need to be fully qualified
Change-Id: Idcc8af34095496aa6e7f516d9b2b975f7e58799f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167555
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-05-13 14:44:47 +02:00
Ilmari Lauhakangas 3d1a96d85d odk/examples: grammar and comment fixes
Change-Id: I86174573d9f59135865496a4f3ee5efb86141ffb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167410
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
2024-05-10 07:17:35 +02:00
Ilmari Lauhakangas 971eb75813 odk/examples: grammar fixes
Also remove outdated comment related to RTL_CONSTASCII_STRINGPARAM
(only the first line was removed in the past)

Change-Id: Iebef1bf83ab049a96c846e714cb700df4dacd878
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167233
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-05-07 07:42:35 +02:00
RMZeroFour c299e54ce2 tdf#143122 Port Java TerminationTest example to C++
This patch ports odk/examples/DevelopersGuide/OfficeDev/TerminationTest
example to C++.

The original Java example code was moved to a java/ subdirectory, and
the new C++ code was added to the cxx/ subdirectory. Necessary changes
were made in the corresponding Makefiles.

Along with the code in TerminationTest.java, the TerminateListener
class was also ported and used in the same C++ file.

Change-Id: I889b8893740bc8f80cdd9aa9925e83cadcea9592
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165916
Tested-by: Jenkins
Tested-by: Hossein <hossein@libreoffice.org>
Reviewed-by: Hossein <hossein@libreoffice.org>
2024-04-30 15:01:19 +02:00
zeph 55b0ddf119 tdf#143123 Port ChartInDraw / ChartInWriter examples to Python
Ported two more SDK examples ChartInDraw and ChartInWriter from Java to
Python.
ChartInCalc and helper classes which contain additional helper methods
were ported in a previous patch.

Change-Id: Idffa0c07282dfc2c0f09ec5a9959f1db34a1d9a5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165088
Tested-by: Jenkins
Tested-by: Hossein <hossein@libreoffice.org>
Reviewed-by: Hossein <hossein@libreoffice.org>
2024-04-19 22:18:25 +02:00
RMZeroFour e64a1dfc36 Fix typo in HelloTextTableShape makefile
The HelloTextTableShape example, which was recently ported to C++,
has a small typo in line #64 of the Makefile. It gives the user the
command to run the example, but it was missing an 'e' at the end.

Change-Id: I29af45f21ff78dbda42e5bd9e25e44f06536f7c3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165915
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2024-04-09 22:21:44 +02:00
Noel Grandin 1e31403bc8 loplugin:unusedenumconstants
Change-Id: I889b4f63e098fecf22ffd4fb98937d62dbdd70b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165791
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-04-04 19:58:35 +02:00
Julien Nabet 94da114cd8 tdf#160180: bump copyright year to 2024
Change-Id: I466b8f86e8a53a238ed2ce2d2b053dc519ff8eed
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164794
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2024-03-13 22:55:18 +01:00
Hossein a2265e8faa Use UNO_QUERY_THROW instead of UNO_QUERY
Previously, in SDK examples, de-referencing was done unconditionally
after obtaining a reference using UNO_QUERY. Now, we use UNO_QUERY_THROW
instead, to make sure cases where exceptions may occure can be handled
correctly.

Change-Id: Ic73ba3cfcad914dabb7ae3736ad1ae2bd6cc15bd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164682
Tested-by: Hossein <hossein@libreoffice.org>
Reviewed-by: Hossein <hossein@libreoffice.org>
2024-03-13 00:57:06 +01:00
Hossein d30891d6ad tdf#143122 Port HelloTextTableShape example to C++
Port DevelopersGuide/FirstSteps/HelloTextTableShape Java SDK example to
C++ and add a GNU Makefile for the build.

Change-Id: I8798406c24ec6c566fb6494f7202f6a2a984a25c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164635
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2024-03-11 00:25:38 +01:00