// Remove the first item with the same range.
std::vector<ScAutoStyleData>::iterator itr =
::std::find_if(aEntries.begin(), aEntries.end(), FindByRange(rRange));
if (itr != aEntries.end())
aEntries.erase(itr);
// adjust timeouts of all entries
if (!aEntries.empty() && nNow != nTimerStart)
{
OSL_ENSURE(nNow>nTimerStart, "Time is running backwards?");
AdjustEntries((nNow-nTimerStart)*1000);
}
// find insert position
std::vector<ScAutoStyleData>::iterator iter =
::std::find_if(aEntries.begin(), aEntries.end(), FindByTimeout(nTimeout));
void ScAutoStyleList::ExecuteEntries()
{ // Execute and remove all items with timeout == 0 from the begin position // until the first item with non-zero timeout value.
std::vector<ScAutoStyleData>::iterator itr = aEntries.begin(), itrEnd = aEntries.end(); for (; itr != itrEnd; ++itr)
{ if (itr->nTimeout) break;
pDocSh->DoAutoStyle(itr->aRange, itr->aStyle);
} // At this point itr should be on the first item with non-zero timeout, or // the end position in case all items have timeout == 0.
aEntries.erase(aEntries.begin(), itr);
}
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.