Lines Matching refs:clipboard

19 /* Note: to automatically run regression tests on the shared clipboard,
21 * clipboard code, adding the line
53 #include <VBox/GuestHost/clipboard-helper.h>
58 /** The different clipboard formats which we support. */
69 * VBox clipboard formats (currently only Unicode) */
77 /** The corresponding VBox clipboard format */
149 * Enumerates supported X11 clipboard formats corresponding to a given VBox
165 /** Global context information used by the X11 clipboard backend */
177 /** The X Toolkit widget which we use as our clipboard client. It is never made visible. */
180 /** Should we try to grab the clipboard on startup? */
195 /** When we wish the clipboard to exit, we have to wake up the event
205 /** The Xt Intrinsics can only handle one outstanding clipboard operation
208 /** We can't handle a clipboard update event while we are busy, so remember
220 * need this because the widget clipboard callbacks do not pass user data. */
228 /** Register a new X11 clipboard context. */
250 /** Unregister an X11 clipboard context. */
270 /** Find an X11 clipboard context. */
323 * Report the formats currently supported by the X11 clipboard to VBox.
333 * Forget which formats were previously in the X11 clipboard. Called when we
334 * grab the clipboard. */
341 /** Tell VBox that X11 currently has nothing in its clipboard. */
349 * Go through an array of X11 clipboard targets to see if they contain a text
352 * @param pCtx the clipboard backend context structure
402 * Go through an array of X11 clipboard targets to see if they contain a bitmap
405 * @param pCtx the clipboard backend context structure
435 * Go through an array of X11 clipboard targets to see if we can support any
438 * @param pCtx the clipboard backend context structure
493 * Notify the VBox clipboard about available data formats, based on the
494 * "targets" information obtained from the X11 clipboard.
557 * Callback to notify us when the contents of the X11 clipboard change.
561 LogRel2 (("%s: requesting the targets that the X11 clipboard offers\n",
620 * The main loop of our clipboard reader.
625 LogRel(("Shared clipboard: Starting shared clipboard thread\n"));
636 LogRel(("Shared clipboard: Shared clipboard thread terminated successfully\n"));
641 /** X11 specific uninitialisation for the shared clipboard.
666 /** Worker function for stopping the clipboard which runs on the event
722 /** X11 specific initialisation for the shared clipboard.
727 /* Create a window and make it a clipboard viewer. */
743 LogRel(("Shared clipboard: Failed to connect to the X11 clipboard - the window system may not be running.\n"));
751 LogRel(("Shared clipboard: Failed to load the XFIXES extension.\n"));
762 LogRel(("Shared clipboard: Failed to construct the X11 window for the shared clipboard manager.\n"));
775 /* Enable clipboard update notification */
795 LogRel(("Shared clipboard: Failed to setup the termination mechanism.\n"));
802 LogRel(("Shared clipboard: Initialisation failed: %Rrc\n", rc));
807 * Construct the X11 backend of the shared clipboard.
824 LogRelFunc(("X11 DISPLAY variable not set -- disabling shared clipboard\n"));
831 LogRel(("Shared clipboard: Initializing X11 clipboard backend\n"));
838 * Destruct the shared clipboard X11 backend.
857 * @param grab whether we should try to grab the shared clipboard at once
882 LogRel(("Shared clipboard: Failed to start the shared clipboard thread.\n"));
891 * Shut down the shared clipboard X11 backend.
893 * @note Any requests from this object to get clipboard data from VBox
908 LogRelFunc(("stopping the shared clipboard X11 backend\n"));
932 * Satisfy a request from X11 for clipboard targets supported by VBox.
1074 * Satisfy a request from X11 to convert the clipboard text to Utf-8. We
1209 * Return VBox's clipboard data for an X11 client.
1240 /** Context information for the X11 clipboard */
1246 /** Invalidates the local cache of the data in the VBox clipboard. */
1257 * Take possession of the X11 clipboard (and middle-button selection).
1269 /* Xt suppresses these if we already own the clipboard, so send them
1286 * clipboard context data. Must be freed by the worker.
1303 * VBox is taking possession of the shared clipboard.
1470 * for the X11 clipboard contents. */
1479 /** The clipboard context this request is associated with */
1488 * Convert the data obtained from the X11 clipboard to the required format,
1493 * the X11 clipboard contains a format we understand.
1513 /* The clipboard selection may have changed before we could get it. */
1517 /* In which format is the clipboard data? */
1540 /* In which format is the clipboard data? */
1576 * Convert the data obtained from the X11 clipboard to the required format,
1581 * the X11 clipboard contains a format we understand.
1628 /* If the clipboard is busy just fend off the request. */
1640 /* Send out a request for the data to the current clipboard
1651 /* Send out a request for the data to the current clipboard
1659 /* The clipboard callback was never scheduled, so we must signal
1669 * Called when VBox wants to read the X11 clipboard.
1672 * @param pCtx Context data for the clipboard backend
1729 /* The data in the simulated VBox clipboard */
1734 /* Set empty data in the simulated VBox clipboard. */
1744 /* Set the data in the simulated VBox clipboard. */
1768 /* Return the data in the simulated VBox clipboard. */
1879 /* The formats currently on offer from X11 via the shared clipboard */
1898 /* Does our clipboard code currently own the selection? */
1930 /* Request the shared clipboard to convert its data to a given format. */
1978 /* Configure if and how the X11 TARGETS clipboard target will fail */
2336 /*** No data in X11 clipboard ***/
2337 RTTestSub(hTest, "a data request from an empty X11 clipboard");
2351 RTTestSub(hTest, "notification of switch to X11 clipboard");
2432 /*** No data in VBox clipboard ***/
2433 RTTestSub(hTest, "an empty VBox clipboard");
2437 (hTest, "VBox grabbed the clipboard with no data and we ignored it\n"));
2446 (hTest, "VBox grabbed the clipboard with unknown data and we ignored it\n"));
2452 /*** Headless clipboard tests ***/
2459 RTTestSub(hTest, "reading from X11, headless clipboard");
2465 testNoX11(pCtx, "reading from X11, headless clipboard");
2468 RTTestSub(hTest, "reading from VBox, headless clipboard");
2474 testNoSelectionOwnership(pCtx, "reading from VBox, headless clipboard");
2487 /* This is a simple test case that just starts a copy of the X11 clipboard
2488 * backend, checks the X11 clipboard and exits. If ever needed I will add an
2489 * interactive mode in which the user can read and copy to the clipboard from
2538 /* Give the clipboard time to synchronise. */