///
bool isMultiLingual(BufferParams const &) const;
- ///
- docstring const asString(Buffer const &,
- OutputParams const & runparams,
- bool label) const;
///
docstring const asString(Buffer const &, bool label) const;
///
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 &,
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;
///
pos_type size() const { return text_.size(); }
///
bool empty() const { return text_.empty(); }
- ///
- void clearContents();
///
LyXLayout_ptr const & layout() const;
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
/// the next two functions are for the manual labels
docstring const getLabelWidthString() const;
- ///
+ /// Set label width string.
void setLabelWidthString(docstring const & s);
+ /// translate \p label to the paragraph language if possible.
+ docstring const translateIfPossible(docstring const & label,
+ BufferParams const & bparams) const;
+ /// Expand the counters for the labelstring of \c layout
+ docstring expandLabel(LyXLayout_ptr const &, BufferParams const &,
+ bool process_appendix = true) const;
/// Actual paragraph alignment used
char getAlign() const;
/// The nesting depth of a paragraph
/// 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();
+ /// 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;