Commit Graph

65 Commits

Author SHA1 Message Date
Alistair Leslie-Hughes 5d70611f30 msctf: Accept ITfActiveLanguageProfileNotifySink in ThreadMgr AdviseSink.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=44502
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-23 21:05:04 +01:00
Gabriel Ivăncescu 6393edb714 msctf: Clear the corresponding DocumentMgr pointers for Associated Focus Windows on destruction.
Fixes a regression introduced by d541087079.

AssociateFocus does not grab ownership of the Document Manager, but it does
return it in the "prev" output parameter with an increased refcount. So,
if the docmgr gets destroyed and AssociateFocus is called again, its "prev"
parameter will refer to freed memory. Windows sets it to NULL in such case.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48469
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-16 12:21:11 +01:00
Andrew Eikum d541087079 msctf: Accept ITfInputProcessorProfileActivationSink in ThreadMgr AdviseSink.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-31 09:42:55 +02:00
Andrew Eikum 9122bf768f msctf: Accept ITfUIElementSink in ThreadMgr AdviseSink.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-31 09:41:50 +02:00
Alexandre Julliard dc176dedf0 msctf: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-12 11:44:26 +02:00
Jacek Caban c082108e24 msctf: Added semi-stub support for ITfKeyTraceEventSink event sink.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-14 15:27:57 +01:00
Jacek Caban 04b97c2eaa msctf: Allow unadvising ITfThreadFocusSink.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-02 19:50:35 +01:00
Jacek Caban 7ebe59b922 msctf: Use correct sink for ITfThreadFocusSink.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-31 15:58:44 +01:00
Brock York d7662881a5 msctf: Remove incorrect dereference of double pointer.
Signed-off-by: Brock York <twunknown@gmail.com>
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-09 16:30:41 +01:00
Nikolay Sivov 137166ff0a msctf: Use interface pointer instead of object pointer.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-28 13:55:15 +01:00
Jacek Caban 63859e382f msctf: Added IID_ITfThreadFocusSink support to AdviseSink.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-06 11:29:22 +09:00
Michael Stefaniuc 8e2db1dfe1 msctf: Get rid of a cast from a COM object to an iface.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-04 17:30:40 +09:00
Jacek Caban 7c1c94c258 msctf: Added a helper macro for interating sink list.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-05 20:39:59 +09:00
Jacek Caban a27da35b05 msctf: Moved thread manager's sink list destructor implementation into a more generic helper.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-05 20:39:57 +09:00
Jacek Caban 0374ee290d msctf: Moved thread manager's UnadviseSink implementation into a more generic helper.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-05 20:39:55 +09:00
Jacek Caban c0efd074b2 msctf: Moved thread manager's AdviseSink implementation into a more generic helper.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-05 20:39:52 +09:00
Jacek Caban 0b912fecf6 msctf: Use generic sink type for thread manager sinks.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-05 20:39:50 +09:00
Jacek Caban dfebe8cb63 msctf: Improved ITfKeystrokeMgr::TestKeyUp and TestKeyDown stubs.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-05 01:27:53 +09:00
Francois Gouget 0ebb3f2fcc msctf: Fix spelling of a private struct's field name.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-13 23:01:12 +09:00
Matteo Bruni a977484765 msctf: Add a partial implementation of ITfThreadMgrEx_ActivateEx().
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-30 23:16:49 +09:00
Matteo Bruni 585028be18 msctf: Add ITfUIElementMgr stub.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-29 10:54:52 +09:00
Matteo Bruni ccff353a0b msctf: Add ITfThreadMgrEx stub.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-29 10:54:39 +09:00
Nikolay Sivov 58f06cf972 msctf: Pass QueryInterface arguments properly to main interface method. 2013-11-18 11:19:06 +01:00
Nikolay Sivov fc245339b0 msctf: COM interface cleanup. 2013-11-18 11:18:50 +01:00
André Hentschel 795c732c0d msctf: Remove superfluous casts. 2013-07-02 11:09:38 +02:00
Andrew Talbot 1a1577d791 msctf: Avoid signed-unsigned integer comparisons. 2013-02-14 11:01:01 +01:00
Nikolay Sivov 955e27d0e3 msctf: Call interface methods properly. 2012-08-20 10:59:20 +02:00
Francois Gouget c992ca277d Assorted spelling fixes. 2011-08-24 19:07:46 +02:00
Frédéric Delanoy 760faf01a9 tests: Assorted spelling fixes. 2011-08-04 18:27:37 +02:00
Huw Davies d775d6e31f msctf: Correctly initialize the description field.
Found by Valgrind.
2009-11-13 11:52:25 +01:00
Stefan Ginsberg 32648d4802 msctf: Define function calling convention compatibly for MSVC. 2009-09-22 17:47:31 +02:00
Francois Gouget 4e53bbda2e msctf: Make ThreadFocusHookProc() static. 2009-09-11 12:10:32 +02:00
Francois Gouget 80f862dedf msctf: Reorder a couple of functions to avoid forward declarations. 2009-09-11 12:10:25 +02:00
Aric Stewart 515c13774a msctf: Add stub ITfSourceSingle interface to ThreadMgr. 2009-09-09 12:07:17 +02:00
Aric Stewart 81118f7f06 msctf: Implement ITfThreadMgr::AssociateFocus. 2009-09-02 10:23:51 +02:00
Aric Stewart ae51d05d78 msctf: Correct handling if NULL for pdimFocus in ITfThreadMgr::SetFocus. 2009-09-01 12:43:28 +02:00
Aric Stewart 844fd92200 msctf: Implement ITfThreadMgr::EnumDocumentMgrs. 2009-07-10 15:14:04 +02:00
Aric Stewart 171a1ad0a2 msctf: Add code to track created ITfDocumentMgrs. 2009-07-10 15:13:53 +02:00
Aric Stewart 2e52edf38d msctf: Implement ITfThreadMgr::IsThreadFocus. 2009-06-17 12:05:10 +02:00
Aric Stewart 936713fe33 msctf: Setup global CompartmentMgr. 2009-06-16 13:35:40 +02:00
Aric Stewart 819518c461 msctf: Define ITfCompartmentMgr for ThreadMgr. 2009-06-12 17:33:16 +02:00
Michael Stefaniuc 2a11f2df47 msctf: Use FAILED instead of !SUCCEDED. 2009-05-20 10:54:35 +02:00
Aric Stewart daab4e2721 msctf: Map out currently missing interfaces. 2009-05-14 11:13:52 +02:00
Aric Stewart cbf4671d48 msctf: Implement ITfKeystrokeMgr::GetForeground. 2009-05-11 14:51:15 +02:00
Aric Stewart 161fa4bc30 msctf: Implement ITfKeystrokeMgr::UnadviseKeyEventSink. 2009-05-11 14:51:04 +02:00
Aric Stewart f20c4d69c9 msctf: Implement ITfKeystrokeMgr::AdviseKeyEventSink. 2009-05-11 14:51:01 +02:00
Aric Stewart 43f5b64f06 msctf: Implement ITfThreadMgr::Activate and ITfThreadMgr::Deactivate. 2009-05-08 13:25:47 +02:00
Aric Stewart 32828799ac msctf: Implement ITfKeystrokeMgr::IsPreservedKey. 2009-05-07 15:38:31 +02:00
Aric Stewart a2c7a99471 msctf: Implement ITfKeystrokeMgr::UnpreserveKey. 2009-05-07 15:38:27 +02:00
Aric Stewart 45c3ff2ff8 msctf: Implement ITfKeystrokeMgr::PreserveKey. 2009-05-07 15:38:22 +02:00