1/* 2 * Copyright (C) 2007 Holger Hans Peter Freyther 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 4 * Copyright (C) 2008 INdT - Instituto Nokia de Tecnologia 5 * Copyright (C) 2009-2010 ProFUSION embedded systems 6 * Copyright (C) 2009-2010 Samsung Electronics 7 * 8 * This library is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU Lesser General Public 10 * License as published by the Free Software Foundation; either 11 * version 2 of the License, or (at your option) any later version. 12 * 13 * This library is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 * Lesser General Public License for more details. 17 * 18 * You should have received a copy of the GNU Lesser General Public 19 * License along with this library; if not, write to the Free Software 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 21 */ 22 23#include "config.h" 24#include "Pasteboard.h" 25 26#include "DocumentFragment.h" 27#include "NotImplemented.h" 28#include <wtf/text/StringHash.h> 29 30namespace WebCore { 31 32Pasteboard* Pasteboard::generalPasteboard() 33{ 34 static Pasteboard* pasteboard = new Pasteboard(); 35 return pasteboard; 36} 37 38Pasteboard::Pasteboard() 39{ 40 notImplemented(); 41} 42 43void Pasteboard::writePlainText(const String&, SmartReplaceOption) 44{ 45 notImplemented(); 46} 47 48void Pasteboard::writeSelection(Range*, bool, Frame*, ShouldSerializeSelectedTextForClipboard) 49{ 50 notImplemented(); 51} 52 53void Pasteboard::writeURL(const KURL&, const String&, Frame*) 54{ 55 notImplemented(); 56} 57 58void Pasteboard::writeImage(Node*, const KURL&, const String&) 59{ 60 notImplemented(); 61} 62 63void Pasteboard::writeClipboard(Clipboard*) 64{ 65 notImplemented(); 66} 67 68void Pasteboard::clear() 69{ 70 notImplemented(); 71} 72 73bool Pasteboard::canSmartReplace() 74{ 75 notImplemented(); 76 return false; 77} 78 79PassRefPtr<DocumentFragment> Pasteboard::documentFragment(Frame*, PassRefPtr<Range>, bool, bool&) 80{ 81 notImplemented(); 82 return 0; 83} 84 85String Pasteboard::plainText(Frame*) 86{ 87 notImplemented(); 88 return String(); 89} 90 91PassOwnPtr<Pasteboard> Pasteboard::createForCopyAndPaste() 92{ 93 return adoptPtr(new Pasteboard); 94} 95 96PassOwnPtr<Pasteboard> Pasteboard::createPrivate() 97{ 98 return createForCopyAndPaste(); 99} 100 101#if ENABLE(DRAG_SUPPORT) 102PassOwnPtr<Pasteboard> Pasteboard::createForDragAndDrop() 103{ 104 return createForCopyAndPaste(); 105} 106 107PassOwnPtr<Pasteboard> Pasteboard::createForDragAndDrop(const DragData&) 108{ 109 return createForCopyAndPaste(); 110} 111#endif 112 113bool Pasteboard::hasData() 114{ 115 notImplemented(); 116 return false; 117} 118 119void Pasteboard::clear(const String&) 120{ 121 notImplemented(); 122} 123 124String Pasteboard::readString(const String&) 125{ 126 notImplemented(); 127 return String(); 128} 129 130bool Pasteboard::writeString(const String&, const String&) 131{ 132 notImplemented(); 133 return false; 134} 135 136ListHashSet<String> Pasteboard::types() 137{ 138 notImplemented(); 139 return ListHashSet<String>(); 140} 141 142Vector<String> Pasteboard::readFilenames() 143{ 144 notImplemented(); 145 return Vector<String>(); 146} 147 148#if ENABLE(DRAG_SUPPORT) 149void Pasteboard::setDragImage(DragImageRef, const IntPoint&) 150{ 151 notImplemented(); 152} 153#endif 154 155void Pasteboard::writePasteboard(const Pasteboard&) 156{ 157 notImplemented(); 158} 159 160} 161