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 void doApply()
Definition: htmlediting_impl.cpp:2015
DOM::Selection startingSelection() const
Definition: htmlediting_impl.h:113
ReplaceSelectionCommandImpl(DOM::DocumentImpl *document, DOM::DocumentFragmentImpl *fragment, bool selectReplacement=true)
Definition: htmlediting_impl.cpp:2137
bool applyBold
Definition: htmlediting_impl.h:217
static void insertNewline0(DocumentImpl *document)
Definition: htmlediting_impl.cpp:2694
DOM::CSSStyleDeclarationImpl * styleDeclaration() const
Definition: htmlediting_impl.h:458
DOM::NodeImpl * node() const
Definition: htmlediting_impl.h:539
virtual ~TypingCommandImpl()
Definition: htmlediting_impl.cpp:2559
RemoveNodePreservingChildrenCommandImpl(DOM::DocumentImpl *, DOM::NodeImpl *)
Definition: htmlediting_impl.cpp:2421
unsigned long charactersAdded() const
Definition: htmlediting_impl.h:340
virtual ~RemoveNodePreservingChildrenCommandImpl()
Definition: htmlediting_impl.cpp:2428
Definition: htmlediting_impl.h:593
AppendNodeCommandImpl(DOM::DocumentImpl *, DOM::NodeImpl *parentNode, DOM::NodeImpl *appendChild)
Definition: htmlediting_impl.cpp:524
InsertTextCommandImpl(DOM::DocumentImpl *document, DOM::TextImpl *, long, const DOM::DOMString &)
Definition: htmlediting_impl.cpp:2040
DOM::NodeImpl * stopNode() const
Definition: htmlediting_impl.h:521
virtual void doUnapply()
Definition: htmlediting_impl.cpp:319
bool isCompositeStep() const
Definition: htmlediting_impl.h:97
virtual ~CompositeEditCommandImpl()
Definition: htmlediting_impl.cpp:315
StyleChange()
Definition: htmlediting_impl.h:215
void deleteCollapsibleWhitespace()
Definition: htmlediting_impl.cpp:474
SetNodeAttributeCommandImpl(DOM::DocumentImpl *, DOM::ElementImpl *, DOM::NodeImpl::Id attribute, const DOM::DOMString &value)
Definition: htmlediting_impl.cpp:2449
DOM::ElementImpl * element() const
Definition: htmlediting_impl.h:480
virtual void doUnapply()
Definition: htmlediting_impl.cpp:2474
virtual ~RemoveNodeCommandImpl()
Definition: htmlediting_impl.cpp:2351
virtual void doApply()
Definition: htmlediting_impl.cpp:2146
void deleteSelection()
Definition: htmlediting_impl.cpp:458
void splitTextNode(DOM::TextImpl *text, long offset)
Definition: htmlediting_impl.cpp:419
DeleteCollapsibleWhitespaceCommandImpl(DOM::DocumentImpl *document, const DOM::Selection &selection)
SplitTextNodeCommandImpl(DOM::DocumentImpl *, DOM::TextImpl *, long)
Definition: htmlediting_impl.cpp:2487
virtual ~InsertTextCommandImpl()
Definition: htmlediting_impl.cpp:2051
void setParent(EditCommandImpl *)
Definition: htmlediting_impl.cpp:302
virtual ~InputNewlineCommandImpl()
Definition: htmlediting_impl.cpp:1597
void appendNode(DOM::NodeImpl *parent, DOM::NodeImpl *appendChild)
Definition: htmlediting_impl.cpp:395
virtual void doApply()
Definition: htmlediting_impl.cpp:2463
virtual void doApply()
Definition: htmlediting_impl.cpp:1140
bool openForMoreTyping() const
Definition: htmlediting_impl.h:600
virtual bool isTypingCommand() const
Definition: htmlediting_impl.h:607
virtual void doUnapply()
Definition: htmlediting_impl.cpp:1579
InputNewlineCommandImpl(DOM::DocumentImpl *document)
Definition: htmlediting_impl.cpp:1592
void setStartingSelection(const DOM::Selection &s)
Definition: htmlediting_impl.cpp:277
static void insertText0(DocumentImpl *document, const DOMString &text)
Definition: htmlediting_impl.cpp:2709
DeleteSelectionCommandImpl(DOM::DocumentImpl *document)
virtual ~InsertListCommandImpl()
Definition: htmlediting_impl.cpp:2736
virtual void doUnapply()
Definition: htmlediting_impl.cpp:2316
virtual void doUnapply()=0
void setEndingSelection(const DOM::Selection &s)
Definition: htmlediting_impl.cpp:287
void inputText(const DOM::DOMString &text)
Definition: htmlediting_impl.cpp:431
DOM::ElementImpl * element() const
Definition: htmlediting_impl.h:557
InputTextCommandImpl(DOM::DocumentImpl *document)
Definition: htmlediting_impl.cpp:1766
virtual ~RemoveNodeAttributeCommandImpl()
Definition: htmlediting_impl.cpp:2298
void insertNodeBefore(DOM::NodeImpl *insertChild, DOM::NodeImpl *refChild)
Definition: htmlediting_impl.cpp:355
virtual ~AppendNodeCommandImpl()
Definition: htmlediting_impl.cpp:534
virtual void doReapply()
Definition: htmlediting_impl.cpp:331
DOM::NodeImpl::Id attribute() const
Definition: htmlediting_impl.h:558
static void deleteKeyPressed0(DocumentImpl *document)
Definition: htmlediting_impl.cpp:2681
virtual ~JoinTextNodesCommandImpl()
Definition: htmlediting_impl.cpp:2093
virtual bool isTypingCommand() const
Definition: htmlediting_impl.h:123
DOM::TextImpl * secondNode() const
Definition: htmlediting_impl.h:406
ApplyStyleCommandImpl(DOM::DocumentImpl *, DOM::CSSStyleDeclarationImpl *style)
Definition: htmlediting_impl.cpp:566
DOM::NodeImpl * refChild() const
Definition: htmlediting_impl.h:364
virtual void doApply()
Definition: htmlediting_impl.cpp:2269
void insertText(DOM::TextImpl *node, long offset, const DOM::DOMString &text)
Definition: htmlediting_impl.cpp:438
virtual void doUnapply()
Definition: htmlediting_impl.cpp:2067
DOM::ElementImpl * createTypingStyleElement() const
Definition: htmlediting_impl.cpp:504
DOM::NodeImpl * appendChild() const
Definition: htmlediting_impl.h:194
DOM::TextImpl * firstNode() const
Definition: htmlediting_impl.h:405
virtual ~SetNodeAttributeCommandImpl()
Definition: htmlediting_impl.cpp:2457
RemoveNodeAndPruneCommandImpl(DOM::DocumentImpl *, DOM::NodeImpl *pruneNode, DOM::NodeImpl *stopNode=0)
Definition: htmlediting_impl.cpp:2387
void setState(ECommandState state)
Definition: htmlediting_impl.h:117
void deleteCollapsibleWhitespace(const DOM::Selection &selection)
virtual ~RemoveCSSPropertyCommandImpl()
Definition: htmlediting_impl.cpp:2263
JoinTextNodesCommandImpl(DOM::DocumentImpl *, DOM::TextImpl *, DOM::TextImpl *)
Definition: htmlediting_impl.cpp:2080
DOM::NodeImpl::Id attribute() const
Definition: htmlediting_impl.h:481
void removeNodePreservingChildren(DOM::NodeImpl *node)
Definition: htmlediting_impl.cpp:413
DOM::NodeImpl * parentNode() const
Definition: htmlediting_impl.h:193
void applyCommandToComposite(PassRefPtr< EditCommandImpl >)
Definition: htmlediting_impl.cpp:346
void deleteText(DOM::TextImpl *node, long offset, long count)
Definition: htmlediting_impl.cpp:444
void insertNodeAfter(DOM::NodeImpl *insertChild, DOM::NodeImpl *refChild)
Definition: htmlediting_impl.cpp:361
void setNodeAttribute(DOM::ElementImpl *, int attribute, const DOM::DOMString &)
Definition: htmlediting_impl.cpp:498
InsertListCommandImpl(DOM::DocumentImpl *document, Type type)
Definition: htmlediting_impl.cpp:2731
virtual ~DeleteCollapsibleWhitespaceCommandImpl()
Definition: htmlediting_impl.cpp:1011
DOM::CSSStyleDeclarationImpl * style() const
Definition: htmlediting_impl.h:212
void removeCSSProperty(DOM::CSSStyleDeclarationImpl *, int property)
Definition: htmlediting_impl.cpp:486
virtual ~ApplyStyleCommandImpl()
Definition: htmlediting_impl.cpp:573
virtual void doApply()
Definition: htmlediting_impl.cpp:2403
virtual void doApply()=0
virtual void doApply()
Definition: htmlediting_impl.cpp:1293
void removeNodeAttribute(DOM::ElementImpl *, int attribute)
Definition: htmlediting_impl.cpp:492
virtual ~InsertNodeBeforeCommandImpl()
Definition: htmlediting_impl.cpp:2007
virtual ~DeleteTextCommandImpl()
Definition: htmlediting_impl.cpp:1561
Definition: htmlediting_impl.h:92
virtual void doUnapply()
Definition: htmlediting_impl.cpp:2371
virtual DOM::DocumentImpl * document() const
Definition: htmlediting_impl.h:111
virtual ~ReplaceSelectionCommandImpl()
Definition: htmlediting_impl.cpp:2142
virtual ~DeleteSelectionCommandImpl()
Definition: htmlediting_impl.cpp:1187
TypingCommandImpl(DOM::DocumentImpl *document)
Definition: htmlediting_impl.cpp:2554
void removeNode(DOM::NodeImpl *removeChild)
Definition: htmlediting_impl.cpp:401
DOM::DOMString value() const
Definition: htmlediting_impl.h:559
virtual void doUnapply()
Definition: htmlediting_impl.cpp:2117
DOM::Selection endingSelection() const
Definition: htmlediting_impl.h:114
EditCommandImpl(DOM::DocumentImpl *)
Definition: htmlediting_impl.cpp:215
virtual ~SplitTextNodeCommandImpl()
Definition: htmlediting_impl.cpp:2496
DeleteSelectionCommandImpl(DOM::DocumentImpl *document, const DOM::Selection &selection)
virtual void doUnapply()
Definition: htmlediting_impl.cpp:2026
DOM::NodeImpl * pruneNode() const
Definition: htmlediting_impl.h:520
void input(const DOM::DOMString &text)
Definition: htmlediting_impl.cpp:1779
virtual void doApply()
Definition: htmlediting_impl.cpp:2434
MoveSelectionCommandImpl(DOM::DocumentImpl *document, DOM::DocumentFragmentImpl *fragment, DOM::Position &position)
Definition: htmlediting_impl.cpp:2219
bool applyItalic
Definition: htmlediting_impl.h:218
IndentOutdentCommandImpl(DocumentImpl *document, Type type)
Definition: htmlediting_impl.cpp:2837
virtual void doUnapply()
Definition: htmlediting_impl.cpp:2280
CompositeEditCommandImpl(DOM::DocumentImpl *)
Definition: htmlediting_impl.cpp:310
RemoveNodeCommandImpl(DOM::DocumentImpl *, DOM::NodeImpl *)
Definition: htmlediting_impl.cpp:2329
void removeNodeAndPrune(DOM::NodeImpl *pruneNode, DOM::NodeImpl *stopNode=0)
Definition: htmlediting_impl.cpp:407
virtual bool isInputTextCommand() const
Definition: htmlediting_impl.h:124
static void insertList(DocumentImpl *document, Type type)
Definition: htmlediting_impl.cpp:2826
void insertText(const DOM::DOMString &text)
Definition: htmlediting_impl.cpp:2574
virtual ~EditCommandImpl()
Definition: htmlediting_impl.cpp:225
void replaceText(DOM::TextImpl *node, long offset, long count, const DOM::DOMString &replacementText)
Definition: htmlediting_impl.cpp:450
virtual void doApply()=0
DeleteCollapsibleWhitespaceCommandImpl(DOM::DocumentImpl *document)
virtual ~MoveSelectionCommandImpl()
Definition: htmlediting_impl.cpp:2224
RemoveCSSPropertyCommandImpl(DOM::DocumentImpl *, DOM::CSSStyleDeclarationImpl *, int property)
Definition: htmlediting_impl.cpp:2256
virtual void doApply()
Definition: htmlediting_impl.cpp:2304
void deleteSelection(const DOM::Selection &selection)
InsertNodeBeforeCommandImpl(DOM::DocumentImpl *, DOM::NodeImpl *insertChild, DOM::NodeImpl *refChild)
Definition: htmlediting_impl.cpp:1997
virtual void doUnapply()
Definition: htmlediting_impl.cpp:2534
void deleteKeyPressed()
DOM::NodeImpl * insertChild() const
Definition: htmlediting_impl.h:363
Type
virtual bool isInputTextCommand() const
Definition: htmlediting_impl.h:342
QList< RefPtr< EditCommandImpl > > m_cmds
Definition: htmlediting_impl.h:176
void insertNodeAt(DOM::NodeImpl *insertChild, DOM::NodeImpl *refChild, long offset)
Definition: htmlediting_impl.cpp:372
virtual ~IndentOutdentCommandImpl()
Definition: htmlediting_impl.cpp:2842
RemoveNodeAttributeCommandImpl(DOM::DocumentImpl *, DOM::ElementImpl *, DOM::NodeImpl::Id attribute)
Definition: htmlediting_impl.cpp:2291
DeleteTextCommandImpl(DOM::DocumentImpl *document, DOM::TextImpl *node, long offset, long count)
Definition: htmlediting_impl.cpp:1551
void deleteCharacter()
Definition: htmlediting_impl.cpp:1784
virtual ~RemoveNodeAndPruneCommandImpl()
Definition: htmlediting_impl.cpp:2396
virtual ~InputTextCommandImpl()
Definition: htmlediting_impl.cpp:1771
void joinTextNodes(DOM::TextImpl *text1, DOM::TextImpl *text2)
Definition: htmlediting_impl.cpp:425
DOM::DOMString cssStyle
Definition: htmlediting_impl.h:216
void deleteKeyPressed()
Definition: htmlediting_impl.cpp:2626
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 27 2020 00:00:00 by doxygen 1.8.20 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 27 2020 00:00:00 by doxygen 1.8.20 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.