Files
odfstudio/include/svl
Julien Nabet e808025d6f tdf#146404: Fix number Format Code when reopen ods/fods
As Eike indicated in https://bugs.documentfoundation.org/show_bug.cgi?id=146404#c4
COLOR format codes are preserved in ods/fods format.
The pb was the missing map back.
Indeed, we had the mapping for [COLOR<something>] => Color value (eg: "ffaa16")
but not the reverse mapping Color value => [COLOR<something>]

Eike had provided the right code pointer in xmlnumfi.cxx.
First, I thought using PaletteManager but this one is in svx and svx shouldn't be used in xmloff
(dependency pb).
Then I used ChatGpt (GPT-5.6 Luna) and it pointed the right process.
It just consisted to use a similar callback system (DECL_LINK, IMPL_LINK, LINK) of GetUserDefinedColor.

In addition, by testing all this, I noticed that maList in XColorList::GetIndexOfColor was empty.
So I added the Load call in case mbListDirty is true.

Change-Id: I0ef6b5901f2e4c757e88994412dbf79a13100ffd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210518
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-09-07 10:17:29 +02:00
..
2025-12-01 18:27:09 +01:00
2026-05-22 09:32:38 +02:00
2026-08-27 20:39:06 +02:00
2025-01-10 19:38:37 +01:00
2025-07-29 10:45:11 +02:00
2026-02-21 12:38:26 +01:00
2026-04-30 08:54:45 +02:00
2026-02-07 21:25:40 +01:00
2026-04-20 17:18:28 +02:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2026-03-24 14:07:52 +01:00
2025-04-15 08:10:37 +02:00
2026-08-29 16:20:13 +02:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-07-29 10:45:11 +02:00
2025-01-10 19:38:37 +01:00
…
…
2026-06-29 10:16:53 +02:00
2026-03-04 19:22:19 +01:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00