bool bIsEmpty = _rStr.isEmpty(); // calc the prefix
OUString sPrefix; if (!bIsEmpty)
{ // determine the type of the new URL described by the new text
sPrefix = m_pTypeCollection->getPrefix(_rStr);
}
// the fixed text gets the prefix
m_xForcedPrefix->set_label(sPrefix);
// do the real SetText
OUString sNewText( _rStr ); if ( !bIsEmpty )
sNewText = m_pTypeCollection->cutPrefix( _rStr );
m_xEntry->set_text(sNewText);
}
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.