fd2fb07bcf
* Remove CComBSTR dependency. * Replace CStructureArray with std::vector. * Remove CComPtr dependency. * Add try blocks. * Remove CString dependency. * Add comments for string helper functions. * Remove CComAllocator dependency. Fixes #676.
55 lines
1.5 KiB
C++
55 lines
1.5 KiB
C++
/*++
|
|
|
|
Copyright (c) Microsoft Corporation.
|
|
Licensed under the MIT license.
|
|
|
|
Module Name:
|
|
|
|
TfDispAttr.h
|
|
|
|
Abstract:
|
|
|
|
This file defines the CicDisplayAttributeMgr Class.
|
|
|
|
Author:
|
|
|
|
Revision History:
|
|
|
|
Notes:
|
|
|
|
--*/
|
|
|
|
#pragma once
|
|
|
|
class CicDisplayAttributeMgr
|
|
{
|
|
public:
|
|
CicDisplayAttributeMgr();
|
|
virtual ~CicDisplayAttributeMgr();
|
|
|
|
public:
|
|
[[nodiscard]]
|
|
HRESULT GetDisplayAttributeTrackPropertyRange(TfEditCookie ec,
|
|
ITfContext *pic,
|
|
ITfRange *pRange,
|
|
ITfReadOnlyProperty **ppProp,
|
|
IEnumTfRanges **ppEnum,
|
|
ULONG *pulNumProp);
|
|
[[nodiscard]]
|
|
HRESULT GetDisplayAttributeData(ITfCategoryMgr *pcat,
|
|
TfEditCookie ec,
|
|
ITfReadOnlyProperty *pProp,
|
|
ITfRange *pRange,
|
|
TF_DISPLAYATTRIBUTE *pda,
|
|
TfGuidAtom *pguid,
|
|
ULONG ulNumProp);
|
|
[[nodiscard]]
|
|
HRESULT InitDisplayAttributeInstance(ITfCategoryMgr* pcat);
|
|
|
|
inline ITfDisplayAttributeMgr* GetDisplayAttributeMgr() { return m_pDAM.get(); }
|
|
|
|
private:
|
|
wil::com_ptr_nothrow<ITfDisplayAttributeMgr> m_pDAM;
|
|
std::vector<GUID> m_DispAttrProp;
|
|
};
|