Kaydet (Commit) 94186a4c authored tarafından Miklos Vajna's avatar Miklos Vajna

RTF: fix order of entries in the revtbl

üst ff871457
......@@ -283,8 +283,14 @@ void RtfExport::WriteRevTab()
// Now write the table
Strm() << '{' << OOO_STRING_SVTOOLS_RTF_IGNORE << OOO_STRING_SVTOOLS_RTF_REVTBL << ' ';
for(std::map<String,USHORT>::iterator aIter = m_aRedlineTbl.begin(); aIter != m_aRedlineTbl.end(); ++aIter)
Strm() << '{' << OutString((*aIter).first, eDefaultEncoding) << ";}";
for(USHORT i = 0; i < m_aRedlineTbl.size(); ++i)
{
const String* pAuthor = GetRedline(i);
Strm() << '{';
if (pAuthor)
Strm() << OutString(*pAuthor, eDefaultEncoding);
Strm() << ";}";
}
Strm() << '}' << sNewLine;
}
......@@ -1116,6 +1122,14 @@ USHORT RtfExport::GetRedline( const String& rAuthor )
}
}
const String* RtfExport::GetRedline( USHORT nId )
{
for(std::map<String,USHORT>::iterator aIter = m_aRedlineTbl.begin(); aIter != m_aRedlineTbl.end(); ++aIter)
if ((*aIter).second == nId)
return &(*aIter).first;
return NULL;
}
void RtfExport::OutPageDescription( const SwPageDesc& rPgDsc, BOOL bWriteReset, BOOL bCheckForFirstPage )
{
OSL_TRACE("%s start", OSL_THIS_FUNC);
......
......@@ -182,6 +182,7 @@ public:
void InsColorLine( const SvxBoxItem& rBox );
void OutColorTable();
USHORT GetRedline( const String& rAuthor );
const String* GetRedline( USHORT nId );
void InsStyle( USHORT nId, const rtl::OString& rStyle );
rtl::OString* GetStyle( USHORT nId );
......
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