Reference<XPropertyState> xState(xStart, UNO_QUERY);
Any aOldFontName = xState->getPropertyDefault(u"CharFontName"_ustr);
Any aOldFontPitch = xState->getPropertyDefault(u"CharFontPitch"_ustr);
Any aOldFontFamily = xState->getPropertyDefault(u"CharFontFamily"_ustr);
Any aOldFontCharSet = xState->getPropertyDefault(u"CharFontCharSet"_ustr);
// If no text color specified let's anyway initialize it as default: // this will help to recover after hyperlink if (!aTextCharacterProps.maFillProperties.maFillColor.isUsed())
aTextCharacterProps.maFillProperties.moFillType = XML_solidFill;
aTextCharacterProps.assignUsed(maTextCharacterProperties); if ( aTextCharacterProps.moHeight.has_value() )
nCharHeight = aTextCharacterProps.moHeight.value(); else // UNO API has the character height as float, DML has it as int, but in hundreds.
aTextCharacterProps.moHeight = static_cast<sal_Int32>(nDefaultCharHeight * 100);
aTextCharacterProps.pushToPropSet( aPropSet, rFilterBase );
// Direct formatting for symbols. if (bSymbol && aTextCharacterProps.maSymbolFont.getFontData(aFontName, nFontPitch, nFontFamily, &bSymbolEnc, rFilterBase))
if (!maTextCharacterProperties.maHyperlinkPropertyMap.hasProperty(PROP_CharColor))
aTextCharacterProps.maFillProperties.maFillColor.setSchemeClr(XML_hlink);
aTextCharacterProps.maFillProperties.moFillType = XML_solidFill; if ( !maTextCharacterProperties.moUnderline.has_value() )
aTextCharacterProps.moUnderline = XML_sng;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.