Andre Heine wrote:
Hello Fernand,
have a look into the OOdeveloperGuide, Section "16 Configuration Management".
Am Mittwoch, 5. März 2008 10:29 schrieb Fernand Vanrie:
Hello,
For some reason, when adding a border to a picture the spacing to
Contents is set to 0,5mm. This is a sort off nonsence because in most
cases we want a border around a picture and not a whitespace between the
picture and the border.
I suppose the fefault settings of this UI behavior are stored somewhere
in a xcu file. I can change settings in a xcu file with the API, but
WHERE can i find the right xcu file or is there a general technique
to locate this UI settings?
AFAIK you don't need to find the xcu file, but you must find the "nodepath"...
Andre thanks for this respons, OK the stettings are "stored" in xcu
files and can be accesed by the API with a basic function like
Function setOOoSetupValue(sNodePath$, sProperty$, sValue$) as boolean
on error goto exitErr
Dim bReturn as Boolean, xconfig, xAccess
dim aArgs(0) as Object
dim aPropValue as new com.sun.star.beans.PropertyValue
xconfig =
createunoservice("com.sun.star.configuration.ConfigurationProvider")
aPropValue.Name = "nodepath"
aPropValue.Value = sNodePath '"org.openoffice.Office.Linguistic"
aArgs(0) = aPropValue
xAccess =
xconfig.createinstanceWithArguments("com.sun.star.configuration.ConfigurationUpdateAccess",aArgs())
xAccess.setPropertyValue(sProperty, sValue)
xAccess.commitchanges
bReturn = True
exitErr:
setOOoSetupValue = bReturn
End Function
the 1000 $ question is wath is the nodepath and the Property ???
May be you found some interesting options under "/org.openoffice.Office.Draw".
(Menu: Extras->Options->Openoffice Draw)
PLease explains wath do you means with this hint ??
greetz
Fernand
HTH
Andre
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]