diff options
Diffstat (limited to 'WebCore/editing/Editor.h')
-rw-r--r-- | WebCore/editing/Editor.h | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/WebCore/editing/Editor.h b/WebCore/editing/Editor.h index 83aef7e..78e89b4 100644 --- a/WebCore/editing/Editor.h +++ b/WebCore/editing/Editor.h @@ -119,6 +119,7 @@ public: void respondToChangedContents(const VisibleSelection& endingSelection); TriState selectionHasStyle(CSSStyleDeclaration*) const; + String selectionStartCSSPropertyValue(int propertyID); const SimpleFontData* fontForSelection(bool&) const; WritingDirection textDirectionForSelection(bool&) const; @@ -223,7 +224,15 @@ public: void toggleAutomaticTextReplacement(); bool isAutomaticSpellingCorrectionEnabled(); void toggleAutomaticSpellingCorrection(); - void markAllMisspellingsAndBadGrammarInRanges(bool markSpelling, Range* spellingRange, bool markGrammar, Range* grammarRange, bool performTextCheckingReplacements); + enum TextCheckingOptionFlags { + MarkSpelling = 1 << 0, + MarkGrammar = 1 << 1, + PerformReplacement = 1 << 2, + ShowCorrectionPanel = 1 << 3, + }; + typedef unsigned TextCheckingOptions; + + void markAllMisspellingsAndBadGrammarInRanges(TextCheckingOptions, Range* spellingRange, Range* grammarRange); void changeBackToReplacedString(const String& replacedString); #endif void advanceToNextMisspelling(bool startBeforeSelection = false); @@ -293,9 +302,13 @@ public: bool insideVisibleArea(const IntPoint&) const; bool insideVisibleArea(Range*) const; PassRefPtr<Range> nextVisibleRange(Range*, const String&, bool forward, bool caseFlag, bool wrapFlag); - + void addToKillRing(Range*, bool prepend); + void handleCancelOperation(); + void startCorrectionPanelTimer(); + void handleRejectedCorrection(); + void pasteAsFragment(PassRefPtr<DocumentFragment>, bool smartReplace, bool matchStyle); void pasteAsPlainText(const String&, bool smartReplace); @@ -317,6 +330,9 @@ private: bool m_shouldStartNewKillRingSequence; bool m_shouldStyleWithCSS; OwnPtr<KillRing> m_killRing; + RefPtr<Range> m_rangeToBeReplacedByCorrection; + String m_stringToBeReplacedByCorrection; + Timer<Editor> m_correctionPanelTimer; bool canDeleteRange(Range*) const; bool canSmartReplaceWithPasteboard(Pasteboard*); @@ -334,8 +350,9 @@ private: PassRefPtr<Range> firstVisibleRange(const String&, bool caseFlag); PassRefPtr<Range> lastVisibleRange(const String&, bool caseFlag); - + void changeSelectionAfterCommand(const VisibleSelection& newSelection, bool closeTyping, bool clearTypingStyle); + void correctionPanelTimerFired(Timer<Editor>*); Node* findEventTargetFromSelection() const; }; |