Re: [dev] idlc warnings - why ?

2008-12-16 Thread Steff Grund

Hi Juergen,

we do not support this with the Netbeans plugin - yet another idea for 
enhancement.


-Steffen

Juergen Schmidt wrote:

Hi Oliver,

it's the parameter name ...

see the idlc options:
...
-w  = display warning messages.
-we = treat warnings as errors.
...

you get this warning
...: WARNING, type or identifier doesn't fulfill the UNO naming 
convention: _something


See the naming convention here 
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/AppendixA/General_Design_Rules 



Sometimes just reading helps a lot ;-)

Juergen

Oliver Brinzing wrote:

Hi,

can one give me a hint, why i get warnings for the following *.idl 
files ??


D:\Programme\OO_SDK_30\windows\bin\idlc: compile
'E:\Java\tvs-projects\tvs-structedit-tool-dev\idl\bw\stv\tvs\structedit\tool\Service.idl' 
...
D:\Programme\OO_SDK_30\windows\bin\idlc: detected 1 warnings compiling 
file
'E:\Java\tvs-projects\tvs-structedit-tool-dev\idl\bw\stv\tvs\structedit\tool\Service.idl' 


D:\Programme\OO_SDK_30\windows\bin\idlc: compile
'E:\Java\tvs-projects\tvs-structedit-tool-dev\idl\bw\stv\tvs\structedit\tool\XGetSomething.idl' 
...
D:\Programme\OO_SDK_30\windows\bin\idlc: detected 1 warnings compiling 
file
'E:\Java\tvs-projects\tvs-structedit-tool-dev\idl\bw\stv\tvs\structedit\tool\XGetSomething.idl' 


D:\Programme\OO_SDK_30\windows\bin\idlc: returned successful

#ifndef __bw_stv_tvs_structedit_tool_XGetSomething_idl__
#define __bw_stv_tvs_structedit_tool_XGetSomething_idl__

#include com/sun/star/uno/XInterface.idl

module bw {
module stv {
module tvs {
module structedit {
module tool {
interface XGetSomething : com::sun::star::uno:: 
XInterface {

string saySomething([in] string _something);
};
};
};
};
};
};

#endif

#ifndef __bw_stv_tvs_structedit_tool_Service_idl__
#define __bw_stv_tvs_structedit_tool_Service_idl__

#include XGetSomething.idl

module bw {
module stv {
module tvs {
module structedit {
module tool {
service Service {
interface 
bw::stv::tvs::structedit::tool::XGetSomething;

};
};
};
};
};
};

#endif

Oliver




-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org




-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] idlc warnings - why ?

2008-12-15 Thread Stephan Bergmann

On 12/14/08 19:45, Frank Schönheit - Sun Microsystems Germany wrote:

IIRC, this violates UNO naming conventions, though, admittedly, I think
the convention is bogus in this case :)


Why do you think it is bogus to rule out as parameter names identifiers 
starting with an underscore?


-Stephan

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] idlc warnings - why ?

2008-12-15 Thread Oliver Brinzing
Hi Juergen,

 see the idlc options:
 -w  = display warning messages.
 -we = treat warnings as errors.

aah - someway missed the new idlc options for oo 2.x/3.x ...

added -w -cid to the idlc command :-)

thanks a lot

Oliver

-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


Re: [dev] idlc warnings - why ?

2008-12-14 Thread Frank Schönheit - Sun Microsystems Germany
Hi Oliver,

 can one give me a hint, why i get warnings for the following *.idl files ??
 ...
 module bw {
   module stv {
   module tvs {
   module structedit {
   module tool {
   interface XGetSomething : 
 com::sun::star::uno:: XInterface {
   string saySomething([in] string 
 _something);
   };
   };
   };
   };
   };
 };

I suppose both the warning are triggered by the underscore at the
beginning of the in-param. (one warning explicitly when compiling the
file, one warning implicitly when including the file in the service
definition IDL).

IIRC, this violates UNO naming conventions, though, admittedly, I think
the convention is bogus in this case :)

Ciao
Frank

-- 
- Frank Schönheit, Software Engineer frank.schoenh...@sun.com -
- Sun Microsystems  http://www.sun.com/staroffice -
- OpenOffice.org Base   http://dba.openoffice.org -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] idlc warnings - why ?

2008-12-13 Thread Cédric Bosdonnat
Hi Oliver,

You should try to remove the inheritance to XInterface: it is automatic
when no inheritance class is given.


