yunjingtao schrieb:
> hi, Daniel
> can you explain these 
> SFX_STYLE_FAMILY_CHAR
> SFX_STYLE_FAMILY_PARA
> SFX_STYLE_FAMILY_FRAME
> SFX_STYLE_FAMILY_PAGE
> to me?

Open a Writer document and the Stylist (Format->Styles or key F11). On
top you see different buttons for different types of styles for
paragraphs (SFX_STYLE_FAMILY_PARA), characters (SFX_STYLE_FAMILY_CHAR),
pages (SFX_STYLE_FAMILY_PAGE), or text frames (SFX_STYLE_FAMILY_FRAME).

Now open a Calc document and the Stylist. You see that Calc uses page
styles (SFX_STYLE_FAMILY_PAGE) and cell styles (SFX_STYLE_FAMILY_PARA) only.

In Calc, all styles are ScStyleSheet objects (sc/inc/stlsheet.hxx)
derived from SfxStyleSheet (svtools/inc/style.hxx). The SfxStyleSheet
class is able to store the style family.

> should I disable the Delete contex menu item appeared 
> after having remove the protection ?

Yes, try to find the place where the context menu item is disabled
(there should be some code that checks whether the style is built-in).
Then, when protection is disabled, something similar has to be done.




Daniel

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to