edbee - Qt Editor Library v0.11.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
rangelineiterator.h
Go to the documentation of this file.
1// edbee - Copyright (c) 2012-2025 by Rick Blommers and contributors
2// SPDX-License-Identifier: MIT
3
4#pragma once
5
6#include "edbee/exports.h"
7
8
9namespace edbee {
10
11
12class TextDocument;
13class TextRange;
14
31public:
32 RangeLineIterator( TextDocument* doc, const TextRange& range );
33 RangeLineIterator( TextDocument* doc, int start, int end );
34
35 bool hasNext() const;
36 int next();
37
38private:
39 int curLine_;
40 int endLine_;
41};
42
43
44} // edbee
bool hasNext() const
Checks if there's a next line number available.
Definition rangelineiterator.cpp:35
int next()
returns the next line number
Definition rangelineiterator.cpp:42
RangeLineIterator(TextDocument *doc, const TextRange &range)
Constructs the range line iterator.
Definition rangelineiterator.cpp:17
This is the base and abstract class of a text document A TextDocument is the model part of the editor...
Definition textdocument.h:42
A single text region A region constists of an anchor and a caret: The anchor defines the 'start' of t...
Definition textrange.h:29
#define EDBEE_EXPORT
Definition exports.h:15
QT Acessibility has an issue with reporting blank lines between elements lines. defining 'WINDOWS_EMP...
Definition commentcommand.cpp:20