/// the destructor removes the new paragraph from the list
~Paragraph();
+ ///
+ int id() const;
+
///
Language const * getParLanguage(BufferParams const &) const;
///
///
bool isMultiLingual(BufferParams const &);
+ ///
+ std::string const asString(Buffer const &,
+ LatexRunParams const & runparams,
+ bool label) const;
///
std::string const asString(Buffer const &, bool label) const;
///
- std::string const asString(Buffer const &, lyx::pos_type beg, lyx::pos_type end,
- bool label) const;
+ std::string const Paragraph::asString(Buffer const & buffer,
+ lyx::pos_type beg,
+ lyx::pos_type end,
+ bool label) const;
+ ///
+ std::string const asString(Buffer const &,
+ LatexRunParams const & runparams,
+ lyx::pos_type beg,
+ lyx::pos_type end,
+ bool label) const;
///
void write(Buffer const &, std::ostream &, BufferParams const &,
///
void validate(LaTeXFeatures &) const;
- /// return the unique ID of this paragraph
- int id() const;
- /// Set the Id of this paragraph.
- void id(int);
-
///
int startTeXParParams(BufferParams const &, std::ostream &, bool) const;
LyXFont const & outerfont, std::ostream &,
TexRow & texrow, LatexRunParams const &);
+ ///
+ void simpleLinuxDocOnePar(Buffer const & buf,
+ std::ostream & os,
+ LyXFont const & outerfont,
+ LatexRunParams const & runparams,
+ lyx::depth_type depth) const;
+
+ ///
+ void simpleDocBookOnePar(Buffer const & buf,
+ std::ostream &,
+ LyXFont const & outerfont,
+ int & desc_on,
+ LatexRunParams const & runparams,
+ lyx::depth_type depth) const;
+
///
bool hasSameLayout(Paragraph const & par) const;
///
void layout(LyXLayout_ptr const & new_layout);
- ///
- char enumdepth;
-
- ///
- char itemdepth;
+ /// This is the item depth, only used by enumerate and itemize
+ signed char itemdepth;
///
InsetBibitem * bibitem() const; // ale970302
lyx::pos_type endpos,
LyXFont_size def_size) const;
///
+ void insert(lyx::pos_type pos, std::string const & str,
+ LyXFont const & font);
+ ///
void insertChar(lyx::pos_type pos, value_type c);
///
void insertChar(lyx::pos_type pos, value_type c, LyXFont const &, Change change = Change(Change::INSERTED));
/// return true if we allow this par to stay empty
bool allowEmpty() const;
-
+ ////
+ unsigned char transformChar(unsigned char c, lyx::pos_type pos) const;
///
ParagraphParameters & params();
///
ParagraphParameters const & params() const;
+
+ ///
+ RowList::iterator getRow(lyx::pos_type pos);
+
///
InsetList insetlist;
mutable RowList rows;
/// last draw y position (baseline of top row)
int y;
+ /// total height of paragraph
+ unsigned int height;
+ /// total width of paragraph, may differ from workwidth
+ unsigned int width;
private:
///