KHTML
khtml_caret_p.h
Go to the documentation of this file.
165 RenderBlock *containingBlock() const { return _box ? static_cast<RenderBlock *>(cb) : cb->containingBlock(); }
410 SeekBoxParams(InlineBox *box, bool outside, bool outsideEnd, RenderObject *obj, CaretBoxIterator &it)
bool operator!=(const LineIterator &it) const
compares two iterators
Definition: khtml_caret_p.h:544
KHTMLPart::CaretDisplayPolicy displayNonFocused
Definition: khtml_caret_p.h:70
ErgonomicEditableLineIterator()
Constructs an uninitialized iterator which must be assigned a line iterator before it can be used...
Definition: khtml_caret_p.h:943
static CaretBoxIterator & currentCaretBox()
Whenever a new line iterator is created, it gets a caret box created.
Definition: khtml_caret_p.h:576
int origX
For natural traversal of lines, the original x position is saved, and the actual x is set to the firs...
Definition: khtml_caret_p.h:79
SeekBoxParams(InlineBox *box, bool outside, bool outsideEnd, RenderObject *obj, CaretBoxIterator &it)
Definition: khtml_caret_p.h:410
iterator begin()
void peekPrev()
reads ahead the previous node and updates the data structures accordingly
Definition: khtml_caret_p.h:1081
Iterator begin()
Returns a line iterator pointing to the very first line of the document.
Definition: khtml_caret.cpp:1276
bool isLineBreak() const
returns true if this caret box represents a line break
Definition: khtml_caret_p.h:181
KAction * copy(const QObject *recvr, const char *slot, QObject *parent)
RenderBlock * containingBlock() const
returns the containing block of this caret box.
Definition: khtml_caret_p.h:165
Iterator preEnd()
Returns a line iterator pointing to the very last line of the document.
Definition: khtml_caret.cpp:1290
bool check(const CaretBoxIterator &chit)
checks whether this box matches the given iterator.
Definition: khtml_caret_p.h:432
bool operator!=(const CaretBoxIterator &it) const
Definition: khtml_caret_p.h:239
RenderTableSection::RowStruct * operator*()
returns the current table row.
Definition: khtml_caret_p.h:898
InlineFlowBox * baseFlowBox() const
returns the base inline flow box which the caret boxes of this caret box line have been constructed f...
Definition: khtml_caret_p.h:338
Represents a render table as a linear list of rows.
Definition: khtml_caret_p.h:868
bool isAdjacent() const
returns true when the current caret box is adjacent to the previously iterated caret box...
Definition: khtml_caret_p.h:769
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
void peekNext()
reads ahead the next node and updates the data structures accordingly
Definition: khtml_caret_p.h:1066
bool isEnd() const
returns true when the end of the document has been reached.
Definition: khtml_caret_p.h:1027
Iterates through the editable lines of a document, in a topological order.
Definition: khtml_caret_p.h:929
void addCreatedInlineBoxEdge(InlineBox *box, const QFontMetrics &fm, bool left, bool rtl)
creates and adds the edge of a generic inline box
Definition: khtml_caret.cpp:798
void calcAndStoreNewLine(RenderBlock *newBlock, bool toBegin)
initializes the iterator to point to the first previous/following editable line.
Definition: khtml_caret.cpp:2262
EditableLineIterator(const LineIterator &it, bool fromEnd=false)
Initializes a new iterator.
Definition: khtml_caret_p.h:817
void advance(bool toBegin)
advances to the editable caret box to come
Definition: khtml_caret.cpp:1505
Iterator current()
Returns a line iterator containing the current position as its starting value.
Definition: khtml_caret.cpp:1271
bool operator==(const CaretBox *cbox) const
compares whether this seek box matches the given caret box
Definition: khtml_caret_p.h:423
QChar operator*() const
returns the current character as a unicode symbol, substituting a blank for a non-text node...
Definition: khtml_caret_p.h:1023
EditableCaretBoxIterator & operator--()
decrements the iterator to point to the previous editable caret box.
Definition: khtml_caret_p.h:777
bool isOutside() const
returns whether this caret box line is outside.
Definition: khtml_caret_p.h:349
EditableCharacterIterator(LinearDocument *ld)
constructs a new iterator from the given linear document.
Definition: khtml_caret_p.h:1005
CaretBoxLine * operator*() const
dereferences current caret box line.
Definition: khtml_caret_p.h:516
const Iterator & preBegin() const
Returns a line iterator pointing just before the very first line of the document (this is somewhat an...
Definition: khtml_caret_p.h:692
void addConvertedInlineBox(InlineBox *, SeekBoxParams &)
recursively converts the given inline box into caret boxes and adds them to this caret box line...
Definition: khtml_caret.cpp:664
bool operator==(const CaretBoxIterator &it) const
Definition: khtml_caret_p.h:234
bool isOutsideEnd()
Returns whether this line represents the outside end of the containing block.
Definition: khtml_caret_p.h:554
int chr() const
returns the current character, or -1 if not on a text node, or beyond the end.
Definition: khtml_caret_p.h:1018
const Iterator & end() const
Returns a line iterator pointing right after the end of the document.
Definition: khtml_caret_p.h:676
bool equalsBox(const InlineBox *box, bool outside, bool outsideEnd) const
compares whether this seek box matches the given specification
Definition: khtml_caret_p.h:415
long minOffset() const
returns the minimum offset for this caret box.
Definition: khtml_caret_p.h:201
void addCreatedFlowBoxEdge(InlineFlowBox *flowBox, const QFontMetrics &fm, bool left, bool rtl)
creates and adds the edge of an inline flow box
Definition: khtml_caret.cpp:785
Stores objects of a certain type, and calls delete on each of them when this data structure is destro...
Definition: khtml_caret_p.h:102
static CaretBoxLine * constructCaretBoxLine(MassDeleter< CaretBoxLine > *deleter, InlineFlowBox *baseFlowBox, InlineBox *seekBox, bool seekOutside, bool seekOutsideEnd, CaretBoxIterator &iter, RenderObject *seekObject=0)
constructs a new caret box line out of the given inline flow box
EditableCaretBoxIterator & operator++()
increments the iterator to point to the next editable caret box.
Definition: khtml_caret_p.h:773
bool isOutsideEnd() const
returns whether this caret box line is at the outside end.
Definition: khtml_caret_p.h:359
Iterates over the elements of a caret box line.
Definition: khtml_caret_p.h:221
void reserve(int size)
bool operator==(const LineIterator &it) const
compares two iterators.
Definition: khtml_caret_p.h:537
LinearDocument(KHTMLPart *part, DOM::NodeImpl *node, long offset, CaretAdvancePolicy advancePolicy, DOM::ElementImpl *baseElem)
Creates a new instance, and initializes it to the line specified by the parameters below...
Definition: khtml_caret.cpp:1244
LinearDocument * linearDocument() const
returns the associated linear document
Definition: khtml_caret_p.h:520
CaretBoxIterator & operator++()
increments the iterator to point to the next caret box.
Definition: khtml_caret_p.h:255
contextual information about the caret which is related to the view.
Definition: khtml_caret_p.h:60
bool isInline() const
returns the replaced render object if this caret box represents one, 0 otherwise. ...
Definition: khtml_caret_p.h:175
TableRowIterator(RenderTableSection *section, int index)
Constructs a new iterator.
Definition: khtml_caret_p.h:886
bool isOutside() const
returns true when this caret box represents an ouside position of an element.
Definition: khtml_caret_p.h:188
Definition: khtmlview.h:36
void determineTopologicalElement(RenderTableCell *oldCell, RenderObject *newObject, bool toBegin)
determines the topologically next render object.
Definition: khtml_caret.cpp:2282
bool isInlineTextBox() const
returns true if this caret box represents an inline text box.
Definition: khtml_caret_p.h:178
void initFirstChar()
initializes the _char member by reading the character at the current offset, peeking ahead as necessa...
Definition: khtml_caret.cpp:1744
static long currentModifiedOffset()
Whenever a new line iterator is created, it calculates a modified offset that is to be used with resp...
Definition: khtml_caret_p.h:586
long maxOffset() const
returns the maximum offset for this caret box.
Definition: khtml_caret_p.h:204
EditableCaretBoxIterator(LineIterator &lit, bool fromEnd=false, CaretBoxIterator *it=0)
initializes a new iterator from the given line iterator, beginning with the given caret box iterator...
Definition: khtml_caret_p.h:751
ErgonomicEditableLineIterator(const LineIterator &it, int x)
Initializes a new ergonomic editable line iterator from the given one.
Definition: khtml_caret_p.h:937
CaretAdvancePolicy advancePolicy() const
Returns the current caret advance policy.
Definition: khtml_caret_p.h:697
Represents the whole document in terms of lines.
Definition: khtml_caret_p.h:622
Represents a rectangular box within which the caret is located.
Definition: khtml_caret_p.h:126
bool isOutsideEnd() const
returns the position at which the outside is targeted at.
Definition: khtml_caret_p.h:195
EditableCharacterIterator & operator--()
moves to the previous editable character.
Definition: khtml_caret.cpp:1869
CaretBoxIterator & operator--()
decrements the iterator to point to the previous caret box.
Definition: khtml_caret_p.h:258
RenderObject * baseObject() const
Returns the base render object which the caret must not advance beyond.
Definition: khtml_caret_p.h:706
CaretBox(int x, int y, int w, int h, RenderBox *cb, bool outside, bool outsideEnd)
initializes the caret box from scratch
Definition: khtml_caret_p.h:150
void initPreBeginIterator()
Definition: khtml_caret.cpp:1304
Provides iterating through the document in terms of characters.
Definition: khtml_caret_p.h:984
EditableCharacterIterator & operator++()
returns whether the current line box represents the outside of its render object. ...
Definition: khtml_caret.cpp:1767
int size() const
bool isOutside() const
Tells whether the offset is meant to be outside or inside the containing block.
Definition: khtml_caret_p.h:559
const KShortcut & end()
bool isEditable(const CaretBoxIterator &boxit, bool fromEnd)
finds out if the given box is editable.
Definition: khtml_caret.cpp:1642
iterator end()
Iterates over the editable inner elements of a caret line box.
Definition: khtml_caret_p.h:742
void addCreatedFlowBoxInside(InlineFlowBox *flowBox, const QFontMetrics &fm)
creates and adds the inside of an inline flow box
Definition: khtml_caret.cpp:771
CaretBox(InlineBox *ibox, bool outside, bool outsideEnd)
initializes the caret box from the given inline box
Definition: khtml_caret_p.h:142
bool isEditable(LineIterator &it)
finds out if the current line is editable.
Definition: khtml_caret_p.h:853
Iterates through the editable lines of a document.
Definition: khtml_caret_p.h:807
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.