Home | History | Annotate | Download | only in mac

Lines Matching refs:pasteboard

27 #import "Pasteboard.h"
58 NSString *WebArchivePboardType = @"Apple Web Archive pasteboard type";
59 NSString *WebSmartPastePboardType = @"NeXT smart paste pasteboard type";
72 } else { // Don't write RTFD to the pasteboard when the copied attributed string has no attachments.
107 Pasteboard* Pasteboard::generalPasteboard()
109 static Pasteboard* pasteboard = new Pasteboard([NSPasteboard generalPasteboard]);
110 return pasteboard;
113 Pasteboard::Pasteboard(NSPasteboard* pboard)
118 void Pasteboard::clear()
136 void Pasteboard::writeSelection(NSPasteboard* pasteboard, Range* selectedRange, bool canSmartCopyOrDelete, Frame* frame)
139 Pasteboard::generalPasteboard(); // Initializes pasteboard types.
144 // 4930197: Mail overrides [WebHTMLView pasteboardTypesForSelection] in order to add another type to the pasteboard
146 // we can't call WebCore::Pasteboard's method for setting types.
150 // Don't write RTFD to the pasteboard when the copied attributed string has no attachments.
157 [pasteboard declareTypes:types owner:nil];
160 [pasteboard declareTypes:types owner:nil];
164 // Put HTML on the pasteboard.
168 [pasteboard setData:(NSData *)data.get() forType:WebArchivePboardType];
171 // Put the attributed string on the pasteboard (RTF/RTFD format).
174 [pasteboard setData:RTFDData forType:NSRTFDPboardType];
180 [pasteboard setData:RTFData forType:NSRTFPboardType];
183 // Put plain string on the pasteboard.
192 [pasteboard setString:s forType:NSStringPboardType];
197 [pasteboard setData:nil forType:WebSmartPastePboardType];
201 void Pasteboard::writePlainText(NSPasteboard* pasteboard, const String& text)
204 [pasteboard declareTypes:types owner:nil];
206 [pasteboard setString:text forType:NSStringPboardType];
209 void Pasteboard::writeSelection(Range* selectedRange, bool canSmartCopyOrDelete, Frame* frame)
211 Pasteboard::writeSelection(m_pasteboard.get(), selectedRange, canSmartCopyOrDelete, frame);
214 void Pasteboard::writePlainText(const String& text)
217 Pasteboard::generalPasteboard(); // Initializes pasteboard types.
220 NSPasteboard *pasteboard = m_pasteboard.get();
221 [pasteboard declareTypes:types owner:nil];
223 [pasteboard setString:text forType:NSStringPboardType];
226 void Pasteboard::writeURL(NSPasteboard* pasteboard, NSArray* types, const KURL& url, const String& titleStr, Frame* frame)
229 Pasteboard::generalPasteboard(); // Initializes pasteboard types.
233 [pasteboard declareTypes:types owner:nil];
249 [pasteboard setPropertyList:[NSArray arrayWithObjects:[NSArray arrayWithObject:userVisibleString],
254 [cocoaURL writeToPasteboard:pasteboard];
256 [pasteboard setString:userVisibleString forType:WebURLPboardType];
258 [pasteboard setString:title forType:WebURLNamePboardType];
260 [pasteboard setString:userVisibleString forType:NSStringPboardType];
263 void Pasteboard::writeURL(const KURL& url, const String& titleStr, Frame* frame)
265 Pasteboard::writeURL(m_pasteboard.get(), nil, url, titleStr, frame);
281 void Pasteboard::writeFileWrapperAsRTFDAttachment(NSFileWrapper* wrapper)
292 void Pasteboard::writeImage(Node* node, const KURL& url, const String& title)
323 bool Pasteboard::canSmartReplace()
328 String Pasteboard::plainText(Frame* frame)
368 PassRefPtr<DocumentFragment> Pasteboard::documentFragment(Frame* frame, PassRefPtr<Range> context, bool allowPlainText, bool& chosePlainText)
375 // This is a hack to make Microsoft's HTML pasteboard data work. See 3778785.