explicit
Paragraph(Paragraph * par);
///
- Paragraph(Paragraph const &);
+ Paragraph(Paragraph const &, bool same_ids = false);
/// the destructor removes the new paragraph from the list
~Paragraph();
proof environment */
int getEndLabel(BufferParams const &) const;
///
- Inset * InInset();
+ Inset * inInset() const;
///
void setInsetOwner(Inset * i);
///
///
void setLabelWidthString(string const & s);
///
- inline
LyXTextClass::LayoutList::size_type getLayout() const;
///
char getAlign() const;
///
void insertInset(size_type pos, Inset * inset, LyXFont const &);
///
- bool insertInsetAllowed(Inset * inset);
+ bool insetAllowed(Inset::Code code);
///
Inset * getInset(size_type pos);
///
Inset const * getInset(size_type pos) const;
/** important for cut and paste
Temporary change from BufferParams to Buffer. Will revert when we
- get rid of the argument to Inset::Clone(Buffer const &) */
+ get rid of the argument to Inset::clone(Buffer const &) */
void copyIntoMinibuffer(Buffer const &, size_type pos) const;
///
void cutIntoMinibuffer(BufferParams const &, size_type pos);
/// returns -1 if inset not found
int getPositionOfInset(Inset * inset) const;
+ /// some good comment here John?
+ Paragraph * getParFromID(int id) const;
+
///
int stripLeadingSpaces(LyXTextClassList::size_type tclass);
return *this;
}
///
- Inset * operator*() { return (*it).inset; }
+ Inset * operator*() { return it->inset; }
///
- size_type getPos() const {return (*it).pos; }
+ size_type getPos() const {return it->pos; }
///
bool operator==(inset_iterator const & iter) const {
return it == iter.it;
///
InsetList::iterator it;
};
+ ///
+ friend class inset_iterator;
+
///
inset_iterator inset_iterator_begin();
///