office-gobmx/editeng
Armin Le Grand (allotropia) ece698a575 ITEM: replaced typeid/hash_code with SfxItemType
for the ItemInstanceManager the identification was done
using typeid/hash_code, but that has problems - it is
only defined to be identical for two instances of the
same type, but other types can have the same code.
Thanks to Noel to find that out, that is not reliable
to be used.
In the meantime we have SfxItemType to identify Item
instances, so I changed the code to use that.
The master had five additionally added Items that
use the (2a) method of this mechanism (see comments
in svl/source/items/globalpool.cxx for that). The
gloal is to use as less as possible of this Items in
that mechanism, so I checked.
For four of these hashing was used, so the mem/runtime
aspect is okay -> access is fast enough to prefer
mem over runtime. Adding hashed Items (or any other
fast mechanism) is always okay.
One did not have that (SvxBoxItem) and used just the
fallback ItemInstanceManager, so I removed it. We
now have 18 Items for which that mechanism is
initialized immediately.
Noel also already moved the countdown for starting
to use the mechanism in case of default handling
(case (1), NUMBER_OF_UNSHARED_INSTANCES) to the
unorderd_set. someting I had already planned to do,
too - thanks!

Change-Id: Icf6f427e5ea64672f385357aaad75bb5b7fcbf98
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170314
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
2024-07-11 11:01:01 +02:00
..
inc editeng: prefix EditLine members, clean-up 2024-04-04 04:06:20 +02:00
qa fix O(n^2) behaviour when fetching field info from EditEngine 2024-06-22 14:00:49 +02:00
source ITEM: replaced typeid/hash_code with SfxItemType 2024-07-11 11:01:01 +02:00
uiconfig/ui
AllLangMoTarget_editeng.mk
CppunitTest_editeng_borderline.mk
CppunitTest_editeng_core.mk editeng: add EditLineList test 2024-01-16 13:02:27 +01:00
CppunitTest_editeng_editeng.mk tdf#161652 editeng, RTF copy: only write used paragraph styles 2024-06-20 10:56:44 +02:00
CppunitTest_editeng_lookuptree.mk
CustomTarget_generated.mk makefile simplification: replace $(call gb_CustomTarget_get_workdir,foo) 2024-05-03 16:06:14 +02:00
IwyuFilter_editeng.yaml Recheck modules [e-f]* with IWYU 2022-01-17 01:33:35 +01:00
Library_editeng.mk editeng: move impl. of TextPortionList methods to own cxx file 2024-01-01 04:34:06 +01:00
Makefile
Module_editeng.mk tdf#161652 editeng, RTF copy: only write used paragraph styles 2024-06-20 10:56:44 +02:00
README.md
UIConfig_editeng.mk

Edit Engine

In OpenOffice.org build DEV300m72 this module was split off from svx but it has no dependencies on svx (nor on sfx2) while in turn svx depends on editeng

Read more in the mailing list post: http://www.mail-archive.com/dev@openoffice.org/msg13237.html

If you build LibreOffice with dbgutil, you have some extended debug keys:

  • Ctrl+Alt+F1 - draws the paragraph rectangles in different colors
  • Ctrl+Alt+F11 - toggles dumping the edit engine state to the "editenginedump.log" on draw
  • Ctrl+Alt+F12 - dumps the current edit engine state to "editenginedump.log"