Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
585028be
Commit
585028be
authored
Oct 28, 2015
by
Matteo Bruni
Committed by
Alexandre Julliard
Oct 29, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf: Add ITfUIElementMgr stub.
Signed-off-by:
Matteo Bruni
<
mbruni@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ccff353a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
161 additions
and
1 deletion
+161
-1
threadmgr.c
dlls/msctf/threadmgr.c
+91
-1
msctf.idl
include/msctf.idl
+70
-0
No files found.
dlls/msctf/threadmgr.c
View file @
585028be
...
...
@@ -87,7 +87,7 @@ typedef struct tagACLMulti {
/* const ITfThreadMgrExVtbl *ThreadMgrExVtbl; */
/* const ITfConfigureSystemKeystrokeFeedVtbl *ConfigureSystemKeystrokeFeedVtbl; */
/* const ITfLangBarItemMgrVtbl *LangBarItemMgrVtbl; */
/* const ITfUIElementMgrVtbl *UIElementMgrVtbl; */
ITfUIElementMgr
ITfUIElementMgr_iface
;
ITfSourceSingle
ITfSourceSingle_iface
;
LONG
refCount
;
...
...
@@ -157,6 +157,11 @@ static inline ThreadMgr *impl_from_ITfThreadMgrEventSink(ITfThreadMgrEventSink *
return
CONTAINING_RECORD
(
iface
,
ThreadMgr
,
ITfThreadMgrEventSink_iface
);
}
static
inline
ThreadMgr
*
impl_from_ITfUIElementMgr
(
ITfUIElementMgr
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
ThreadMgr
,
ITfUIElementMgr_iface
);
}
static
inline
ThreadMgr
*
impl_from_ITfSourceSingle
(
ITfSourceSingle
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
ThreadMgr
,
ITfSourceSingle_iface
);
...
...
@@ -282,6 +287,10 @@ static HRESULT WINAPI ThreadMgr_QueryInterface(ITfThreadMgrEx *iface, REFIID iid
{
*
ppvOut
=
This
->
CompartmentMgr
;
}
else
if
(
IsEqualIID
(
iid
,
&
IID_ITfUIElementMgr
))
{
*
ppvOut
=
&
This
->
ITfUIElementMgr_iface
;
}
else
if
(
IsEqualIID
(
iid
,
&
IID_ITfSourceSingle
))
{
*
ppvOut
=
&
This
->
ITfSourceSingle_iface
;
...
...
@@ -1239,6 +1248,86 @@ static const ITfThreadMgrEventSinkVtbl ThreadMgrEventSinkVtbl =
};
/*****************************************************
* ITfUIElementMgr functions
*****************************************************/
static
HRESULT
WINAPI
UIElementMgr_QueryInterface
(
ITfUIElementMgr
*
iface
,
REFIID
iid
,
void
**
ppvOut
)
{
ThreadMgr
*
This
=
impl_from_ITfUIElementMgr
(
iface
);
return
ITfThreadMgrEx_QueryInterface
(
&
This
->
ITfThreadMgrEx_iface
,
iid
,
*
ppvOut
);
}
static
ULONG
WINAPI
UIElementMgr_AddRef
(
ITfUIElementMgr
*
iface
)
{
ThreadMgr
*
This
=
impl_from_ITfUIElementMgr
(
iface
);
return
ITfThreadMgrEx_AddRef
(
&
This
->
ITfThreadMgrEx_iface
);
}
static
ULONG
WINAPI
UIElementMgr_Release
(
ITfUIElementMgr
*
iface
)
{
ThreadMgr
*
This
=
impl_from_ITfUIElementMgr
(
iface
);
return
ITfThreadMgrEx_Release
(
&
This
->
ITfThreadMgrEx_iface
);
}
static
HRESULT
WINAPI
UIElementMgr_BeginUIElement
(
ITfUIElementMgr
*
iface
,
ITfUIElement
*
element
,
BOOL
*
show
,
DWORD
*
id
)
{
ThreadMgr
*
This
=
impl_from_ITfUIElementMgr
(
iface
);
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
UIElementMgr_UpdateUIElement
(
ITfUIElementMgr
*
iface
,
DWORD
id
)
{
ThreadMgr
*
This
=
impl_from_ITfUIElementMgr
(
iface
);
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
UIElementMgr_EndUIElement
(
ITfUIElementMgr
*
iface
,
DWORD
id
)
{
ThreadMgr
*
This
=
impl_from_ITfUIElementMgr
(
iface
);
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
UIElementMgr_GetUIElement
(
ITfUIElementMgr
*
iface
,
DWORD
id
,
ITfUIElement
**
element
)
{
ThreadMgr
*
This
=
impl_from_ITfUIElementMgr
(
iface
);
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
UIElementMgr_EnumUIElements
(
ITfUIElementMgr
*
iface
,
IEnumTfUIElements
**
enum_elements
)
{
ThreadMgr
*
This
=
impl_from_ITfUIElementMgr
(
iface
);
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
const
ITfUIElementMgrVtbl
ThreadMgrUIElementMgrVtbl
=
{
UIElementMgr_QueryInterface
,
UIElementMgr_AddRef
,
UIElementMgr_Release
,
UIElementMgr_BeginUIElement
,
UIElementMgr_UpdateUIElement
,
UIElementMgr_EndUIElement
,
UIElementMgr_GetUIElement
,
UIElementMgr_EnumUIElements
};
/*****************************************************
* ITfSourceSingle functions
*****************************************************/
static
HRESULT
WINAPI
ThreadMgrSourceSingle_QueryInterface
(
ITfSourceSingle
*
iface
,
REFIID
iid
,
LPVOID
*
ppvOut
)
...
...
@@ -1309,6 +1398,7 @@ HRESULT ThreadMgr_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut)
This
->
ITfMessagePump_iface
.
lpVtbl
=
&
MessagePumpVtbl
;
This
->
ITfClientId_iface
.
lpVtbl
=
&
ClientIdVtbl
;
This
->
ITfThreadMgrEventSink_iface
.
lpVtbl
=
&
ThreadMgrEventSinkVtbl
;
This
->
ITfUIElementMgr_iface
.
lpVtbl
=
&
ThreadMgrUIElementMgrVtbl
;
This
->
ITfSourceSingle_iface
.
lpVtbl
=
&
SourceSingleVtbl
;
This
->
refCount
=
1
;
TlsSetValue
(
tlsIndex
,
This
);
...
...
include/msctf.idl
View file @
585028be
...
...
@@ -1655,6 +1655,76 @@ interface IEnumTfDocumentMgrs : IUnknown
}
[
object
,
local
,
uuid
(
ea1ea137
-
19
df
-
11
d7
-
a6d2
-
00065b84435
c
),
pointer_default
(
unique
)
]
interface
ITfUIElement
:
IUnknown
{
HRESULT
GetDescription
(
[
out
]
BSTR
*
description
)
;
HRESULT
GetGUID
(
[
out
]
GUID
*
guid
)
;
HRESULT
Show
(
[
in
]
BOOL
show
)
;
HRESULT
IsShown
(
[
out
]
BOOL
*
show
)
;
}
[
object
,
local
,
uuid
(
887
aa91e
-
acba
-
4931
-
84
da
-
3
c5208cf543f
),
pointer_default
(
unique
)
]
interface
IEnumTfUIElements
:
IUnknown
{
HRESULT
Clone
(
[
out
]
IEnumTfUIElements
**
enum_elements
)
;
HRESULT
Next
(
[
in
]
ULONG
count
,
[
out
,
size_is
(
count
),
length_is
(
fetched
)
]
ITfUIElement
**
element
,
[
out
]
ULONG
fetched
)
;
HRESULT
Reset
()
;
HRESULT
Skip
(
[
in
]
ULONG
count
)
;
}
[
object
,
local
,
uuid
(
ea1ea135
-
19
df
-
11
d7
-
a6d2
-
00065b84435
c
),
pointer_default
(
unique
)
]
interface
ITfUIElementMgr
:
IUnknown
{
HRESULT
BeginUIElement
(
[
in
]
ITfUIElement
*
element
,
[
in
,
out
]
BOOL
*
show
,
[
out
]
DWORD
*
id
)
;
HRESULT
UpdateUIElement
(
[
in
]
DWORD
id
)
;
HRESULT
EndUIElement
(
[
in
]
DWORD
id
)
;
HRESULT
GetUIElement
(
[
in
]
DWORD
id
,
[
out
]
ITfUIElement
**
element
)
;
HRESULT
EnumUIElements
(
[
out
]
IEnumTfUIElements
**
enum_elements
)
;
}
[
object
,
uuid
(
73131
f9c
-
56
a9
-
49
dd
-
b0ee
-
d046633f7528
),
pointer_default
(
unique
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment