Hi Allen, > I'm realizing that it make this useful, a system administrator would > probably need a way to insert the user's username or WinNT domain\username > into the path. So for example, the system administrator could set > RestrictedPath to \\fileserver\userfiles\$(username) and OOo would make the > appropriate substitution. > ... > Is there a way to do this already? > > If not, I think it would make sense to add this to > framework\source\services\substitutepathvars.cxx (and possibly also to > svtools\source\config\pathoptions.cxx
I suppose it's currently not supported (http://api.openoffice.org/docs/common/ref/com/sun/star/util/PathSubstitution.html), but could probably be added (using osl_getUserName, I suppose). If you want to use this for the RestrictedPaths, you of course would also have to extend the treatment of the env variable / config setting to also use path substition. Ciao Frank -- - Frank Schönheit, Software Engineer [EMAIL PROTECTED] - - Sun Microsystems http://www.sun.com/staroffice - - OpenOffice.org Database http://dba.openoffice.org - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
