]> git.lyx.org Git - lyx.git/blobdiff - src/lyxparagraph.h
paragraph-spacing, redoparagraph in deleteemptyparagraphmechanism, got rid of some...
[lyx.git] / src / lyxparagraph.h
index 52c08a0f143db1208f31f68db08966b5112164ae..d329740e423e0e2d143d6b4768ebdc365183df7a 100644 (file)
@@ -24,7 +24,6 @@
 #include "vspace.h"
 #include "layout.h"
 #include "support/block.h"
-#include "direction.h"
 #include "language.h"
 
 class BufferParams;
@@ -128,12 +127,11 @@ public:
        ///
        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;
@@ -183,10 +181,10 @@ public:
        /** 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;
@@ -212,6 +210,9 @@ public:
        
        /// 
        VSpace added_space_bottom;
+
+       ///
+       Spacing spacing;
        
        ///
        LyXTextClass::LayoutList::size_type layout;
@@ -510,6 +511,7 @@ public:
        ///
        void SimpleDocBookOneTablePar(std::ostream &, string & extra,
                                      int & desc_on, int depth);
+private:
        ///
        struct InsetTable {
                ///
@@ -519,7 +521,21 @@ public:
                ///
                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
@@ -558,7 +574,7 @@ private:
        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);
        ///
@@ -583,10 +599,4 @@ private:
        static unsigned int paragraph_id;
 };
 
-inline bool operator<(LyXParagraph::InsetTable const & a, 
-                     LyXParagraph::InsetTable const & b)
-{
-        return a.pos < b.pos;
-}
-
 #endif