]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetText.h
* Lazy MathData to avoid unneeded interpretation of macro definitions
[features.git] / src / insets / InsetText.h
index 7d319686281d79892d9a0ee5f436fe981a3abf37..40efd2b7aaeeb632d84b96a9fe1439d25c090298 100644 (file)
@@ -13,6 +13,8 @@
 #define INSETTEXT_H
 
 #include "Inset.h"
+
+#include "ColorCode.h"
 #include "Text.h"
 
 #include "support/types.h"
@@ -59,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;
        ///
@@ -128,6 +130,8 @@ public:
        /// should paragraph indendation be ommitted in any case?
        bool neverIndent(Buffer const &) const;
        ///
+       virtual bool isMacroScope(Buffer const & buf) const { return true; }
+       ///
        virtual bool allowMultiPar() const { return true; }
        ///
        InsetText(InsetText const &);
@@ -147,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;