1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 #ifndef __com_sun_star_util_PathSubstitution_idl__
29 #define __com_sun_star_util_PathSubstitution_idl__
31 #ifndef __com_sun_star_util_XStringSubstitution_idl__
32 #include
<com
/sun
/star
/util
/XStringSubstitution.idl
>
35 #ifndef __com_sun_star_container_XNameContainer_idl__
36 #include
<com
/sun
/star
/container
/XNameContainer.idl
>
39 #ifndef __com_sun_star_container_XContainerListener_idl__
40 #include
<com
/sun
/star
/container
/XContainerListener.idl
>
43 //=============================================================================
45 module com
{ module sun
{ module star
{ module util
{
47 //=============================================================================
49 /** A service to support the substitution and resubstitution of path variables.
52 A path variable must be specified with the following synatx: "$("<variable-name>")".
53 Path variables are not case sensitive and are always provided as a UCB-complient URL's
54 (for example: "file:///c:/temp" or "file:///usr/install"). This is mandatory to support an
55 optional remote file system.<br>
56 A user defined list of path variables is supported. This list is stored in the Office
57 configuration file (org/openoffice/Office/Substitution.xml). Please have a look at the
58 schema definition file which configuration structure this file uses.<br>
59 There is also a set of variables that have pre-defined values:
63 <dd>Installation path of the Office Basis layer.</dd>
65 <dd>Program path of the Office Basis layer.</dd>
66 <dt>$(brandbaseurl)</dt>
67 <dd>Installation path of the the Office Brand layer.</dd>
69 <dd>The user installation directory.</dd>
71 <dd>The work directory of the user. Under Windows this would be the
72 "MyDocuments" subdirectory. Under Unix this would be the home-directory</dd>
74 <dd>The home directory of the user. Under Unix this would be the home-
75 directory. Under Windows this would be the "Documents and Settings\<username>"
78 <dd>The current temporary directory.</dd>
80 <dd>The value of PATH environment variable.</dd>
82 <dd>The country code used by the Office, like 01=english, 49=german.</dd>
84 <dd>The language code used by the Office, like 0x0009=english, 0x0409=english us.</dd>
86 <dd>The language used by the Office as a string. Like "german" for a german Office.</dd>
92 published service PathSubstitution
94 //-------------------------------------------------------------------------
95 /** Interface to exchange path variables with defined paths and to resubstitute paths with path variables.
98 To resubstitute path variables the caller must provide pathes as UCB-compliant URL's.
101 interface com
::sun
::star
::util
::XStringSubstitution
;
104 //=============================================================================