X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fparagraph.h;h=fca8d25163e77b0d775ab233b87ce0395473dde2;hb=af37f0d23e8aab1bfbd7ab7f26a10e7685dfca68;hp=169fdc6a793591da96aac15d24e624d4fcc7d70a;hpb=cd424d78530c9e38502ee7f989ef5c426c97ad61;p=lyx.git diff --git a/src/paragraph.h b/src/paragraph.h index 169fdc6a79..fca8d25163 100644 --- a/src/paragraph.h +++ b/src/paragraph.h @@ -129,9 +129,9 @@ public: void simpleDocBookOnePar(Buffer const & buf, std::ostream &, LyXFont const & outerfont, - int & desc_on, OutputParams const & runparams, - lyx::depth_type depth) const; + lyx::depth_type depth, + bool labelid) const; /// bool hasSameLayout(Paragraph const & par) const; @@ -143,8 +143,6 @@ public: UpdatableInset * inInset() const; /// void setInsetOwner(UpdatableInset * inset); - /// - void deleteInsetsLyXText(BufferView *); /// lyx::pos_type size() const { return text_.size(); } @@ -204,7 +202,9 @@ public: /// the paragraph alongside the text of the rest of the paragraph /// (the body). This function returns the starting position of the /// body of the text in the paragraph. - int beginningOfBody() const; + int beginOfBody() const; + /// recompute this value + void setBeginOfBody(); /// std::string const & getLabelstring() const; @@ -346,6 +346,8 @@ private: /// keeping this here instead of in the pimpl makes LyX >10% faster // for average tasks as buffer loading/switching etc. TextContainer text_; + /// end of label + int begin_of_body_; struct Pimpl; ///