X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FParagraph.h;h=6fdb27017765955175ae263450220195b476fe07;hb=2f271f61bcd514da3ab5b44d2b7bf61e12ac0c44;hp=ac95de18e8a3d745eac5d8069fa59242b080cfe2;hpb=5cef8b6887d305626c9487aab2ff8eab8c3f25be;p=lyx.git diff --git a/src/Paragraph.h b/src/Paragraph.h index ac95de18e8..6fdb270177 100644 --- a/src/Paragraph.h +++ b/src/Paragraph.h @@ -89,6 +89,9 @@ public: Paragraph(); /// Paragraph(Paragraph const &); + /// Partial copy constructor. + /// Copy the Paragraph contents from \p beg to \p end (without end). + Paragraph(Paragraph const & par, pos_type beg, pos_type end); /// Paragraph & operator=(Paragraph const &); /// @@ -150,17 +153,17 @@ public: void makeSameLayout(Paragraph const & par); /// - void setInsetOwner(Inset * inset); + void setInsetOwner(Inset const * inset); /// - Inset * inInset() const; + Inset const & inInset() const; /// InsetCode ownerCode() const; /// - bool forceEmptyLayout() const; + bool forcePlainLayout() const; /// bool allowParagraphCustomization() const; /// - bool useEmptyLayout() const; + bool usePlainLayout() const; /// pos_type size() const; /// @@ -171,7 +174,7 @@ public: /// Do not pass a temporary to this! void setLayout(Layout const & layout); /// - void setEmptyOrDefaultLayout(DocumentClass const & tc); + void setPlainOrDefaultLayout(DocumentClass const & tc); /// This is the item depth, only used by enumerate and itemize signed char itemdepth; @@ -305,8 +308,6 @@ public: void insertInset(pos_type pos, Inset * inset, Font const &, Change const & change); /// - bool insetAllowed(InsetCode code); - /// Inset * getInset(pos_type pos); /// Inset const * getInset(pos_type pos) const; @@ -319,6 +320,8 @@ public: /// InsetList const & insetList() const; + /// + void setBuffer(Buffer &); /// bool isHfill(pos_type pos) const;