• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 "Frame.h"
28 #include "Image.h"
29 #include "KURL.h"
30 #include "NotImplemented.h"
31 #include "PlatformString.h"
32 #include "RenderImage.h"
33 #include "markup.h"
34 #include <wtf/text/CString.h>
35 
36 namespace WebCore {
37 
generalPasteboard()38 Pasteboard* Pasteboard::generalPasteboard()
39 {
40     static Pasteboard* pasteboard = new Pasteboard();
41     return pasteboard;
42 }
43 
Pasteboard()44 Pasteboard::Pasteboard()
45 {
46     notImplemented();
47 }
48 
writePlainText(const String &)49 void Pasteboard::writePlainText(const String&)
50 {
51     notImplemented();
52 }
53 
writeSelection(Range * selectedRange,bool canSmartCopyOrDelete,Frame * frame)54 void Pasteboard::writeSelection(Range* selectedRange, bool canSmartCopyOrDelete, Frame* frame)
55 {
56     notImplemented();
57 }
58 
writeURL(const KURL &,const String &,Frame *)59 void Pasteboard::writeURL(const KURL&, const String&, Frame*)
60 {
61     notImplemented();
62 }
63 
writeImage(Node * node,const KURL &,const String &)64 void Pasteboard::writeImage(Node* node, const KURL&, const String&)
65 {
66     notImplemented();
67 }
68 
clear()69 void Pasteboard::clear()
70 {
71     notImplemented();
72 }
73 
canSmartReplace()74 bool Pasteboard::canSmartReplace()
75 {
76     notImplemented();
77     return false;
78 }
79 
documentFragment(Frame * frame,PassRefPtr<Range> context,bool allowPlainText,bool & chosePlainText)80 PassRefPtr<DocumentFragment> Pasteboard::documentFragment(Frame* frame, PassRefPtr<Range> context,
81                                                           bool allowPlainText, bool& chosePlainText)
82 {
83     notImplemented();
84     return 0;
85 }
86 
plainText(Frame *)87 String Pasteboard::plainText(Frame*)
88 {
89     notImplemented();
90     return String();
91 }
92 
93 }
94