if (rPropsNode.GetFormatColl() == &rFormat)
{ // if a FormatCollection is found then it is definitely a SwContentNode
// FORWARD: SPoint at the end, GetMark at the beginning of the node // BACKWARD: SPoint at the beginning, GetMark at the end of the node // always: incl. start and incl. end if (pFrame)
{
*rSearchPam.GetPoint() = *oPam->GetPoint();
rSearchPam.SetMark();
*rSearchPam.GetMark() = pFrame->MapViewToModelPos(
TextFrameIndex(bSrchForward ? pFrame->GetText().getLength() : 0));
} else
{
*rSearchPam.GetPoint() = *oPam->GetPoint();
rSearchPam.SetMark();
rSearchPam.GetPoint()->SetContent(pNode->Len());
rSearchPam.GetMark()->SetContent(0);
}
// if backward search, switch point and mark if( !bSrchForward )
rSearchPam.Exchange();
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.