]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inset.h
Remove #include "LColor.h" from inset.h.
[lyx.git] / src / insets / inset.h
index 9d38ab9d046845b1c52297f85903aaf192b08d83..a9feca8ad4b637d1265a979e63600e3c611c546c 100644 (file)
 
 #include "insetbase.h"
 #include "dimension.h"
-#include "LColor.h"
 #include "ParagraphList_fwd.h"
 
 class Buffer;
+class EnumLColor;
 class FuncRequest;
 class LatexRunParams;
 class LyXCursor;
@@ -204,9 +204,9 @@ public:
        ///
        UpdatableInset * owner() const { return owner_; }
        ///
-       void setBackgroundColor(LColor::color);
+       void setBackgroundColor(EnumLColor);
        ///
-       LColor::color backgroundColor() const;
+       EnumLColor backgroundColor() const;
        ///
        int x() const { return top_x; }
        ///
@@ -325,8 +325,10 @@ private:
        UpdatableInset * owner_;
        ///
        string name_;
-       ///
-       LColor::color background_color_;
+       /** We store the LColor::color value as an int to get LColor.h out
+        *  of the header file.
+        */
+       int background_color_;
 };