1 \section{\class{wxClipboard
}}\label{wxclipboard
}
3 There is one wxClipboard object referenced by the pointer
4 wxTheClipboard, initialized by calling
\helpref{wxInitClipboard
}{wxinitclipboard
}.
5 Under X, clipboard manipulation must be done by using this class, and
6 such code will work under MS Windows also. Under MS Windows, you have the
7 alternative of using the normal clipboard functions.
9 The documentation for this class will be expanded in due course. At present,
10 wxClipboard is only used in the wxMediaWindow add-on library.
12 \wxheading{Derived from
}
14 \helpref{wxObject
}{wxobject
}
18 \helpref{wxClipboardClient
}{wxclipboardclient
},
\helpref{wxInitClipboard
}{wxinitclipboard
}.
20 \latexignore{\rtfignore{\wxheading{Members
}}}
22 \membersection{wxClipboard::GetClipboardClient
}
24 \func{wxClipboardClient *
}{GetClipboardClient
}{\void}
26 Get the clipboard client directly. Will be NULL if clipboard data
27 is a string, or if some other application owns the clipboard.
28 This can be useful for shortcutting data translation, if the
29 clipboard user can check for a specific client.
31 \membersection{wxClipboard::GetClipboardData
}
33 \func{char*
}{GetClipboardData
}{\param{const wxString\&
}{format
},
\param{long *
}{length
},
\param{long
}{ time
}}
35 Get data from the clipboard.
37 \membersection{wxClipboard::GetClipboardString
}
39 \func{wxString
}{GetClipboardString
}{\param{long
}{ time
}}
41 Get the data from the clipboard in the format ``TEXT".
43 \membersection{wxClipboard::SetClipboardClient
}
45 \func{void
}{SetClipboardClient
}{\param{wxClipboardClient *
}{client
},
\param{long
}{ time
}}
47 Set the clipboard data owner.
49 \membersection{wxClipboard::SetClipboardString
}
51 \func{void
}{SetClipboardString
}{\param{const wxString\&
}{data
},
\param{long
}{ time
}}
53 Set the clipboard string; does not require a client.
55 \section{\class{wxClipboardClient
}}\label{wxclipboardclient
}
57 Implemented under X and MS Windows, a clipboard client holds data
58 belonging to the clipboard. For plain text, a client is not necessary.
60 wxClipboardClient is an abstract class for which the virtual functions
61 BeingReplaced and GetData must be overridden.
63 \wxheading{Derived from
}
65 \helpref{wxObject
}{wxobject
}
69 \helpref{wxClipboard
}{wxclipboard
},
\helpref{wxInitClipboard
}{wxinitclipboard
}.
71 \latexignore{\rtfignore{\wxheading{Members
}}}
73 \membersection{wxClipboardClient::formats
}
75 \member{wxStringList
}{formats
}
77 This list should be filled in with strings indicating the formats
78 this client can provide. Almost all clients will provide``TEXT".
79 Format names should be
4 characters long, so things will work
82 \membersection{wxClipboardClient::BeingReplaced
}
84 \func{void
}{BeingReplaced
}{\void}
86 This method is called when the client is losing the selection.
88 \membersection{wxClipboardClient::GetData
}
90 \func{char*
}{GetData
}{\param{const wxString\&
}{format
},
\param{long *
}{size
}}
92 This method is called when someone wants the data this client is
93 supplying to the clipboard.
95 {\it format
} is a string indicating the
96 format of the data - one of the strings from the ``formats"
99 {\it size
} should be filled with the size of the resulting
100 data. In the case of text,
{\it size
} does not count the