X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fparagraph.h;h=0e23ea727ed91b076f213b70dece0718f56c2c2b;hb=52eb91c94fb70d58dceef430659c8781de2eccda;hp=a2f43d5e560e6cdbb1749c9525e00958d6809a4f;hpb=e68d69e4739b5b9811120889fbc5147aad25e41f;p=lyx.git diff --git a/src/paragraph.h b/src/paragraph.h index a2f43d5e56..0e23ea727e 100644 --- a/src/paragraph.h +++ b/src/paragraph.h @@ -100,10 +100,6 @@ public: /// bool isMultiLingual(BufferParams const &) const; - /// - docstring const asString(Buffer const &, - OutputParams const & runparams, - bool label) const; /// docstring const asString(Buffer const &, bool label) const; /// @@ -111,12 +107,6 @@ public: pos_type beg, pos_type end, bool label) const; - /// - docstring const asString(Buffer const &, - OutputParams const & runparams, - pos_type beg, - pos_type end, - bool label) const; /// void write(Buffer const &, std::ostream &, BufferParams const &, @@ -125,10 +115,12 @@ public: void validate(LaTeXFeatures &) const; /// - int startTeXParParams(BufferParams const &, odocstream &, bool) const; + int startTeXParParams(BufferParams const &, odocstream &, TexRow &, + bool) const; /// - int endTeXParParams(BufferParams const &, odocstream &, bool) const; + int endTeXParParams(BufferParams const &, odocstream &, TexRow &, + bool) const; /// @@ -178,8 +170,6 @@ public: pos_type size() const { return text_.size(); } /// bool empty() const { return text_.empty(); } - /// - void clearContents(); /// LyXLayout_ptr const & layout() const; @@ -221,10 +211,10 @@ public: void setChange(pos_type pos, Change const & change); /// accept changes within the given range - void acceptChanges(pos_type start, pos_type end); + void acceptChanges(BufferParams const & bparams, pos_type start, pos_type end); /// reject changes within the given range - void rejectChanges(pos_type start, pos_type end); + void rejectChanges(BufferParams const & bparams, pos_type start, pos_type end); /// Paragraphs can contain "manual labels", for example, Description /// environment. The text for this user-editable label is stored in @@ -351,8 +341,9 @@ public: /// returns -1 if inset not found int getPositionOfInset(InsetBase const * inset) const; - /// Returns the number of line breaks and white-space stripped at the start - int stripLeadingSpaces(bool trackChanges); + /// returns true if at least one line break or line separator has been deleted + /// at the beginning of the paragraph (either physically or logically) + bool stripLeadingSpaces(bool trackChanges); /// return true if we allow multiple spaces bool isFreeSpacing() const;