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