Hi Laurent,
Laurent Godard wrote:
Hi stefan
The component, written in C++ obviously implements the getName() and
setName() for this interface. So when using it in basic both calls shoud
work:
That you implement an interface attribute with two functions
(unfortunately called getAAA and setAAA) in C++ is an "implementation
detail" of the C++ UNO language binding. It does not affect how
interface attributes are used in other UNO language bindings (and in
the Basic UNO lanuage binding, interface attributes are accessed via x
= y.AAA and y.AAA = x, as you already mention below).
then, what to do to have also at getAAA and setAAA in OOoBasic as shown
by the regular API ?
What do you mean with "regular API"? At API level the example don't have
specified get/set methods, it have specified an attribute only ;-)
Mapping the attribute to get/set methods is an implementation detail of
the language binding. Basic maps attributes in the same way as
properties to provide easy access. If that is to confusing for the users
we can think about an extension of the Basic binding.
declare them at idl level ?
of course, instead of an attribute you can specify a pair of get/set or
a get method only. It is always a design question ;-) I personally would
prefer the attribute.
Juergen
Laurent
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]