Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi, Cedric,

  - How does the system store attributes? (SwFmt, SwAttrSet,
SwAttrStack)

You got the proper classes. If you need some help to debug the
SfxItemSet, you can have a look at my old gdbinit here (function
dump_psfxitemset):


http://cgit.freedesktop.org/libreoffice/build/plain/scratch/writer/gdbinit-cbosdo?h=libreoffice-3-4


Thanks, It will helpful.


  - How does layout frame work? How does frame hierarchy look like?
How to calculate the border properties of the current frame?
(SwBorderAttr)

Do you know this wiki page explaining quite a lot of things?
http://wiki.openoffice.org/wiki/Writer/Core_And_Layout


Yes, I got it. But at first I follow the trace of the existent character
attributes like background and overlining and that's how I got to fonts.
But the time comes to learn more about layout.


Characters are at a lower level as these are SwLinePortions. You can
also debug that by exporting SW_DEBUG=t, open a sample document, and
press F12: that will dump a layout.xml in $PWD. This layout.xml will
show you quite a lot of informations on the layout structure. (Shift+F12
will do the same with a nodes.xml showing the model structure).


Oh, it is nice. I will try it.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.