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