};
///
typedef char_type value_type;
- ///
- typedef std::vector<value_type> TextContainer;
///
Paragraph();
///
int id() const;
-
///
Language const * getParLanguage(BufferParams const &) const;
///
void validate(LaTeXFeatures &) const;
///
- int startTeXParParams(BufferParams const &, odocstream &, TexRow &,
- bool) const;
-
- ///
- int endTeXParParams(BufferParams const &, odocstream &, TexRow &,
- bool) const;
-
-
- ///
- bool simpleTeXOnePar(Buffer const &, BufferParams const &,
+ bool latex(Buffer const &, BufferParams const &,
Font const & outerfont, odocstream &,
TexRow & texrow, OutputParams const &) const;
///
void insert(pos_type pos, docstring const & str,
Font const & font, Change const & change);
+
+ ///
+ void appendString(docstring const & s, Font const & font,
+ Change const & change);
+ ///
+ void appendChar(value_type c, Font const & font, Change const & change);
///
void insertChar(pos_type pos, value_type c, bool trackChanges);
///
/// Note that digits in particular are considered as letters
bool isLetter(pos_type pos) const;
- /// returns -1 if inset not found
- int getPositionOfInset(Inset const * inset) const;
-
/// returns true if at least one line break or line separator has been deleted
/// at the beginning of the paragraph (either physically or logically)
bool stripLeadingSpaces(bool trackChanges);
/// by this author in the paragraph.
void checkAuthors(AuthorList const & authorList);
-private:
+ /// return the number of InsetOptArg in a paragraph
+ int numberOfOptArgs() const;
- ///
- LayoutPtr layout_;
+private:
/**
* Keeping this here instead of in the pimpl makes LyX >10% faster
* for average tasks as buffer loading/switching etc.
*/
+ typedef std::vector<value_type> TextContainer;
+ ///
TextContainer text_;
- /// end of label
- pos_type begin_of_body_;
/// Pimpl away stuff
- class Pimpl;
+ class Private;
///
- friend class Paragraph::Pimpl;
+ friend class Paragraph::Private;
///
- Pimpl * pimpl_;
+ Private * d;
};
} // namespace lyx