mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
cmake: more merged build fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34274 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
4a37097d78
commit
38628558a6
@ -78,3 +78,8 @@
|
|||||||
#undef Status
|
#undef Status
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef IN
|
||||||
|
#undef IN
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@ file(GLOB frontends_qt4_sources
|
|||||||
${TOP_SRC_DIR}/src/frontends/qt4/${LYX_CPP_FILES})
|
${TOP_SRC_DIR}/src/frontends/qt4/${LYX_CPP_FILES})
|
||||||
file(GLOB moc_files ${TOP_SRC_DIR}/src/frontends/qt4/${LYX_MOC_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 ${moc_files} .)
|
||||||
|
list(REMOVE_ITEM frontends_qt4_sources ${TOP_SRC_DIR}/src/frontends/qt4/liblyxqt4.cpp)
|
||||||
|
|
||||||
file(GLOB frontends_qt4_headers
|
file(GLOB frontends_qt4_headers
|
||||||
${TOP_SRC_DIR}/src/frontends/qt4/${LYX_HPP_FILES})
|
${TOP_SRC_DIR}/src/frontends/qt4/${LYX_HPP_FILES})
|
||||||
|
@ -173,9 +173,9 @@ namespace {
|
|||||||
string tag;
|
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
|
// the decorations we need to support are listed in lib/symbols
|
||||||
t["acute"] = Attributes(true, "´");
|
t["acute"] = Attributes(true, "´");
|
||||||
t["bar"] = Attributes(true, "‾");
|
t["bar"] = Attributes(true, "‾");
|
||||||
@ -206,18 +206,18 @@ namespace {
|
|||||||
t["widetilde"] = Attributes(true, "∼");
|
t["widetilde"] = Attributes(true, "∼");
|
||||||
}
|
}
|
||||||
|
|
||||||
Translator const & translator() {
|
TranslationMap const & translationMap() {
|
||||||
static Translator t;
|
static TranslationMap t;
|
||||||
if (t.empty())
|
if (t.empty())
|
||||||
buildTranslator(t);
|
buildTranslationMap(t);
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void InsetMathDecoration::mathmlize(MathStream & os) const
|
void InsetMathDecoration::mathmlize(MathStream & os) const
|
||||||
{
|
{
|
||||||
Translator const & t = translator();
|
TranslationMap const & t = translationMap();
|
||||||
Translator::const_iterator cur = t.find(to_utf8(key_->name));
|
TranslationMap::const_iterator cur = t.find(to_utf8(key_->name));
|
||||||
LASSERT(cur != t.end(), return);
|
LASSERT(cur != t.end(), return);
|
||||||
char const * const outag = cur->second.over ? "mover" : "munder";
|
char const * const outag = cur->second.over ? "mover" : "munder";
|
||||||
os << MTag(outag)
|
os << MTag(outag)
|
||||||
@ -240,8 +240,8 @@ void InsetMathDecoration::htmlize(HtmlStream & os) const
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Translator const & t = translator();
|
TranslationMap const & t = translationMap();
|
||||||
Translator::const_iterator cur = t.find(name);
|
TranslationMap::const_iterator cur = t.find(name);
|
||||||
LASSERT(cur != t.end(), return);
|
LASSERT(cur != t.end(), return);
|
||||||
|
|
||||||
bool symontop = cur->second.over;
|
bool symontop = cur->second.over;
|
||||||
|
@ -78,7 +78,7 @@ bool has_math_fonts;
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
MathWordList theWordList;
|
MathWordList theMathWordList;
|
||||||
|
|
||||||
|
|
||||||
bool isMathFontAvailable(docstring & name)
|
bool isMathFontAvailable(docstring & name)
|
||||||
@ -208,11 +208,11 @@ void initSymbols()
|
|||||||
<< " used for " << to_utf8(tmp.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)
|
LYXERR(Debug::MATHED, "readSymbols: inset " << to_utf8(tmp.name)
|
||||||
<< " already exists.");
|
<< " already exists.");
|
||||||
else
|
else
|
||||||
theWordList[tmp.name] = tmp;
|
theMathWordList[tmp.name] = tmp;
|
||||||
|
|
||||||
LYXERR(Debug::MATHED, "read symbol '" << to_utf8(tmp.name)
|
LYXERR(Debug::MATHED, "read symbol '" << to_utf8(tmp.name)
|
||||||
<< " inset: " << to_utf8(tmp.inset)
|
<< " inset: " << to_utf8(tmp.inset)
|
||||||
@ -242,7 +242,7 @@ bool isSpecialChar(docstring const & name)
|
|||||||
|
|
||||||
MathWordList const & mathedWordList()
|
MathWordList const & mathedWordList()
|
||||||
{
|
{
|
||||||
return theWordList;
|
return theMathWordList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -301,8 +301,8 @@ int ensureMode(WriteStream & os, InsetMath::mode_type mode,
|
|||||||
|
|
||||||
latexkeys const * in_word_set(docstring const & str)
|
latexkeys const * in_word_set(docstring const & str)
|
||||||
{
|
{
|
||||||
MathWordList::iterator it = theWordList.find(str);
|
MathWordList::iterator it = theMathWordList.find(str);
|
||||||
return it != theWordList.end() ? &(it->second) : 0;
|
return it != theMathWordList.end() ? &(it->second) : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user