Hi,
zhaosheng wrote:
> hi, guys:
> I am trying to change the right gray margin of a pag for some reason, and I 
> just got confused about how it works.
> I checked the page dialogue box, and if I input a new value in the textedit 
> for right margin, after I click ok button, it seems that 
> it calls SetRight(long) function and let the sfxItemSet to calls its method 
> of Put(SvxLRSpaceItem&).
> but when I do it like this, it just make no changes, is there any methods 
> more to call if I wanna change the margins?
>
>
>   
please have a look at sw/source/ui/app/docst.cxx SwDocShell::Edit and
sw/source/ui/app/docstyle.cxx SwDocStyleSheet::GetItemSet/SetItemSet().
The page dialog related code is in the cases of SFX_STYLE_FAMILY_PAGE.

Before the dialog is called the SfxItemSet of the style is retrieved
with SwDocStyleSheet::GetItemSet(). The dialog returns a modified
SfxItemSet and this is applied to the style with a
SwDocStyleSheet::SetItemSet(). Within the class SwDocStyleSheet the
elements in the item set are applied to the page format (SwPageDesc) via
PageDescToItemSet() (sw/source/ui/utlui/uitool.cxx).

Regards,

Oliver




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

Reply via email to