Hi Frank,
Frank Schoenheit, Sun Microsystems Germany ha scritto:
[...]
I see two problems:
1) this approach does not solve the same problem for dialogs included in
documents.
But nowadays, dialogs in documents can embed their images, can't they? I
remember Noel Power having implemented this a while ago. Admittedly, the
only thing I am sure of is that this works for form controls, but IIRC,
he also did this for dialogs in documents ...
I must say that I was not aware of this feature however it seems more a
workaround.
Even if this does not work currently - those two problems are unrelated.
I think image controls in dialogs in documents should just have the
possibility to access the images in the document, just like form image
controls have.
Why unrelated?
A dialog is a dialog and a binary resource is a binary resource, so,
what is the reason for using a special technique only for dialogs that
live into documents?
Why not having an unified solution?
[....]
An alternative approach would be to extend the image control (and any
other image-aware control) with the possbility to store itself the image.
Well, there's a place in ODF for images, I don't think that image
controls in dialogs in documents should invent another location. As said
above, they should simply be able to use document-embedded images.
I respect your opinion but as i said before I find this approach not
consistent and not easy to understand for the end user
This would hide tecnical problems to the user and would work for dialogs
either in extension and/or documents
But it would not solve my problem, which is completely unrelated to
dialogs :)
Perhaps I completely missed the problem or perhaps I've expressed myself
very badly, so let me try to reformulate:
AWT controls and dialogs can live into documents, in shared libraries or
into extensions but the problem of the resource storage is the same.
Actually, speaking of localization resources, you (developers) designed
an unified solution for all cases, so I'm just saying that even in case
of binary resources it would be a good idea to provide an unified
solution, not specific for dialogs embedded into extensions.
IIRC even in old in VB/VBA versions dialogs and controls can embed images.
From the user POV this is an approach very simple and clean.
ciao
Paolo M
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org