Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-09

Implementing COM interfaces

6 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Lubos Pintes

Hi,
Concerning accessibility, I heard that the best thing one can do is to implement IAccessible2 for application/controls.
IAccessible2 is an extension of MSAA. It was created to support things like open document format etc. It is also supported on Linux. IAccessible2 interfaces are exposed as .IDL file /type library. So my questions are:
Is it possible to implement such interfaces in free pascal? What about importing type library / converting .IDL to pascal? What about LCL compatibility? Perhaps IAccessible2 implementation could go on lower level...
Thank

Reply by email

Sven Barth
to Lubos Pintes
Lubos Pintes wrote
It is also supported on Linux.

How is that done?

IAccessible2 interfaces are exposed as .IDL file /type library. So my questions are: Is it possible to implement such interfaces in free pascal?

The compiler got many improvements regarding COM compatibility in the last years, so yes one can implement such interfaces.

What about importing type library / converting .IDL to pascal?

As far as I know you'll need to use Delphi to convert the type library to a Pascal unit. There is no converter for FPC (yet).

Regards,
Sven

Reply by email

Lubos Pintes
to Sven Barth

Oh I was a bit wrong when I told that IA2 is suported on Linux. Maybe it is, but I am not totally sure. Read about it briefly here: http://www.linuxfoundation.org/collaborate/workgroups/accessibility/iaccessible2

The open-source screen reader Nvda supports this standard. For example Firefox and Eclipse are perfectly usable.
So I think that it would be suitable enough for Lazarus also, if that is possible.
D?a 22.9.2011 13:46, Sven Barth wrote / nap?sal(a):

Show quoted text 26 lines
Am 22.09.2011 12:38, schrieb Lubos Pintes: > It is also supported on Linux. How is that done? > IAccessible2 interfaces are exposed as .IDL file /type library. So my > questions are: > Is it possible to implement such interfaces in free pascal? The compiler got many improvements regarding COM compatibility in the last years, so yes one can implement such interfaces. > What about importing type library / converting .IDL to pascal? As far as I know you'll need to use Delphi to convert the type library to a Pascal unit. There is no converter for FPC (yet). Regards, Sven -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Sven Barth
to Lubos Pintes

I've looked at the link you mentioned, but the interesting documents seem to be not accessable currently...

Nevertheless on Linux the topic would be handled by using the stuff provided by the widgetset. E.g. for the GTK2 widgetset there is the ATK (Accessibilty ToolKit). I don't know what is needed to implement it or the equivalent for Qt.

Regards,
Sven

Lubos Pintes wrote 43 lines
Oh I was a bit wrong when I told that IA2 is suported on Linux. Maybe it is, but I am not totally sure. Read about it briefly here: http://www.linuxfoundation.org/collaborate/workgroups/accessibility/iaccessible2 The open-source screen reader Nvda supports this standard. For example Firefox and Eclipse are perfectly usable. So I think that it would be suitable enough for Lazarus also, if that is possible. D?a 22.9.2011 13:46, Sven Barth wrote / nap?sal(a): > Am 22.09.2011 12:38, schrieb Lubos Pintes: >> It is also supported on Linux. > > How is that done? > >> IAccessible2 interfaces are exposed as .IDL file /type library. So my >> questions are: >> Is it possible to implement such interfaces in free pascal? > > The compiler got many improvements regarding COM compatibility in the > last years, so yes one can implement such interfaces. > >> What about importing type library / converting .IDL to pascal? > > As far as I know you'll need to use Delphi to convert the type library > to a Pascal unit. There is no converter for FPC (yet). > > Regards, > Sven > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Sven Barth
to Hans-Peter Diettrich
Hans-Peter Diettrich wrote 6 lines
Lubos Pintes schrieb: > Hi, > Concerning accessibility, I heard that the best thing one can do is to > implement IAccessible2 for application/controls. What about CORBA? At least it's not so Windows centric...

Here a discussion about CORBA vs. COM or platform specific vs. platform independant is completely at the wrong place: He wants to integrate accessibilty features into Lazarus so he needs to use the features that the widgetsets provide. In case of Windows this is IAccessible2.

Regards,
Sven

Reply by email