English:

The Free and Open Productivity Suite
Help us Help the World

Definition of a Shortcut



The keyword for a Shortcut definition is Shortcut. A global ID of a ShortCut should begin with gid_Shortcut . Shortcuts are not assigned to modules, they are always connected with a file. Shortcuts represent links to files, which can exist in all available platform. The classical Shortcuts are the links to the executables setup and soffice (respectively setup.exe and soffice.exe), which are installed into the program directory. The links exist in the root of the Office installation.

The Shortcut to the Office executable, which is defined as global ID gid_File_Bin_Soffice can therefore be defined as you can see below:

Shortcut gid_Shortcut_Soffice
FileID = gid_File_Bin_Soffice;
Dir = PREDEFINED_PROGDIR;
#ifdef WNT
Name = "%PRODUCTNAME %PRODUCTVERSION";
#else
Name = "soffice";
#endif
Styles = (STANDALONE, WORKSTATION, ALL_USERS);
End

The Shortcut definition needs first of all the FileID of the file, to which the link shall be created. Of course this FileID is also realized as global ID. The next assignment is the directory, in which the link shall be created. And of course also this directory is defined as global ID, or as in this case as a setup variable. The PREDEFINED_PROGDIR defines the Office installation root. The next assignment is necessary for the name of the link. As you can see, this can be platform dependent. For Windows the name "%PRODUCTNAME %PRODUCTVERSION" is used. For Unix the link is simply named soffice. Optionally there are also some styles. which define, where the link is created.

It is also possible to create links to other links. In this case the definition block does not contain a FileID, but a ShortcutID.



Logo ApacheCon Europe 2014

Apache Feather

Copyright & License | Privacy | Website Feedback | Contact Us | Donate | Thanks

Apache, the Apache feather logo, and OpenOffice are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.