Alan Yaniger wrote:

> Hi list-members,
> 
> If I change the font of text, the control displaying the current font 
> name gets updated. Where is the code which does this update? (I'm 
> working on edit engine, not Writer.)

Are you talking about the code that actually changes the name on screen?
That would be the SvxFontListBox.

Or the code that detects the change?
That would be depending on the application. If code changes the font
somewhere in a particular context (e.g. a cell in a spreadsheet or a
drawing object in Writer), the code in the SfxShell class representing
this context will invalidate the status of the corresponding "slot" that
itself represents the functionality "Font name".

Or the code that sends out the notification?
That is in sfx2/source/control/bindings.cxx (SfxBindings::Update_Impl)
where some generic code collects the mentioned "invalidates", retrieves
the status changes and sends them to registered controllers, one of them
being the SvxFontListBox.

Regards,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[email protected]".
I use it for the OOo lists and only rarely read other mails sent to it.

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

Reply via email to