${TOP_SRC_DIR}/src/frontends/qt4/${LYX_CPP_FILES})
file(GLOB moc_files ${TOP_SRC_DIR}/src/frontends/qt4/${LYX_MOC_FILES})
list(REMOVE_ITEM frontends_qt4_sources ${moc_files} .)
+list(REMOVE_ITEM frontends_qt4_sources ${TOP_SRC_DIR}/src/frontends/qt4/liblyxqt4.cpp)
file(GLOB frontends_qt4_headers
${TOP_SRC_DIR}/src/frontends/qt4/${LYX_HPP_FILES})
string tag;
};
- typedef map<string, Attributes> Translator;
+ typedef map<string, Attributes> TranslationMap;
- void buildTranslator(Translator & t) {
+ void buildTranslationMap(TranslationMap & t) {
// the decorations we need to support are listed in lib/symbols
t["acute"] = Attributes(true, "´");
t["bar"] = Attributes(true, "‾");
t["widetilde"] = Attributes(true, "∼");
}
- Translator const & translator() {
- static Translator t;
+ TranslationMap const & translationMap() {
+ static TranslationMap t;
if (t.empty())
- buildTranslator(t);
+ buildTranslationMap(t);
return t;
}
}
void InsetMathDecoration::mathmlize(MathStream & os) const
{
- Translator const & t = translator();
- Translator::const_iterator cur = t.find(to_utf8(key_->name));
+ TranslationMap const & t = translationMap();
+ TranslationMap::const_iterator cur = t.find(to_utf8(key_->name));
LASSERT(cur != t.end(), return);
char const * const outag = cur->second.over ? "mover" : "munder";
os << MTag(outag)
return;
}
- Translator const & t = translator();
- Translator::const_iterator cur = t.find(name);
+ TranslationMap const & t = translationMap();
+ TranslationMap::const_iterator cur = t.find(name);
LASSERT(cur != t.end(), return);
bool symontop = cur->second.over;
namespace {
-MathWordList theWordList;
+MathWordList theMathWordList;
bool isMathFontAvailable(docstring & name)
<< " used for " << to_utf8(tmp.name));
}
- if (theWordList.find(tmp.name) != theWordList.end())
+ if (theMathWordList.find(tmp.name) != theMathWordList.end())
LYXERR(Debug::MATHED, "readSymbols: inset " << to_utf8(tmp.name)
<< " already exists.");
else
- theWordList[tmp.name] = tmp;
+ theMathWordList[tmp.name] = tmp;
LYXERR(Debug::MATHED, "read symbol '" << to_utf8(tmp.name)
<< " inset: " << to_utf8(tmp.inset)
MathWordList const & mathedWordList()
{
- return theWordList;
+ return theMathWordList;
}
latexkeys const * in_word_set(docstring const & str)
{
- MathWordList::iterator it = theWordList.find(str);
- return it != theWordList.end() ? &(it->second) : 0;
+ MathWordList::iterator it = theMathWordList.find(str);
+ return it != theMathWordList.end() ? &(it->second) : 0;
}