// 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 {
///
///
MINIPAGE_ALIGN_BOTTOM
};
+#endif
///
enum META_KIND {
#ifndef NEW_INSETS
///
char itemdepth;
-
+#ifdef NEW_INSETS
+private:
+#endif
///
- LyXParagraph * next;
+ LyXParagraph * next_;
///
- LyXParagraph * previous;
-
+ LyXParagraph * previous_;
+public:
///
InsetBibKey * bibkey; // ale970302
+ ///
+ void next(LyXParagraph *);
/** these function are able to hide closed footnotes
*/
- LyXParagraph * Next();
-
+ LyXParagraph * next();
+ ///
+ LyXParagraph const * next() const;
+
+ ///
+ void previous(LyXParagraph *);
///
- LyXParagraph * Previous();
+ LyXParagraph * previous();
///
- LyXParagraph const * Previous() const;
+ LyXParagraph const * previous() const;
#ifndef NEW_INSETS
/** these function are able to hide open and closed footnotes
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
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 */
///
string const & width, string const & widthp);
///
void UnsetPExtraType(BufferParams const &);
+#endif
///
bool linuxDocConvertChar(char c, string & sgml_string);
private: