#include <bcclipboard.h>
Inherits Thread.

Public Member Functions | |
| BC_Clipboard (char *display_name) | |
| ~BC_Clipboard () | |
| int | start_clipboard () |
| void | run () |
| int | stop_clipboard () |
| long | clipboard_len (int clipboard_num) |
| int | to_clipboard (char *data, long len, int clipboard_num) |
| int | from_clipboard (char *data, long maxlen, int clipboard_num) |
Private Member Functions | |
| void | handle_selectionrequest (XSelectionRequestEvent *request) |
| int | handle_request_string (XSelectionRequestEvent *request) |
| int | handle_request_targets (XSelectionRequestEvent *request) |
Private Attributes | |
| Display * | in_display |
| Display * | out_display |
| Atom | completion_atom |
| Atom | primary |
| Atom | secondary |
| Atom | targets_atom |
| Window | in_win |
| Window | out_win |
| char * | data [2] |
| long | length [2] |
Definition at line 16 of file bcclipboard.h.
| BC_Clipboard::BC_Clipboard | ( | char * | display_name | ) |
Definition at line 5 of file bcclipboard.C.
References completion_atom, data, in_display, in_win, BC_WindowBase::init_display(), out_display, out_win, primary, secondary, Thread::set_synchronous(), and targets_atom.

| BC_Clipboard::~BC_Clipboard | ( | ) |
Definition at line 37 of file bcclipboard.C.
References data, in_display, in_win, out_display, and out_win.
| int BC_Clipboard::start_clipboard | ( | ) |
Definition at line 48 of file bcclipboard.C.
References Thread::start().
Referenced by BC_WindowBase::create_window().

| void BC_Clipboard::run | ( | ) | [virtual] |
Implements Thread.
Definition at line 68 of file bcclipboard.C.
References completion_atom, data, handle_selectionrequest(), and out_display.

| int BC_Clipboard::stop_clipboard | ( | ) |
Definition at line 54 of file bcclipboard.C.
References completion_atom, Thread::join(), out_display, and out_win.
Referenced by BC_WindowBase::~BC_WindowBase().

| long BC_Clipboard::clipboard_len | ( | int | clipboard_num | ) |
Definition at line 296 of file bcclipboard.C.
References BC_Capture::display, in_display, in_win, primary, PRIMARY_SELECTION, and secondary.
Referenced by MWindow::paste(), MWindow::paste_automation(), MWindow::paste_default_keyframe(), and BC_TextBox::paste_selection().
| int BC_Clipboard::to_clipboard | ( | char * | data, | |
| long | len, | |||
| int | clipboard_num | |||
| ) |
Definition at line 166 of file bcclipboard.C.
References BC_Capture::display, length, memcpy, out_display, out_win, primary, PRIMARY_SELECTION, and secondary.
Referenced by VWindow::copy(), MWindow::copy(), MWindow::copy_automation(), MWindow::copy_default_keyframe(), BC_TextBox::copy_selection(), and KeyframePopupCopy::handle_event().
| int BC_Clipboard::from_clipboard | ( | char * | data, | |
| long | maxlen, | |||
| int | clipboard_num | |||
| ) |
Definition at line 201 of file bcclipboard.C.
References BC_Capture::display, in_display, in_win, primary, PRIMARY_SELECTION, and secondary.
Referenced by MWindow::paste(), MWindow::paste_automation(), MWindow::paste_default_keyframe(), and BC_TextBox::paste_selection().
| void BC_Clipboard::handle_selectionrequest | ( | XSelectionRequestEvent * | request | ) | [private] |
Definition at line 109 of file bcclipboard.C.
References handle_request_string(), handle_request_targets(), out_display, and targets_atom.
Referenced by run().

| int BC_Clipboard::handle_request_string | ( | XSelectionRequestEvent * | request | ) | [private] |
Definition at line 133 of file bcclipboard.C.
References data, out_display, and primary.
Referenced by handle_selectionrequest().
| int BC_Clipboard::handle_request_targets | ( | XSelectionRequestEvent * | request | ) | [private] |
Definition at line 148 of file bcclipboard.C.
References out_display, and targets_atom.
Referenced by handle_selectionrequest().
Display* BC_Clipboard::in_display [private] |
Definition at line 34 of file bcclipboard.h.
Referenced by BC_Clipboard(), clipboard_len(), from_clipboard(), and ~BC_Clipboard().
Display * BC_Clipboard::out_display [private] |
Definition at line 34 of file bcclipboard.h.
Referenced by BC_Clipboard(), handle_request_string(), handle_request_targets(), handle_selectionrequest(), run(), stop_clipboard(), to_clipboard(), and ~BC_Clipboard().
Atom BC_Clipboard::completion_atom [private] |
Definition at line 35 of file bcclipboard.h.
Referenced by BC_Clipboard(), run(), and stop_clipboard().
Atom BC_Clipboard::primary [private] |
Definition at line 35 of file bcclipboard.h.
Referenced by BC_Clipboard(), clipboard_len(), from_clipboard(), handle_request_string(), and to_clipboard().
Atom BC_Clipboard::secondary [private] |
Definition at line 35 of file bcclipboard.h.
Referenced by BC_Clipboard(), clipboard_len(), from_clipboard(), and to_clipboard().
Atom BC_Clipboard::targets_atom [private] |
Definition at line 36 of file bcclipboard.h.
Referenced by BC_Clipboard(), handle_request_targets(), and handle_selectionrequest().
Window BC_Clipboard::in_win [private] |
Definition at line 37 of file bcclipboard.h.
Referenced by BC_Clipboard(), clipboard_len(), from_clipboard(), and ~BC_Clipboard().
Window BC_Clipboard::out_win [private] |
Definition at line 37 of file bcclipboard.h.
Referenced by BC_Clipboard(), stop_clipboard(), to_clipboard(), and ~BC_Clipboard().
char* BC_Clipboard::data[2] [private] |
Definition at line 38 of file bcclipboard.h.
Referenced by BC_Clipboard(), handle_request_string(), run(), and ~BC_Clipboard().
long BC_Clipboard::length[2] [private] |
1.5.5