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

INTEGRATION: CWS basemodelrefactoring (1.14.144); FILE MERGED

2007/04/06 18:46:04 mba 1.14.144.2: #i75677#: classes SfxStamp and TimeStamp removed
2007/03/24 19:22:01 mba 1.14.144.1: #i75677#: separation of DocInfo and DocumentInfoObject
üst b2e18a52
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: frmhtmlw.cxx,v $ * $RCSfile: frmhtmlw.cxx,v $
* *
* $Revision: 1.16 $ * $Revision: 1.17 $
* *
* last change: $Author: ihi $ $Date: 2007-07-11 13:10:49 $ * last change: $Author: obo $ $Date: 2007-07-17 13:41:19 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -188,14 +188,13 @@ void SfxFrameHTMLWriter::Out_DocInfo( SvStream& rStrm, const String& rBaseURL, ...@@ -188,14 +188,13 @@ void SfxFrameHTMLWriter::Out_DocInfo( SvStream& rStrm, const String& rBaseURL,
} }
// Author // Author
const SfxStamp& rCreated = pInfo->GetCreated(); const String& rAuthor = pInfo->GetAuthor();
const String& rAuthor = rCreated.GetName();
if( rAuthor.Len() ) if( rAuthor.Len() )
OutMeta( rStrm, pIndent, sHTML_META_author, rAuthor, FALSE, OutMeta( rStrm, pIndent, sHTML_META_author, rAuthor, FALSE,
eDestEnc, pNonConvertableChars ); eDestEnc, pNonConvertableChars );
// created // created
const DateTime& rCreatedDT = rCreated.GetTime(); const DateTime& rCreatedDT = pInfo->GetCreationDate();
String sOut( String sOut(
String::CreateFromInt32( (sal_Int32)rCreatedDT.GetDate() ) ); String::CreateFromInt32( (sal_Int32)rCreatedDT.GetDate() ) );
(sOut += ';') += (sOut += ';') +=
...@@ -203,14 +202,13 @@ void SfxFrameHTMLWriter::Out_DocInfo( SvStream& rStrm, const String& rBaseURL, ...@@ -203,14 +202,13 @@ void SfxFrameHTMLWriter::Out_DocInfo( SvStream& rStrm, const String& rBaseURL,
OutMeta( rStrm, pIndent, sHTML_META_created, sOut, FALSE, eDestEnc, pNonConvertableChars ); OutMeta( rStrm, pIndent, sHTML_META_created, sOut, FALSE, eDestEnc, pNonConvertableChars );
// changedby // changedby
const SfxStamp& rChanged = pInfo->GetChanged(); const String& rChangedBy = pInfo->GetModificationAuthor();
const String& rChangedBy = rChanged.GetName();
if( rChangedBy.Len() ) if( rChangedBy.Len() )
OutMeta( rStrm, pIndent, sHTML_META_changedby, rChangedBy, FALSE, OutMeta( rStrm, pIndent, sHTML_META_changedby, rChangedBy, FALSE,
eDestEnc, pNonConvertableChars ); eDestEnc, pNonConvertableChars );
// changed // changed
const DateTime& rChangedDT = rChanged.GetTime(); const DateTime& rChangedDT = pInfo->GetModificationDate();
sOut = String::CreateFromInt32( (sal_Int32)rChangedDT.GetDate() ); sOut = String::CreateFromInt32( (sal_Int32)rChangedDT.GetDate() );
(sOut += ';') += (sOut += ';') +=
String::CreateFromInt32( (sal_Int32)rChangedDT.GetTime() ); String::CreateFromInt32( (sal_Int32)rChangedDT.GetTime() );
...@@ -238,16 +236,16 @@ void SfxFrameHTMLWriter::Out_DocInfo( SvStream& rStrm, const String& rBaseURL, ...@@ -238,16 +236,16 @@ void SfxFrameHTMLWriter::Out_DocInfo( SvStream& rStrm, const String& rBaseURL,
USHORT nKeys = pInfo->GetUserKeyCount(); USHORT nKeys = pInfo->GetUserKeyCount();
// Leere Eintraege am Ende werden nicht ausgegeben // Leere Eintraege am Ende werden nicht ausgegeben
while( nKeys && !pInfo->GetUserKey(nKeys-1).GetWord().Len() ) while( nKeys && !pInfo->GetUserKeyWord(nKeys-1).Len() )
nKeys--; nKeys--;
for( USHORT i=0; i< nKeys; i++ ) for( USHORT i=0; i< nKeys; i++ )
{ {
const SfxDocUserKey& rUserKey = pInfo->GetUserKey(i); String aWord( pInfo->GetUserKeyWord(i) );
String aWord( rUserKey.GetWord() ); String aTitle( pInfo->GetUserKeyTitle(i) );
aWord.EraseTrailingChars(); aWord.EraseTrailingChars();
if( rUserKey.GetTitle().Len() ) if( aTitle.Len() )
OutMeta( rStrm, pIndent, rUserKey.GetTitle(), aWord, FALSE, OutMeta( rStrm, pIndent, aTitle, aWord, FALSE,
eDestEnc, pNonConvertableChars ); eDestEnc, pNonConvertableChars );
} }
} }
......
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