Commit 8c52d88d authored by Elen.Subbotina's avatar Elen.Subbotina Committed by Alexander Trofimov

DocFormat - embeded fix в НАЧАЛАМГ 21-05-02.doc

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@65816 954022d7-b5bf-4e40-9824-e11837661b57
parent 2bb332bc
......@@ -471,12 +471,13 @@ namespace DocFileFormat
int cpFieldEnd = searchNextTextMark( m_document->Text, cpFieldStart, TextMark::FieldEndMark );
std::wstring f( ( m_document->Text->begin() + cpFieldStart ), ( m_document->Text->begin() + cpFieldEnd + 1 ) );
std::wstring embed ( _T( " EMBED" ) );
std::wstring link ( _T( " LINK" ) );
std::wstring form ( _T( " FORM" ) );
std::wstring excel ( _T( " Excel" ) );
std::wstring word ( _T( " Word" ) );
std::wstring mergeformat ( _T( " MERGEFORMAT" ) );
std::wstring embed ( _T( " EMBED" ) );
std::wstring link ( _T( " LINK" ) );
std::wstring form ( _T( " FORM" ) );
std::wstring excel ( _T( " Excel" ) );
std::wstring word ( _T( " Word" ) );
std::wstring equation ( _T( " Equation" ) ) ;
std::wstring mergeformat( _T( " MERGEFORMAT" ) );
if ( search( f.begin(), f.end(), form.begin(), form.end() ) != f.end() )
{
......@@ -501,10 +502,12 @@ namespace DocFileFormat
this->_fldCharCounter++;
}
else if ((search(f.begin(), f.end(), mergeformat.begin(), mergeformat.end()) != f.end()) ||
((search(f.begin(), f.end(), excel.begin(), excel.end()) != f.end() ||
search(f.begin(), f.end(), word.begin(), word.end()) != f.end()) &&
search(f.begin(), f.end(), embed.begin(), embed.end()) != f.end()))
else if (( search(f.begin(), f.end(), mergeformat.begin(), mergeformat.end()) != f.end()) ||
(( search(f.begin(), f.end(), excel.begin(), excel.end()) != f.end() ||
search(f.begin(), f.end(), equation.begin(), equation.end()) != f.end() ||
search(f.begin(), f.end(), word.begin(), word.end()) != f.end())
&&
search(f.begin(), f.end(), embed.begin(), embed.end()) != f.end()))
{
int cpPic = searchNextTextMark(m_document->Text, cpFieldStart, TextMark::Picture);
int cpFieldSep = searchNextTextMark(m_document->Text, cpFieldStart, TextMark::FieldSeparator);
......
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