Le vendredi 12 décembre 2008 à 18:34 +0100, Oliver Brinzing a écrit :
 Hi,
 
 can one give me a hint, why i get warnings for the following *.idl files ??
 
 D:\Programme\OO_SDK_30\windows\bin\idlc: compile
 'E:\Java\tvs-projects\tvs-structedit-tool-dev\idl\bw\stv\tvs\structedit\tool\Service.idl'
  ...
 D:\Programme\OO_SDK_30\windows\bin\idlc: detected 1 warnings compiling file
 'E:\Java\tvs-projects\tvs-structedit-tool-dev\idl\bw\stv\tvs\structedit\tool\Service.idl'
 D:\Programme\OO_SDK_30\windows\bin\idlc: compile
 'E:\Java\tvs-projects\tvs-structedit-tool-dev\idl\bw\stv\tvs\structedit\tool\XGetSomething.idl'
  ...
 D:\Programme\OO_SDK_30\windows\bin\idlc: detected 1 warnings compiling file
 'E:\Java\tvs-projects\tvs-structedit-tool-dev\idl\bw\stv\tvs\structedit\tool\XGetSomething.idl'
 D:\Programme\OO_SDK_30\windows\bin\idlc: returned successful
 
 #ifndef __bw_stv_tvs_structedit_tool_XGetSomething_idl__
 #define __bw_stv_tvs_structedit_tool_XGetSomething_idl__
 
 #include com/sun/star/uno/XInterface.idl
 
 module bw {
   module stv {
   module tvs {
   module structedit {
   module tool {
   interface XGetSomething : 
 com::sun::star::uno:: XInterface {
   string saySomething([in] string 
 _something);
   };
   };
   };
   };
   };
 };
 
 #endif
 
 #ifndef __bw_stv_tvs_structedit_tool_Service_idl__
 #define __bw_stv_tvs_structedit_tool_Service_idl__
 
 #include XGetSomething.idl
 
 module bw {
   module stv {
   module tvs {
   module structedit {
   module tool {
   service Service {
   interface 
 bw::stv::tvs::structedit::tool::XGetSomething;
   };
   };
   };
   };
   };
 };
 
 #endif
 
 Oliver
 
-- 
Cédric Bosdonnat
OOo Eclipse Integration developer
http://cedric.bosdonnat.free.fr



-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] idlc warnings - why ?

2008-12-13 Thread Oliver Brinzing
Hi Cédric,

 You should try to remove the inheritance to XInterface: it is automatic
 when no inheritance class is given.

thanks for the hint - but the warnings do not disappear ...

Oliver

-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


[dev] idlc warnings - why ?

2008-12-12 Thread Oliver Brinzing
Hi,

can one give me a hint, why i get warnings for the following *.idl files ??

D:\Programme\OO_SDK_30\windows\bin\idlc: compile
'E:\Java\tvs-projects\tvs-structedit-tool-dev\idl\bw\stv\tvs\structedit\tool\Service.idl'
 ...
D:\Programme\OO_SDK_30\windows\bin\idlc: detected 1 warnings compiling file
'E:\Java\tvs-projects\tvs-structedit-tool-dev\idl\bw\stv\tvs\structedit\tool\Service.idl'
D:\Programme\OO_SDK_30\windows\bin\idlc: compile
'E:\Java\tvs-projects\tvs-structedit-tool-dev\idl\bw\stv\tvs\structedit\tool\XGetSomething.idl'
 ...
D:\Programme\OO_SDK_30\windows\bin\idlc: detected 1 warnings compiling file
'E:\Java\tvs-projects\tvs-structedit-tool-dev\idl\bw\stv\tvs\structedit\tool\XGetSomething.idl'
D:\Programme\OO_SDK_30\windows\bin\idlc: returned successful

#ifndef __bw_stv_tvs_structedit_tool_XGetSomething_idl__
#define __bw_stv_tvs_structedit_tool_XGetSomething_idl__

#include com/sun/star/uno/XInterface.idl

module bw {
module stv {
module tvs {
module structedit {
module tool {
interface XGetSomething : 
com::sun::star::uno:: XInterface {
string saySomething([in] string 
_something);
};
};
};
};
};
};

#endif

#ifndef __bw_stv_tvs_structedit_tool_Service_idl__
#define __bw_stv_tvs_structedit_tool_Service_idl__

#include XGetSomething.idl

module bw {
module stv {
module tvs {
module structedit {
module tool {
service Service {
interface 
bw::stv::tvs::structedit::tool::XGetSomething;
};
};
};
};
};
};

#endif

Oliver

-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature