-// -*- 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");
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");
}
}
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx