Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
dee4e5d5
Commit
dee4e5d5
authored
Jun 16, 2009
by
Aric Stewart
Committed by
Alexandre Julliard
Jun 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf: Implement ITfContext::GetDocumentMgr.
parent
413934ca
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
5 deletions
+15
-5
context.c
dlls/msctf/context.c
+13
-3
documentmgr.c
dlls/msctf/documentmgr.c
+1
-1
msctf_internal.h
dlls/msctf/msctf_internal.h
+1
-1
No files found.
dlls/msctf/context.c
View file @
dee4e5d5
...
...
@@ -74,6 +74,7 @@ typedef struct tagContext {
TfClientId
tidOwner
;
TfEditCookie
defaultCookie
;
TS_STATUS
documentStatus
;
ITfDocumentMgr
*
manager
;
ITextStoreACP
*
pITextStoreACP
;
ITfContextOwnerCompositionSink
*
pITfContextOwnerCompositionSink
;
...
...
@@ -506,8 +507,15 @@ static HRESULT WINAPI Context_GetDocumentMgr (ITfContext *iface,
ITfDocumentMgr
**
ppDm
)
{
Context
*
This
=
(
Context
*
)
iface
;
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
TRACE
(
"(%p) %p
\n
"
,
This
,
ppDm
);
if
(
!
ppDm
)
return
E_INVALIDARG
;
*
ppDm
=
This
->
manager
;
if
(
!
This
->
manager
)
return
S_FALSE
;
return
S_OK
;
}
static
HRESULT
WINAPI
Context_CreateRangeBackup
(
ITfContext
*
iface
,
...
...
@@ -758,7 +766,7 @@ HRESULT Context_Constructor(TfClientId tidOwner, IUnknown *punk, ITfContext **pp
return
S_OK
;
}
HRESULT
Context_Initialize
(
ITfContext
*
iface
)
HRESULT
Context_Initialize
(
ITfContext
*
iface
,
ITfDocumentMgr
*
manager
)
{
Context
*
This
=
(
Context
*
)
iface
;
...
...
@@ -769,6 +777,7 @@ HRESULT Context_Initialize(ITfContext *iface)
(
IUnknown
*
)
This
->
pITextStoreACPSink
,
TS_AS_ALL_SINKS
);
}
This
->
connected
=
TRUE
;
This
->
manager
=
manager
;
return
S_OK
;
}
...
...
@@ -783,6 +792,7 @@ HRESULT Context_Uninitialize(ITfContext *iface)
This
->
pITextStoreACPSink
=
NULL
;
}
This
->
connected
=
FALSE
;
This
->
manager
=
NULL
;
return
S_OK
;
}
...
...
dlls/msctf/documentmgr.c
View file @
dee4e5d5
...
...
@@ -146,7 +146,7 @@ static HRESULT WINAPI DocumentMgr_Push(ITfDocumentMgr *iface, ITfContext *pic)
This
->
contextStack
[
0
]
=
check
;
ITfThreadMgrEventSink_OnPushContext
(
This
->
ThreadMgrSink
,
check
);
Context_Initialize
(
check
);
Context_Initialize
(
check
,
iface
);
return
S_OK
;
}
...
...
dlls/msctf/msctf_internal.h
View file @
dee4e5d5
...
...
@@ -40,7 +40,7 @@ extern HRESULT Range_Constructor(ITfContext *context, ITextStoreACP *textstore,
extern
HRESULT
CompartmentMgr_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
IUnknown
**
ppOut
);
extern
HRESULT
CompartmentMgr_Destructor
(
ITfCompartmentMgr
*
This
);
extern
HRESULT
Context_Initialize
(
ITfContext
*
cxt
);
extern
HRESULT
Context_Initialize
(
ITfContext
*
cxt
,
ITfDocumentMgr
*
manager
);
extern
HRESULT
Context_Uninitialize
(
ITfContext
*
cxt
);
extern
HRESULT
TF_SELECTION_to_TS_SELECTION_ACP
(
const
TF_SELECTION
*
tf
,
TS_SELECTION_ACP
*
tsAcp
);
...
...
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