// find indices into property map and get values
sal_uInt32 nCount = pProperties->size(); for(sal_uInt32 i = 0; i < nCount; i++)
{ const XMLPropertyState& rState = (*pProperties)[i];
if( rState.mnIndex == -1 ) continue;
switch (rMapper->GetEntryContextId(rState.mnIndex))
{ case CTF_PM_FTN_LINE_ADJUST:
{
sal_Int16 nTmp; if (rState.maValue >>= nTmp)
eLineAdjust = static_cast<text::HorizontalAdjust>(nTmp); break;
} case CTF_PM_FTN_LINE_COLOR:
rState.maValue >>= nLineColor; break; case CTF_PM_FTN_DISTANCE:
rState.maValue >>= nLineDistance; break; case CTF_PM_FTN_LINE_WIDTH:
rState.maValue >>= nLineRelWidth; break; case CTF_PM_FTN_LINE_DISTANCE:
rState.maValue >>= nLineTextDistance; break; case CTF_PM_FTN_LINE_WEIGHT:
(void) nIdx;
assert(i == nIdx && "received wrong property state index");
rState.maValue >>= nLineWeight; break; case CTF_PM_FTN_LINE_STYLE:
rState.maValue >>= nLineStyle; break;
}
}
// line text distance if (nLineTextDistance > 0)
{
rExport.GetMM100UnitConverter().convertMeasureToXML(sBuf,
nLineTextDistance);
rExport.AddAttribute(XML_NAMESPACE_STYLE, XML_DISTANCE_BEFORE_SEP,
sBuf.makeStringAndClear());
}
// line distance if (nLineDistance > 0)
{
rExport.GetMM100UnitConverter().convertMeasureToXML(sBuf,
nLineDistance);
rExport.AddAttribute(XML_NAMESPACE_STYLE, XML_DISTANCE_AFTER_SEP,
sBuf.makeStringAndClear());
}
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.