Custom Styles in Writer

Cedric Bosdonnat cbosdonnat at
Tue Dec 11 00:55:47 PST 2012

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)
> 2)

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.


More information about the LibreOffice mailing list