Am Donnerstag, 6. März 2008 13:21 schrieb Fernand Vanrie:
> Andre Heine wrote:
> > 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
[...]
> the 1000 $ question is wath is the nodepath and the Property ???
I tried to configure my java settings. (The same 1000$ question...)
You create the XInterface with
the "com.sun.star.configuration.ConfigurationAccess" service.
Get from these XInterface an XNamedAccess object and create a
Sequence...
A little C++ code snippet:
-------- snip
uno_MultiServiceFactory fac ( this->factory->createInstanceWithContext (
CONFIGPROVIDER,this->context ),UNO_QUERY );
OUString sService = OUString::createFromAscii
( "com.sun.star.configuration.ConfigurationAccess" );
PropertyValue nodepath;
nodepath.Name = OUString::createFromAscii ( "nodepath" );
nodepath.Value= makeAny ( OUString::createFromAscii
( "/org.openoffice.Setup/Configuration" ) );
Sequence<Any> p ( 1 );
p[0] = makeAny ( nodepath );
uno_Interface iface ( fac->createInstanceWithArguments ( sService,p ),
UNO_QUERY );
uno_NameAccess xNameAccess ( iface,UNO_QUERY );
Sequence<OUString> list = xNameAccess->getElementNames();
for ( int i=0; i < list.getLength(); i++ )
{
Any obj = xNameAccess->getByName ( list[i] );
OUString value;
obj >>= value;
cout << "Name(" << stdstr ( list[i] ) << ") Value(" << stdstr (
value ) << ")\n";
}
-----------
So you can walk through the nodes and print it's value...
> > 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 ??
In your first post you write the follow:
> 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...........
So I think, that you want searching the settings for a "Draw" document;()
Best regards...
Andre
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]