summaryrefslogtreecommitdiff
path: root/dw/iterator.hh
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2009-02-09 14:56:31 -0300
committerJorge Arellano Cid <jcid@dillo.org>2009-02-09 14:56:31 -0300
commite32686c10a4f4fe7c34b181845220b5c491f32fb (patch)
treec090052c311a3a1732d03dc17fe357f97437b397 /dw/iterator.hh
parent74f64426001a693759e47963f99965e0e6ee847d (diff)
whitespace cleanup: 's/ +$//g'
Diffstat (limited to 'dw/iterator.hh')
-rw-r--r--dw/iterator.hh20
1 files changed, 10 insertions, 10 deletions
diff --git a/dw/iterator.hh b/dw/iterator.hh
index 605217ec..1d4c2f98 100644
--- a/dw/iterator.hh
+++ b/dw/iterator.hh
@@ -65,7 +65,7 @@ public:
/**
* \brief Shrink highlighted region to no longer contain the
* current content.
- *
+ *
* The direction parameter indicates whether the highlighted region should be
* reduced from the start (direction > 0) or from the end (direction < 0).
* If direction is 0 all content is unhighlighted.
@@ -80,7 +80,7 @@ public:
* DwIterator::highlight().
*/
virtual void getAllocation (int start, int end, Allocation *allocation) = 0;
-
+
inline Iterator *cloneIterator () { return (Iterator*)clone(); }
static void scrollTo (Iterator *it1, Iterator *it2, int start, int end,
@@ -96,10 +96,10 @@ class EmptyIterator: public Iterator
{
private:
EmptyIterator (EmptyIterator &it);
-
+
public:
EmptyIterator (Widget *widget, Content::Type mask, bool atEnd);
-
+
object::Object *clone();
int compareTo(misc::Comparable *other);
bool next ();
@@ -119,13 +119,13 @@ class TextIterator: public Iterator
private:
/** May be NULL, in this case, the next is skipped. */
const char *text;
-
+
TextIterator (TextIterator &it);
-
+
public:
TextIterator (Widget *widget, Content::Type mask, bool atEnd,
const char *text);
-
+
int compareTo(misc::Comparable *other);
bool next ();
@@ -168,14 +168,14 @@ private:
inline DeepIterator () { }
-public:
+public:
DeepIterator(Iterator *it);
~DeepIterator();
object::Object *clone ();
DeepIterator *createVariant(Iterator *it);
- inline Iterator *getTopIterator () { return stack.getTop(); }
+ inline Iterator *getTopIterator () { return stack.getTop(); }
inline Content *getContent () { return &content; }
bool isEmpty ();
@@ -188,7 +188,7 @@ public:
/**
* \brief Highlight a part of the current content.
*
- * Unhighlight the current content by passing -1 as start (see also
+ * Unhighlight the current content by passing -1 as start (see also
* (dw::core::Iterator::unhighlight). For text, start and end define the
* characters, otherwise, the shape is defined as [0, 1], i.e. for
* highlighting a whole dw::core::Content, pass 0 and >= 1.