30 Commits
Author SHA1 Message Date
Manish Bera f38bf2917b Add unit tests for cppumaker
Change-Id: I4f53f7ee2d7f5147d09e0ff3bbde9f48f10ff85a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203324
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2026-10-04 13:32:46 +02:00
Manish Bera 6f61236fd9 Add drop cap paint tests
Change-Id: Ifc1647aa684a89558646cfb536a046ff9b37131b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209132
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
Tested-by: Jenkins
2026-08-21 14:35:27 +02:00
Manish Bera 8514cd02d7 Fix the windows build issue of double line bracket test
The test checked the "symbol" attribute for an exact match against
"19SwDoubleLinePortion". This string comes from typeid().name(),
which looks different depending on the compiler. GCC/Clang add a
number prefix like "19...", but MSVC (Windows) writes it differently,
like "class SwDoubleLinePortion". So the exact match never worked on
Windows, and the test failed.

Fixed it by checking if the symbol just contains "SwDoubleLinePortion"
instead of matching it exactly. This works no matter which compiler
is used.

Change-Id: Id4ebf1e38b684746a12e93daf80faeb4eda49d26
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208901
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
2026-08-21 13:08:05 +02:00
Manish Bera 18f6582e77 add text attributes tests for itrform2.cxx
Change-Id: If3e756034e6a27ba7b2ef9db7dbb3e732765661d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207479
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
2026-08-17 20:30:48 +02:00
Manish Bera 41919bf34f Add tests for txtfrm and txtftn
Change-Id: I48918499beb07f77cbbf09ae64b15f04c9a16f90
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209044
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
2026-08-10 13:56:19 +02:00
Manish Bera 20683a7b3f Add tests for txtdrop.cxx
Change-Id: If1eef763545c13271d62b65d319b131708715eed
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208876
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
Tested-by: Jenkins
2026-08-07 14:20:18 +02:00
Manish Bera a8fbd9095a Combine thaijustify refpagegetfield and testinputfieldname test
Change-Id: If23ba03c568068a591fb8332ca86dd8318c33a2d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209023
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
Tested-by: Jenkins
2026-08-06 15:42:23 +02:00
Manish Bera 07b6a0de80 Add tests for itradj.cxx
Change-Id: I22d8a7dd5bb2213b553e8273de991a38b98caf59
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208875
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
2026-07-31 23:48:23 +02:00
Manish Bera 8bceff6150 Add multiple tests for pormulti
Change-Id: Id090344a109cbec78b035aec6fc84d2f42b36f17
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208638
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
2026-07-28 23:32:30 +02:00
Manish Bera ef1b9a73b9 Add combine portion tests
Change-Id: Ice254d89330890f4d869f1603761de527a33a4b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208254
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
Tested-by: Jenkins
2026-07-22 22:29:55 +02:00
Manish Bera 7425be5516 Add tests for itratr and itradj.cxx
Change-Id: Ieca519fe871bfba57f2e3ee594b133edbc42ec5d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208012
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
2026-07-13 13:45:48 +02:00
Manish Bera b56f8a9d96 add double line bracket tests for pormulti.cxx
Change-Id: I865f8790368dfa71cfc5740821df2016cb2687f9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207361
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
Tested-by: Jenkins
2026-06-29 12:11:42 +02:00
Manish Bera f1f22a8ed0 add tests for the different length capitalization conversion and hidden texts
Change-Id: I595bcd19858206a8306210f94052a0e0b2079e47
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206195
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
2026-06-23 20:58:39 +02:00
Manish Bera 66b6662ded sw: add layout tests for drop caps
Change-Id: I3bfb6de4786466110e2cf60f78556862c0865706
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205858
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
2026-06-02 20:17:18 +02:00
Manish Bera 87c68c17af tdf#50050 Make LE component character style match LS
Change-Id: I5a89e26f16d9332375e3a381cc0222a3f271d44d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181214
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-03-10 09:17:02 +01:00
Manish Bera 02f3d7e950 Unittests for pythonmaker
This patch adds the unit and integration test suite for the pythonmaker
tool.

The test is orchestrated by a Python script and uses a "golden file"
comparison method. It runs `pythonmaker` on a comprehensive test IDL
and verifies that the generated `.pyi` output exactly matches a set of
pre-validated reference stubs.

