Add possibility of generating foot/endnotes with text labels
This commit is contained in:
committed by
Fridrich Štrba
parent
916b0a18ac
commit
27482e865d
@@ -852,8 +852,17 @@ void OdtGenerator::openFootnote(const WPXPropertyList &propList)
|
|||||||
}
|
}
|
||||||
mpImpl->mpCurrentContentElements->push_back(pOpenFootNote);
|
mpImpl->mpCurrentContentElements->push_back(pOpenFootNote);
|
||||||
|
|
||||||
mpImpl->mpCurrentContentElements->push_back(new TagOpenElement("text:note-citation"));
|
TagOpenElement *pOpenFootCitation = new TagOpenElement("text:note-citation");
|
||||||
if (propList["libwpd:number"])
|
if (propList["text:label"])
|
||||||
|
{
|
||||||
|
WPXString tmpString(propList["text:label"]->getStr(),true);
|
||||||
|
pOpenFootCitation->addAttribute("text:label", tmpString);
|
||||||
|
}
|
||||||
|
mpImpl->mpCurrentContentElements->push_back(pOpenFootCitation);
|
||||||
|
|
||||||
|
if (propList["text:label"])
|
||||||
|
mpImpl->mpCurrentContentElements->push_back(new CharDataElement(propList["text:label"]->getStr().cstr()));
|
||||||
|
else if (propList["libwpd:number"])
|
||||||
mpImpl->mpCurrentContentElements->push_back(new CharDataElement(propList["libwpd:number"]->getStr().cstr()));
|
mpImpl->mpCurrentContentElements->push_back(new CharDataElement(propList["libwpd:number"]->getStr().cstr()));
|
||||||
mpImpl->mpCurrentContentElements->push_back(new TagCloseElement("text:note-citation"));
|
mpImpl->mpCurrentContentElements->push_back(new TagCloseElement("text:note-citation"));
|
||||||
|
|
||||||
@@ -885,8 +894,17 @@ void OdtGenerator::openEndnote(const WPXPropertyList &propList)
|
|||||||
}
|
}
|
||||||
mpImpl->mpCurrentContentElements->push_back(pOpenEndNote);
|
mpImpl->mpCurrentContentElements->push_back(pOpenEndNote);
|
||||||
|
|
||||||
mpImpl->mpCurrentContentElements->push_back(new TagOpenElement("text:note-citation"));
|
TagOpenElement *pOpenEndCitation = new TagOpenElement("text:note-citation");
|
||||||
if (propList["libwpd:number"])
|
if (propList["text:label"])
|
||||||
|
{
|
||||||
|
WPXString tmpString(propList["text:label"]->getStr(),true);
|
||||||
|
pOpenEndCitation->addAttribute("text:label", tmpString);
|
||||||
|
}
|
||||||
|
mpImpl->mpCurrentContentElements->push_back(pOpenEndCitation);
|
||||||
|
|
||||||
|
if (propList["text:label"])
|
||||||
|
mpImpl->mpCurrentContentElements->push_back(new CharDataElement(propList["text:label"]->getStr().cstr()));
|
||||||
|
else if (propList["libwpd:number"])
|
||||||
mpImpl->mpCurrentContentElements->push_back(new CharDataElement(propList["libwpd:number"]->getStr().cstr()));
|
mpImpl->mpCurrentContentElements->push_back(new CharDataElement(propList["libwpd:number"]->getStr().cstr()));
|
||||||
mpImpl->mpCurrentContentElements->push_back(new TagCloseElement("text:note-citation"));
|
mpImpl->mpCurrentContentElements->push_back(new TagCloseElement("text:note-citation"));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user