X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FParagraph.h;h=ca88dd774e9d48e7f0472b8db35972899af5c0d0;hb=5be391b274f2cbf4a1da03bc5ee2136cb6c4e660;hp=4812684c3de1788be93ac205ca954ee73c4a2f95;hpb=196d9caeb0b9f74d02750f774de1ca63a483803f;p=lyx.git diff --git a/src/Paragraph.h b/src/Paragraph.h index 4812684c3d..ca88dd774e 100644 --- a/src/Paragraph.h +++ b/src/Paragraph.h @@ -123,7 +123,8 @@ enum AsStringParameter AS_STR_INSETS = 2, ///< Go into insets. AS_STR_NEWLINES = 4, ///< Get also newline characters. AS_STR_SKIPDELETE = 8, ///< Skip deleted text in change tracking. - AS_STR_PLAINTEXT = 16 ///< Don't export formatting when descending into insets. + AS_STR_PLAINTEXT = 16, ///< Don't export formatting when descending into insets. + AS_STR_MATHED = 32 ///< Use a format suitable for mathed (eg. for InsetRef). }; @@ -193,7 +194,7 @@ public: /// Can we drop the standard paragraph wrapper? bool emptyTag() const; - /// Get the id of the paragraph, usefull for docbook + /// Get the id of the paragraph, useful for DocBook std::string getID(Buffer const & buf, OutputParams const & runparams) const; /// Output the first word of a paragraph, return the position where it left. @@ -203,7 +204,8 @@ public: pos_type firstWordLyXHTML(XMLStream & xs, OutputParams const & runparams) const; /// Outputs to stream the DocBook representation, one element per paragraph. - std::vector simpleDocBookOnePar(Buffer const & buf, + std::tuple, std::vector, std::vector> + simpleDocBookOnePar(Buffer const & buf, OutputParams const & runparams, Font const & outerfont, pos_type initial = 0, @@ -237,6 +239,10 @@ public: /// bool isPassThru() const; /// + bool parbreakIsNewline() const; + /// + bool isPartOfTextSequence() const; + /// pos_type size() const; /// bool empty() const;