KHTML
htmlediting_impl.h
Go to the documentation of this file.
149 // sugary-sweet convenience functions to help create and apply edit commands in composite commands
170 void replaceText(DOM::TextImpl *node, long offset, long count, const DOM::DOMString &replacementText);
187 AppendNodeCommandImpl(DOM::DocumentImpl *, DOM::NodeImpl *parentNode, DOM::NodeImpl *appendChild);
234 void surroundNodeRangeWithElement(DOM::NodeImpl *start, DOM::NodeImpl *end, DOM::ElementImpl *element);
248 DeleteCollapsibleWhitespaceCommandImpl(DOM::DocumentImpl *document, const DOM::Selection &selection);
293 DeleteTextCommandImpl(DOM::DocumentImpl *document, DOM::TextImpl *node, long offset, long count);
357 InsertNodeBeforeCommandImpl(DOM::DocumentImpl *, DOM::NodeImpl *insertChild, DOM::NodeImpl *refChild);
377 InsertTextCommandImpl(DOM::DocumentImpl *document, DOM::TextImpl *, long, const DOM::DOMString &);
420 ReplaceSelectionCommandImpl(DOM::DocumentImpl *document, DOM::DocumentFragmentImpl *fragment, bool selectReplacement=true);
436 MoveSelectionCommandImpl(DOM::DocumentImpl *document, DOM::DocumentFragmentImpl *fragment, DOM::Position &position);
452 RemoveCSSPropertyCommandImpl(DOM::DocumentImpl *, DOM::CSSStyleDeclarationImpl *, int property);
474 RemoveNodeAttributeCommandImpl(DOM::DocumentImpl *, DOM::ElementImpl *, DOM::NodeImpl::Id attribute);
515 RemoveNodeAndPruneCommandImpl(DOM::DocumentImpl *, DOM::NodeImpl *pruneNode, DOM::NodeImpl *stopNode=0);
551 SetNodeAttributeCommandImpl(DOM::DocumentImpl *, DOM::ElementImpl *, DOM::NodeImpl::Id attribute, const DOM::DOMString &value);
virtual ~DeleteSelectionCommandImpl()
Definition: htmlediting_impl.cpp:1185
bool applyItalic
Definition: htmlediting_impl.h:218
AppendNodeCommandImpl(DOM::DocumentImpl *, DOM::NodeImpl *parentNode, DOM::NodeImpl *appendChild)
Definition: htmlediting_impl.cpp:524
void removeNodeAttribute(DOM::ElementImpl *, int attribute)
Definition: htmlediting_impl.cpp:492
DOM::NodeImpl * node() const
Definition: htmlediting_impl.h:539
void insertNodeBefore(DOM::NodeImpl *insertChild, DOM::NodeImpl *refChild)
Definition: htmlediting_impl.cpp:355
DOM::NodeImpl * pruneNode() const
Definition: htmlediting_impl.h:520
int property() const
Definition: htmlediting_impl.h:459
virtual DOM::DocumentImpl * document() const
Definition: htmlediting_impl.h:111
void replaceText(DOM::TextImpl *node, long offset, long count, const DOM::DOMString &replacementText)
Definition: htmlediting_impl.cpp:450
virtual void doApply()
Definition: htmlediting_impl.cpp:2302
DeleteSelectionCommandImpl(DOM::DocumentImpl *document)
void removeNodeAndPrune(DOM::NodeImpl *pruneNode, DOM::NodeImpl *stopNode=0)
Definition: htmlediting_impl.cpp:407
virtual ~SetNodeAttributeCommandImpl()
Definition: htmlediting_impl.cpp:2455
Type
virtual void doUnapply()
Definition: htmlediting_impl.cpp:2472
InputNewlineCommandImpl(DOM::DocumentImpl *document)
Definition: htmlediting_impl.cpp:1590
virtual void doUnapply()
Definition: htmlediting_impl.cpp:2278
bool openForMoreTyping() const
Definition: htmlediting_impl.h:600
void insertNodeAfter(DOM::NodeImpl *insertChild, DOM::NodeImpl *refChild)
Definition: htmlediting_impl.cpp:361
ReplaceSelectionCommandImpl(DOM::DocumentImpl *document, DOM::DocumentFragmentImpl *fragment, bool selectReplacement=true)
Definition: htmlediting_impl.cpp:2135
RemoveNodeAndPruneCommandImpl(DOM::DocumentImpl *, DOM::NodeImpl *pruneNode, DOM::NodeImpl *stopNode=0)
Definition: htmlediting_impl.cpp:2385
virtual ~RemoveCSSPropertyCommandImpl()
Definition: htmlediting_impl.cpp:2261
DOM::NodeImpl * appendChild() const
Definition: htmlediting_impl.h:194
virtual void doUnapply()=0
virtual ~RemoveNodeAndPruneCommandImpl()
Definition: htmlediting_impl.cpp:2394
virtual void doUnapply()
Definition: htmlediting_impl.cpp:2024
void insertText(const DOM::DOMString &text)
Definition: htmlediting_impl.cpp:2572
InputTextCommandImpl(DOM::DocumentImpl *document)
Definition: htmlediting_impl.cpp:1764
void setParent(EditCommandImpl *)
Definition: htmlediting_impl.cpp:302
TypingCommandImpl(DOM::DocumentImpl *document)
Definition: htmlediting_impl.cpp:2552
QList< RefPtr< EditCommandImpl > > m_cmds
Definition: htmlediting_impl.h:176
static void deleteKeyPressed0(DocumentImpl *document)
Definition: htmlediting_impl.cpp:2679
DOM::NodeImpl * stopNode() const
Definition: htmlediting_impl.h:521
DOM::Selection startingSelection() const
Definition: htmlediting_impl.h:113
DOM::DOMString cssStyle
Definition: htmlediting_impl.h:216
virtual void doApply()
Definition: htmlediting_impl.cpp:1291
DOM::Selection endingSelection() const
Definition: htmlediting_impl.h:114
DOM::NodeImpl::Id attribute() const
Definition: htmlediting_impl.h:481
virtual void doApply()=0
DeleteTextCommandImpl(DOM::DocumentImpl *document, DOM::TextImpl *node, long offset, long count)
Definition: htmlediting_impl.cpp:1549
virtual ~InsertListCommandImpl()
Definition: htmlediting_impl.cpp:2734
virtual void doReapply()
Definition: htmlediting_impl.cpp:331
SetNodeAttributeCommandImpl(DOM::DocumentImpl *, DOM::ElementImpl *, DOM::NodeImpl::Id attribute, const DOM::DOMString &value)
Definition: htmlediting_impl.cpp:2447
DOM::CSSStyleDeclarationImpl * style() const
Definition: htmlediting_impl.h:212
void joinTextNodes(DOM::TextImpl *text1, DOM::TextImpl *text2)
Definition: htmlediting_impl.cpp:425
virtual ~DeleteCollapsibleWhitespaceCommandImpl()
Definition: htmlediting_impl.cpp:1009
void deleteCharacter()
Definition: htmlediting_impl.cpp:1782
virtual void doUnapply()
Definition: htmlediting_impl.cpp:319
static void insertList(DocumentImpl *document, Type type)
Definition: htmlediting_impl.cpp:2824
void setState(ECommandState state)
Definition: htmlediting_impl.h:117
virtual ~ApplyStyleCommandImpl()
Definition: htmlediting_impl.cpp:573
virtual ~EditCommandImpl()
Definition: htmlediting_impl.cpp:225
virtual ~CompositeEditCommandImpl()
Definition: htmlediting_impl.cpp:315
Definition: htmlediting_impl.h:91
InsertTextCommandImpl(DOM::DocumentImpl *document, DOM::TextImpl *, long, const DOM::DOMString &)
Definition: htmlediting_impl.cpp:2038
void splitTextNode(DOM::TextImpl *text, long offset)
Definition: htmlediting_impl.cpp:419
EditCommandImpl(DOM::DocumentImpl *)
Definition: htmlediting_impl.cpp:215
void removeCSSProperty(DOM::CSSStyleDeclarationImpl *, int property)
Definition: htmlediting_impl.cpp:486
virtual void doUnapply()
Definition: htmlediting_impl.cpp:2065
void deleteText(DOM::TextImpl *node, long offset, long count)
Definition: htmlediting_impl.cpp:444
DOM::TextImpl * secondNode() const
Definition: htmlediting_impl.h:406
virtual ~RemoveNodeAttributeCommandImpl()
Definition: htmlediting_impl.cpp:2296
StyleChange()
Definition: htmlediting_impl.h:215
DOM::NodeImpl * insertChild() const
Definition: htmlediting_impl.h:363
DOM::CSSStyleDeclarationImpl * styleDeclaration() const
Definition: htmlediting_impl.h:458
void applyCommandToComposite(PassRefPtr< EditCommandImpl >)
Definition: htmlediting_impl.cpp:346
virtual bool isTypingCommand() const
Definition: htmlediting_impl.h:123
ApplyStyleCommandImpl(DOM::DocumentImpl *, DOM::CSSStyleDeclarationImpl *style)
Definition: htmlediting_impl.cpp:566
DeleteCollapsibleWhitespaceCommandImpl(DOM::DocumentImpl *document)
DOM::NodeImpl * refChild() const
Definition: htmlediting_impl.h:364
virtual ~JoinTextNodesCommandImpl()
Definition: htmlediting_impl.cpp:2091
virtual void doApply()=0
void setNodeAttribute(DOM::ElementImpl *, int attribute, const DOM::DOMString &)
Definition: htmlediting_impl.cpp:498
DOM::TextImpl * node() const
Definition: htmlediting_impl.h:580
static void insertNewline0(DocumentImpl *document)
Definition: htmlediting_impl.cpp:2692
virtual void doApply()
Definition: htmlediting_impl.cpp:1138
virtual void doUnapply()
Definition: htmlediting_impl.cpp:2314
virtual bool isInputTextCommand() const
Definition: htmlediting_impl.h:342
virtual ~TypingCommandImpl()
Definition: htmlediting_impl.cpp:2557
virtual ~ReplaceSelectionCommandImpl()
Definition: htmlediting_impl.cpp:2140
virtual ~MoveSelectionCommandImpl()
Definition: htmlediting_impl.cpp:2222
virtual void doUnapply()
Definition: htmlediting_impl.cpp:2115
void setStartingSelection(const DOM::Selection &s)
Definition: htmlediting_impl.cpp:277
DOM::ElementImpl * element() const
Definition: htmlediting_impl.h:480
void inputText(const DOM::DOMString &text)
Definition: htmlediting_impl.cpp:431
Definition: htmlediting_impl.h:592
SplitTextNodeCommandImpl(DOM::DocumentImpl *, DOM::TextImpl *, long)
Definition: htmlediting_impl.cpp:2485
void insertNodeAt(DOM::NodeImpl *insertChild, DOM::NodeImpl *refChild, long offset)
Definition: htmlediting_impl.cpp:372
void deleteKeyPressed()
Definition: htmlediting_impl.cpp:2624
InsertListCommandImpl(DOM::DocumentImpl *document, Type type)
Definition: htmlediting_impl.cpp:2729
CompositeEditCommandImpl(DOM::DocumentImpl *)
Definition: htmlediting_impl.cpp:310
void appendNode(DOM::NodeImpl *parent, DOM::NodeImpl *appendChild)
Definition: htmlediting_impl.cpp:395
static void insertText0(DocumentImpl *document, const DOMString &text)
Definition: htmlediting_impl.cpp:2707
virtual ~RemoveNodePreservingChildrenCommandImpl()
Definition: htmlediting_impl.cpp:2426
virtual ~InsertNodeBeforeCommandImpl()
Definition: htmlediting_impl.cpp:2005
virtual ~RemoveNodeCommandImpl()
Definition: htmlediting_impl.cpp:2349
virtual void doApply()
Definition: htmlediting_impl.cpp:2432
MoveSelectionCommandImpl(DOM::DocumentImpl *document, DOM::DocumentFragmentImpl *fragment, DOM::Position &position)
Definition: htmlediting_impl.cpp:2217
bool isCompositeStep() const
Definition: htmlediting_impl.h:97
virtual bool isTypingCommand() const
Definition: htmlediting_impl.h:607
JoinTextNodesCommandImpl(DOM::DocumentImpl *, DOM::TextImpl *, DOM::TextImpl *)
Definition: htmlediting_impl.cpp:2078
virtual ~InsertTextCommandImpl()
Definition: htmlediting_impl.cpp:2049
void removeNodePreservingChildren(DOM::NodeImpl *node)
Definition: htmlediting_impl.cpp:413
virtual void doUnapply()
Definition: htmlediting_impl.cpp:2532
virtual ~DeleteTextCommandImpl()
Definition: htmlediting_impl.cpp:1559
virtual void doApply()
Definition: htmlediting_impl.cpp:2144
DOM::ElementImpl * createTypingStyleElement() const
Definition: htmlediting_impl.cpp:504
virtual void doApply()
Definition: htmlediting_impl.cpp:2013
void removeNode(DOM::NodeImpl *removeChild)
Definition: htmlediting_impl.cpp:401
RemoveCSSPropertyCommandImpl(DOM::DocumentImpl *, DOM::CSSStyleDeclarationImpl *, int property)
Definition: htmlediting_impl.cpp:2254
virtual bool isInputTextCommand() const
Definition: htmlediting_impl.h:124
virtual ~AppendNodeCommandImpl()
Definition: htmlediting_impl.cpp:534
void deleteKeyPressed()
DOM::NodeImpl::Id attribute() const
Definition: htmlediting_impl.h:558
virtual void doApply()
Definition: htmlediting_impl.cpp:2401
virtual ~IndentOutdentCommandImpl()
Definition: htmlediting_impl.cpp:2840
bool applyBold
Definition: htmlediting_impl.h:217
DOM::TextImpl * firstNode() const
Definition: htmlediting_impl.h:405
void deleteSelection()
Definition: htmlediting_impl.cpp:458
virtual void doApply()
Definition: htmlediting_impl.cpp:2461
RemoveNodeCommandImpl(DOM::DocumentImpl *, DOM::NodeImpl *)
Definition: htmlediting_impl.cpp:2327
void deleteCollapsibleWhitespace()
Definition: htmlediting_impl.cpp:474
void input(const DOM::DOMString &text)
Definition: htmlediting_impl.cpp:1777
DOM::ElementImpl * element() const
Definition: htmlediting_impl.h:557
virtual void doUnapply()
Definition: htmlediting_impl.cpp:2369
virtual void doApply()
Definition: htmlediting_impl.cpp:2267
const KShortcut & end()
void insertText(DOM::TextImpl *node, long offset, const DOM::DOMString &text)
Definition: htmlediting_impl.cpp:438
virtual void doUnapply()
Definition: htmlediting_impl.cpp:1577
unsigned long charactersAdded() const
Definition: htmlediting_impl.h:340
RemoveNodeAttributeCommandImpl(DOM::DocumentImpl *, DOM::ElementImpl *, DOM::NodeImpl::Id attribute)
Definition: htmlediting_impl.cpp:2289
virtual ~InputNewlineCommandImpl()
Definition: htmlediting_impl.cpp:1595
InsertNodeBeforeCommandImpl(DOM::DocumentImpl *, DOM::NodeImpl *insertChild, DOM::NodeImpl *refChild)
Definition: htmlediting_impl.cpp:1995
DOM::DOMString value() const
Definition: htmlediting_impl.h:559
DOM::NodeImpl * parentNode() const
Definition: htmlediting_impl.h:193
virtual ~InputTextCommandImpl()
Definition: htmlediting_impl.cpp:1769
IndentOutdentCommandImpl(DocumentImpl *document, Type type)
Definition: htmlediting_impl.cpp:2835
void setEndingSelection(const DOM::Selection &s)
Definition: htmlediting_impl.cpp:287
virtual ~SplitTextNodeCommandImpl()
Definition: htmlediting_impl.cpp:2494
RemoveNodePreservingChildrenCommandImpl(DOM::DocumentImpl *, DOM::NodeImpl *)
Definition: htmlediting_impl.cpp:2419
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.