merge the formfield patch from ooo-build
[ooovba.git] / soldep / inc / appdef.hxx
blob6e5da8df3aed441726c35b0b4e12246398960caf
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: appdef.hxx,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _MHAPPDEF_HXX
32 #define _MHAPPDEF_HXX
35 #ifdef UNX
36 #define DEFAULT_INI_ROOT "/so/env"
37 #define DEFAULT_BS_ROOT "/so/env/b_server"
38 #define DEFAULT_EIS_ROOT "/so/env/merge"
39 #define PATH_SEPARATOR '/'
40 #define S_PATH_SEPARATOR "/"
41 #else
42 #define DEFAULT_INI_ROOT "r:"
43 #define DEFAULT_BS_ROOT "n:"
44 #define DEFAULT_EIS_ROOT "w:"
45 #define PATH_SEPARATOR '\\'
46 #define S_PATH_SEPARATOR "\\"
47 #endif
49 #define _INI_DRV DEFAULT_INI_ROOT
50 #define B_SERVER_ROOT DEFAULT_BS_ROOT
51 #define DEFAULT_INI_FILE B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "b_server.ini"
52 #define BINARYROOT B_SERVER_ROOT S_PATH_SEPARATOR "bin"
53 #define _JOB_DIR B_SERVER_ROOT S_PATH_SEPARATOR "server" S_PATH_SEPARATOR "db"
54 #define _INJOB_DIR B_SERVER_ROOT S_PATH_SEPARATOR "server" S_PATH_SEPARATOR "dbin"
55 #define _OUTJOB_DIR B_SERVER_ROOT S_PATH_SEPARATOR "server" S_PATH_SEPARATOR "dbout"
56 #define _ERRJOB_DIR B_SERVER_ROOT S_PATH_SEPARATOR "server" S_PATH_SEPARATOR "dberr"
57 #define _BUILDPATTERN_DIR B_SERVER_ROOT S_PATH_SEPARATOR "pattern"
58 #define _COMMENT_DIR B_SERVER_ROOT S_PATH_SEPARATOR "comment"
59 #define _SOLARLIST B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "solar.lst"
60 #define _DEF_STAND_LIST B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "stand.lst"
61 #define _DEF_DEFAULT_LIST B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "default.lst"
62 #define _DEF_SSOLARINI B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "ssolar.ini"
63 #define _DEF_SSCOMMON B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "ssolar.cmn"
64 #define _SERVER_IDENT_FLAG B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "server.id"
65 #define _CUSTOMJOBINI B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "custom.ini"
66 #define _BUILDCOMMANDINI B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "bcommand.ini"
67 #define _DATABASEINI B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "database.ini"
68 #define _ZNINI B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "bszn.ini"
69 #define _ERRORINFOFILE B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "errinf.lst"
70 #define _REGEXPINFOFILE B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "regexp.lst"
71 #define _POSITIVERRORINFOFILE B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "perrinf.lst"
72 #define _POSITIVREGEXPINFOFILE B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "pregexp.lst"
73 #define _INIROOT B_SERVER_ROOT S_PATH_SEPARATOR "config"
74 #define _INIROOT_OLD B_SERVER_ROOT S_PATH_SEPARATOR "config"
75 #define _ENV_DIR B_SERVER_ROOT S_PATH_SEPARATOR "config"
76 #define _REDIRECTIONPATH B_SERVER_ROOT S_PATH_SEPARATOR "redir"
77 #define _ZLOGSPATH B_SERVER_ROOT S_PATH_SEPARATOR "zlogs"
78 #define DEFAULT_PROTPATH B_SERVER_ROOT S_PATH_SEPARATOR "filesize"
79 #define _INI_UNC "\\\\jumbo2.germany.sun.com\\R-Laufwerk"
80 #define _INI_UNC_OLD "\\\\jumbo2.germany.sun.com\\R-Laufwerk"
81 #define LOG_DIR B_SERVER_ROOT S_PATH_SEPARATOR "log"
83 #define _REDIRECTIONSIZE "10000"
84 #define _EISPATH DEFAULT_EIS_ROOT S_PATH_SEPARATOR "EIS"
86 #define _BUILDEVENTPATH _EISPATH S_PATH_SEPARATOR "EventImport"
88 #define _WRITE_LOGFILES "1"
89 #define _WRITE_JOBFILES "1"
91 #define _VERSION_WINDOW "0"
92 #define _JOB_WINDOW "0"
93 #define _APPWIN_MAXIMIZED "0"
94 #define _CONTEXT_TBOX "0"
96 #define _COLOR_DROPED COL_GRAY
97 #define _COLOR_WAIT COL_BLUE
98 #define _COLOR_BUILD COL_GREEN
99 #define _COLOR_ERROR COL_RED
100 #define _COLOR_BUILDERROR COL_MAGENTA
101 #define _COLOR_OK COL_BLACK
102 #define _COLOR_DELIVERED COL_CYAN
103 #define _COLOR_MASTERSTOP COL_LIGHTRED
105 #define _ASYNCHRON "1"
107 // folowing defines are used to write filesize information for binaries
108 #define OH_GOTT "*"
109 #define UNX_DEFAULT_FILESIZES "bin/" OH_GOTT ".bin;bin/" OH_GOTT ".res;bin/" OH_GOTT ".tlb;lib/" OH_GOTT ".so"
110 #define DOS_DEFAULT_FILESIZES "bin\\*.exe;bin\\*.res;bin\\*.dll;bin\\*.tlb"
112 #ifdef UNX
113 #define DEFAULT_FILESIZES UNX_DEFAULT_FILESIZES
114 #else
115 #define DEFAULT_FILESIZES DOS_DEFAULT_FILESIZES
116 #endif
118 /** States for BuildServer projects and directories
120 #ifndef BuildStatus
121 #define BuildStatus USHORT
122 #endif
123 #define BS_DROPED 0 /// project is waiting for dispatching
124 #define BS_BUILD 1 /// project/directory is building
125 #define BS_WAIT 2 /// project/directory is waiting for building
126 #define BS_OK 3 /// project/directory builded whithout errors
127 #define BS_BUILDANDERROR 4 /// project is in build, any errors accured
128 #define BS_ERROR 5 /// project/directory builded with errors
129 #define BS_NON 6 /// no state is set
130 #define BS_DELIVERED 7 /// project was delivered without errors
131 #define BS_DELIVEREDANDERROR 8 /// project was delivered with errors
132 #define BS_FIXED 9 /// errors are fixed
133 #define BS_NOTDELIVERED 10 /// project is ready to deliver
134 #define BS_BUILD_PRIO 11 /// build projects with prio
135 #define BS_BUILD_ORDER 12 /// build project in correct order
136 #define BS_BUILD_DEPEND 13 /// build projects using dependencies
137 #define BS_BUILD_DELIVER 14 /// build projects using dependencies and deliver builded projects
138 #define BS_BUILD_NORMAL 15 /// build projects without using dependencies
139 #define BS_BUILD_DELIVER_NO_DEPEND 16 /// build projects without using dependencies and deliver builded projects
140 #define BS_BUILD_DOUBLE_LOG 17 /// error with double log names
142 #define LF_STARDIV "StarDivision"
143 #define LF_UNIX "UNIX"
144 #define LF_MAC "Macintosh"
145 #define LF_OS2 "OS/2"
147 // path conversion
148 const char* GetDefStandList();
149 const char* GetIniRoot();
150 const char* GetIniRootOld();
151 const char* GetSSolarIni();
152 const char* GetSSCommon();
153 const char* GetBServerRoot();
155 const char* GetEnv( const char *pVar );
156 const char* GetEnv( const char *pVar, const char *pDefault );
158 #define CONVERT_R_TO_HOSTFSYS( sPath ) { sPath.ToLowerAscii().SearchAndReplace( "r:", GetEnv("ISERVERBASE", DEFAULT_INI_ROOT ) ); sPath.SearchAndReplaceAll( "\\", S_PATH_SEPARATOR ); }
160 // Only for usage inside IServer!
161 #define ISERVER_DEF_STAND_LIST "r:\\b_server\\config\\stand.lst"
162 #define ISERVER_DEF_DEPEND_LIST "r:\\b_server\\config\\depend.lst"
164 #endif