office-gobmx/solenv/inc/verinfo.hrc
Jens-Heiner Rechtien c1cb906a40 INTEGRATION: CWS vcl13 (1.2.148); FILE MERGED
2003/06/23 12:35:59 hjs 1.2.148.1: #110337# version numbers
2003-06-30 13:36:14 +00:00

263 lines
6.1 KiB
Text

/*************************************************************************
*
* $RCSfile: verinfo.hrc,v $
*
* $Revision: 1.3 $
*
* last change: $Author: hr $ $Date: 2003-06-30 14:36:14 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
*
* - GNU Lesser General Public License Version 2.1
* - Sun Industry Standards Source License Version 1.1
*
* Sun Microsystems Inc., October, 2000
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2000 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
*
* Sun Industry Standards Source License Version 1.1
* =================================================
* The contents of this file are subject to the Sun Industry Standards
* Source License Version 1.1 (the "License"); You may not use this file
* except in compliance with the License. You may obtain a copy of the
* License at http://www.openoffice.org/license.html.
*
* Software provided under this License is provided on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
* See the License for the specific provisions governing your rights and
* obligations concerning the Software.
*
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
*
* Copyright: 2000 by Sun Microsystems, Inc.
*
* All Rights Reserved.
*
* Contributor(s): _______________________________________
*
*
************************************************************************/
#ifndef _VERINFO_HRC
#define _VERINFO_HRC
// include ---------------------------------------------------------------
#ifndef WIN32
#include <ver.h>
#else
#include <winver.h>
#endif
// general preprocessor string management --------------------------------
#ifndef PPSX
#define PPSX(s) #s
#endif
#ifndef PPS
#define PPS(s) PPSX(s)
#endif
#ifndef PPCX
#define PPCX(s1, s2) s1##s2
#endif
#ifndef PPCAT
#define PPCAT(s1, s2) PPCX(s1, s2)
#endif
// define order of date parts --------------------------------------------
#if defined(LG_D)
#define VER_DMY
#else
#define VER_YMD
#endif
// set VERVARIANT to 0 if not defined ------------------------------------
#if !defined(VERVARIANT)
#define VERVARIANT 0
#endif
// define pre release state ----------------------------------------------
#ifdef VER_CONCEPT
#define VER_PREL 1
#define VER_COUNT (0+VER_CONCEPT)
#define VER1 Concept (Level VER_CONCEPT)
#endif
#ifdef VER_ALPHA
#define VER_PREL 1
#define VER_COUNT (100+VER_ALPHA)
#define VER1 Alpha (Level VER_ALPHA)
#endif
#ifdef VER_BETA
#define VER_PREL 1
#define VER_COUNT (200+VER_BETA)
#define VER1 Beta (Level VER_BETA)
#endif
#ifdef VER_GAMMA
#define VER_PREL 1
#define VER_COUNT (300+VER_GAMMA)
#define VER1 Gamma (Level VER_GAMMA)
#endif
#ifdef VER_FINAL
#define VER_COUNT (500+VER_FINAL)
#if VER_FINAL==0
#undef VER1
#elif VER_FINAL==1
#define VER1 1
#elif VER_FINAL==2
#define VER1 2
#elif VER_FINAL==3
#define VER1 3
#elif VER_FINAL==4
#define VER1 4
#elif VER_FINAL==5
#define VER1 5
#elif VER_FINAL==6
#define VER1 6
#elif VER_FINAL==7
#define VER1 7
#elif VER_FINAL==8
#define VER1 8
#elif VER_FINAL==9
#define VER1 9
#elif VER_FINAL==10
#define VER1 a
#elif VER_FINAL==11
#define VER1 b
#elif VER_FINAL==12
#define VER1 c
#endif
#endif
#ifdef SUBVERSION
#if SUBVERSION < 10
#define VER4 PPCAT(0, SUBVERSION)
#else
#define VER4 SUBVERSION
#endif
#else
#define VER4 0.0
#endif
#ifndef VER1
#if VERVARIANT > 0
#define VER_LEVEL VERSION.VER4.VERVARIANT
#else
#define VER_LEVEL VERSION.VER4
#endif
#else
#define VERC1(a, b, c) a.b##c
#define VERC2(a, b, c) VERC1(a, b, c)
#define VER_LEVEL VERC2(VERSION, VER4, VER1)
#endif
#if !defined(VER_DMY) && VER_DAY < 10
#define VER5 PPCAT(0, VER_DAY)
#else
#define VER5 VER_DAY
#endif
// define month strings --------------------------------------------------
#if VER_MONTH==1
#define VER2 Jan
#elif VER_MONTH==2
#define VER2 Feb
#elif VER_MONTH==3
#ifdef LG_D
#define VER2 M\344r
#else
#define VER2 Mar
#endif
#elif VER_MONTH==4
#define VER2 Apr
#elif VER_MONTH==5
#ifdef LG_D
#define VER2 Mai
#else
#define VER2 May
#endif
#elif VER_MONTH==6
#define VER2 Jun
#elif VER_MONTH==7
#define VER2 Jul
#elif VER_MONTH==8
#define VER2 Aug
#elif VER_MONTH==9
#define VER2 Sep
#elif VER_MONTH==10
#ifdef LG_D
#define VER2 Okt
#else
#define VER2 Oct
#endif
#elif VER_MONTH==11
#define VER2 Nov
#elif VER_MONTH==12
#ifdef LG_D
#define VER2 Dez
#else
#define VER2 Dec
#endif
#endif
#ifdef LG_D
#define VERC3(a, b, c) a.b.c
#else
#define VERC3(a, b, c) c-b-a
#endif
#define VERC4(a, b, c) VERC3(a, b, c)
#define VER_DATE VERC4(VER5, VER2, VER_YEAR)
#if VER_FIRSTYEAR==VER_YEAR
#define VER_YEARRANGE VER_FIRSTYEAR
#else
#define VER_YEARRANGE VER_FIRSTYEAR-VER_YEAR
#endif
#if VER_FIRSTYEAR > 100
#define VERC5(a) Copyright \251 a by
#define VERC6(a) VERC5(a)
#else
#define VERC5(a) Copyright \251 19##a by
#define VERC6(a) VERC5(a)
#endif
#define S_CRIGHT PPS(VERC6(VER_YEARRANGE))
#ifdef LG_D
#define S_VERSION PPS(Version VER_LEVEL vom VER_DATE)
#else
#define S_VERSION PPS(Version VER_LEVEL of VER_DATE)
#endif
#endif // _VERINFO_HRC