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:
André Pönitz 2004-03-27 12:37:41 +00:00
parent 60fa184251
commit f16f69eb0c
2 changed files with 13 additions and 0 deletions

View File

@ -302,6 +302,14 @@ void DocumentIterator::forwardChar()
} }
void DocumentIterator::forwardInset()
{
forwardPos();
while (size() != 0 && (pos() == lastpos() || nextInset() == 0))
forwardPos();
}
void DocumentIterator::backwardChar() void DocumentIterator::backwardChar()
{ {
lyxerr << "not implemented" << endl; lyxerr << "not implemented" << endl;

View File

@ -54,6 +54,11 @@ public:
/// ///
explicit DocumentIterator(InsetBase & inset); 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 // access to slice at tip
// //