#include <vector>
-#include "insets/inset.h"
+#include "insets/inset.h" // Just for Inset::Code
#include "layout.h"
class ParagraphParameters;
explicit
Paragraph(Paragraph * par);
///
- Paragraph(Paragraph const &);
+ Paragraph(Paragraph const &, bool same_ids = false);
/// the destructor removes the new paragraph from the list
~Paragraph();
std::ostream &, TexRow & texrow);
///
bool hasSameLayout(Paragraph const * par) const;
-
+
///
void makeSameLayout(Paragraph const * par);
proof environment */
int getEndLabel(BufferParams const &) const;
///
- Inset * InInset();
+ Inset * inInset() const;
///
void setInsetOwner(Inset * i);
///
LyXFont::TOGGLE.
*/
LyXFont const getFont(BufferParams const &, size_type pos) const;
+ LyXFont const getLayoutFont(BufferParams const &) const;
+ LyXFont const getLabelFont(BufferParams const &) const;
///
value_type getChar(size_type pos) const;
///
void setChar(size_type pos, value_type c);
///
void setFont(size_type pos, LyXFont const & font);
- ///
- string const getWord(size_type &) const;
/// Returns the height of the highest font in range
LyXFont::FONT_SIZE highestFontInRange(size_type startpos,
- size_type endpos) const;
+ size_type endpos,
+ LyXFont::FONT_SIZE const def_size) const;
///
void insertChar(size_type pos, value_type c);
///
void insertChar(size_type pos, value_type c, LyXFont const &);
///
+ bool checkInsertChar(LyXFont &);
+ ///
void insertInset(size_type pos, Inset * inset);
///
void insertInset(size_type pos, Inset * inset, LyXFont const &);
///
- bool insertInsetAllowed(Inset * inset);
+ bool insetAllowed(Inset::Code code);
///
Inset * getInset(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();
///