bool bIsSpellWrong = 0 != (rLngSvcEvent.nEvent & SPELL_WRONG_WORDS_AGAIN); bool bIsSpellAll = 0 != (rLngSvcEvent.nEvent & SPELL_CORRECT_WORDS_AGAIN); if (0 != (rLngSvcEvent.nEvent & PROOFREAD_AGAIN))
bIsSpellWrong = bIsSpellAll = true; // have all spelling and grammar checked... if (bIsSpellWrong || bIsSpellAll)
{
SwModule::CheckSpellChanges( false, bIsSpellWrong, bIsSpellAll, false );
} if (!(rLngSvcEvent.nEvent & HYPHENATE_AGAIN)) return;
SwView *pSwView = SwModule::GetFirstView();
//!! since this function may be called within the ctor of //!! SwView (during formatting) where the WrtShell is not yet //!! created, we have to check for the WrtShellPtr to see //!! if it is already available while (pSwView && pSwView->GetWrtShellPtr())
{
pSwView->GetWrtShell().ChgHyphenation();
pSwView = SwModule::GetNextView( pSwView );
}
}
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.