xref: /trunk/main/tools/inc/bootstrp/appdef.hxx (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
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.
14  *
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).
20  *
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.
25  *
26  ************************************************************************/
27 
28 #ifndef _MHAPPDEF_HXX
29 #define _MHAPPDEF_HXX
30 
31 
32 #ifdef UNX
33 #define DEFAULT_INI_ROOT	"/so/env"
34 #define DEFAULT_BS_ROOT		"/so/env/b_server"
35 #define PATH_SEPARATOR		'/'
36 #define S_PATH_SEPARATOR 	"/"
37 #else
38 #define DEFAULT_INI_ROOT 	"r:"
39 #define DEFAULT_BS_ROOT 	"n:"
40 #define PATH_SEPARATOR		'\\'
41 #define S_PATH_SEPARATOR	"\\"
42 #endif
43 
44 #define _INI_DRV				DEFAULT_INI_ROOT
45 #define B_SERVER_ROOT			DEFAULT_BS_ROOT
46 #define _SOLARLIST				B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "solar.lst"
47 #define _DEF_STAND_LIST 		B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "stand.lst"
48 #define _DEF_SSOLARINI	 		B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "ssolar.ini"
49 #define _DEF_SSCOMMON			B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "ssolar.cmn"
50 #define	_INIROOT				B_SERVER_ROOT S_PATH_SEPARATOR "config"
51 #define	_INIROOT_OLD			B_SERVER_ROOT S_PATH_SEPARATOR "config"
52 #define _INI_UNC				"\\\\jumbo2.germany.sun.com\\R-Laufwerk"
53 #define _INI_UNC_OLD	    	"\\\\jumbo2.germany.sun.com\\R-Laufwerk"
54 
55 
56 // path conversion
57 const char* GetDefStandList();
58 const char* GetIniRoot();
59 const char* GetIniRootOld();
60 const char* GetSSolarIni();
61 const char* GetSSCommon();
62 const char* GetBServerRoot();
63 
64 const char* GetEnv( const char *pVar );
65 const char* GetEnv( const char *pVar, const char *pDefault );
66 
67 
68 #endif
69