X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FParagraph.h;h=4812684c3de1788be93ac205ca954ee73c4a2f95;hb=5366666c831b6ad726e848a60d738b57ec8b0501;hp=60b829e813ced09832c6edbf56dec0e5b005f77e;hpb=a6b07608d8e9de24383d3ebaec20b6b265ed9314;p=lyx.git diff --git a/src/Paragraph.h b/src/Paragraph.h index 60b829e813..4812684c3d 100644 --- a/src/Paragraph.h +++ b/src/Paragraph.h @@ -16,7 +16,6 @@ #ifndef PARAGRAPH_H #define PARAGRAPH_H -#include "FontEnums.h" #include "LayoutEnums.h" #include "SpellChecker.h" @@ -24,6 +23,7 @@ #include "support/types.h" #include +#include namespace lyx { @@ -31,28 +31,25 @@ class AuthorList; class Buffer; class BufferParams; class Change; -class Counters; -class Cursor; -class CursorSlice; class DocIterator; class docstring_list; class DocumentClass; class Inset; -class InsetBibitem; class LaTeXFeatures; class InsetList; class Language; class Layout; class Font; -class MetricsInfo; class OutputParams; -class PainterInfo; class ParagraphParameters; class TocBackend; class WordLangTuple; class XMLStream; class otexstream; +/// Inset identifier (above 0x10ffff, for ucs-4) +char_type const META_INSET = 0x200001; + class FontSpan { public: /// Invalid font span containing no character @@ -200,27 +197,28 @@ public: std::string getID(Buffer const & buf, OutputParams const & runparams) const; /// Output the first word of a paragraph, return the position where it left. - pos_type firstWordDocBook(odocstream & os, OutputParams const & runparams) const; + pos_type firstWordDocBook(XMLStream & xs, OutputParams const & runparams) const; /// Output the first word of a paragraph, return the position where it left. pos_type firstWordLyXHTML(XMLStream & xs, OutputParams const & runparams) const; - /// Writes to stream the docbook representation - void simpleDocBookOnePar(Buffer const & buf, - odocstream &, - OutputParams const & runparams, - Font const & outerfont, - pos_type initial = 0) const; + /// Outputs to stream the DocBook representation, one element per paragraph. + std::vector simpleDocBookOnePar(Buffer const & buf, + OutputParams const & runparams, + Font const & outerfont, + pos_type initial = 0, + bool is_last_par = false, + bool ignore_fonts = false) const; /// \return any material that has had to be deferred until after the /// paragraph has closed. docstring simpleLyXHTMLOnePar(Buffer const & buf, - XMLStream & xs, - OutputParams const & runparams, - Font const & outerfont, - bool start_paragraph = true, - bool close_paragraph = true, - pos_type initial = 0) const; + XMLStream & xs, + OutputParams const & runparams, + Font const & outerfont, + bool start_paragraph = true, + bool close_paragraph = true, + pos_type initial = 0) const; /// bool hasSameLayout(Paragraph const & par) const; @@ -307,8 +305,6 @@ public: /// docstring expandLabel(Layout const &, BufferParams const &) const; /// - docstring expandDocBookLabel(Layout const &, BufferParams const &) const; - /// docstring const & labelString() const; /// the next two functions are for the manual labels docstring const getLabelWidthString() const;