]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/character.h
fix crash due to invalidated iterator
[lyx.git] / src / frontends / controllers / character.h
index d145376a232519a2fd05aada463667fc0a8333dd..9e4f2cc79e3f08a4aa2267515d5ce1e230c380ba 100644 (file)
@@ -6,24 +6,25 @@
  *
  * \author Angus Leeming
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef CHARACTERHELPERS_H
 #define CHARACTERHELPERS_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 #include "lyxfont.h"
-#include "LColor.h"
 
 #include <utility>
 #include <vector>
 
+
+class LColor_color;
+
+
 /** Functions of use to the character GUI controller and view */
-namespace frnt {
+namespace lyx {
+namespace frontend {
 
 ///
 enum FONT_STATE {
@@ -40,17 +41,17 @@ enum FONT_STATE {
 };
 
 ///
-typedef std::pair<string, LyXFont::FONT_FAMILY> FamilyPair;
+typedef std::pair<std::string, LyXFont::FONT_FAMILY> FamilyPair;
 ///
-typedef std::pair<string, LyXFont::FONT_SERIES> SeriesPair;
+typedef std::pair<std::string, LyXFont::FONT_SERIES> SeriesPair;
 ///
-typedef std::pair<string, LyXFont::FONT_SHAPE>  ShapePair;
+typedef std::pair<std::string, LyXFont::FONT_SHAPE>  ShapePair;
 ///
-typedef std::pair<string, LyXFont::FONT_SIZE>   SizePair;
+typedef std::pair<std::string, LyXFont::FONT_SIZE>   SizePair;
 ///
-typedef std::pair<string, FONT_STATE> BarPair;
+typedef std::pair<std::string, FONT_STATE> BarPair;
 ///
-typedef std::pair<string, LColor::color> ColorPair;
+typedef std::pair<std::string, LColor_color> ColorPair;
 
 ///
 std::vector<FamilyPair>   const getFamilyData();
@@ -65,6 +66,7 @@ std::vector<BarPair>      const getBarData();
 ///
 std::vector<ColorPair>    const getColorData();
 
-} // namespace frnt
+} // namespace frontend
+} // namespace lyx
 
 #endif // CHARACTERHELPERS