1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: verinfo.hrc,v $
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 ************************************************************************/
34 // include ---------------------------------------------------------------
42 // general preprocessor string management --------------------------------
48 #define PPS(s) PPSX(s)
52 #define PPCX(s1, s2) s1##s2
55 #define PPCAT(s1, s2) PPCX(s1, s2)
58 // define order of date parts --------------------------------------------
66 // set VERVARIANT to 0 if not defined ------------------------------------
68 #if !defined(VERVARIANT)
72 // define pre release state ----------------------------------------------
76 #define VER_COUNT (0+VER_CONCEPT)
77 #define VER1 Concept (Level VER_CONCEPT)
82 #define VER_COUNT (100+VER_ALPHA)
83 #define VER1 Alpha (Level VER_ALPHA)
88 #define VER_COUNT (200+VER_BETA)
89 #define VER1 Beta (Level VER_BETA)
94 #define VER_COUNT (300+VER_GAMMA)
95 #define VER1 Gamma (Level VER_GAMMA)
99 #define VER_COUNT (500+VER_FINAL)
131 #define VER4 PPCAT(0, SUBVERSION)
133 #define VER4 SUBVERSION
141 #define VER_LEVEL VERSION.VER4.VERVARIANT
143 #define VER_LEVEL VERSION.VER4
146 #define VERC1(a, b, c) a.b##c
147 #define VERC2(a, b, c) VERC1(a, b, c)
148 #define VER_LEVEL VERC2(VERSION, VER4, VER1)
151 #if !defined(VER_DMY) && VER_DAY < 10
152 #define VER5 PPCAT(0, VER_DAY)
157 // define month strings --------------------------------------------------
202 #define VERC3(a, b, c) a.b.c
204 #define VERC3(a, b, c) c-b-a
206 #define VERC4(a, b, c) VERC3(a, b, c)
207 #define VER_DATE VERC4(VER5, VER2, VER_YEAR)
209 #if PPCAT(1, VER_FIRSTYEAR)==PPCAT(1, VER_YEAR)
210 #define VER_YEARRANGE VER_FIRSTYEAR
212 #define VER_YEARRANGE VER_FIRSTYEAR-VER_YEAR
215 #if VER_FIRSTYEAR > 100
216 #define VERC5(a) Copyright \251 a by
217 #define VERC6(a) VERC5(a)
219 #define VERC5(a) Copyright \251 20##a by
220 #define VERC6(a) VERC5(a)
223 #define S_CRIGHT PPS(VERC6(VER_YEARRANGE))
226 #define S_VERSION PPS(Version VER_LEVEL vom VER_DATE)
228 #define S_VERSION PPS(Version VER_LEVEL of VER_DATE)
231 #endif // _VERINFO_HRC