summaryrefslogtreecommitdiff
path: root/odk
AgeCommit message (Collapse)Author
2023-11-06Make CustomTarget_odk/build-examples_java more robust against localized envsStephan Bergmann
At least on Linux, with a --with-lang=ALL build, `LANGUAGE=de make CustomTarget_odk/build-examples_java' would fail, as it would ask for license agreement in German rather than English (presumably because the code in getUILangFromEnvironment, i18nlangtag/source/isolang/inunx.cxx, inspects the LANGUAGE env var fist thing), so would expect a "ja" rather than the "yes" we feed into stdin. Change-Id: If285e4458e0706102a62f4e0094e5144575ccf7b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158998 Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-11-04Fix typoAndrea Gelmini
Change-Id: I064aa3c54650904671a312eadbe8e77b26ae141a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158913 Tested-by: Jenkins Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2023-11-03Fix typoAndrea Gelmini
Change-Id: Ida31b30c64c8ba2be61e6f4a408e1346df48d1b3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158875 Tested-by: Jenkins Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2023-11-02'new Double' is deprecated in JavaNoel Grandin
replace with Double.valueOf Change-Id: If5be8e500e31ebf9d5fb20ea7dd474677d7c74ff Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158785 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-11-02'new Float' is deprecated in JavaNoel Grandin
replace with Float.valueOf Change-Id: Ib6408b24dac2953789d0ec67e73b8be8aefca252 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158784 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-10-27Explicitly build the ODK examples against C++03Stephan Bergmann
...similarly to how CppunitTest_odk_checkapi already builds with C++03 to detect inadvertent uses of newer features in code that is meant to be still compatible with C++03. And fix any uses of newer features that had already crept in. Change-Id: I9fb4013099c1dff2c1ad5fba8fc93d9aa4efbde8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158523 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-10-04remove obsolete -single_module linker flag (is the default)Christian Lohmaier
has already been unnecessary since over 15 years/was the default since OS X 10.4 (2005) along with ignoring the corresponding altenative (-multi_module) switch, from man ld: -single_module This is now the default so does not need to be specified. -multi_module Multi-modules in dynamic libraries have been ignored at runtime since Mac OS X 10.4.0. This option is obsolete. Xcode 15 now warns about it being obsolete, so remove it. Change-Id: I4d4aab452a330c3c4ec97da4232c3af6350c0ff4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157407 Tested-by: Jenkins Reviewed-by: Patrick Luby <plubius@neooffice.org> Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2023-09-25tdf#146150 Use dispatch cmd for the corresponding SIDapurvapriyadarshi
Change-Id: I0d987a8b10f2c69192d080b534a1d6aa71a6cf4d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157105 Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2023-09-16tdf#157273 Port DevelopersGuide/FirstSteps examples to BASICHossein
These 3 examples from the chapter 1 of the DevGuide are ported to BASIC: 1) FirstUnoContact 2) FirstLoadComponent 3) HelloTextTableShape More details can be found in the LibreOffice DevGuide: LibreOffice Developer's Guide: Chapter 1 - First Steps https://wiki.documentfoundation.org/Documentation/DevGuide/First_Steps Change-Id: I577ad81d76cec06102f00b2646b004caa5f7b401 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156976 Tested-by: Jenkins Reviewed-by: Hossein <hossein@libreoffice.org>
2023-09-09Rename .cpp examples to .cxxHossein
The files are renamed, and the associated lines in Makefiles and elsewhere are also changed. Change-Id: Ieec38055690e03afd8982320ee0836904a3f41eb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156670 Tested-by: Jenkins Reviewed-by: Hossein <hossein@libreoffice.org>
2023-09-08tdf#143123 Port DevelopersGuide/FirstSteps/FirstLoadComponent to PythonHossein
Porting FirstSteps/FirstLoadComponent.java to Python is done. More information on this example can be found on LibreOffice DevGuide: LibreOffice Developer's Guide: Chapter 1 - First Steps - First Contact https://wiki.documentfoundation.org/Documentation/DevGuide/First_Steps This is the last of the 3 examples in the first chapter which are ported to Python. Change-Id: Iac0682943d4286168bbdadf792423670f41bdee6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156686 Tested-by: Hossein <hossein@libreoffice.org> Reviewed-by: Hossein <hossein@libreoffice.org>
2023-09-07Simplify condition in a loop over a single elementHossein
The loop was over an array which has only one element, so the condition should also work directly with its only element. Change-Id: I5b87cf03d90e9da67ac3ff72b593be0ff5fa322c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129677 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-06-29Point to LO DevGuide instead of OOoSamuel Mehrbrodt
Change-Id: Ib8ac0a69491f4cab3fbb1b4ba7ab29e55d3c8350 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153774 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
2023-04-25Add script to find unused using declarationsGabor Kelemen
As a complementer to clang-tidy-12 --checks="-*,misc-unused-using-decls" Pros: - simple, fast! - finds some more unused declarations, somehow - works on non-linux specific parts of the code - clang-tidy (for me) trips on files with external headers, this does not Change-Id: If2db989114ac5c2841ed2e89ff7bd7a9e419f567 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150612 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2023-04-18tdf#143123 Port DevelopersGuide/FirstSteps/HelloTextTableShape to PythonChenxiong Qi
Signed-off-by: Chenxiong Qi <qcxhome@gmail.com> Change-Id: Ifb5639369c4af1db27ccb5a93dfad093ce7403b1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146819 Tested-by: Jenkins Reviewed-by: Hossein <hossein@libreoffice.org>
2023-04-11allow native compile for windows aarch64Christian Lohmaier
using both --host=aarch64-pc-cygwin and --build=aarch64-pc-cygwin on a suitable system. Change-Id: Id11e25b03de8dd8dd52c63e7a06d57d44e3fce33 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150053 Tested-by: Jenkins Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2023-02-17Quote some Windows shell settingsStephan Bergmann
...or else, at least with the Windows 11 cmd.exe, when setsdkenv_windows.bat has already been run before (and generated the %APPDATA%\libreofficeX.Y_sdk\setsdkenv_windows.bat script), and is run again (and thus reads that generated script), it failed with something like "\Microsoft was unexpected at this time." Change-Id: I1bfaf375e52a3ee2debe48a7dd736808790346ca Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147217 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-02-17Remove remaining STL_INCLUDESStephan Bergmann
...that 1628005298923ad15cc78dbad63669b701f5fd04 "Trying to remove the stlport mention from the code" didn't catch Change-Id: I271d7760d2b2dd25c0fa27489a8ddf455963d970 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147213 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-01-27Remove support for AIXStephan Bergmann
As discussed in the mailing list thread starting at <https://lists.freedesktop.org/archives/libreoffice/2023-January/089808.html> "Plan to remove dead C++ UNO bridge implementations (bridges/source/cpp_uno/*)", the bridge implementation at bridges/source/cpp_uno/gcc3_aix_powerpc is apparently dead and should thus be removed. However, that was the only bridge implementation for AIX, which implies that support for the AIX platform as a whole is dead and should thus be removed. Change-Id: I96de3f7f97d4fd770ff78256f0ea435383688be9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146057 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-01-19tdf#143123 Port some Spreadsheet Java examples to PythonChenxiong Qi
Some examples inside odk/examples/java/Spreadsheet are ported to Python: ChartTypeChange.java -> ChartTypeChange.py EuroAdaption.java -> EuroAdaption.py SCalc.java -> SCalc.py Code format is checked with 'pycodestyle': pycodestyle --ignore=E501,E722 odk/examples/python/Spreadsheet/*.py Signed-off-by: Chenxiong Qi <qcxhome@gmail.com> Change-Id: If0631b5970faab6499cfea3eef559e003fad24d5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143810 Tested-by: Jenkins Reviewed-by: Hossein <hossein@libreoffice.org>
2023-01-18Fix typoAndrea Gelmini
Change-Id: Ifc9748fc33c72ad6e0cb334ca22ebb8b488164c9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145710 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2023-01-01Bump copyright year to 2023Adolfo Jayme Barrientos
Change-Id: I699112a3e554013bab75b82d1eae00098216c886 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144893 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2022-12-13bump minimum make version to 4.0 (for $(file …) function)Christian Lohmaier
This already was a requirement for Windows for a few years now, and make 4.0 was released nearly 9 years ago, and it has been used in LO's build system since it has been added 11 years ago while it was only available in prerelease versions of make, providing an alternative workaround for systems that didn't have make built from cvs… I guess it is finally time to get rid of those workarounds and just require make 4.0 for everyone. NOTE: reading files with the $(file …) function was only added with version 4.2 of GNU make, and just using it without contents was added in 4.1, so those usages aren't supported Change-Id: Ia1c2c86cfdbbd81f349bb9f7188299e16bdd155f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143910 Tested-by: Jenkins Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2022-12-03tdf#143123 Port Text Java examples to PythonChenxiong Qi
The examples inside odk/examples/java/Text are ported to Python: BookmarkInsertion.java -> BookmarkInsertion.py GraphicsInserter.java -> GraphicsInserter.py HardFormatting.java -> HardFormatting.py StyleCreation.java -> StyleCreation.py SWriter.java -> SWriter.py StyleInitialization.java -> StyleInitialization.py TextDocumentStructure.java -> TextDocumentStructure.py TextReplace.java -> TextReplace.py WriterSelector.java -> WriterSelector.py Code format is checked with 'pycodestyle': pycodestyle --ignore=E501,E722 odk/examples/python/Text/*.py Some Java methods are merged when ported to Python. Signed-off-by: Chenxiong Qi <qcxhome@gmail.com> Change-Id: Ic903cfa24ef32f8edaafd7e6e2e0c757b4b1be0a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141425 Tested-by: Hossein <hossein@libreoffice.org> Reviewed-by: Hossein <hossein@libreoffice.org>
2022-10-23Avoid nesting using 'else conditional-directive'Mike Kaganski
See https://www.gnu.org/software/make/manual/make.html#Conditional-Syntax Change-Id: Iddd4ee2d42c83e6d661ef7d91c93a06caf307001 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141708 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-10-13tdf#143123 port DocumentHandling examples to PythonChenxiong Qi
This port keeps the similarity with Java ones as much as possible. examples.html is also updated by adding the Python examples. Signed-off-by: Chenxiong Qi <qcxhome@gmail.com> Change-Id: I2af26aaf42f5408bf254a4e0507442200f843661 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139887 Tested-by: Jenkins Reviewed-by: Hossein <hossein@libreoffice.org>
2022-09-15cid#1500416 Resource leakCaolán McNamara
Change-Id: I090e10604562665cf22aa98758e81dd398f4f9c5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139997 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-09-08replace egrep/fgrep calls with grep -E/grep -FRene Engelhard
as egrep/fgrep is deprecated since long amd grep 3.8+ now actually warns (e.g. "egrep: warning: egrep is obsolescent; using grep -E") Change-Id: I5b10f05dffdd09081deb05cef974e3cdb2907315 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139614 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2022-08-18cid#1500586 Resource leakCaolán McNamara
Change-Id: I32d837af7574f6eb4ac7db4759139d0b78f63e75 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138479 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-14Fix typoAndrea Gelmini
Change-Id: I9a973141bdefca22dc24ecfaba58803dfc256e15 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138239 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Jenkins
2022-07-14Drop poor @attention paragraphStephan Bergmann
For one, Javadoc (unlike Doxygen) doesn't support @attention, so this caused a > Generating workdir/CustomTarget/odk/docs/java/ref/help-doc.html... > Note: Custom tags that could override future standard tags: @attention. To avoid potential overrides, use at least one period character (.) in custom tag names. > Note: Custom tags that were not seen: @attention warning during the build. And for another, that paragraph was phrased in poor, broken English and didn't add much value anyway. Change-Id: I603170ec262d042e92bdff38ae415dda0bcc28bb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137053 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-06-13Drop obsolete preprocessor directives from UNOIDL filesStephan Bergmann
...which were used by ildc, which is gone since a8485d558fab53291e2530fd9a1be581c1628deb "[API CHANGE] Remove deprecated idlc and regmerge from the SDK", and have always been ignored as legacy by its unoidl-write replacement. This change has been carried out (making use of GNU sed extensions) with > for i in $(git ls-files \*.idl); do sed -i -z -E -e 's/\n\n((#[^\n]*\n)+\n)*(#[^\n]*\n)+\n?/\n\n/g' -e 's/\n(#[^\n]*\n)+/\n/g' "$i"; done && git checkout extensions/source/activex/so_activex.idl odk/examples/OLE/activex/so_activex.idl which apparently happened to do the work. (The final two files are not UNOIDL source files.) Change-Id: Ic9369e05d46e8f7e8a304ab01740b171b92335cd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135683 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-06-10[API CHANGE] Remove deprecated idlc and regmerge from the SDKStephan Bergmann
* Client code must replace uses of idlc and regmerge with uses of unoidl-write, see the changes to odk/examples/ and ure/source/uretext/ in 40f2aee6584eafcf4cd1d95fcf1f775e5435440d "Provide unoidl-write also for the SDK" for examples. * The new types.rdb format is not compatible with LibreOffice < 4.1. Clients generating extensions containing such files are advised to use appropriate LibreOffice-minimal-version elements. * For compatibility with old extensions, reading the legacy types.rdb format is still supported. * The SDK no longer ships an idl/ sub-directory containing the udkap and offapi .idl files (as, unlike idlc, unoidl-write does not need them). odk/config/cfgWin.js had to be adapted to look (somewhat arbitrarily) for an examples/ sub-directory instead of idl/ when checking for "an sdk folder". gb_UnoApi_package_idlfiles became unused and has been removed. * The idlc and regmerge executables have been removed. Module idlc has been removed except for idlc/test/parser/, which is also used by CustomTarget_unoidl/unoidl-write_test, and which may eventually be moved into module unoidl. Module external/ucpp and the corresponding configure options have also been removed. Change-Id: I42a0231699b863b5ebe2bee63bc32c8f79278cc1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122363 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-05-25Add Makefile for the FirstUnoContact C++ SDK exampleHossein
Add Makefile for the DevelopersGuide/FirstUnoContact C++ SDK example. The example now can be built using the same process for other C++ exmaples. The DevelopersGuide examples will be categorized into several directories, according to the language: basic cxx java python This requires that all examples ported to each of these languages. Change-Id: I95c5c324fef66664836b5e07bf34c98117e6b478 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134596 Tested-by: Jenkins Reviewed-by: Hossein <hossein@libreoffice.org>
2022-04-20tdf#143122 - Port Java examples to C++Hossein
Porting FirstSteps/FirstUnoContact.java to C++ is done. More information on this example can be found in the DevGuide: LibreOffice Developer's Guide: Chapter 1 - First Steps - First Contact https://wiki.documentfoundation.org/Documentation/DevGuide/First_Steps Change-Id: I84b0a60738bfe614158d7eabf8bff3cda1ccca50 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132910 Tested-by: Jenkins Reviewed-by: Hossein <hossein@libreoffice.org>
2022-04-20tdf#143123 - Port Java examples to PythonHossein
Porting FirstSteps/FirstUnoContact.java to Python is done. More information on this example can be found in the DevGuide: LibreOffice Developer's Guide: Chapter 1 - First Steps - First Contact https://wiki.documentfoundation.org/Documentation/DevGuide/First_Steps Change-Id: I8a97672a0b437177f19ddce029e6ef27e97533ec Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132914 Tested-by: Jenkins Reviewed-by: Hossein <hossein@libreoffice.org>
2022-04-12odk: update DevGuide wiki links and correct history in footerIlmari Lauhakangas
Change-Id: I95c78d1346d354b755aeecaa1e6c9d789be0b693 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132905 Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2022-04-12Fix unoidl-read invocationStephan Bergmann
...that had inadvertently been missing from bb64cd2884beb03a2d578ada10abdb3e0df22778 "Add unoidl-read to the SDK" Change-Id: I4003e1dede9c8d6caf036534f4c3d0e59a24da14 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132903 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-04-11-Werror,-Wstrict-prototypes (clang-cl)Stephan Bergmann
Change-Id: I72e35f51eb607662608ccaf944bec64ed422cef4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132835 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-04-11Add unoidl-read to the SDKStephan Bergmann
...as a replacement for the legacy regview Change-Id: I1e1eecb45f27422727f28feb19c2479af867bd79 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132816 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-04-11unoidl-check does not need to be part of installation setsStephan Bergmann
...it is a build-time tool used from solenv/gbuild/UnoApiTarget.mk, and should be of no value for users of LO (or of the SDK). It was presumably a historic mistake that its predecessor regcompare was included in installation sets in the first place. (The only mention of it in the Developers' Guide, which only acknowledged its existence without giving any details how to use it, has been removed in <https://wiki.documentfoundation.org/index.php?title=Documentation/DevGuide/Writing_UNO_Components&oldid=492551> "Drop mention of build-time tool unoidl-check that should not be part of any installation sets".) Change-Id: I626e22fa18ad900af150afe29a36aa1ceaf5e259 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132814 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-04-11Drop duplicate regmerge/regview itemsStephan Bergmann
...that had been added with 26db47abd059a1482bd03df937314f4645c38ece "CWS-TOOLING: integrate CWS jsc312", probably due to a mis-merge. (The first occurrences had been updated over time, and the second ones not, but lets keep the second ones, properly updated, as that matches the order in which the tools' full descriptions appear further down below.) Change-Id: I725105e926a5761c210c5901e00179ea9a1b6b5e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132812 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-04-11Remove unmotivated horizontal separatorStephan Bergmann
...that had been added with 00bb4bff5cc42f702cb587b47bbdb92b226791ce "INTEGRATION: CWS sdksample", for unclear reasons Change-Id: I2931ecb6f1876d7e99b4706b1fd39f9b8761c68e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132807 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-04-11odk: update DevGuide wiki links after import into TDF wikiIlmari Lauhakangas
Change-Id: I5a698250db7e822f8d95ff43d87705df05f91c47 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132784 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2022-04-09Introduce `unoidl-read --summary` modeStephan Bergmann
...as needed by odk/docs/idl/wikilinks.py Change-Id: I6dd096338e9f200679810d33e89c8b9ce18f69f4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132752 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-04-06Remove duplicate DevGuide example FirstConnectionHossein
While cleaning up "LibreOffice DevGuide: Chapter 1 - First Steps" in the TDF Wiki, I understood that only 3 examples were compiled via the Makefile, but there were 4 java files. It turned out that the FirstUnoContact.java and FirstConnection.java are essentially the same. I removed the second one, as it was not built, and was not referenced elsewhere. Change-Id: I7df5dd9dfc3aae15de4484b4a3dd6272066a8683 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132457 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Reviewed-by: Hossein <hossein@libreoffice.org>
2022-03-13Fix typosAndrea Gelmini
Change-Id: I9f583937da2cf49fc9013d9e36d63fff312ccb92 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131495 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Jenkins
2022-02-25Provide unoidl-write also for the SDKStephan Bergmann
...after the new types.rdb format that unoidl-write generates has been used internally since LibreOffice 4.1 in 2013; following up on 6db34b6b33ba8e3b13683efd05df8441b87e9c92 "Directly build UNOIDL .rdb files from .idl files" and its "The legacy tools idlc, regcompare, regmerge, and regview are still contained in the URE or SDK for now." The tools idlc and regmerge are deprecated but still shipped in the SDK for now. The plan is to drop them completely for LO 7.5. odk/examples/ and ure/source/uretest/ are adapted to use unoidl-write instead of idlc and regmerge: * unoidl-write does not use a C preprocessor and the # directives in .idl files, it supports reading a single .idl file (containing an arbitrary number of declarations) or a directory tree where each directory corresponds to a UNOIDL module of the same name and each .idl file contains the declaration of the (non-module) UNOIDL entity of the same name. For some of the odk/examples/, that required moving individual .idl files into sub-directories named after the respective modules. In odk/settings/std.mk, definitinos of IDL and REGMERGE have been replaced with a new UNOIDLWRITE. * unoidl-write always enforces reserved UNOIDL identifier restrictions (see 04af4e4f55f3ef319a78edd4d0109e2e7eba90b6 "[API CHANGE] Fix all bad UNOIDL identifiers across offapi" and 620179240670bd00f60555f1f5c5b0268492f97c "Enforce the UNOIDL identifier scheme") (which idlc only enforced optionally with -cid -we). That required renaming "my_module" in odk/examples/DevelopersGuide/Components/CppComponent/. * The new types.rdb format is not compatibly with LibreOffice < 4.1. Clients generating extensions containing such files are advised to use appropriate LibreOffice-minimal-version elements. Change-Id: I1a248fd96e86ecbf407f829bc100d44bfe7f4e7d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130533 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-02-15tdf#145759 Using M_PI from cmath instead of magic constants.pragat-pandya
Replace the instances of Pi's value as magic number by M_PI Use M_PI_2 and 2_M_PI instead of calculating these values in code. Use basegfx functions to convert angle units. Change-Id: I6cca7cc93704a70ccf3a0571a56a789bc9df51ef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129479 Reviewed-by: Arkadiy Illarionov <qarkai@gmail.com> Reviewed-by: Hossein <hossein@libreoffice.org> Tested-by: Jenkins
2022-02-09Fix typosAndrea Gelmini
Change-Id: I82405059d900b6605075bf5756f3f0fb99e9002e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129451 Tested-by: Julien Nabet <serval2412@yahoo.fr> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>