]> git.lyx.org Git - lyx.git/blobdiff - src/lyxparagraph.h
Changed InsetText * in InsetCollapsable to be a InsetText.
[lyx.git] / src / lyxparagraph.h
index 77df7ac4e990723e5c8b5bdeedaebc6da338e28e..aacc6f2c4e315748c94c751322a8869e3b669a57 100644 (file)
@@ -35,11 +35,13 @@ class BufferView;
 
 // I dare you to enable this and help me find all the bugs that then show
 // up. (Lgb)
-//#define NEW_INSETS 1
+#define NEW_INSETS 1
+#define NO_PEXTRA 1
 
 /// A LyXParagraph holds all text, attributes and insets in a text paragraph
 class LyXParagraph  {
 public:
+#ifndef NO_PEXTRA_REALLY
        ///
        enum PEXTRA_TYPE {
                ///
@@ -60,6 +62,7 @@ public:
                ///
                MINIPAGE_ALIGN_BOTTOM
        };
+#endif
        ///
        enum META_KIND {
 #ifndef NEW_INSETS
@@ -338,8 +341,10 @@ public:
                           LyXTextClass::LayoutList::size_type new_layout);
        ///
        int GetFirstCounter(int i) const;
+#ifndef NEW_INSETS
        ///
        size_type Last() const;
+#endif
        ///
        void Erase(size_type pos);
        /** the flag determines wether the layout should be copied
@@ -465,6 +470,7 @@ public:
            first paragraph keeps information  about layoutparameters, */
        bool IsDummy() const;
 #endif
+#ifndef NO_PEXTRA_REALLY
         /* If I set a PExtra Indent on one paragraph of a ENV_LIST-TYPE
            I have to set it on each of it's elements */
        ///
@@ -472,6 +478,7 @@ public:
                           string const & width, string const & widthp);
        ///
         void UnsetPExtraType(BufferParams const &);
+#endif
        ///
        bool linuxDocConvertChar(char c, string & sgml_string);
 private: