10#ifndef IWORKLANGUAGEMANAGER_H_INCLUDED
11#define IWORKLANGUAGEMANAGER_H_INCLUDED
15#include <unordered_map>
16#include <unordered_set>
18#include <librevenge/librevenge.h>
30 const std::string
addTag(
const std::string &tag);
31 const std::string
addLanguage(
const std::string &lang);
32 const std::string
addLocale(
const std::string &locale);
34 const std::string
getLanguage(
const std::string &tag)
const;
36 void writeProperties(
const std::string &tag, librevenge::RVNGPropertyList &props)
const;
44 std::unordered_map<std::string, std::string>
m_tagMap;
46 std::unordered_map<std::string, std::string>
m_langMap;
50 std::unordered_map<std::string, librevenge::RVNGPropertyList>
m_propsMap;
Definition IWORKLanguageManager.h:24
const LangDB & getLangDB() const
Definition IWORKLanguageManager.cpp:212
const std::string addLanguage(const std::string &lang)
Definition IWORKLanguageManager.cpp:133
std::unordered_map< std::string, std::string > m_localeMap
Definition IWORKLanguageManager.h:48
std::unordered_map< std::string, std::string > m_langMap
Definition IWORKLanguageManager.h:46
std::unordered_map< std::string, librevenge::RVNGPropertyList > m_propsMap
Definition IWORKLanguageManager.h:50
std::unordered_set< std::string > m_invalidLangs
Definition IWORKLanguageManager.h:47
const std::string addLocale(const std::string &locale)
Definition IWORKLanguageManager.cpp:167
std::unordered_map< std::string, std::string > m_tagMap
Definition IWORKLanguageManager.h:44
std::shared_ptr< LangDB > m_langDB
Definition IWORKLanguageManager.h:51
std::unordered_set< std::string > m_invalidLocales
Definition IWORKLanguageManager.h:49
IWORKLanguageManager()
Definition IWORKLanguageManager.cpp:92
void writeProperties(const std::string &tag, librevenge::RVNGPropertyList &props) const
Definition IWORKLanguageManager.cpp:243
void addProperties(const std::string &tag)
Definition IWORKLanguageManager.cpp:219
const std::string getLanguage(const std::string &tag) const
Definition IWORKLanguageManager.cpp:199
const std::string addTag(const std::string &tag)
Definition IWORKLanguageManager.cpp:104
std::unordered_set< std::string > m_invalidTags
Definition IWORKLanguageManager.h:45
Definition IWORKBezierElement.cpp:21
Definition IWORKLanguageManager.cpp:69