OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 void toggleContinuousSpellChecking(); | 188 void toggleContinuousSpellChecking(); |
189 bool isGrammarCheckingEnabled(); | 189 bool isGrammarCheckingEnabled(); |
190 void toggleGrammarChecking(); | 190 void toggleGrammarChecking(); |
191 void ignoreSpelling(); | 191 void ignoreSpelling(); |
192 void learnSpelling(); | 192 void learnSpelling(); |
193 int spellCheckerDocumentTag(); | 193 int spellCheckerDocumentTag(); |
194 bool isSelectionUngrammatical(); | 194 bool isSelectionUngrammatical(); |
195 bool isSelectionMisspelled(); | 195 bool isSelectionMisspelled(); |
196 Vector<String> guessesForMisspelledSelection(); | 196 Vector<String> guessesForMisspelledSelection(); |
197 Vector<String> guessesForUngrammaticalSelection(); | 197 Vector<String> guessesForUngrammaticalSelection(); |
| 198 Vector<String> guessesForMisspelledOrUngrammaticalSelection(bool& misspelled
, bool& ungrammatical); |
198 void markMisspellingsAfterTypingToPosition(const VisiblePosition&); | 199 void markMisspellingsAfterTypingToPosition(const VisiblePosition&); |
199 void markMisspellings(const VisibleSelection&); | 200 void markMisspellings(const VisibleSelection&); |
200 void markBadGrammar(const VisibleSelection&); | 201 void markBadGrammar(const VisibleSelection&); |
| 202 void markMisspellingsAndBadGrammar(const VisibleSelection& spellingSelection
, bool markGrammar, const VisibleSelection& grammarSelection); |
201 void advanceToNextMisspelling(bool startBeforeSelection = false); | 203 void advanceToNextMisspelling(bool startBeforeSelection = false); |
202 void showSpellingGuessPanel(); | 204 void showSpellingGuessPanel(); |
203 bool spellingPanelIsShowing(); | 205 bool spellingPanelIsShowing(); |
204 | 206 |
205 bool shouldBeginEditing(Range*); | 207 bool shouldBeginEditing(Range*); |
206 bool shouldEndEditing(Range*); | 208 bool shouldEndEditing(Range*); |
207 | 209 |
208 void clearUndoRedoOperations(); | 210 void clearUndoRedoOperations(); |
209 bool canUndo(); | 211 bool canUndo(); |
210 void undo(); | 212 void undo(); |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 void replaceSelectionWithText(const String&, bool selectReplacement, bool sm
artReplace); | 294 void replaceSelectionWithText(const String&, bool selectReplacement, bool sm
artReplace); |
293 void writeSelectionToPasteboard(Pasteboard*); | 295 void writeSelectionToPasteboard(Pasteboard*); |
294 void revealSelectionAfterEditingOperation(); | 296 void revealSelectionAfterEditingOperation(); |
295 | 297 |
296 void selectComposition(); | 298 void selectComposition(); |
297 void confirmComposition(const String&, bool preserveSelection); | 299 void confirmComposition(const String&, bool preserveSelection); |
298 void setIgnoreCompositionSelectionChange(bool ignore); | 300 void setIgnoreCompositionSelectionChange(bool ignore); |
299 | 301 |
300 PassRefPtr<Range> firstVisibleRange(const String&, bool caseFlag); | 302 PassRefPtr<Range> firstVisibleRange(const String&, bool caseFlag); |
301 PassRefPtr<Range> lastVisibleRange(const String&, bool caseFlag); | 303 PassRefPtr<Range> lastVisibleRange(const String&, bool caseFlag); |
| 304 |
| 305 void changeSelectionAfterCommand(const VisibleSelection& newSelection, bool
closeTyping, bool clearTypingStyle, EditCommand*); |
302 }; | 306 }; |
303 | 307 |
304 inline void Editor::setStartNewKillRingSequence(bool flag) | 308 inline void Editor::setStartNewKillRingSequence(bool flag) |
305 { | 309 { |
306 m_shouldStartNewKillRingSequence = flag; | 310 m_shouldStartNewKillRingSequence = flag; |
307 } | 311 } |
308 | 312 |
309 } // namespace WebCore | 313 } // namespace WebCore |
310 | 314 |
311 #endif // Editor_h | 315 #endif // Editor_h |
312 | 316 |
313 | 317 |
314 | 318 |
OLD | NEW |