KHTML
khtml::CompositeEditCommandImpl Class Reference
#include <htmlediting_impl.h>

Public Member Functions | |
virtual int | commandID () const |
CompositeEditCommandImpl (DOM::DocumentImpl *) | |
virtual void | doApply ()=0 |
virtual void | doReapply () |
virtual void | doUnapply () |
virtual | ~CompositeEditCommandImpl () |
Protected Member Functions | |
void | appendNode (DOM::NodeImpl *parent, DOM::NodeImpl *appendChild) |
void | applyCommandToComposite (EditCommand &) |
DOM::ElementImpl * | createTypingStyleElement () const |
void | deleteCollapsibleWhitespace (const DOM::Selection &selection) |
void | deleteCollapsibleWhitespace () |
void | deleteKeyPressed () |
void | deleteSelection (const DOM::Selection &selection) |
void | deleteSelection () |
void | deleteText (DOM::TextImpl *node, long offset, long count) |
void | inputText (const DOM::DOMString &text) |
void | insertNodeAfter (DOM::NodeImpl *insertChild, DOM::NodeImpl *refChild) |
void | insertNodeAt (DOM::NodeImpl *insertChild, DOM::NodeImpl *refChild, long offset) |
void | insertNodeBefore (DOM::NodeImpl *insertChild, DOM::NodeImpl *refChild) |
void | insertText (DOM::TextImpl *node, long offset, const DOM::DOMString &text) |
void | joinTextNodes (DOM::TextImpl *text1, DOM::TextImpl *text2) |
void | removeCSSProperty (DOM::CSSStyleDeclarationImpl *, int property) |
void | removeNode (DOM::NodeImpl *removeChild) |
void | removeNodeAndPrune (DOM::NodeImpl *pruneNode, DOM::NodeImpl *stopNode=0) |
void | removeNodeAttribute (DOM::ElementImpl *, int attribute) |
void | removeNodePreservingChildren (DOM::NodeImpl *node) |
void | replaceText (DOM::TextImpl *node, long offset, long count, const DOM::DOMString &replacementText) |
void | setNodeAttribute (DOM::ElementImpl *, int attribute, const DOM::DOMString &) |
void | splitTextNode (DOM::TextImpl *text, long offset) |
Protected Attributes | |
QList< EditCommand > | m_cmds |
Detailed Description
Definition at line 102 of file htmlediting_impl.h.
Constructor & Destructor Documentation
khtml::CompositeEditCommandImpl::CompositeEditCommandImpl | ( | DOM::DocumentImpl * | ) |
khtml::CompositeEditCommandImpl::~CompositeEditCommandImpl | ( | ) | [virtual] |
Definition at line 336 of file htmlediting_impl.cpp.
Member Function Documentation
void khtml::CompositeEditCommandImpl::appendNode | ( | DOM::NodeImpl * | parent, | |
DOM::NodeImpl * | appendChild | |||
) | [protected] |
void khtml::CompositeEditCommandImpl::applyCommandToComposite | ( | EditCommand & | cmd | ) | [protected] |
Definition at line 372 of file htmlediting_impl.cpp.
int khtml::CompositeEditCommandImpl::commandID | ( | ) | const [virtual] |
Reimplemented from khtml::EditCommandImpl.
Reimplemented in khtml::ApplyStyleCommandImpl, khtml::DeleteCollapsibleWhitespaceCommandImpl, khtml::DeleteSelectionCommandImpl, khtml::InputNewlineCommandImpl, khtml::InputTextCommandImpl, khtml::ReplaceSelectionCommandImpl, khtml::MoveSelectionCommandImpl, khtml::RemoveNodeAndPruneCommandImpl, khtml::RemoveNodePreservingChildrenCommandImpl, and khtml::TypingCommandImpl.
Definition at line 340 of file htmlediting_impl.cpp.
ElementImpl * khtml::CompositeEditCommandImpl::createTypingStyleElement | ( | ) | const [protected] |
Definition at line 530 of file htmlediting_impl.cpp.
void khtml::CompositeEditCommandImpl::deleteCollapsibleWhitespace | ( | const DOM::Selection & | selection | ) | [protected] |
void khtml::CompositeEditCommandImpl::deleteCollapsibleWhitespace | ( | ) | [protected] |
Definition at line 500 of file htmlediting_impl.cpp.
void khtml::CompositeEditCommandImpl::deleteKeyPressed | ( | ) | [protected] |
Reimplemented in khtml::TypingCommandImpl.
void khtml::CompositeEditCommandImpl::deleteSelection | ( | const DOM::Selection & | selection | ) | [protected] |
void khtml::CompositeEditCommandImpl::deleteSelection | ( | ) | [protected] |
Definition at line 484 of file htmlediting_impl.cpp.
void khtml::CompositeEditCommandImpl::deleteText | ( | DOM::TextImpl * | node, | |
long | offset, | |||
long | count | |||
) | [protected] |
virtual void khtml::CompositeEditCommandImpl::doApply | ( | ) | [pure virtual] |
Implements khtml::EditCommandImpl.
Implemented in khtml::ApplyStyleCommandImpl, khtml::DeleteCollapsibleWhitespaceCommandImpl, khtml::DeleteSelectionCommandImpl, khtml::InputNewlineCommandImpl, khtml::InputTextCommandImpl, khtml::ReplaceSelectionCommandImpl, khtml::MoveSelectionCommandImpl, khtml::RemoveNodeAndPruneCommandImpl, khtml::RemoveNodePreservingChildrenCommandImpl, and khtml::TypingCommandImpl.
void khtml::CompositeEditCommandImpl::doReapply | ( | ) | [virtual] |
void khtml::CompositeEditCommandImpl::doUnapply | ( | ) | [virtual] |
void khtml::CompositeEditCommandImpl::inputText | ( | const DOM::DOMString & | text | ) | [protected] |
Definition at line 457 of file htmlediting_impl.cpp.
void khtml::CompositeEditCommandImpl::insertNodeAfter | ( | DOM::NodeImpl * | insertChild, | |
DOM::NodeImpl * | refChild | |||
) | [protected] |
void khtml::CompositeEditCommandImpl::insertNodeAt | ( | DOM::NodeImpl * | insertChild, | |
DOM::NodeImpl * | refChild, | |||
long | offset | |||
) | [protected] |
void khtml::CompositeEditCommandImpl::insertNodeBefore | ( | DOM::NodeImpl * | insertChild, | |
DOM::NodeImpl * | refChild | |||
) | [protected] |
void khtml::CompositeEditCommandImpl::insertText | ( | DOM::TextImpl * | node, | |
long | offset, | |||
const DOM::DOMString & | text | |||
) | [protected] |
void khtml::CompositeEditCommandImpl::joinTextNodes | ( | DOM::TextImpl * | text1, | |
DOM::TextImpl * | text2 | |||
) | [protected] |
void khtml::CompositeEditCommandImpl::removeCSSProperty | ( | DOM::CSSStyleDeclarationImpl * | , | |
int | property | |||
) | [protected] |
void khtml::CompositeEditCommandImpl::removeNode | ( | DOM::NodeImpl * | removeChild | ) | [protected] |
void khtml::CompositeEditCommandImpl::removeNodeAndPrune | ( | DOM::NodeImpl * | pruneNode, | |
DOM::NodeImpl * | stopNode = 0 | |||
) | [protected] |
void khtml::CompositeEditCommandImpl::removeNodeAttribute | ( | DOM::ElementImpl * | , | |
int | attribute | |||
) | [protected] |
void khtml::CompositeEditCommandImpl::removeNodePreservingChildren | ( | DOM::NodeImpl * | node | ) | [protected] |
void khtml::CompositeEditCommandImpl::replaceText | ( | DOM::TextImpl * | node, | |
long | offset, | |||
long | count, | |||
const DOM::DOMString & | replacementText | |||
) | [protected] |
void khtml::CompositeEditCommandImpl::setNodeAttribute | ( | DOM::ElementImpl * | , | |
int | attribute, | |||
const DOM::DOMString & | ||||
) | [protected] |
void khtml::CompositeEditCommandImpl::splitTextNode | ( | DOM::TextImpl * | text, | |
long | offset | |||
) | [protected] |
Member Data Documentation
QList<EditCommand> khtml::CompositeEditCommandImpl::m_cmds [protected] |
Definition at line 143 of file htmlediting_impl.h.
The documentation for this class was generated from the following files: