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


Hello Rushi,

On Tue, 2012-12-11 at 04:20 +0530, Rushi Shukla wrote:

This might be a no-brainer but can you please tell me exactly which
list or arrray stores the Custom Styles made by the user under the
'Styles and Formatting' section of Writer ?


.hxx and .cxx files I am studying right now (if this helps in any way)


1) http://opengrok.libreoffice.org/xref/core/sw/inc/docstyle.hxx


2)
http://opengrok.libreoffice.org/xref/core/sw/source/ui/app/docstyle.cxx

There is not such thing as an array with only the Custom Styles. In all
applications the idea is the following one (though Writer stores it a
differently than other):

All styles are stored in a common container. They have are methods on
their classes to determine if they are used, hidden, user defined, etc.

The "Style & Formatting" dialog access those containers using a iterator
on which we apply a Search Mask. This mask is a bit-OR combination of
flags and the one for Custom Styles is SFXSTYLEBIT_USERDEF. Note that
Writer defines some additional mask flags.

I hope this helps you understand that piece of code.

--
Cedric



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.