#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
+#include "insets/InsetCode.h"
namespace lyx {
///
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);
///
Inset * inInset() const;
///
- Inset::Code ownerCode() const;
+ InsetCode ownerCode() const;
///
bool forceDefaultParagraphs() const;
void insertInset(pos_type pos, Inset * inset,
Font const &, Change const & change);
///
- bool insetAllowed(Inset_code code);
+ bool insetAllowed(InsetCode code);
///
Inset * getInset(pos_type pos) {
return insetlist.get(pos);
}
///
- bool isHfill(pos_type pos) const {
- return isInset(pos)
- && getInset(pos)->lyxCode() == Inset::HFILL_CODE;
- }
+ bool isHfill(pos_type pos) const;
+
/// hinted by profiler
bool isInset(pos_type pos) const {
return getChar(pos) == static_cast<value_type>(META_INSET);
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.