Re: [dev] RestrictedPath working under Windows?

2006-07-17 Thread Frank Schönheit - Sun Microsystems Germa ny
Hi Allen, That's easy to find. There are only about a dozen matches in the source code for RestrictedPath and RestrictedPaths ;-) :) On Windows XP, you have both system variables and user variables. If both values are set, the user value overrides the system value. In fact, I just tried

Re: [dev] RestrictedPath working under Windows?

2006-07-17 Thread Frank Schönheit - Sun Microsystems Germa ny
Hi Joerg, So how was that supposed to be used? I assume that would be by editing the soffice script to set that variable before invoking soffice.bin? (Otherwise a user could always overwrite an environment variable just as easily.) Not well suited for Windows use then, where there is no

Re: [dev] RestrictedPath working under Windows?

2006-07-17 Thread Frank Schönheit - Sun Microsystems Germa ny
Hi Allen, It would be less complex and therefore less prone to system administrator and programmer error to just treat a nil and empty string the same. I suggest: I don't have a strong preference here. In theory, treating nil and empty list equally is somewhat ... dirty, so I would probably

RE: [dev] RestrictedPath working under Windows?

2006-07-17 Thread Allen Pulsifer
I would also be interested in changing RestrictedPath from an environmental variable to a configuration (.xcs/.xcu) setting. 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

Re: [dev] RestrictedPath working under Windows?

2006-07-14 Thread Frank Schönheit - Sun Microsystems Germa ny
Hi Allen, I'm trying to get RestrictedPath working, as described under Declaring the Permitted Folders in http://ui.openoffice.org/specification/FileDialog_RestrictedPaths.sxw I'm using OOo v2.0.3 under WinXP. Do you use system dialogs, or OOo's own dialogs? The feature only works with the

RE: [dev] RestrictedPath working under Windows?

2006-07-14 Thread Allen Pulsifer
I'm trying to get RestrictedPath working, as described under Declaring the Permitted Folders in http://ui.openoffice.org/specification/FileDialog_RestrictedPaths.sxw I'm using OOo v2.0.3 under WinXP. Do you use system dialogs, or OOo's own dialogs? The feature only works with

Re: [dev] RestrictedPath working under Windows?

2006-07-14 Thread Frank Schönheit - Sun Microsystems Germa ny
Hi Allen, I'm using what is compiled into the OOo Windows binary distribution and configured by default, which I'm guessing is the system dialogs. Is there a way to select OOo's dialogs, either at run-time or build-time? At runtime, Tools|Options|OpenOffice.org|General|[X] Use

RE: [dev] RestrictedPath working under Windows?

2006-07-14 Thread Allen Pulsifer
Is there a way to select OOo's dialogs, either at run-time or build-time? At runtime, Tools|Options|OpenOffice.org|General|[X] Use OpenOffice.org dialogs is the place to control this. That and the corresponding configuration option

Re: [dev] RestrictedPath working under Windows?

2006-07-14 Thread Frank Schönheit - Sun Microsystems Germa ny
Hi Allen, With that setting, RestrictedPath mostly worked. With only one directory in the RestrictedPath, the behavior was not quite what I expected. It allowed me to navigate up to the parent directories, all the way to the root (c:\). It didn't allow me to save there, but it was

RE: [dev] RestrictedPath working under Windows?

2006-07-14 Thread Allen Pulsifer
With that setting, RestrictedPath mostly worked. With only one directory in the RestrictedPath, the behavior was not quite what I expected. It allowed me to navigate up to the parent directories, all the way to the root (c:\). It didn't allow me to save there, but it was

Re: [dev] RestrictedPath working under Windows?

2006-07-14 Thread Frank Schönheit - Sun Microsystems Germa ny
Hi Allen, The answer is yes, but. I would be interested in fixing it, but I'm not sure when I would be able to get to it. I do have a potential customer who is interested in this feature, and if that is an issue for him then I will fix it. Ah, I'm looking forward to when you come asking

RE: [dev] RestrictedPath working under Windows?

2006-07-14 Thread Allen Pulsifer
Ah, I'm looking forward to when you come asking *where* in the code to fix it :) That's easy to find. There are only about a dozen matches in the source code for RestrictedPath and RestrictedPaths ;-) The idea was to have a feature which prevents users from changing the respective

Re: [dev] RestrictedPath working under Windows?

2006-07-14 Thread Joerg Barfurth
Hi, Frank Schönheit - Sun Microsystems Germany schrieb: I would also be interested in changing RestrictedPath from an environmental variable to a configuration (.xcs/.xcu) setting. Is there a specific reason an environment variable was chosen over a configuration setting? The idea was to

RE: [dev] RestrictedPath working under Windows?

2006-07-14 Thread Allen Pulsifer
The most correct would be to use a configuration value with no default, which means you get a NIL value (a VOID Any in UNO) when reading. Then you could have VOID - look at environment Non NIL - Use the value IMHO, that is overkill. It is true that would allow an empty