#define PARAGRAPH_H
#include "Changes.h"
-#include "Dimension.h"
#include "InsetList.h"
#include "lyxlayout_ptr_fwd.h"
-#include "Row.h"
#include "insets/Inset.h" // only for Inset::Code
///
Language const * getParLanguage(BufferParams const &) const;
///
- bool isRightToLeftPar(BufferParams const &) const;
+ bool isRTL(BufferParams const &) const;
///
void changeLanguage(BufferParams const & bparams,
Language const * from, Language const * to);
void validate(LaTeXFeatures &) const;
///
- int startTeXParParams(BufferParams const &, odocstream &, TexRow &,
+ int startTeXParParams(BufferParams const &, odocstream &, TexRow &,
bool) const;
///
- int endTeXParParams(BufferParams const &, odocstream &, TexRow &,
+ int endTeXParParams(BufferParams const &, odocstream &, TexRow &,
bool) const;
bool empty() const { return text_.empty(); }
///
- Layout_ptr const & layout() const;
+ LayoutPtr const & layout() const;
///
- void layout(Layout_ptr const & new_layout);
+ void layout(LayoutPtr const & new_layout);
/// This is the item depth, only used by enumerate and itemize
signed char itemdepth;
docstring const translateIfPossible(docstring const & label,
BufferParams const & bparams) const;
/// Expand the counters for the labelstring of \c layout
- docstring expandLabel(Layout_ptr const &, BufferParams const &,
+ docstring expandLabel(LayoutPtr const &, BufferParams const &,
bool process_appendix = true) const;
/// Actual paragraph alignment used
char getAlign() const;
/// The maximal possible depth of a paragraph after this one
depth_type getMaxDepthAfter() const;
///
- void applyLayout(Layout_ptr const & new_layout);
+ void applyLayout(LayoutPtr const & new_layout);
/// (logically) erase the char at pos; return true if it was actually erased
bool eraseChar(pos_type pos, bool trackChanges);
pos_type endpos, Font_size def_size) const;
///
void insert(pos_type pos, docstring const & str,
- Font const & font, Change const & change);
+ Font const & font, Change const & change);
///
void insertChar(pos_type pos, value_type c, bool trackChanges);
///
void insertChar(pos_type pos, value_type c,
- Font const &, bool trackChanges);
+ Font const &, bool trackChanges);
///
void insertChar(pos_type pos, value_type c,
- Font const &, Change const & change);
+ Font const &, Change const & change);
///
void insertInset(pos_type pos, Inset * inset,
- Change const & change);
+ Change const & change);
///
void insertInset(pos_type pos, Inset * inset,
- Font const &, Change const & change);
+ Font const &, Change const & change);
///
bool insetAllowed(Inset_code code);
///
/// returns -1 if inset not found
int getPositionOfInset(Inset const * inset) const;
- /// returns true if at least one line break or line separator has been deleted
+ /// 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);
ParagraphParameters & params();
///
ParagraphParameters const & params() const;
- ///
- bool hfillExpansion(Row const & row, pos_type pos) const;
/// Check if we are in a Biblio environment and insert or
/// delete InsetBibitems as necessary.
/// was previously past that position. Return 0 otherwise.
int checkBiblio(bool track_changes);
+ /// For each author, set 'used' to true if there is a change
+ /// by this author in the paragraph.
+ void checkAuthors(AuthorList const & authorList);
+
public:
///
InsetList insetlist;
private:
///
- Layout_ptr layout_;
+ LayoutPtr layout_;
/**
* Keeping this here instead of in the pimpl makes LyX >10% faster
* for average tasks as buffer loading/switching etc.