]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetText.h
Embedding: merge lyx::EmbeddedFiles to lyx::support::EmbeddedFileList
[lyx.git] / src / insets / InsetText.h
index 0c70080fcebc1d06ae4d91eda47911bb9ecfc550..d29e4ec6b12e42f6df71023b5263a36e6c1d06b8 100644 (file)
@@ -13,7 +13,8 @@
 #define INSETTEXT_H
 
 #include "Inset.h"
-#include "Font.h"
+
+#include "ColorCode.h"
 #include "Text.h"
 
 #include "support/types.h"
@@ -60,9 +61,9 @@ public:
        ///
        bool canTrackChanges() const { return true; }
        ///
-       InsetText * asTextInset() { return this; }
+       InsetText * asInsetText() { return this; }
        ///
-       InsetText const * asTextInset() const { return this; }
+       InsetText const * asInsetText() const { return this; }
        ///
        int latex(Buffer const &, odocstream &, OutputParams const &) const;
        ///
@@ -129,6 +130,8 @@ public:
        /// should paragraph indendation be ommitted in any case?
        bool neverIndent(Buffer const &) const;
        ///
+       virtual bool isMacroScope(Buffer const &) const { return true; }
+       ///
        virtual bool allowMultiPar() const { return true; }
        ///
        InsetText(InsetText const &);
@@ -148,10 +151,8 @@ private:
 
        ///
        bool drawFrame_;
-       /** We store the ColorCode value as an int to get Color.h out
-        *  of the header file.
-        */
-       int frame_color_;
+       ///
+       ColorCode frame_color_;
        ///
        mutable pit_type old_pit;