]> git.lyx.org Git - lyx.git/commitdiff
cmake: more merged build fixes
authorPeter Kümmel <syntheticpp@gmx.net>
Fri, 23 Apr 2010 09:10:35 +0000 (09:10 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Fri, 23 Apr 2010 09:10:35 +0000 (09:10 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34274 a592a061-630c-0410-9148-cb99ea01b6c8

development/cmake/config.h.cmake
development/cmake/src/frontends/qt4/CMakeLists.txt
src/mathed/InsetMathDecoration.cpp
src/mathed/MathFactory.cpp

index f8b47ee4dbe7d3e518edced9c5d4e45bf4864195..b9852b647a0267b0eac88b05afd56ccfd39d79ac 100644 (file)
@@ -78,3 +78,8 @@
 #undef Status
 #endif
 
+#ifdef IN
+#undef IN
+#endif
+
+
index c332b3972bfdb88094b8e08ad54149be3ecd46b8..0a0c5ae629875cb8299ae48b8b21ea6fdfd4e9e3 100644 (file)
@@ -10,6 +10,7 @@ file(GLOB frontends_qt4_sources
        ${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})
index be28d0765e36075d0562ac56d4051ef8bf8cfe3d..d47c1a9c57786d0af753df1cc771b24e2d4f8b5f 100644 (file)
@@ -173,9 +173,9 @@ namespace {
                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, "&acute;");
                t["bar"]   = Attributes(true, "&OverBar;");
@@ -206,18 +206,18 @@ namespace {
                t["widetilde"] = Attributes(true, "&Tilde;");
        }
 
-       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)
@@ -240,8 +240,8 @@ void InsetMathDecoration::htmlize(HtmlStream & os) const
                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;
index 34933a078a03b38c1af612b99ec24d10140357e4..6750fa414fe421424b6959e9bdbc2f40d756e280 100644 (file)
@@ -78,7 +78,7 @@ bool has_math_fonts;
 
 namespace {
 
-MathWordList theWordList;
+MathWordList theMathWordList;
 
 
 bool isMathFontAvailable(docstring & name)
@@ -208,11 +208,11 @@ void initSymbols()
                                              << " 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)
@@ -242,7 +242,7 @@ bool isSpecialChar(docstring const & name)
 
 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)
 {
-       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;
 }