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:1187
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:2304
DeleteSelectionCommandImpl(DOM::DocumentImpl *document)
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
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:2137
RemoveNodeAndPruneCommandImpl(DOM::DocumentImpl *, DOM::NodeImpl *pruneNode, DOM::NodeImpl *stopNode=0)
Definition: htmlediting_impl.cpp:2387
virtual ~RemoveCSSPropertyCommandImpl()
Definition: htmlediting_impl.cpp:2263
DOM::NodeImpl * appendChild() const
Definition: htmlediting_impl.h:194
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::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:1293
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:1551
virtual ~InsertListCommandImpl()
Definition: htmlediting_impl.cpp:2736
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:2449
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:1011
void deleteCharacter()
Definition: htmlediting_impl.cpp:1784
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
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:2040
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:2067
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:2298
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:2093
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:2694
virtual void doApply()
Definition: htmlediting_impl.cpp:1140
virtual void doUnapply()
Definition: htmlediting_impl.cpp:2316
virtual bool isInputTextCommand() const
Definition: htmlediting_impl.h:342
virtual ~TypingCommandImpl()
Definition: htmlediting_impl.cpp:2559
virtual ~ReplaceSelectionCommandImpl()
Definition: htmlediting_impl.cpp:2142
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
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: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
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
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
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: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::ElementImpl * createTypingStyleElement() const
Definition: htmlediting_impl.cpp:504
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
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:2403
virtual ~IndentOutdentCommandImpl()
Definition: htmlediting_impl.cpp:2842
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:2463
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:557
virtual void doUnapply()
Definition: htmlediting_impl.cpp:2371
virtual void doApply()
Definition: htmlediting_impl.cpp:2269
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
unsigned long charactersAdded() const
Definition: htmlediting_impl.h:340
RemoveNodeAttributeCommandImpl(DOM::DocumentImpl *, DOM::ElementImpl *, DOM::NodeImpl::Id attribute)
Definition: htmlediting_impl.cpp:2291
virtual ~InputNewlineCommandImpl()
Definition: htmlediting_impl.cpp:1597
InsertNodeBeforeCommandImpl(DOM::DocumentImpl *, DOM::NodeImpl *insertChild, DOM::NodeImpl *refChild)
Definition: htmlediting_impl.cpp:1997
DOM::DOMString value() const
Definition: htmlediting_impl.h:559
DOM::NodeImpl * parentNode() const
Definition: htmlediting_impl.h:193
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-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.