I am adding my custom program to OpenOffice. Here is
what I want to do:
1) Add to the installation package so that my program
will go to the "installation directory\Program".
2) Have a shortcut in Start -> Programs -> OpenOffice
3) Add a button in the Standard Toolbar so that user
can click on that button to launch my program.
For OO1.X, I used to have a manual on how to do all.
Now OO is updated to version 2, everything is changed.
1) Last time I dealt with only those .zip files...
a) Last time I add an entry to .\scp\inc\gid.inc
#define GID_FILE_BIN_MYPROG
gid_File_Bin_MyProg
This will identify MyProg.exe to the installatoin
package.
b) Then I add the file description to the installation
package (scp\source\global\setupzip.scp) so that the
installer know how to install the file.
File GID_FILE_BIN_MYPROG
BIN_FILE_BODY;
Name = "MyProg.exe";
Dir = GCFG_BINARY_DIR;
#ifdef WNT
Styles = (PACKED, SETUPZIP);
#else
Styles = (PACKED, SETUPZIP, UNIX_SOFTLINK,
DONT_DELETE);
#endif
End
THIS TIME: I modify scp2\source\ooo\file_ooo.scp and
scp2\source\module_hidden_ooo.scp. Looks like these 2
files already combines the functionality of gid.inc
and setupzip.scp. Am I on the right track? Anyone
knows?
2) Last time: I add the following to
.\scp\source\office\files.scp.
Shortcut GID_SHORTCUT_MYPROG
FileID = GID_FILE_BIN_MYPROG;
Dir = PREDEFINED_PROGDIR;
#ifdef WNT
Name = "MyProg is Good";
#else
Name = "MyProg";
#endif
THIS TIME: ???
3) Last time: I have to add some image mask. I add to
scp\source\office\files.scp
File GID_ZIP_MYIMAGES
Dir = GID_DIR_USER_CONFIG_SOFFICECFG_BITMAPS;
BIN_FILE_BODY;
Styles = (PACKED);
Name = "myimages.bmp";
End
File GID_ZIP_MYIMAGESMASK
Dir = GID_DIR_USER_CONFIG_SOFFICECFG_BITMAPS;
BIN_FILE_BODY;
Styles = (PACKED);
Name = "myimagesmask.bmp";
End
File GID_ZIP_MYIMAGE0
Dir = GID_DIR_USER_CONFIG_SOFFICECFG_BITMAPS;
BIN_FILE_BODY;
Styles = (PACKED);
Name = "myimages0.bmp";
End
Somehow this directory would be created after
installation: <installation
directory>\user\config\soffice.cfg\bitmaps
Please help. If you think there is another project
(as a result, another mail list) is a better place for
this discussion, please let me know. I REALLY NEED TO
KNOW. PLEASE HELP!!!
__________________________________
想即時收到新 email 通知?
下載 Yahoo! Messenger
http://messenger.yahoo.com.hk/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]