]> git.lyx.org Git - lyx.git/blobdiff - src/factory.cpp
* src/LyXRC.{cpp,h}:
[lyx.git] / src / factory.cpp
index 347493a75039f9323ce75157df8ce4c178c38592..64eb68047e1e2ac97a35139efa3947291f374356 100644 (file)
@@ -18,7 +18,6 @@
 #include "debug.h"
 #include "FloatList.h"
 #include "FuncRequest.h"
-#include "Color.h"
 #include "Lexer.h"
 #include "LyX.h"
 
@@ -206,7 +205,7 @@ Inset * createInset(BufferView * bv, FuncRequest const & cmd)
                        auto_ptr<InsetCaption> inset(new InsetCaption(params));
                        inset->setAutoBreakRows(true);
                        inset->setDrawFrame(true);
-                       inset->setFrameColor(Color::captionframe);
+                       inset->setFrameColor(Color_captionframe);
                        return inset.release();
                }
 
@@ -437,9 +436,6 @@ Inset * readInset(Lexer & lex, Buffer const & buf)
                        case INCLUDE_CODE:
                                inset.reset(new InsetInclude(inscmd));
                                break;
-                       case INDEX_CODE:
-                               inset.reset(new InsetIndex(buf.params()));
-                               break;
                        case INDEX_PRINT_CODE:
                                inset.reset(new InsetPrintIndex(inscmd));
                                break;
@@ -546,18 +542,6 @@ Inset * readInset(Lexer & lex, Buffer const & buf)
                }
 
                inset->read(buf, lex);
-
-// FIXME: hack..
-               if (inset->lyxCode() == MATHMACRO_CODE) {
-                       MathMacroTemplate const * tmpl =
-                               static_cast<MathMacroTemplate*>(inset.get());
-                       MacroTable::globalMacros().insert
-                               (tmpl->name(), tmpl->asMacroData());
-                       LYXERR(Debug::DEBUG)
-                               << BOOST_CURRENT_FUNCTION
-                               << ": creating local macro " << to_utf8(tmpl->name())
-                               << endl;
-               }
        }
 
        return inset.release();