#include "vspace.h"
#include "layout.h"
#include "support/block.h"
-#include "direction.h"
#include "language.h"
class BufferParams;
///
Language const * getParLanguage() const;
///
- Language const * getLetterLanguage(size_type pos) const;
-
+ bool isRightToLeftPar() const;
///
- LyXDirection getParDirection() const;
+ void ChangeLanguage(Language const * from, Language const * to);
///
- LyXDirection getLetterDirection(size_type pos) const;
+ bool isMultiLingual();
///
void writeFile(std::ostream &, BufferParams const &, char, char) const;
/** Check if the current paragraph is the last paragraph in a
proof environment */
int GetEndLabel() const;
-
+ ///
Inset * InInset() { return inset_owner; }
- void SetInsetOwner(Inset *i) { inset_owner = i; }
-
+ ///
+ void SetInsetOwner(Inset * i) { inset_owner = i; }
private:
///
TextContainer text;
///
VSpace added_space_bottom;
+
+ ///
+ Spacing spacing;
///
LyXTextClass::LayoutList::size_type layout;
///
void SimpleDocBookOneTablePar(std::ostream &, string & extra,
int & desc_on, int depth);
+private:
///
struct InsetTable {
///
///
InsetTable(size_type p, Inset * i) { pos = p; inset = i;}
};
-private:
+ ///
+ struct matchIT {
+ /// used by lower_bound
+ inline
+ int operator()(LyXParagraph::InsetTable const & a,
+ LyXParagraph::size_type pos) const {
+ return a.pos < pos;
+ }
+ /// used by upper_bound
+ inline
+ int operator()(LyXParagraph::size_type pos,
+ LyXParagraph::InsetTable const & a) const {
+ return pos < a.pos;
+ }
+ };
/** A font entry covers a range of positions. Notice that the
entries in the list are inserted in random order.
I don't think it's worth the effort to implement a more effective
LyXParagraph * TeXFootnote(std::ostream &, TexRow & texrow,
std::ostream & foot, TexRow & foot_texrow,
int & foot_count,
- LyXDirection par_direction);
+ bool parent_is_rtl);
///
bool SimpleTeXOneTablePar(std::ostream &, TexRow & texrow);
///
static unsigned int paragraph_id;
};
-inline bool operator<(LyXParagraph::InsetTable const & a,
- LyXParagraph::InsetTable const & b)
-{
- return a.pos < b.pos;
-}
-
#endif