There are many Java examples for LibreOffice SDK that are listed here: https://api.libreoffice.org/examples/examples.html#Java_examples On the other hand, there are few C++ examples. Port Java examples to C++. All the examples are listed here: https://git.libreoffice.org/core/+/HEAD/odk/examples/
Hossein committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/a40558be785756929f606ab0798a026b985e0ffb tdf#143122 - Port Java examples to C++ It will be available in 7.4.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Re-evaluating the EasyHack in 2022 This EasyHack is still relevant. There are many SDK examples that can be ported to C++, and can be also added to the DevGuide: LibreOffice Developer's Guide https://wiki.documentfoundation.org/Documentation/DevGuide
Hossein committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/ae61f6aa2b5f6156f61c4fd2cceb5b1206450c48 tdf#143122 Port FirstLoadComponent example to C++ It will be available in 24.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Hossein committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/d30891d6ad5473708aaba7b31aa87de29ae57fe6 tdf#143122 Port HelloTextTableShape example to C++ It will be available in 24.8.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
RMZeroFour committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/c299e54ce2edf2b8b3b21754ed9fd16cdf6167b3 tdf#143122 Port Java TerminationTest example to C++ It will be available in 24.8.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.