uppercase у гиперссылок через field

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@67634 954022d7-b5bf-4e40-9824-e11837661b57
This commit is contained in:
Sergey.Konovalov
2016-01-21 12:59:57 +00:00
committed by Alexander Trofimov
parent 20c1099df6
commit 9190b0c9fe

View File

@ -2854,18 +2854,19 @@ namespace BinDocxRW
m_oBcw.WriteItemWithLengthEnd(nCurPos);
};
FldStruct* ParseField(CString& sFld)
FldStruct* ParseField(const CString& sFld)
{
sFld.Trim();
sFld.MakeUpper();
CString sFldCopy = sFld;
sFldCopy.Trim();
sFldCopy.MakeUpper();
FldStruct* pRes = NULL;
int nIndex = 0;
if(-1 != (nIndex = sFld.Find(_T("TOC"))))
pRes = new FldStruct(sFld, fieldstruct_toc);
else if(-1 != (nIndex = sFld.Find(_T("HYPERLINK"))))
pRes = new FldStruct(sFld, fieldstruct_hyperlink);
if(-1 != (nIndex = sFldCopy.Find(_T("TOC"))))
pRes = new FldStruct(sFldCopy, fieldstruct_toc);
else if(-1 != (nIndex = sFldCopy.Find(_T("HYPERLINK"))))
pRes = new FldStruct(sFldCopy, fieldstruct_hyperlink);
else
pRes = new FldStruct(sFld, fieldstruct_none);
pRes = new FldStruct(sFldCopy, fieldstruct_none);
return pRes;
}
void WriteParagraphContent(const std::vector<OOX::WritingElement *>& Content, bool bHyperlink = false)