]> 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 00ef8a47ab575715b433c5101a28ea8a8dfe9d2f..8ad4dab9fef26aa2e3d834d7143e4d65a7a89594 100644 (file)
@@ -1,19 +1,27 @@
-// -*- C++ -*-
 /**
- *  \file GraphicsTypes.C
- *  Read the file COPYING
+ * \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");
+Translator<DisplayType, string> displayTranslator(DefaultDisplay, "default");
 
 void setDisplayTranslator()
 {
@@ -29,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");
@@ -37,4 +45,5 @@ void setDisplayTranslator()
        }
 }
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx