The path substitution service supports a number of predefined path variables. They provide information about the paths that Apache OpenOffice currently uses. They are implemented as read-only values and cannot be modified.
The predefined path variables can be separated into three distinct groups. The first group of variables specifies a single path, the second group specifies a list of paths that are separated by the shell or operating system dependent character, and the third group specifies only a part of a path.
All predefined variable names are case insensitive, as opposed to the user-defined variables that are described below.
|Predefined variables supported by service com.sun.star.util.PathSubstitution|
||Single path||The absolute path to the home directory of the current user. Under Windows this depends on the specific versions: usually the <drive>:\Documents and Settings\<username>\Application Data under Windows 2000/XP and <drive>:\Windows\Profiles\<username>\Application Data under Windows NT and Win9x, ME with multi user support. Windows 9x and ME without multi-user support <drive>:\Windows\Application Data.|
||Single path||The absolute installation path of Apache OpenOffice. Normally the share and program folders are located inside the installation folder. The |
||Single path||The absolute path of the program folder of Apache OpenOffice. Normally the executable and the shared libraries are located in this folder. The |
||Single path||The absolute path of the current temporary directory used by Apache OpenOffice.|
||Single path||The absolute path to the user installation folder of Apache OpenOffice. The |
||Single path||The absolute path of the working directory of the user. Under Windows this is the My Documents folder. Under Unix this is the home directory of the user.|
||List of paths||The value of the PATH environment variable of the Apache OpenOffice process. The single paths are separated by a ';' character independent of the system.|
||Part of a path||The country code used by Apache OpenOffice, see the table Mapping ISO 639/3166 to |
||Part of a path||The language identifier used by Apache OpenOffice. An identifier is composed of a primary language identifier and a sublanguage identifier such as 0x0009=English (primary language identifier), 0x0409=English US (composed language code). The language identifier is based on the Microsoft language identifiers, for further information please see:
Language Identifier Constants and Strings
The language identifier returned by
||Part of a path||The language used by Apache OpenOffice as an English string, for example, "german" for a German version of Apache OpenOffice.|
The values of $(lang), $(langid) and $(vlang) are based on the property ooLocale in the configuration branch org.openoffice.Setup/L10N, that is normally located in the share directory. This property follows the ISO 639-1/ISO3166 standards that define identification codes for languages and countries. The ooLocale property is written by the setup application during installation time. The following are examples of table Mapping ISO 639/3166 to $(vlang):
|Mapping from ISO639-1/ISO3166 to $(lang) and $(vlang)|
|ISO 639-1||ISO 3166||$(lang)||$(vlang)|
|Content on this page is licensed under the Public Documentation License (PDL).|