class InsetOld_code;
class Language;
class LaTeXFeatures;
-class LatexRunParams;
+class OutputParams;
class LyXFont;
class LyXFont_size;
class ParagraphParameters;
///
int id() const;
- ///
- void id(int i);
///
Language const * getParLanguage(BufferParams const &) const;
///
bool isMultiLingual(BufferParams const &);
+ ///
+ std::string const asString(Buffer const &,
+ OutputParams 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 &,
+ OutputParams const & runparams,
+ lyx::pos_type beg,
+ lyx::pos_type end,
+ bool label) const;
///
void write(Buffer const &, std::ostream &, BufferParams const &,
///
bool simpleTeXOnePar(Buffer const &, BufferParams const &,
LyXFont const & outerfont, std::ostream &,
- TexRow & texrow, LatexRunParams const &);
+ TexRow & texrow, OutputParams const &);
+
+ ///
+ void simpleLinuxDocOnePar(Buffer const & buf,
+ std::ostream & os,
+ LyXFont const & outerfont,
+ OutputParams const & runparams,
+ lyx::depth_type depth) const;
+
+ ///
+ void simpleDocBookOnePar(Buffer const & buf,
+ std::ostream &,
+ LyXFont const & outerfont,
+ OutputParams const & runparams,
+ lyx::depth_type depth,
+ bool labelid) const;
///
bool hasSameLayout(Paragraph const & par) const;
UpdatableInset * inInset() const;
///
void setInsetOwner(UpdatableInset * inset);
- ///
- void deleteInsetsLyXText(BufferView *);
///
lyx::pos_type size() const { return text_.size(); }
/// the paragraph alongside the text of the rest of the paragraph
/// (the body). This function returns the starting position of the
/// body of the text in the paragraph.
- int beginningOfBody() const;
+ int beginOfBody() const;
+ /// recompute this value
+ void setBeginOfBody();
///
std::string const & getLabelstring() const;
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));
/// keeping this here instead of in the pimpl makes LyX >10% faster
// for average tasks as buffer loading/switching etc.
TextContainer text_;
+ /// end of label
+ int begin_of_body_;
struct Pimpl;
///