| 1 | /* |
|---|
| 2 | * This library is free software; you can redistribute it and/or |
|---|
| 3 | * modify it under the terms of the GNU Lesser General Public |
|---|
| 4 | * License as published by the Free Software Foundation; either |
|---|
| 5 | * version 2 of the License, or (at your option) any later version. |
|---|
| 6 | * |
|---|
| 7 | * This library is distributed in the hope that it will be useful, |
|---|
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 10 | * Lesser General Public License for more details. |
|---|
| 11 | * |
|---|
| 12 | * You should have received a copy of the GNU Lesser General Public |
|---|
| 13 | * License along with this library; if not, write to the Free Software |
|---|
| 14 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|---|
| 15 | */ |
|---|
| 16 | |
|---|
| 17 | #include "config.h" |
|---|
| 18 | #include "ClipboardGtk.h" |
|---|
| 19 | |
|---|
| 20 | #include "NotImplemented.h" |
|---|
| 21 | #include "StringHash.h" |
|---|
| 22 | |
|---|
| 23 | #include "Editor.h" |
|---|
| 24 | |
|---|
| 25 | namespace WebCore { |
|---|
| 26 | |
|---|
| 27 | PassRefPtr<Clipboard> Editor::newGeneralClipboard(ClipboardAccessPolicy policy) |
|---|
| 28 | { |
|---|
| 29 | return ClipboardGtk::create(policy, false); |
|---|
| 30 | } |
|---|
| 31 | |
|---|
| 32 | ClipboardGtk::ClipboardGtk(ClipboardAccessPolicy policy, bool forDragging) |
|---|
| 33 | : Clipboard(policy, forDragging) |
|---|
| 34 | { |
|---|
| 35 | notImplemented(); |
|---|
| 36 | } |
|---|
| 37 | |
|---|
| 38 | ClipboardGtk::~ClipboardGtk() |
|---|
| 39 | { |
|---|
| 40 | notImplemented(); |
|---|
| 41 | } |
|---|
| 42 | |
|---|
| 43 | void ClipboardGtk::clearData(const String&) |
|---|
| 44 | { |
|---|
| 45 | notImplemented(); |
|---|
| 46 | } |
|---|
| 47 | |
|---|
| 48 | void ClipboardGtk::clearAllData() |
|---|
| 49 | { |
|---|
| 50 | notImplemented(); |
|---|
| 51 | } |
|---|
| 52 | |
|---|
| 53 | String ClipboardGtk::getData(const String&, bool &success) const |
|---|
| 54 | { |
|---|
| 55 | notImplemented(); |
|---|
| 56 | success = false; |
|---|
| 57 | return String(); |
|---|
| 58 | } |
|---|
| 59 | |
|---|
| 60 | bool ClipboardGtk::setData(const String&, const String&) |
|---|
| 61 | { |
|---|
| 62 | notImplemented(); |
|---|
| 63 | return false; |
|---|
| 64 | } |
|---|
| 65 | |
|---|
| 66 | HashSet<String> ClipboardGtk::types() const |
|---|
| 67 | { |
|---|
| 68 | notImplemented(); |
|---|
| 69 | return HashSet<String>(); |
|---|
| 70 | } |
|---|
| 71 | |
|---|
| 72 | IntPoint ClipboardGtk::dragLocation() const |
|---|
| 73 | { |
|---|
| 74 | notImplemented(); |
|---|
| 75 | return IntPoint(0, 0); |
|---|
| 76 | } |
|---|
| 77 | |
|---|
| 78 | CachedImage* ClipboardGtk::dragImage() const |
|---|
| 79 | { |
|---|
| 80 | notImplemented(); |
|---|
| 81 | return 0; |
|---|
| 82 | } |
|---|
| 83 | |
|---|
| 84 | void ClipboardGtk::setDragImage(CachedImage*, const IntPoint&) |
|---|
| 85 | { |
|---|
| 86 | notImplemented(); |
|---|
| 87 | } |
|---|
| 88 | |
|---|
| 89 | Node* ClipboardGtk::dragImageElement() |
|---|
| 90 | { |
|---|
| 91 | notImplemented(); |
|---|
| 92 | return 0; |
|---|
| 93 | } |
|---|
| 94 | |
|---|
| 95 | void ClipboardGtk::setDragImageElement(Node*, const IntPoint&) |
|---|
| 96 | { |
|---|
| 97 | notImplemented(); |
|---|
| 98 | } |
|---|
| 99 | |
|---|
| 100 | DragImageRef ClipboardGtk::createDragImage(IntPoint&) const |
|---|
| 101 | { |
|---|
| 102 | notImplemented(); |
|---|
| 103 | return 0; |
|---|
| 104 | } |
|---|
| 105 | |
|---|
| 106 | void ClipboardGtk::declareAndWriteDragImage(Element*, const KURL&, const String&, Frame*) |
|---|
| 107 | { |
|---|
| 108 | notImplemented(); |
|---|
| 109 | } |
|---|
| 110 | |
|---|
| 111 | void ClipboardGtk::writeURL(const KURL&, const String&, Frame*) |
|---|
| 112 | { |
|---|
| 113 | notImplemented(); |
|---|
| 114 | } |
|---|
| 115 | |
|---|
| 116 | void ClipboardGtk::writeRange(Range*, Frame*) |
|---|
| 117 | { |
|---|
| 118 | notImplemented(); |
|---|
| 119 | } |
|---|
| 120 | |
|---|
| 121 | bool ClipboardGtk::hasData() |
|---|
| 122 | { |
|---|
| 123 | notImplemented(); |
|---|
| 124 | return false; |
|---|
| 125 | } |
|---|
| 126 | |
|---|
| 127 | } |
|---|