Syntax error in XComponent.idl ?

Markus Mohrhard markus.mohrhard at googlemail.com
Sat Sep 17 21:34:23 UTC 2016


Hey,

On Fri, Sep 16, 2016 at 10:55 PM, <aptares at gmx.de> wrote:

> The current source code in XComponent.idl looks like:
>
> #ifndef __com_sun_star_lang_XComponent_idl__
> 20 #define __com_sun_star_lang_XComponent_idl__
> 21
> 22 #include <com/sun/star/uno/XInterface.idl>
> 23
> 24
> 25 module com { module sun { module star { module lang {
> 26
> 27 * published interface XEventListener;*
> 28
> 42 published interface XComponent: com::sun::star::uno::XInterface
> 43 {
> 73  void dispose();
> 74
> 92  void addEventListener( [in] XEventListener xListener );
> 93
> 108  void removeEventListener( [in] XEventListener aListener );
> 109
> 110 };
> 111
> 112
> 113 }; }; }; };
> 114
> 115 #endif
>
> can anyone check - and if positively found incorrect change the source -
> the following alternative:
>
> ....
>  #include <com/sun/star/uno/XInterface.idl>
> * #include <com/sun/star/lang/XEventListener.idl>*
>   24
> 25 module com { module sun { module star { module lang {
> 26
> 42 published interface XComponent: com::sun::star::uno::XInterface
> ....
>
> thx
>
> andy
>
>

The old code looks fine. This is a forward declaration in the idl file. You
can see the generated c++ code for it in e.g.
workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/lang/XComponent.hdl

Markus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20160917/c5bd0393/attachment.html>


More information about the LibreOffice mailing list