Hi James,
James Black wrote:
-----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 don't know what you are doing but your last statement is not correct.
Having the <office>\program directory in your PATH is definitely enough
for running the idlc.
I suggest that you first try the SDK env and if you familar with this
env you can prepare your IDE or whatever.
I have my idl file and the commands and errors. Any help in figuring
out what is going on would be appreciated.
mmh, i suggest that you should read the DevGuide, especially the chapter
about IDL and components.
1. don't use nested types
2. you forgot several ";"
3. you have used wrong brackets for function definitions
4. you forgot types for parameters
5. you forgot closing '>' brackets for sequences
6. you forgot a closing brakets of at least one module
I have changed your IDL definition but you should check it if i have
used the correct mentioned types especially for the last 3 methods.
Juergen
#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 {
/** Declare the structures */
struct StudentGrades
{
sequence< long > Scores;
string StudentName;
string StudentNetid;
};
struct GradeDefinition
{
string LineItemName;
float PossiblePoints;
float Weight;
string LineItemType;
};
struct GradeBook
{
sequence< StudentGrades > Ggrades;
sequence< GradeDefinition > Gradedefs;
string courseBatchUid;
};
/** Interface with your additional methods.
Interface names should start with an X prefix.
*/
interface XCalcBbGradebookAddin {
/** 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] string username,
[in] string password,
[in] string courseBatchUid
);
boolean saveGrades(
/** Parameters:
You could insert further arguments after the
parameter xOptions.
*/
[in] com::sun::star::beans::XPropertySet xOptions,
[in] string username,
[in] string password,
[in] GradeBook grades
);
sequence< GradeDefinition> getGradeDefinitions(
[in] com::sun::star::beans::XPropertySet xOptions,
[in] string username,
[in] string password,
[in] string courseBatchUid
);
sequence<string> getCoursesAsInstructor(
[in] com::sun::star::beans::XPropertySet xOptions,
[in] string username,
[in] string 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]