Reviewed by Mitz. Landed by Niko.
[WebKit-https.git] / WebCore / platform / qt / EditorClientQt.cpp
1 /*
2  * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> 
3  * Copyright (C) 2006 Zack Rusin <zack@kde.org>
4  * Copyright (C) 2006 Apple Computer, Inc.
5  *
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions
10  * are met:
11  * 1. Redistributions of source code must retain the above copyright
12  *    notice, this list of conditions and the following disclaimer.
13  * 2. Redistributions in binary form must reproduce the above copyright
14  *    notice, this list of conditions and the following disclaimer in the
15  *    documentation and/or other materials provided with the distribution.
16  *
17  * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
18  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
21  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
22  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
24  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
25  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28  */
29
30 #include "config.h"
31 #include "EditorClientQt.h"
32
33 #include "EditCommand.h"
34
35 #include <stdio.h>
36
37 #define notImplemented() do { fprintf(stderr, "FIXME: UNIMPLEMENTED: %s:%d(%s)\n", __FILE__, __LINE__, __FUNCTION__); } while(0)
38
39 namespace WebCore {
40
41 void EditorClientQt::ref()
42 {
43     Shared<EditorClientQt>::ref();
44 }
45
46 void EditorClientQt::deref()
47 {
48     Shared<EditorClientQt>::deref();
49 }
50
51 bool EditorClientQt::shouldDeleteRange(Range*)
52 {
53     notImplemented();
54     return false;
55 }
56
57 bool EditorClientQt::shouldShowDeleteInterface(HTMLElement*)
58 {
59     return false;
60 }
61
62 bool EditorClientQt::isContinuousSpellCheckingEnabled()
63 {
64     notImplemented();
65     return false;
66 }
67
68 bool EditorClientQt::isGrammarCheckingEnabled()
69 {
70     notImplemented();
71     return false;
72 }
73
74 int EditorClientQt::spellCheckerDocumentTag()
75 {
76     notImplemented();
77     return 0;
78 }
79
80 bool EditorClientQt::shouldBeginEditing(WebCore::Range*)
81 {
82     notImplemented();
83     return false;
84 }
85
86 bool EditorClientQt::shouldEndEditing(WebCore::Range*)
87 {
88     notImplemented();
89     return false;
90 }
91
92 bool EditorClientQt::shouldApplyStyle(WebCore::CSSStyleDeclaration*,
93                                       WebCore::Range*)
94 {
95     notImplemented();
96     return false;
97 }
98
99 void EditorClientQt::didBeginEditing()
100 {
101     notImplemented();
102 }
103
104 void EditorClientQt::respondToChangedContents()
105 {
106     notImplemented();
107 }
108
109 void EditorClientQt::didEndEditing()
110 {
111     notImplemented();
112 }
113
114 bool EditorClientQt::selectWordBeforeMenuEvent()
115 {
116     notImplemented();
117     return false;
118 }
119
120 bool EditorClientQt::isEditable()
121 {
122     notImplemented();
123     return false;
124 }
125
126 void EditorClientQt::registerCommandForUndo(WTF::PassRefPtr<WebCore::EditCommand>)
127 {
128     notImplemented();
129 }
130
131 void EditorClientQt::registerCommandForRedo(WTF::PassRefPtr<WebCore::EditCommand>)
132 {
133     notImplemented();
134 }
135
136 void EditorClientQt::clearUndoRedoOperations()
137 {
138     notImplemented();
139 }
140
141 bool EditorClientQt::canUndo() const
142 {
143     notImplemented();
144     return false;
145 }
146
147 bool EditorClientQt::canRedo() const
148 {
149     notImplemented();
150     return false;
151 }
152
153 void EditorClientQt::undo()
154 {
155     notImplemented();
156 }
157
158 void EditorClientQt::redo()
159 {
160     notImplemented();
161 }
162
163 }
164
165 // vim: ts=4 sw=4 et