switch( eLocation )
{ case style::GraphicLocation_LEFT_TOP: case style::GraphicLocation_MIDDLE_TOP: case style::GraphicLocation_RIGHT_TOP:
aOut.append( GetXMLToken(XML_TOP) );
bRet = true; break; case style::GraphicLocation_LEFT_MIDDLE: case style::GraphicLocation_MIDDLE_MIDDLE: case style::GraphicLocation_RIGHT_MIDDLE:
aOut.append( GetXMLToken(XML_CENTER) );
bRet = true; break; case style::GraphicLocation_LEFT_BOTTOM: case style::GraphicLocation_MIDDLE_BOTTOM: case style::GraphicLocation_RIGHT_BOTTOM:
aOut.append( GetXMLToken(XML_BOTTOM) );
bRet = true; break; default: break;
}
if( bRet )
{
aOut.append( ' ' );
switch( eLocation )
{ case style::GraphicLocation_LEFT_TOP: case style::GraphicLocation_LEFT_BOTTOM: case style::GraphicLocation_LEFT_MIDDLE:
aOut.append( GetXMLToken(XML_LEFT) ); break; case style::GraphicLocation_MIDDLE_TOP: case style::GraphicLocation_MIDDLE_MIDDLE: case style::GraphicLocation_MIDDLE_BOTTOM:
aOut.append( GetXMLToken(XML_CENTER) ); break; case style::GraphicLocation_RIGHT_MIDDLE: case style::GraphicLocation_RIGHT_TOP: case style::GraphicLocation_RIGHT_BOTTOM:
aOut.append( GetXMLToken(XML_RIGHT) ); break; default: break;
}
}
}
rStrExpValue = aOut.makeStringAndClear();
return bRet;
}
void XMLBackGraphicPositionPropHdl::MergeXMLVertPos( style::GraphicLocation& ePos, style::GraphicLocation eVert )
{ switch( ePos )
{ case style::GraphicLocation_LEFT_TOP: case style::GraphicLocation_LEFT_MIDDLE: case style::GraphicLocation_LEFT_BOTTOM:
ePos = style::GraphicLocation_MIDDLE_TOP==eVert ?
style::GraphicLocation_LEFT_TOP :
(style::GraphicLocation_MIDDLE_MIDDLE==eVert ?
style::GraphicLocation_LEFT_MIDDLE :
style::GraphicLocation_LEFT_BOTTOM); break;
case style::GraphicLocation_MIDDLE_TOP: case style::GraphicLocation_MIDDLE_MIDDLE: case style::GraphicLocation_MIDDLE_BOTTOM:
ePos = eVert; break;
case style::GraphicLocation_RIGHT_TOP: case style::GraphicLocation_RIGHT_MIDDLE: case style::GraphicLocation_RIGHT_BOTTOM:
ePos = style::GraphicLocation_MIDDLE_TOP==eVert ?
style::GraphicLocation_RIGHT_TOP :
(style::GraphicLocation_MIDDLE_MIDDLE==eVert ?
style::GraphicLocation_RIGHT_MIDDLE :
style::GraphicLocation_RIGHT_BOTTOM); break; default: break;
}
}
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.