mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
add forwardInset, operator! etc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8541 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
60fa184251
commit
f16f69eb0c
@ -302,6 +302,14 @@ void DocumentIterator::forwardChar()
|
||||
}
|
||||
|
||||
|
||||
void DocumentIterator::forwardInset()
|
||||
{
|
||||
forwardPos();
|
||||
while (size() != 0 && (pos() == lastpos() || nextInset() == 0))
|
||||
forwardPos();
|
||||
}
|
||||
|
||||
|
||||
void DocumentIterator::backwardChar()
|
||||
{
|
||||
lyxerr << "not implemented" << endl;
|
||||
|
@ -54,6 +54,11 @@ public:
|
||||
///
|
||||
explicit DocumentIterator(InsetBase & inset);
|
||||
|
||||
/// is the iterator valid?
|
||||
operator const void*() const { return empty() ? 0 : this; }
|
||||
/// is this iterator invalid?
|
||||
bool operator!() const { return empty(); }
|
||||
|
||||
//
|
||||
// access to slice at tip
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user