Hi Frank,
Frank Schönheit - Sun Microsystems Germany escribió:
And by the way, ::com::sun::star::view::XSelectionSupplier returns
always null, but I remember you have fixed it or it is already planned,
isn't it?
what kind of object will be passed to select() and what
kind of object will we get from getSelection()?
The selection is done via property value sequences describing the
selection.
It's 1:00 AM here in Argentina, so... if I got it right, it's not
*PropertyValue* seq. but a *NamedValue* seq.
Just a first test:
http://www.arielconstenlahaile.com.ar/ooo/temp/XSelectionSupplier.odt
I apologize if it is awful, but it's 1:00 AM *AND* I couldn't copy
& paste due to the horrible Basic IDE issue in that version (same as in
the CopyTableWiz version)
I had to implement a kind of logger in the text document to "log" the
selection change listener activity, because I tried first with a message
box but obviously didn't work well.
If I understood well, the selection change listener gets notified *only*
when the selection on the SvTreeListBox changes, not when it changes on
the OApplicationIconControl: that is, if I select an icon choice control
(say "Tables") and then I select another one (say "Forms"), I do not get
notified unless a table was selected and now I select a form. (hope that
was clear :-( )
If this is so, it may not be useful in some cases, for example if
someone wants to implement a toolbar controller or complex toolbar
controls getting state notifications when the icon choice controls are
selected, let's say disabling/enabling some controls if the "Tables"
icon is selected and not the "Forms" (instead of one table or one form),
or even displaying a toolbar only when one of the icon choice controls
is selected (as it provides functionality only for that database object
type)...
I'll try this with Java and then tell you
Bye
Ariel.
--
Ariel Constenla-Haile
La Plata, Argentina
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.arielconstenlahaile.com.ar/ooo/
"Aus der Kriegsschule des Lebens
- Was mich nicht umbringt,
macht mich härter."
Nietzsche Götzendämmerung, Sprüche und Pfeile, 8.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]