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:
parent
01d6e17eb0
commit
89b4f04967
1 changed files with 29 additions and 6 deletions
|
@ -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 © 2003 Sun Microsystems, Inc.";
|
||||
|
||||
// return "Copyright © 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(>);
|
||||
tm *
|
||||
plt = localtime(>);
|
||||
int year = 1900 + plt->tm_year;
|
||||
|
||||
cr << "Copyright © "
|
||||
<< year
|
||||
<< " Sun Microsystems, Inc.";
|
||||
return String(cr.c_str());
|
||||
|
||||
// return "Copyright © 2003 Sun Microsystems, Inc.";
|
||||
// return "Copyright © 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA.";
|
||||
// return "Copyright 2001 OpenOffice.org Foundation. All Rights Reserved.";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue