mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
h1-h6
This commit is contained in:
@ -1548,6 +1548,42 @@ void readStream(NSStringUtils::CStringBuilder& oXml, XmlUtils::CXmlLiteReader& o
|
|||||||
if (!bWasP)
|
if (!bWasP)
|
||||||
oXml.WriteString(L"</p>");
|
oXml.WriteString(L"</p>");
|
||||||
}
|
}
|
||||||
|
else if (sName == L"h1")
|
||||||
|
{
|
||||||
|
oXml.WriteString(L"<title><p>");
|
||||||
|
readStream(oXml, oIndexHtml, arrBinary, true);
|
||||||
|
oXml.WriteString(L"</p></title>");
|
||||||
|
}
|
||||||
|
else if (sName == L"h2")
|
||||||
|
{
|
||||||
|
oXml.WriteString(L"<section><title><p>");
|
||||||
|
readStream(oXml, oIndexHtml, arrBinary, true);
|
||||||
|
oXml.WriteString(L"</p></title></section>");
|
||||||
|
}
|
||||||
|
else if (sName == L"h3")
|
||||||
|
{
|
||||||
|
oXml.WriteString(L"<section><section><title><p>");
|
||||||
|
readStream(oXml, oIndexHtml, arrBinary, true);
|
||||||
|
oXml.WriteString(L"</p></title></section></section>");
|
||||||
|
}
|
||||||
|
else if (sName == L"h4")
|
||||||
|
{
|
||||||
|
oXml.WriteString(L"<section><section><section><title><p>");
|
||||||
|
readStream(oXml, oIndexHtml, arrBinary, true);
|
||||||
|
oXml.WriteString(L"</p></title></section></section></section>");
|
||||||
|
}
|
||||||
|
else if (sName == L"h5")
|
||||||
|
{
|
||||||
|
oXml.WriteString(L"<section><section><section><section><title><p>");
|
||||||
|
readStream(oXml, oIndexHtml, arrBinary, true);
|
||||||
|
oXml.WriteString(L"</p></title></section></section></section></section>");
|
||||||
|
}
|
||||||
|
else if (sName == L"h6")
|
||||||
|
{
|
||||||
|
oXml.WriteString(L"<section><section><section><section><section><title><p>");
|
||||||
|
readStream(oXml, oIndexHtml, arrBinary, true);
|
||||||
|
oXml.WriteString(L"</p></title></section></section></section></section></section>");
|
||||||
|
}
|
||||||
else if (sName == L"span")
|
else if (sName == L"span")
|
||||||
{
|
{
|
||||||
std::wstring sStyle;
|
std::wstring sStyle;
|
||||||
|
|||||||
Reference in New Issue
Block a user