Hi Bjoern,

> Nice to have this, however I never used it, and still I have similar 
> code to yours just using the tools string rather than OUString. (Can the 
> OfficeResourceLoader using UNO API be used to fill an SfxTabDialog? And 
> if so, how?)

Sorry, I don't get you here.
The OfficeResourceLoader is able to load a string from a .res file -
nothing more, nothing less. You can use it anywhere you like ...

> I second Stephan's concerns, that creating a new method at OUString and 
> later changing it is not a good idea.

I never suggested changing it later. I'd suggest creating a new method
with extended functionality if we really need it.
replaceString would be a low-level functionality which can be used to
implement more complex patterns.

> Having a separate function is the 
> better approach, because this way you can make clear that the function 
> is only for resource-string replacement. (You won't want to add a method 
> to OUString called replaceResourceStringVariable or the like).

Well, it is not for resource-string replacement. It is for replacing
strings in other strings. People can *use* it for resource string
replacements, if they know that the caveats pointed out by Stephan do
not apply.


> I suppose we are not the only people in the world wanting to replace a 
> string in another string. If we want a well-designed full-featured 
> facility to robustly replace strings in any situation,

That's what I'm trying to say: I'm not sure we want, since I'm not sure
we need.


> So: either make a simple feasible solution like "just replace a string", 

+1

Ciao
Frank

-- 
- Frank Schönheit, Software Engineer         [EMAIL PROTECTED] -
- Sun Microsystems                      http://www.sun.com/staroffice -
- OpenOffice.org Base                       http://dba.openoffice.org -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to