Kaydet (Commit) c9b6bbb3 authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS basemodelrefactoring (1.42.60); FILE MERGED

2007/05/29 11:28:28 mba 1.42.60.7: RESYNC: (1.43-1.44); FILE MERGED
2007/04/14 11:45:50 mba 1.42.60.6: RESYNC: (1.42-1.43); FILE MERGED
2007/04/06 19:34:09 mba 1.42.60.5: #i75677#: superfluous includes in docfile.hxx removed
2007/04/04 15:06:29 mba 1.42.60.4: #i75677#: consolidation of methods for removing different kinds of data in DocInfo
2007/03/29 19:43:16 mba 1.42.60.3: #i75677#: settings extracted from DocInfo
2007/03/26 22:05:25 mba 1.42.60.2: #i75677#: SetUseUserData must still be done here
2007/03/25 17:19:46 mba 1.42.60.1: #i75726#: remove TIMESTAMP_INVALID_DATETIME from public interfaces
üst 573b4f19
......@@ -4,9 +4,9 @@
*
* $RCSfile: sdmod1.cxx,v $
*
* $Revision: 1.44 $
* $Revision: 1.45 $
*
* last change: $Author: kz $ $Date: 2007-05-10 15:25:18 $
* last change: $Author: obo $ $Date: 2007-07-17 13:01:04 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
......@@ -77,6 +77,8 @@
#include <svx/paperinf.hxx>
#endif
#include <sfx2/docinf.hxx>
#ifndef _EEITEM_HXX
#include <svx/eeitem.hxx>
#endif
......@@ -746,18 +748,8 @@ SfxFrame* SdModule::ExecuteNewDocument( SfxRequest& rReq )
// clear document info
SfxDocumentInfo& rInfo = pDocShell->GetDocInfo();
SfxStamp aCreated;
SvtUserOptions aOptions;
aCreated.SetName( aOptions.GetFullName() );
rInfo.SetCreated( aCreated );
SfxStamp aInvalid( TIMESTAMP_INVALID_DATETIME );
rInfo.SetChanged( aInvalid );
rInfo.SetPrinted( aInvalid );
rInfo.SetTime( 0L );
rInfo.SetDocumentNumber( 1 );
rInfo.SetUseUserData( TRUE );
rInfo.ResetUserData( SvtUserOptions().GetFullName() );
pDocShell->SetUseUserData(TRUE);
// #94652# clear UNDO stack after autopilot
SfxUndoManager* pUndoManager = pDocShell->GetUndoManager();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment