On 10/01/09 00:46, eric b wrote:
    rtl::OUString aUserConfigFile;
    rtl::OUString aIniPath;

// read the content of bootstraprc is necessary to find the path to the user configuration file
    // ~/.ooo4kids/0.6/user/OOo4Kidsrc.txt
Bootstrap::get( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "BRAND_BASE_DIR") ), aIniPath ); aIniPath += rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "/program/" SAL_CONFIGFILE( "bootstrap" ) ) );

    Bootstrap aBootstrap(aIniPath);
aBootstrap.getFrom( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("OOo4KidsIntegrationUserFile") ), aUserConfigFile );

Yes, and you can condense that to

rtl::OUString aUserConfigFile(
  RTL_CONSTASCII_USTRINGPARAM(
    "${$BRAND_BASE_DIR/program/" SAL_CONFIGFILE("bootstrap")
    ":OOo4KidsIntegrationUserFile}"));
Bootstrap::expandMacros(aUserConfigFile);

(my previous attempt at writing that down had a number of typos).

-Stephan

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

Reply via email to