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
4e1c8767
Commit
4e1c8767
authored
Feb 16, 2010
by
Justin Chevrier
Committed by
Alexandre Julliard
Feb 17, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf: Implement stubbed out TF_CreateLangBarMgr.
parent
b6da8233
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
206 additions
and
1 deletion
+206
-1
Makefile.in
dlls/msctf/Makefile.in
+1
-0
langbarmgr.c
dlls/msctf/langbarmgr.c
+193
-0
msctf.c
dlls/msctf/msctf.c
+10
-0
msctf.spec
dlls/msctf/msctf.spec
+1
-1
msctf_internal.h
dlls/msctf/msctf_internal.h
+1
-0
No files found.
dlls/msctf/Makefile.in
View file @
4e1c8767
...
...
@@ -11,6 +11,7 @@ C_SRCS = \
context.c
\
documentmgr.c
\
inputprocessor.c
\
langbarmgr.c
\
msctf.c
\
range.c
\
regsvr.c
\
...
...
dlls/msctf/langbarmgr.c
0 → 100644
View file @
4e1c8767
/*
* ITfLangBarMgr implementation
*
* Copyright 2010 Justin Chevrier
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define COBJMACROS
#include "wine/debug.h"
#include "winbase.h"
#include "winreg.h"
#include "shlwapi.h"
#include "msctf.h"
#include "msctf_internal.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
msctf
);
typedef
struct
tagLangBarMgr
{
const
ITfLangBarMgrVtbl
*
LangBarMgrVtbl
;
LONG
refCount
;
}
LangBarMgr
;
static
void
LangBarMgr_Destructor
(
LangBarMgr
*
This
)
{
TRACE
(
"destroying %p
\n
"
,
This
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
static
HRESULT
WINAPI
LangBarMgr_QueryInterface
(
ITfLangBarMgr
*
iface
,
REFIID
iid
,
LPVOID
*
ppvOut
)
{
LangBarMgr
*
This
=
(
LangBarMgr
*
)
iface
;
*
ppvOut
=
NULL
;
if
(
IsEqualIID
(
iid
,
&
IID_IUnknown
)
||
IsEqualIID
(
iid
,
&
IID_ITfLangBarMgr
))
{
*
ppvOut
=
This
;
}
if
(
*
ppvOut
)
{
IUnknown_AddRef
(
iface
);
return
S_OK
;
}
WARN
(
"unsupported interface: %s
\n
"
,
debugstr_guid
(
iid
));
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
LangBarMgr_AddRef
(
ITfLangBarMgr
*
iface
)
{
LangBarMgr
*
This
=
(
LangBarMgr
*
)
iface
;
return
InterlockedIncrement
(
&
This
->
refCount
);
}
static
ULONG
WINAPI
LangBarMgr_Release
(
ITfLangBarMgr
*
iface
)
{
LangBarMgr
*
This
=
(
LangBarMgr
*
)
iface
;
ULONG
ret
;
ret
=
InterlockedDecrement
(
&
This
->
refCount
);
if
(
ret
==
0
)
LangBarMgr_Destructor
(
This
);
return
ret
;
}
/*****************************************************
* ITfLangBarMgr functions
*****************************************************/
static
HRESULT
WINAPI
LangBarMgr_AdviseEventSink
(
ITfLangBarMgr
*
iface
,
ITfLangBarEventSink
*
pSink
,
HWND
hwnd
,
DWORD
dwflags
,
DWORD
*
pdwCookie
)
{
LangBarMgr
*
This
=
(
LangBarMgr
*
)
iface
;
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
LangBarMgr_UnAdviseEventSink
(
ITfLangBarMgr
*
iface
,
DWORD
dwCookie
)
{
LangBarMgr
*
This
=
(
LangBarMgr
*
)
iface
;
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
LangBarMgr_GetThreadMarshalInterface
(
ITfLangBarMgr
*
iface
,
DWORD
dwThreadId
,
DWORD
dwType
,
REFIID
riid
,
IUnknown
**
ppunk
)
{
LangBarMgr
*
This
=
(
LangBarMgr
*
)
iface
;
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
LangBarMgr_GetThreadLangBarItemMgr
(
ITfLangBarMgr
*
iface
,
DWORD
dwThreadId
,
ITfLangBarItemMgr
**
pplbi
,
DWORD
*
pdwThreadid
)
{
LangBarMgr
*
This
=
(
LangBarMgr
*
)
iface
;
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
LangBarMgr_GetInputProcessorProfiles
(
ITfLangBarMgr
*
iface
,
DWORD
dwThreadId
,
ITfInputProcessorProfiles
**
ppaip
,
DWORD
*
pdwThreadid
)
{
LangBarMgr
*
This
=
(
LangBarMgr
*
)
iface
;
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
LangBarMgr_RestoreLastFocus
(
ITfLangBarMgr
*
iface
,
DWORD
*
dwThreadId
,
BOOL
fPrev
)
{
LangBarMgr
*
This
=
(
LangBarMgr
*
)
iface
;
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
LangBarMgr_SetModalInput
(
ITfLangBarMgr
*
iface
,
ITfLangBarEventSink
*
pSink
,
DWORD
dwThreadId
,
DWORD
dwFlags
)
{
LangBarMgr
*
This
=
(
LangBarMgr
*
)
iface
;
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
LangBarMgr_ShowFloating
(
ITfLangBarMgr
*
iface
,
DWORD
dwFlags
)
{
LangBarMgr
*
This
=
(
LangBarMgr
*
)
iface
;
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
LangBarMgr_GetShowFloatingStatus
(
ITfLangBarMgr
*
iface
,
DWORD
*
pdwFlags
)
{
LangBarMgr
*
This
=
(
LangBarMgr
*
)
iface
;
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
const
ITfLangBarMgrVtbl
LangBarMgr_LangBarMgrVtbl
=
{
LangBarMgr_QueryInterface
,
LangBarMgr_AddRef
,
LangBarMgr_Release
,
LangBarMgr_AdviseEventSink
,
LangBarMgr_UnAdviseEventSink
,
LangBarMgr_GetThreadMarshalInterface
,
LangBarMgr_GetThreadLangBarItemMgr
,
LangBarMgr_GetInputProcessorProfiles
,
LangBarMgr_RestoreLastFocus
,
LangBarMgr_SetModalInput
,
LangBarMgr_ShowFloating
,
LangBarMgr_GetShowFloatingStatus
};
HRESULT
LangBarMgr_Constructor
(
IUnknown
*
pUnkOuter
,
IUnknown
**
ppOut
)
{
LangBarMgr
*
This
;
if
(
pUnkOuter
)
return
CLASS_E_NOAGGREGATION
;
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
LangBarMgr
));
if
(
This
==
NULL
)
return
E_OUTOFMEMORY
;
This
->
LangBarMgrVtbl
=
&
LangBarMgr_LangBarMgrVtbl
;
This
->
refCount
=
1
;
TRACE
(
"returning %p
\n
"
,
This
);
*
ppOut
=
(
IUnknown
*
)
This
;
return
S_OK
;
}
dlls/msctf/msctf.c
View file @
4e1c8767
...
...
@@ -87,6 +87,7 @@ static const struct {
{
&
CLSID_TF_ThreadMgr
,
ThreadMgr_Constructor
},
{
&
CLSID_TF_InputProcessorProfiles
,
InputProcessorProfiles_Constructor
},
{
&
CLSID_TF_CategoryMgr
,
CategoryMgr_Constructor
},
{
&
CLSID_TF_LangBarMgr
,
LangBarMgr_Constructor
},
{
NULL
,
NULL
}
};
...
...
@@ -617,3 +618,12 @@ HRESULT WINAPI TF_InvalidAssemblyListCacheIfExist(void)
FIXME
(
"Stub
\n
"
);
return
S_OK
;
}
/***********************************************************************
* TF_CreateLangBarMgr (MSCTF.@)
*/
HRESULT
WINAPI
TF_CreateLangBarMgr
(
ITfLangBarMgr
**
pppbm
)
{
TRACE
(
"
\n
"
);
return
LangBarMgr_Constructor
(
NULL
,(
IUnknown
**
)
pppbm
);
}
dlls/msctf/msctf.spec
View file @
4e1c8767
...
...
@@ -13,7 +13,7 @@
@ stub TF_CreateDisplayAttributeMgr
@ stdcall TF_CreateInputProcessorProfiles(ptr)
@ stub TF_CreateLangBarItemMgr
@ st
ub TF_CreateLangBarMgr
@ st
dcall TF_CreateLangBarMgr(ptr)
@ stdcall TF_CreateThreadMgr(ptr)
@ stub TF_DllDetachInOther
@ stub TF_GetGlobalCompartment
...
...
dlls/msctf/msctf_internal.h
View file @
4e1c8767
...
...
@@ -40,6 +40,7 @@ extern HRESULT CategoryMgr_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut);
extern
HRESULT
Range_Constructor
(
ITfContext
*
context
,
ITextStoreACP
*
textstore
,
DWORD
lockType
,
DWORD
anchorStart
,
DWORD
anchorEnd
,
ITfRange
**
ppOut
);
extern
HRESULT
CompartmentMgr_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
IUnknown
**
ppOut
);
extern
HRESULT
CompartmentMgr_Destructor
(
ITfCompartmentMgr
*
This
);
extern
HRESULT
LangBarMgr_Constructor
(
IUnknown
*
pUnkOuter
,
IUnknown
**
ppOut
);
extern
HRESULT
Context_Initialize
(
ITfContext
*
cxt
,
ITfDocumentMgr
*
manager
);
extern
HRESULT
Context_Uninitialize
(
ITfContext
*
cxt
);
...
...
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