Commit Graph

100 Commits

Author SHA1 Message Date
Huw Davies df08d463c9 ole32: The consumer data object is not a singleton, but reflects the state of the clipboard when it was acquired. 2009-04-16 11:36:00 -05:00
Huw Davies 4311691a88 ole32: If there's a current data object on the ole clipboard GetData should use it. 2009-04-16 11:35:15 -05:00
Huw Davies 6d4a394099 ole32: Store the marshalled IDataObject in a window property of the clipboard window.
This is somewhat different from how Windows behaves. Windows stores
two properties; an IID and an endpoint number.
2009-04-16 11:35:08 -05:00
Huw Davies 1ec12f68b1 ole32: Rename a variable. 2009-04-16 11:34:55 -05:00
Huw Davies bd9eb3b527 ole32: Don't pass a window if we're reading from the clipboard. 2009-04-16 11:34:49 -05:00
Huw Davies 6526b570e1 ole32: Add a function to return (and possibly create) the clipboard's window. 2009-04-16 11:34:39 -05:00
Huw Davies 6ce9922f3d ole32: Add a helper function to set and release the source IDataObject. 2009-04-16 11:34:06 -05:00
Huw Davies bf8d85cee0 ole32: Add a helper function to return the ole clipboard structure. 2009-04-16 11:33:57 -05:00
Huw Davies 72f53ed4d7 ole32: Unicodify window creation. Don't register the class as global. 2009-04-16 11:33:50 -05:00
Huw Davies 5defc71dfe ole32: Use helper function to duplicate global memory. 2009-04-16 11:33:40 -05:00
Huw Davies 469d6ea2df ole32: Add support for rendering storage data to the clipboard. 2009-04-16 11:33:29 -05:00
Huw Davies f4745c0a06 ole32: Make all formats available to the clipboard. 2009-04-16 11:33:19 -05:00
Huw Davies 1e8727aacf ole32: Add support for rendering stream data to the clipboard. 2009-04-16 11:33:03 -05:00
Huw Davies 5e557d83ca ole32: Rewrite the clipboard window's wndproc to use the cached enum data. 2009-04-16 11:30:38 -05:00
Huw Davies b958dfdc47 ole32: Change helper function to return the matching entry. 2009-04-16 11:30:09 -05:00
Huw Davies e58a9db129 ole32: Store a cached version of the local data object's enumeration. 2009-04-16 11:30:00 -05:00
Huw Davies 628332aee1 ole32: Change the global memory duplicator to return HRESULT. 2009-04-01 15:23:20 +02:00
Huw Davies 3cb4ab588d ole32: Rename a few variables and remove a couple of meaningless comments. 2009-04-01 15:23:14 +02:00
Huw Davies f2ba37e5b9 ole32: Move the embed source hack to a separate function. 2009-04-01 15:23:09 +02:00
Huw Davies 2c6be9521b ole32: Simplify some of the error handling. 2009-03-31 15:00:23 +02:00
Huw Davies 969e5d7ee1 ole32: Reimplement the formatetc enumerator using 'Ole Private Data'. 2009-03-30 16:42:22 +02:00
Huw Davies fc78f552a0 ole32: AddRef does not return an HRESULT. Have the constructor create the object with one reference. 2009-03-30 16:42:12 +02:00
Huw Davies 25f1b058a8 ole32: Change the enum formatetc constructor to return HRESULT. 2009-03-30 16:42:08 +02:00
Huw Davies 1cc023c53a ole32: Don't hold a reference on the parent IDataObject. 2009-03-30 16:42:03 +02:00
Huw Davies 1213964330 ole32: Rename a variable. 2009-03-30 16:41:56 +02:00
Huw Davies d93688a721 ole32: Use a helper function to access the enum format implementation. 2009-03-30 16:41:51 +02:00
Huw Davies 690202440e ole32: Set the 'Ole Private Data' clipboard format. 2009-03-26 16:11:24 +01:00
Huw Davies b7a2e83ddb ole32: OleFlushClipboard shouldn't call EmptyClipboard. 2009-03-26 16:11:21 +01:00
Huw Davies 3383db6107 ole32: Move the code to set the clipboard formats to a separate function. 2009-03-25 15:43:27 +01:00
Huw Davies ef4b6b8749 ole32: Store the ole clipboard window's HWND in the DataObject clipboard format. 2009-03-23 15:52:18 +01:00
Huw Davies e77ab142e4 ole32: Register DataObject clipboard format. 2009-03-23 15:52:18 +01:00
Huw Davies c0fbbe7d91 ole32: Use IsEqualIID rather than memcmp. 2009-03-23 15:52:18 +01:00
Huw Davies 319d0ddca6 ole32: Simplify QueryInterface. 2009-03-23 15:52:18 +01:00
Huw Davies d72181381e ole32: pFmt isn't exposed to the client, so simplify its allocation. 2009-03-23 15:52:18 +01:00
Huw Davies 8beb83866f ole32: Rearrange functions to eliminate forward declarations. 2009-03-23 15:52:18 +01:00
Huw Davies 96bd8c5a7d ole32: Add a helper function to retrieve the implementation ptr. 2009-03-23 15:52:18 +01:00
Huw Davies e7ffa2aeb5 ole32: Don't allocate the ole clipboard object in global memory - we're not going to directly expose it to other processes. 2009-03-23 15:52:18 +01:00
Huw Davies e6eeb3aa17 ole32: Remove unused static variable. 2009-03-23 15:52:18 +01:00
Michael Stefaniuc 0449701c31 ole32: Remove superfluous pointer casts. 2009-02-11 12:29:56 +01:00
Francois Gouget ad587aa036 ole32: Don't use the default debug channel before it has been defined. 2009-01-08 14:52:57 +01:00
Andrew Talbot eceb0cce82 ole32: Superfluous semicolons fix. 2008-12-24 19:59:22 +01:00
Nikolay Sivov 55658d061c ole32: Fix return value for IDataObject_GetData. 2008-12-22 10:28:37 +01:00
Nikolay Sivov 0eeb042067 ole32: Make OleSetClipboard affected by previous OleInitialize() calls. 2008-12-19 17:36:36 +01:00
Michael Stefaniuc 095568dfe9 ole32: Remove some superfluous casts of void pointers and zero. 2008-11-06 11:09:54 +01:00
Michael Stefaniuc 3ed8ffcc99 ole32: Use the right FAILED/SUCCEEDED macro instead of negating the opposite. 2008-10-08 13:41:58 +02:00
Vincent Povirk a0249babcd ole32: Always return false when asked if NULL is the current clipboard. 2008-07-21 14:36:29 +02:00
Rob Shearman 2cd4117f81 ole32: Fix OLEClipbrd_IDataObject_QueryGetData to conform to the tests. 2008-04-16 14:07:19 +02:00
Andrew Talbot 4971f2f687 ole32: Assign to structs instead of using memcpy. 2008-03-11 12:11:51 +01:00
Andrew Talbot 554644fd0d ole32: Remove unneeded casts. 2008-01-15 11:38:08 +01:00
Eric Pouech a79fa50280 ole32: Fixed some wrong conditions in OleFlushClipboard. 2006-10-24 11:32:48 +02:00