]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsTypes.C
add <string> and other small fixes to make
[lyx.git] / src / graphics / GraphicsTypes.C
index 3750abeeeca75020ec7b64d3865e4f29c0a2fd44..8ad4dab9fef26aa2e3d834d7143e4d65a7a89594 100644 (file)
@@ -1,17 +1,24 @@
-// -*- C++ -*-
 /**
- *  \file GraphicsTypes.C
+ * \file GraphicsTypes.C
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- *  \author Rob Lahaye
+ * \author Rob Lahaye
  *
- * Full author contact details available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
+#include <config.h>
+
 #include "graphics/GraphicsTypes.h"
+#include "support/translator.h"
+
+
+using std::string;
 
-namespace grfx {
+
+namespace lyx {
+namespace graphics {
 
 /// The translator between the Display enum and corresponding lyx string.
 Translator<DisplayType, string> displayTranslator(DefaultDisplay, "default");
@@ -30,7 +37,7 @@ void setDisplayTranslator()
                displayTranslator.addPair(GrayscaleDisplay, "grayscale");
                displayTranslator.addPair(ColorDisplay, "color");
                displayTranslator.addPair(NoDisplay, "none");
-               
+
                // backward compatibility for old lyxrc.display_graphics
                displayTranslator.addPair(MonochromeDisplay, "mono");
                displayTranslator.addPair(GrayscaleDisplay, "gray");
@@ -38,4 +45,5 @@ void setDisplayTranslator()
        }
 }
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx