INTEGRATION: CWS adc18 (1.12.2); FILE MERGED

2007/10/17 14:09:33 np 1.12.2.1: #i82718#
This commit is contained in:
Jens-Heiner Rechtien 2007-11-02 15:23:54 +00:00
parent 01d6e17eb0
commit 89b4f04967

View file

@ -4,9 +4,9 @@
*
* $RCSfile: cfrstd.cxx,v $
*
* $Revision: 1.12 $
* $Revision: 1.13 $
*
* last change: $Author: vg $ $Date: 2007-09-18 13:50:14 $
* last change: $Author: hr $ $Date: 2007-11-02 16:23:54 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@ -38,6 +38,7 @@
// NOT FULLY DEFINED SERVICES
#include <ctime>
/* CSS Styles
@ -275,13 +276,14 @@ StdFrame::LogoLink() const
// return "http://www.openoffice.org";
}
String MakeCopyRight();
const char *
StdFrame::CopyrightText() const
{
return "Copyright &copy; 2003 Sun Microsystems, Inc.";
// return "Copyright &copy; 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA.";
// return "Copyright 2001 OpenOffice.org Foundation. All Rights Reserved.";
static String sCopyRight_( MakeCopyRight() );
return sCopyRight_.c_str();
}
const char *
@ -330,3 +332,24 @@ StdFrame::Set_SimpleLinks()
{
bSimpleLinks = true;
}
String
MakeCopyRight()
{
StreamStr cr(700);
time_t
gt;
time(&gt);
tm *
plt = localtime(&gt);
int year = 1900 + plt->tm_year;
cr << "Copyright &copy; "
<< year
<< " Sun Microsystems, Inc.";
return String(cr.c_str());
// return "Copyright &copy; 2003 Sun Microsystems, Inc.";
// return "Copyright &copy; 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA.";
// return "Copyright 2001 OpenOffice.org Foundation. All Rights Reserved.";
}