26 css::uno::Reference<css::uno::XComponentContext> xContext)
31std::shared_ptr<SvxForbiddenCharactersTable>
33 const css::uno::Reference<css::uno::XComponentContext>& rxContext)
38const css::i18n::ForbiddenCharacters*
41 css::i18n::ForbiddenCharacters* pForbiddenCharacters =
nullptr;
42 Map::iterator it =
maMap.find(nLanguage);
43 if (it !=
maMap.end())
44 pForbiddenCharacters = &(it->second);
49 pForbiddenCharacters = &
maMap[nLanguage];
51 return pForbiddenCharacters;
55 LanguageType nLanguage,
const css::i18n::ForbiddenCharacters& rForbiddenChars)
57 maMap[nLanguage] = rForbiddenChars;
62 maMap.erase(nLanguage);
Reference< XComponentContext > m_xContext
css::i18n::ForbiddenCharacters getForbiddenCharacters() const
void SetForbiddenCharacters(LanguageType nLanguage, const css::i18n::ForbiddenCharacters &)
css::uno::Reference< css::uno::XComponentContext > m_xContext
void ClearForbiddenCharacters(LanguageType nLanguage)
const css::i18n::ForbiddenCharacters * GetForbiddenCharacters(LanguageType nLanguage, bool bGetDefault)
SvxForbiddenCharactersTable(css::uno::Reference< css::uno::XComponentContext > xContext)
static std::shared_ptr< SvxForbiddenCharactersTable > makeForbiddenCharactersTable(const css::uno::Reference< css::uno::XComponentContext > &rxContext)