void WindowUpdater::RegisterWindow (vcl::Window* pWindow)
{ if (pWindow != nullptr)
{
tWindowList::iterator aWindowIterator (
::std::find (
maWindowList.begin(), maWindowList.end(), pWindow)); if (aWindowIterator == maWindowList.end())
{ // Update the device once right now and add it to the list.
Update (pWindow->GetOutDev());
maWindowList.emplace_back(pWindow);
}
}
}
LanguageType aLanguage; // Now this is a bit confusing. The numerals in arabic languages // are Hindi numerals and what the western world generally uses are // arabic numerals. The digits used in the Hindi language are not // used at all. switch (aNumeralMode)
{ case SvtCTLOptions::NUMERALS_HINDI:
aLanguage = LANGUAGE_ARABIC_SAUDI_ARABIA; break;
case SvtCTLOptions::NUMERALS_SYSTEM:
aLanguage = LANGUAGE_SYSTEM; break;
case SvtCTLOptions::NUMERALS_ARABIC: default:
aLanguage = LANGUAGE_ENGLISH; break;
}
pDevice->SetDigitLanguage (aLanguage);
}
void WindowUpdater::ConfigurationChanged( utl::ConfigurationBroadcaster*, ConfigurationHints )
{ // Set the current state at all registered output devices. for (auto& rxWindow : maWindowList)
Update (rxWindow->GetOutDev());
// Reformat the document for the modified state to take effect. if (mpDocument != nullptr)
mpDocument->ReformatAllTextObjects();
// Invalidate the windows to make the modified state visible. for (auto& rxWindow : maWindowList)
rxWindow->Invalidate();
}
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.