Hi,
Søren Thing Pedersen wrote:
I want to add a boolean - let's call it AssumeEnglishNumbers - to
/registry/data/org/openoffice/Office/Linguistic.xcu
I don't think that is a good place for your setting.
The org.openoffice.Office.Linguistic component holds setting for
linguistic services. Settings for filters or number parsers and
formatters don't belong there.
If you really can't find a good place (maybe org.openoffice.Office.Calc
is fits) and the setting is used across applications, you could resort
to the (in)famous org.openoffice.Office.Common component or simply
define your own component.
In either case, just adding an entry to an xcu file won't give you a new
configuration setting. To introduce a new setting you must first define
it in the associated schema
(officecfg/registry/schema/org/openoffice/.../Whatever.xcs)
So far I figured I need to prepare the new variable in:
svtools/inc/lingucfg.hxx
svtools/source/config/lingucfg.cxx
svtools/inc/linguprops.hxx
You don't need to go through the existing 'config item' wrapper objects,
If the code you are adding to already uses some configuration settings
access helper, then it may indeed make sense to extend that mechanism to
support your setting. But it is also possible to use the (UNO-based)
configuration service more directly (using UNO directly or with a thin
wrapper, like utl::OConfigurationNode from unotools).
I want to check if this variable is TRUE in
sc/source/filter/rtf/eeimpars.cxx
Nit: That variable can only be 'true' or sal_True.
Ciao, Joerg
--
Joerg Barfurth Sun Microsystems - Desktop - Hamburg
>>>>>>>>>>>>>>>>>> using std::disclaimer <<<<<<<<<<<<<<<<<<<<<<<
Software Engineer [EMAIL PROTECTED]
OpenOffice.org Configuration http://util.openoffice.org
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]