yeah I finally figured that out

On 5/21/07, Carsten Driesner <[EMAIL PROTECTED]> wrote:

Travis Athougies wrote:
> While going through the source code, the thing that has really been
bugging
> me is how openoffice knows that the menubar at
> dbaccess/uiconfig/dbtable/menubar/menubar.xml is the one to use for the
> dbtable window.
>
> Could someone please explain this behaviour. I have tried searching for
the
> string dbtable and all identifiers associated with it,

Hi Travis,

OpenOffice.org uses a service called com.sun.star.frame.ModuleManager
which can identify the module associated to a frame. This module
identifier is a string, normally something like
"com.sun.star.sdb.TableDesign". OpenOffice.org provides a configuration
which uses XML to store configuration data. There is a file called
Setup.xcu which stores data associated with a module identifier. One of
this information is called "ooSetupFactoryShortName". For the table
design module "ooSetupFactoryShortName" has the value "dbtable". Now
OpenOffice.org knows that the table design module uses a folder called
"dbtable".
The folder "dbaccess/uiconfig" stores the user interface data for the
dbaccess project. It delivers the files to the output tree at build
time. This output tree is based on the following schema:
xml/uiconfig/modules/<ooSetupFactoryShortName>/. You can find the merged
tree with all modules in your Office installation, see <office
installation>/share/config/soffice.cfg/modules.

Regards,
Carsten

--
Carsten Driesner (cd) - Project Lead OpenOffice.org Framework
Framework wiki: http://wiki.services.openoffice.org/wiki/Framework
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS

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




--
From: Travis Athougies
2 + 2 = 4

Reply via email to