The test is integrated into the build system and runs with 'make check'.

Change-Id: If91814767779812740c543476307600f61c8a656
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188456
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2026-01-02 17:59:12 +01:00
Manish Bera 71b7dbfe36 change the line endings of codemaker/Executable_pythonmaker
Change-Id: I6255366e60c68a3d37a0f3528143009b93b13b03
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194049
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2025-11-15 08:56:35 +01:00
Manish Bera 2bdf17ee6e Add initial scaffolding for pythonmaker
This commit introduces the 'pythonmaker' executable, a new tool in the
codemaker module.

pythonmaker generates Python type stub files (.pyi) from UNO IDL type
libraries (.rdb files). This enables static type checking and modern
IDE features like auto-completion for developers writing Python scripts for LibreOffice.

This commit includes the complete, feature-complete tool capable of handling all major IDL entity types (enums, constants, typedefs,
structs, exceptions, interfaces, services, and singletons).

Change-Id: I52f783aa982e1de04a207a9a884aee207f99d193
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185498
Tested-by: Jenkins
Tested-by: Hossein   <hossein@libreoffice.org>
Reviewed-by: Hossein   <hossein@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-28 15:21:01 +02:00
Manish Bera 867d380b0b tdf#161168 Improve constant repetitive loop thread
Change-Id: I01cebb1bb085c3b390c3ced48c431e8f5dc6bcbd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181005
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2025-02-06 10:12:20 +01:00
Manish Bera d8f405ccf6 tdf#147132 Flatten Basic function implementations
Change-Id: I3a9fe3c74b869195ffa9b34f180e8e58c841d9ce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180312
Tested-by: Jenkins
Reviewed-by: Hossein   <hossein@libreoffice.org>
2025-02-03 12:49:54 +01:00
Manish Bera 663f46379e tdf#130924 use SAL_INFO/WARN instead of f/printf
Change-Id: I43ce33f470153e9f8c69851d44d3ba05faaad8ff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179487
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2025-02-02 17:23:47 +01:00
Manish Bera 10b0ab7ba8 tdf#146619 Remove unused #includes from C/C++ files
Change-Id: Ic6a6f9a8462a128ab8f61dfa6dbbecb8c707e57f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179595
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
2025-01-02 11:49:10 +01:00
Manish Bera 7d1d111c36 tdf#140226: use StaticWhichCast
Change-Id: I461471e5b2e9cd3d94896d9ba6ac315f7237bec6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179510
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
2025-01-01 10:30:00 +01:00
Manish Bera 117d31400c tdf#162563 Remove Java applet code and references from embeddedobj
Change-Id: If3e7ab1cb45c988f3f39fc2f73377c77dc9972f4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178873
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-12-26 12:14:07 +01:00
Manish e016a9d8ac tdf#114441 change the sal_uLong to sal_uInt8 in msdffimp
Change-Id: I22dacda7966d0f680006f0e589bd6d95b5a6f4fb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178436
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-12-18 09:59:30 +01:00
Manish 5347fc1874 use insert function instead of for loop
Change-Id: Iee9dd7faee476642a19349f68191904207be3c3c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178395
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-12-14 19:04:35 +01:00
Manish 28c526bc88 tdf#163738 use insert function instead of for loop
Change-Id: I8e2d361459ed0db3bea28a0df9550d298145110b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178158
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
2024-12-10 11:36:58 +01:00
Manish 8f7294223a tdf#145538: Use range based for loops
Change-Id: I8b41b96775fdd26464122e47ec853b48bdd921d3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178150
Reviewed-by: Skyler Grey <skyler.grey@collabora.com>
Tested-by: Jenkins
2024-12-09 19:34:58 +01:00
Manish 6c0b18e06a tdf#158237 Use C++20 contains() instead of find() and end()
Change-Id: I8b71f1af2841846bfbdc7a1f63e7014f338bf41d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177543
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
2024-11-29 20:50:57 +01:00
Manish c73e52d295 tdf#143148: Replace include guards with #pragma once in XpmReader.hxx
Change-Id: I2708f103cb9e63294cd2ee056dc490c734285a31
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177487
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-11-28 20:58:22 +01:00