]> git.saurik.com Git - wxWidgets.git/blame - interface/clipboard.h
make it callable from any path
[wxWidgets.git] / interface / clipboard.h
CommitLineData
23324ae1
FM
1/////////////////////////////////////////////////////////////////////////////
2 // Name: clipboard.h
3 // Purpose: documentation for global functions
4 // Author: wxWidgets team
5 // RCS-ID: $Id$
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
8
9 /**
10 Gets the name of a registered clipboard format, and puts it into the buffer @e
11 formatName which is of maximum
12 length @e maxCount. @e dataFormat must not specify a predefined clipboard
13 format.
14*/
15bool wxGetClipboardFormatName(int dataFormat,
16 const wxString& formatName,
17 int maxCount);
18
19
20 /**
21 Gets data from the clipboard.
22
23 @e dataFormat may be one of:
24
25 wxCF_TEXT or wxCF_OEMTEXT: returns a pointer to new memory containing a
26 null-terminated text string.
27 wxCF_BITMAP: returns a new wxBitmap.
28
29 The clipboard must have previously been opened for this call to succeed.
30*/
31wxObject * wxGetClipboardData(int dataFormat);
32
33/**
34 Returns @true if the given data format is available on the clipboard.
35*/
36bool wxIsClipboardFormatAvailable(int dataFormat);
37
38/**
39 Opens the clipboard for passing data to it or getting data from it.
40*/
41bool wxOpenClipboard();
42
43/**
44 Empties the clipboard.
45*/
46bool wxEmptyClipboard();
47
48/**
49 Returns @true if this application has already opened the clipboard.
50*/
51bool wxClipboardOpen();
52
53/**
54 Registers the clipboard data format name and returns an identifier.
55*/
56int wxRegisterClipboardFormat(const wxString& formatName);
57
58/**
59 Closes the clipboard to allow other applications to use it.
60*/
61bool wxCloseClipboard();
62
63/**
64 Enumerates the formats found in a list of available formats that belong
65 to the clipboard. Each call to this function specifies a known
66 available format; the function returns the format that appears next in
67 the list.
68
69 @e dataFormat specifies a known format. If this parameter is zero,
70 the function returns the first format in the list.
71
72 The return value specifies the next known clipboard data format if the
73 function is successful. It is zero if the @e dataFormat parameter specifies
74 the last format in the list of available formats, or if the clipboard
75 is not open.
76
77 Before it enumerates the formats function, an application must open the
78 clipboard by using the
79 wxOpenClipboard function.
80*/
81int wxEnumClipboardFormats(int dataFormat);
82