Lines 274-284
Link Here
|
274 |
currentStyle->getFont()->setHscale(static_cast<int>(getSize(attrValue, -1.0))); |
274 |
currentStyle->getFont()->setHscale(static_cast<int>(getSize(attrValue, -1.0))); |
275 |
else if ((attrName == "style:text-position") && |
275 |
else if ((attrName == "style:text-position") && |
276 |
((attrValue.indexOf("sub") != -1) || |
276 |
((attrValue.indexOf("sub") != -1) || |
277 |
((attrValue.at(0) == "-") && (attrValue.at(0) != "0")))) |
277 |
((attrValue.at(0) == '-') && (attrValue.at(0) != '0')))) |
278 |
currentStyle->getFont()->toggleEffect(SUBSCRIPT); |
278 |
currentStyle->getFont()->toggleEffect(SUBSCRIPT); |
279 |
else if ((attrName == "style:text-position") && |
279 |
else if ((attrName == "style:text-position") && |
280 |
((attrValue.indexOf("super") != -1) || |
280 |
((attrValue.indexOf("super") != -1) || |
281 |
((attrValue.at(0) != "-") && (attrValue.at(0) != "0")))) |
281 |
((attrValue.at(0) != '-') && (attrValue.at(0) != '0')))) |
282 |
currentStyle->getFont()->toggleEffect(SUPERSCRIPT); |
282 |
currentStyle->getFont()->toggleEffect(SUPERSCRIPT); |
283 |
else if ((attrName == "fo:margin-top") && (pstyle != nullptr)) |
283 |
else if ((attrName == "fo:margin-top") && (pstyle != nullptr)) |
284 |
pstyle->setSpaceAbove(getSize(attrValue)); |
284 |
pstyle->setSpaceAbove(getSize(attrValue)); |
Lines 652-662
Link Here
|
652 |
style->getFont()->setHscale(static_cast<int>(getSize(value, -1.0))); |
652 |
style->getFont()->setHscale(static_cast<int>(getSize(value, -1.0))); |
653 |
else if ((key == "style:text-position") && |
653 |
else if ((key == "style:text-position") && |
654 |
((value.indexOf("sub") != -1) || |
654 |
((value.indexOf("sub") != -1) || |
655 |
((value.at(0) == "-") && (value.at(0) != "0")))) |
655 |
((value.at(0) == '-') && (value.at(0) != '0')))) |
656 |
style->getFont()->toggleEffect(SUBSCRIPT); |
656 |
style->getFont()->toggleEffect(SUBSCRIPT); |
657 |
else if ((key == "style:text-position") && |
657 |
else if ((key == "style:text-position") && |
658 |
((value.indexOf("super") != -1) || |
658 |
((value.indexOf("super") != -1) || |
659 |
((value.at(0) != "-") && (value.at(0) != "0")))) |
659 |
((value.at(0) != '-') && (value.at(0) != '0')))) |
660 |
style->getFont()->toggleEffect(SUPERSCRIPT); |
660 |
style->getFont()->toggleEffect(SUPERSCRIPT); |
661 |
else if ((key == "fo:margin-top") && (pstyle != nullptr)) |
661 |
else if ((key == "fo:margin-top") && (pstyle != nullptr)) |
662 |
pstyle->setSpaceAbove(getSize(value)); |
662 |
pstyle->setSpaceAbove(getSize(value)); |