+2002-08-15 Lars Gullik Bjønnes <larsbj@gullik.net>
+
+ * paragraph.[Ch]: add some NO_NEXT ifdefs.
+
2002-08-15 Lars Gullik Bjønnes <larsbj@gullik.net>
* paragraph.C (Paragraph): reformat a bit
Paragraph::Paragraph()
: pimpl_(new Paragraph::Pimpl(this))
{
+#ifndef NO_NEXT
next_ = 0;
previous_ = 0;
+#endif
enumdepth = 0;
itemdepth = 0;
bibkey = 0; // ale970302
}
+#ifndef NO_NEXT
// This constructor inserts the new paragraph in a list.
Paragraph::Paragraph(Paragraph * par)
: pimpl_(new Paragraph::Pimpl(this))
bibkey = 0; // ale970302
params().clear();
}
+#endif
Paragraph::Paragraph(Paragraph const & lp, bool same_ids)
{
enumdepth = 0;
itemdepth = 0;
+#ifndef NO_NEXT
next_ = 0;
previous_ = 0;
-
+#endif
// this is because of the dummy layout of the paragraphs that
// follow footnotes
layout_ = lp.layout();
// the destructor removes the new paragraph from the list
Paragraph::~Paragraph()
{
+#ifndef NO_NEXT
if (previous_)
previous_->next_ = next_;
if (next_)
next_->previous_ = previous_;
+#endif
// ale970302
delete bibkey;
}
-
+#ifndef NO_NEXT
void Paragraph::next(Paragraph * p)
{
next_ = p;
{
return previous_;
}
+#endif
void Paragraph::breakParagraph(BufferParams const & bparams,
return newpar;
}
+
Paragraph * Paragraph::outerHook()
{
if (!getDepth())
return depthHook(depth_type(getDepth() - 1));
}
+
Paragraph const * Paragraph::outerHook() const
{
if (!getDepth())
return next_;
}
+
// This could go to ParagraphParameters if we want to
int Paragraph::startTeXParParams(BufferParams const & bparams,
ostream & os, bool moving_arg) const
return column;
}
+
// This could go to ParagraphParameters if we want to
int Paragraph::endTeXParParams(BufferParams const & bparams,
ostream & os, bool moving_arg) const
///
Paragraph();
+#ifndef NO_NEXT
/// this constructor inserts the new paragraph in a list
explicit
Paragraph(Paragraph * par);
+#endif
///
Paragraph(Paragraph const &, bool same_ids);
/// the destructor removes the new paragraph from the list
///
InsetBibKey * bibkey; // ale970302
+#ifndef NO_NEXT
///
void next(Paragraph *);
/** these function are able to hide closed footnotes
Paragraph * previous();
///
Paragraph const * previous() const;
-
+#endif
/// for the environments
Paragraph * depthHook(depth_type depth);
/// for the environments
LyXLayout_ptr layout_;
/// if anything uses this we don't want it to.
Paragraph(Paragraph const &);
+#ifndef NO_NEXT
///
Paragraph * next_;
///
Paragraph * previous_;
-
+#endif
struct Pimpl;
///
friend struct Paragraph::Pimpl;