On 06/21/10 10:41, wangxiang wrote:
I'm trying to read the SW code  and  encounter some problem:

like
http://svn.services.openoffice.org/opengrok/xref/DEV300_m82/sw/source/ui/utlui/bookctrl.cxx#122

part of the code is here: http://ooo.pastebin.com/P5EswNu2

who can tell me how the paramter sPageNumber is changed ?  What exatly does
"((SfxStringItem<http://svn.services.openoffice.org/opengrok/s?defs=SfxStringItem&project=/DEV300_m82>
*)pState<http://svn.services.openoffice.org/opengrok/s?defs=pState&project=/DEV300_m82>
)->GetValue<http://svn.services.openoffice.org/opengrok/s?defs=GetValue&project=/DEV300_m82>()
"  mean ?

StateChanged is called to notify the SwBookmarkControl of a changed status value. The value is in a SfxStringItem, so pState is cast to a SfxStringItem pointer.

See the parts about "sfx2 based specific statusbar item controllers" and "mixed sfx2/UNO based environment" at http://wiki.services.openoffice.org/wiki/Framework/Article/OpenOffice.org_2.0_User_Interface_Controller_Internals.

Niklas

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to