-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I am trying to create my first plugin for OO2.0, on WinXP, and am having
some errors that I don't understand, from idlc.
I am confused, but I had to copy several dlls to System32, as it appears
that just setting the PATH env variable wasn't good enough. Files such
as reg3.dll had to be put in this directory.
I have my idl file and the commands and errors. Any help in figuring
out what is going on would be appreciated.
Thank you.
E:\Documents and
Settings\jblack.ACDC\Desktop\OOo_1.9.91_Win32Intel_sdk\OpenOffice.org2.0_SDK>idlc
- -C -I.\idl -O"d:\projects\netbeans"
"D:\projects\netbeans\OOPlugin\BbGradebookPlugin\idl\XCalcBbGradebookAddin.idl"
idlc: compile
'D:\projects\netbeans\OOPlugin\BbGradebookPlugin\idl\XCalcBbGradebookAddin.idl'
...
D:\projects\netbeans\OOPlugin\BbGradebookPlugin\idl\XCalcBbGradebookAddin.idl(23)
: Illegal syntax following interface '{' opener: parse error
D:\projects\netbeans\OOPlugin\BbGradebookPlugin\idl\XCalcBbGradebookAddin.idl(25)
: Statement can not be parsed: sequence declaration
D:\projects\netbeans\OOPlugin\BbGradebookPlugin\idl\XCalcBbGradebookAddin.idl(25)
: Illegal syntax or missing '(' after operation identifier: parse error,
expec
ting `'(''
D:\projects\netbeans\OOPlugin\BbGradebookPlugin\idl\XCalcBbGradebookAddin.idl(40)
: Statement can not be parsed: sequence declaration
- --
"Love is mutual self-giving that ends in self-recovery." Fulton Sheen
James Black [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCutbzikQgpVn8xrARAnVrAKCMRzHovgXSji+DKfssWSlkwhupOACfdrb8
UEJS4uuPZQNJzNn9tU4IVLc=
=IVqN
-----END PGP SIGNATURE-----
// Guard against multiple includes
#ifndef _org_openoffice_sheet_addin_XCalcBbGradebookAddin_
#define _org_openoffice_sheet_addin_XCalcBbGradebookAddin_
// must be included always for compatibility reasons
#include <com/sun/star/uno/XInterface.idl>
#include <com/sun/star/beans/XPropertySet.idl>
#include <com/sun/star/sheet/AddIn.idl>
module org {
module openoffice {
module sheet {
module addin {
/** Interface with your additional methods.
Interface names should start with an X prefix.
*/
interface XCalcBbGradebookAddin
{
/** Declare the structures */
struct StudentGrades
{
sequence< int > Scores;
string StudentName;
string StudentNetid;
};
struct GradeDefinition
{
string LineItemName;
float PossiblePoints;
float Weight;
string LineItemType;
}
struct GradeBook
{
sequence< StudentGrades> Grades;
sequence< GradeDefinition> Gradedefs;
string courseBatchUid;
}
/** Declare your methods:
This is where you could add the declarations of your methods.
If you want to learn more about
the IDL syntax including the base types, you could
visit the following web page:
http://www.openoffice.org/project/udk/common/man/idl_syntax.html .
*/
GradeBook getGrades(
/** Parameters:
You could insert further arguments after the
parameter xOptions.
*/
[in] com::sun::star::beans::XPropertySet xOptions,
[in] username,
[in] password,
[in] courseBatchUid
);
boolean saveGrades(
/** Parameters:
You could insert further arguments after the
parameter xOptions.
*/
[in] com::sun::star::beans::XPropertySet xOptions,
[in] username,
[in] password,
GradeBook grades
);
sequence< GradeDefinition> getGradeDefinitions {
[in] com::sun::star::beans::XPropertySet xOptions,
[in] username,
[in] password,
[in] courseBatchUid
};
sequence<string> getCoursesAsInstructor {
[in] com::sun::star::beans::XPropertySet xOptions,
[in] username,
[in] password
};
};
service BbCalcGradebookAddins
{
/** Exported interfaces:
This is where you put all interfaces that this service exports.
The service
supports its main interface only.
*/
interface XCalcBbGradebookAddin;
/** Necessary base service.
All add-ins must implement this service
*/
service com::sun::star::sheet::AddIn;
};
};
};
};
#endif
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]