summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/docinf.cxx
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2002-06-14 06:36:38 +0000
committerMathias Bauer <mba@openoffice.org>2002-06-14 06:36:38 +0000
commit184b0a3b6f0403795d951f05289f92aaf2849452 (patch)
tree16ea21c4150d23bc66219ee813d7392afccfce00 /sfx2/source/doc/docinf.cxx
parenteec0b555fbc379601fbcee7fc13ef50b29c67c75 (diff)
#100317#: DocumentInfo recording
Diffstat (limited to 'sfx2/source/doc/docinf.cxx')
-rw-r--r--sfx2/source/doc/docinf.cxx18
1 files changed, 15 insertions, 3 deletions
diff --git a/sfx2/source/doc/docinf.cxx b/sfx2/source/doc/docinf.cxx
index d966106160..3a25fbbf3e 100644
--- a/sfx2/source/doc/docinf.cxx
+++ b/sfx2/source/doc/docinf.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: docinf.cxx,v $
*
- * $Revision: 1.17 $
+ * $Revision: 1.18 $
*
- * last change: $Author: mba $ $Date: 2001-12-07 15:00:11 $
+ * last change: $Author: mba $ $Date: 2002-06-14 07:36:38 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -68,6 +68,7 @@
#include <tools/urlobj.hxx>
#include <svtools/saveopt.hxx>
#include <tools/tenccvt.hxx>
+#include <svtools/useroptions.hxx>
#include "docfilt.hxx"
#include "fcontnr.hxx"
@@ -1632,4 +1633,15 @@ void SfxDocumentInfo::SetKeywords( const String& rVal )
aKeywords = AdjustTextLen_Impl( rVal, SFXDOCINFO_KEYWORDLENMAX );
}
-
+void SfxDocumentInfo::DeleteUserData( BOOL bUseAuthor )
+{
+ SfxStamp aCreated;
+ if ( bUseAuthor )
+ aCreated.SetName( SvtUserOptions().GetFullName() );
+ SetCreated( aCreated );
+ SfxStamp aInvalid( TIMESTAMP_INVALID_DATETIME );
+ SetChanged( aInvalid );
+ SetPrinted( aInvalid );
+ SetTime( 0L );
+ SetDocumentNumber( 1 );
+}