]> git.lyx.org Git - lyx.git/blobdiff - src/lyxrc.C
the spellcheck cleanup
[lyx.git] / src / lyxrc.C
index 99c6b02a81ddff7435df9aed7287bbae32ee8ace..911c2a80cf878afeab80e24367890281823e57a2 100644 (file)
 #include "converter.h"
 #include "format.h"
 #include "gettext.h"
+#include "LColor.h"
 #include "lyxlex.h"
 #include "lyxfont.h"
 
+#include "graphics/GraphicsTypes.h"
+
 #include "support/filetools.h"
 #include "support/lstrings.h"
 #include "support/translator.h"
@@ -46,15 +49,9 @@ using std::endl;
 using std::ios;
 using std::ofstream;
 using std::ostream;
+using std::string;
 
 
-namespace lyx {
-namespace graphics {
-/// The translator between the DisplayType and the corresponding lyx string.
-extern Translator<DisplayType, string> displayTranslator;
-}
-}
-
 namespace {
 
 // when adding something to this array keep it sorted!
@@ -355,7 +352,7 @@ int LyXRC::read(string const & filename)
 
                case RC_DISPLAY_GRAPHICS:
                        if (lexrc.next()) {
-                               display_graphics = lyx::graphics::displayTranslator.find(lexrc.getString());
+                               display_graphics = lyx::graphics::displayTranslator().find(lexrc.getString());
                        }
                        break;
 
@@ -1132,7 +1129,7 @@ void LyXRC::output(ostream & os) const
                        os << "# Display graphics within LyX\n"
                           << "# monochrome|grayscale|color|none\n"
                           << "\\display_graphics "
-                          << lyx::graphics::displayTranslator.find(display_graphics)
+                          << lyx::graphics::displayTranslator().find(display_graphics)
                           << '\n';
                }