]> git.lyx.org Git - features.git/commitdiff
Use InsetCode.
authorAbdelrazak Younes <younes@lyx.org>
Sat, 13 Oct 2007 09:48:18 +0000 (09:48 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sat, 13 Oct 2007 09:48:18 +0000 (09:48 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20940 a592a061-630c-0410-9148-cb99ea01b6c8

src/Paragraph.cpp
src/Paragraph.h
src/Text.h

index df3805d73315385215c05eb9b7fe6b46e125c4b1..71684202ed3edf1f621d063f6560c9dc2994e391 100644 (file)
@@ -2429,6 +2429,13 @@ void Paragraph::simpleDocBookOnePar(Buffer const & buf,
 }
 
 
+bool Paragraph::isHfill(pos_type pos) const
+{
+       return isInset(pos)
+               && getInset(pos)->lyxCode() == HFILL_CODE;
+}
+
+
 bool Paragraph::isNewline(pos_type pos) const
 {
        return isInset(pos)
index 45e460a899e375a74903029d3657199cb86cb397..9059e2963afab2bddcc2f7721971a2d6bcbb2bc2 100644 (file)
@@ -20,7 +20,7 @@
 #include "InsetList.h"
 #include "lyxlayout_ptr_fwd.h"
 
-#include "insets/Inset.h" // only for InsetCode
+#include "insets/InsetCode.h"
 
 
 namespace lyx {
@@ -318,10 +318,8 @@ public:
        }
 
        ///
-       bool isHfill(pos_type pos) const {
-               return isInset(pos)
-                      && getInset(pos)->lyxCode() == 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);
index 0c432f8d9b210b5b22a4625b34d50e2b7783a8f0..b542c36a15b5fec7ea81e487d81eb594ab26614b 100644 (file)
@@ -30,6 +30,7 @@ class FuncStatus;
 class Inset;
 class Color_color;
 class Cursor;
+class Lexer;
 class PainterInfo;
 class Spacing;