Home | History | Annotate | Download | only in editing

Lines Matching defs:TypingCommand

27 #include "TypingCommand.h"
50 TypingCommand::TypingCommand(Document *document, ETypingCommand commandType, const String &textToInsert, bool selectInsertedText, TextGranularity granularity, bool killRing)
64 void TypingCommand::deleteSelection(Document* document, bool smartDelete)
76 static_cast<TypingCommand*>(lastEditCommand)->deleteSelection(smartDelete);
80 RefPtr<TypingCommand> typingCommand = TypingCommand::create(document, DeleteSelection, "", false);
81 typingCommand->setSmartDelete(smartDelete);
82 typingCommand->apply();
85 void TypingCommand::deleteKeyPressed(Document *document, bool smartDelete, TextGranularity granularity, bool killRing)
94 static_cast<TypingCommand*>(lastEditCommand)->deleteKeyPressed(granularity, killRing);
98 RefPtr<TypingCommand> typingCommand = TypingCommand::create(document, DeleteKey, "", false, granularity, killRing);
99 typingCommand->setSmartDelete(smartDelete);
100 typingCommand->apply();
103 void TypingCommand::forwardDeleteKeyPressed(Document *document, bool smartDelete, TextGranularity granularity, bool killRing)
113 static_cast<TypingCommand*>(lastEditCommand)->forwardDeleteKeyPressed(granularity, killRing);
117 RefPtr<TypingCommand> typingCommand = TypingCommand::create(document, ForwardDeleteKey, "", false, granularity, killRing);
118 typingCommand->setSmartDelete(smartDelete);
119 typingCommand->apply();
122 void TypingCommand::insertText(Document* document, const String& text, bool selectInsertedText, bool insertedTextIsComposition)
132 void TypingCommand::insertText(Document* document, const String& text, const VisibleSelection& selectionForInsertion, bool selectInsertedText, bool insertedTextIsComposition)
161 TypingCommand* lastTypingCommand = static_cast<TypingCommand*>(lastEditCommand.get());
174 RefPtr<TypingCommand> cmd = TypingCommand::create(document, InsertText, newText, selectInsertedText);
186 void TypingCommand::insertLineBreak(Document *document)
195 static_cast<TypingCommand*>(lastEditCommand)->insertLineBreak();
199 applyCommand(TypingCommand::create(document, InsertLineBreak));
202 void TypingCommand::insertParagraphSeparatorInQuotedContent(Document *document)
211 static_cast<TypingCommand*>(lastEditCommand)->insertParagraphSeparatorInQuotedContent();
215 applyCommand(TypingCommand::create(document, InsertParagraphSeparatorInQuotedContent));
218 void TypingCommand::insertParagraphSeparator(Document *document)
227 static_cast<TypingCommand*>(lastEditCommand)->insertParagraphSeparator();
231 applyCommand(TypingCommand::create(document, InsertParagraphSeparator));
234 bool TypingCommand::isOpenForMoreTypingCommand(const EditCommand* cmd)
236 return cmd && cmd->isTypingCommand() && static_cast<const TypingCommand*>(cmd)->isOpenForMoreTyping();
239 void TypingCommand::closeTyping(EditCommand* cmd)
242 static_cast<TypingCommand*>(cmd)->closeTyping();
245 void TypingCommand::doApply()
281 EditAction TypingCommand::editingAction() const
286 void TypingCommand::markMisspellingsAfterTyping()
313 void TypingCommand::typingAddedToOpenCommand(ETypingCommand commandTypeForAddedTyping)
328 void TypingCommand::insertText(const String &text, bool selectInsertedText)
353 void TypingCommand::insertTextRunWithoutNewlines(const String &text, bool selectInsertedText)
369 void TypingCommand::insertLineBreak()
375 void TypingCommand::insertParagraphSeparator()
381 void TypingCommand::insertParagraphSeparatorInQuotedContent()
394 bool TypingCommand::makeEditableRootEmpty()
415 void TypingCommand::deleteKeyPressed(TextGranularity granularity, bool killRing)
511 void TypingCommand::forwardDeleteKeyPressed(TextGranularity granularity, bool killRing)
591 void TypingCommand::deleteSelection(bool smartDelete)
597 void TypingCommand::updatePreservesTypingStyle(ETypingCommand commandType)
616 bool TypingCommand::isTypingCommand() const