Laurent Godard wrote On 05/15/06 14:02,:
Hi Carsten
Just for your infomration. The new toolbar controller enhancements are
not a com.sun.star.awt substitution. The implementation is deeply
integrated into the Office framework and therefore cannot support the
same feature set as low-level awt controls! Most functions are
supported or can be added without any problem.
thanks for your precision
but this sounds odd to me regarding UNO nature and componentization
I'll have a look (m169 just finished downloading) trying to understand
how it actually works (with an external poor user pow)
But i think that script coders are expecting to have access to the
"standard" features and events of such controls and that's why i told
about the awt controls
Hi Laurent,
It's not really possible to have access to the "real" control. The
control itself is embedded into the framework environment. That means
that some preconditions are enabled and would make it very difficult
(from my point of view impossible) to support the native control
interfaces. Let me explain which problems exist in the framework
environment.
1. Life-time: The life-time of every control depends on the frame and
toolbar as grand-parent/parent. Even if you hold a reference to a
control you would get a "DisposedException" if the user closes the frame
or a context dependent toolbar must be closed as the user has left the
context.
2. Behavior: Every toolbar control must support a certain set of
messages. If you have access to the low-level interfaces a developer
would be able to break this behavior.
3. Command handling: Every toolbar control uses a dispatch object to
exchange status information and to process user interaction. The Office
supports a dispatch chain where users can disable, intercept commands.
If the developer would have access to the low-level interfaces the
default command handling can break as the internal implementation must
use the same listeners.
I hope that you can now see that the Office toolbar controls are no
low-level controls. They must be protected to fulfill their contract
with the framework environment.
Regards,
Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]