]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.h
adjust
[lyx.git] / src / Paragraph.h
index ee61d83bcbbedc97c496b442eae0764c21af0822..9059e2963afab2bddcc2f7721971a2d6bcbb2bc2 100644 (file)
@@ -20,7 +20,7 @@
 #include "InsetList.h"
 #include "lyxlayout_ptr_fwd.h"
 
-#include "insets/Inset.h" // only for Inset::Code
+#include "insets/InsetCode.h"
 
 
 namespace lyx {
@@ -160,7 +160,7 @@ public:
        ///
        Inset * inInset() const;
        ///
-       Inset::Code ownerCode() const;
+       InsetCode ownerCode() const;
        ///
        bool forceDefaultParagraphs() const;
 
@@ -307,7 +307,7 @@ public:
        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);
@@ -318,10 +318,8 @@ public:
        }
 
        ///
-       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);