X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FParagraph.h;h=761e6e9b5dbfe8b19e764372713eca0c89cc9426;hb=2098f1d8c20d51e63e670bcdc9da8996068975bf;hp=a72ede5e7bb16e446f56d3f61ee81c4745d7c401;hpb=34fde774f8889a8373559c09cf4821c5934ac232;p=lyx.git diff --git a/src/Paragraph.h b/src/Paragraph.h index a72ede5e7b..761e6e9b5d 100644 --- a/src/Paragraph.h +++ b/src/Paragraph.h @@ -51,6 +51,7 @@ class ParagraphParameters; class TexRow; class Toc; class WordLangTuple; +class XHTMLStream; class FontSpan { public: @@ -91,7 +92,7 @@ class Paragraph public: /// Paragraph(); - /// + /// Copy constructor. Paragraph(Paragraph const &); /// Partial copy constructor. /// Copy the Paragraph contents from \p beg to \p end (without end). @@ -102,6 +103,8 @@ public: ~Paragraph(); /// int id() const; + /// + void setId(int id); /// void addChangesToToc(DocIterator const & cdit, Buffer const & buf) const; @@ -151,7 +154,7 @@ public: pos_type firstWordDocBook(odocstream & os, OutputParams const & runparams) const; /// Output the first word of a paragraph, return the position where it left. - pos_type firstWordLyXHTML(odocstream & os, OutputParams const & runparams) const; + pos_type firstWordLyXHTML(XHTMLStream & xs, OutputParams const & runparams) const; /// Writes to stream the docbook representation void simpleDocBookOnePar(Buffer const & buf, @@ -162,9 +165,10 @@ public: /// \return any material that has had to be deferred until after the /// paragraph has closed. docstring simpleLyXHTMLOnePar(Buffer const & buf, - odocstream &, + XHTMLStream & xs, OutputParams const & runparams, Font const & outerfont, + bool fortoc = false, pos_type initial = 0) const; /// @@ -178,8 +182,6 @@ public: /// Inset const & inInset() const; /// - bool forcePlainLayout() const; - /// bool allowParagraphCustomization() const; /// bool usePlainLayout() const; @@ -424,6 +426,9 @@ public: /// Spellcheck word at position \p pos. /// \return true if pointed word is misspelled. bool isMisspelled(pos_type pos) const; + /// an automatically generated identifying label for this paragraph. + /// presently used only in the XHTML output routines. + std::string magicLabel() const; private: ///