mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-09 10:47:57 +00:00
Use InsetCode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20940 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ee038db36d
commit
87b112496c
@ -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
|
bool Paragraph::isNewline(pos_type pos) const
|
||||||
{
|
{
|
||||||
return isInset(pos)
|
return isInset(pos)
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#include "InsetList.h"
|
#include "InsetList.h"
|
||||||
#include "lyxlayout_ptr_fwd.h"
|
#include "lyxlayout_ptr_fwd.h"
|
||||||
|
|
||||||
#include "insets/Inset.h" // only for InsetCode
|
#include "insets/InsetCode.h"
|
||||||
|
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
@ -318,10 +318,8 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
bool isHfill(pos_type pos) const {
|
bool isHfill(pos_type pos) const;
|
||||||
return isInset(pos)
|
|
||||||
&& getInset(pos)->lyxCode() == HFILL_CODE;
|
|
||||||
}
|
|
||||||
/// hinted by profiler
|
/// hinted by profiler
|
||||||
bool isInset(pos_type pos) const {
|
bool isInset(pos_type pos) const {
|
||||||
return getChar(pos) == static_cast<value_type>(META_INSET);
|
return getChar(pos) == static_cast<value_type>(META_INSET);
|
||||||
|
@ -30,6 +30,7 @@ class FuncStatus;
|
|||||||
class Inset;
|
class Inset;
|
||||||
class Color_color;
|
class Color_color;
|
||||||
class Cursor;
|
class Cursor;
|
||||||
|
class Lexer;
|
||||||
class PainterInfo;
|
class PainterInfo;
|
||||||
class Spacing;
|
class Spacing;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user