/*
* Copyright 2008 Aric Stewart, CodeWeavers
*
* 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
*/
/*
* Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
* other than GPL or LGPL is available it will apply instead, Oracle elects to use only
* the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
* a choice of LGPL license versions is made available with the language indicating
* that LGPLv2 or any later version may be used, or where a choice of which version
* of the LGPL is applied is otherwise unspecified.
*/
import "oaidl.idl";
import "comcat.idl";
import "textstor.idl";
import "ctfutb.idl";
cpp_quote("#include <winuser.h>")
cpp_quote("#define TF_E_STACKFULL MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0501)")
cpp_quote("#define TF_E_DISCONNECTED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0504)")
cpp_quote("#define TF_E_ALREADY_EXISTS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0506)")
cpp_quote("#define TF_E_NOLOCK MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0201)")
cpp_quote("HRESULT WINAPI TF_CreateThreadMgr(ITfThreadMgr **pptim);")
cpp_quote("HRESULT WINAPI TF_GetThreadMgr(ITfThreadMgr **pptim);")
cpp_quote("HRESULT WINAPI TF_CreateInputProcessorProfiles(ITfInputProcessorProfiles **ppipr);")
cpp_quote("HRESULT WINAPI TF_CreateLangBarMgr(ITfLangBarMgr **pppbm);")
cpp_quote("EXTERN_C const GUID GUID_PROP_TEXTOWNER;")
cpp_quote("DEFINE_GUID(GUID_PROP_ATTRIBUTE,0x34b45670,0x7526,0x11d2,0xa1,0x47,0x00,0x10,0x5a,0x27,0x99,0xb5);")
cpp_quote("EXTERN_C const GUID GUID_PROP_LANGID;")
cpp_quote("EXTERN_C const GUID GUID_PROP_READING;")
cpp_quote("EXTERN_C const GUID GUID_PROP_COMPOSING;")
cpp_quote("EXTERN_C const CLSID CLSID_TF_ThreadMgr;")
cpp_quote("EXTERN_C const CLSID CLSID_TF_InputProcessorProfiles;")
cpp_quote("EXTERN_C const CLSID CLSID_TF_LangBarMgr;")
cpp_quote("EXTERN_C const CLSID CLSID_TF_CategoryMgr;")
cpp_quote("EXTERN_C const CLSID CLSID_TF_DisplayAttributeMgr;")
/* GUIDs for Compartments */
cpp_quote("EXTERN_C const GUID GUID_COMPARTMENT_KEYBOARD_DISABLED;")
cpp_quote("EXTERN_C const GUID GUID_COMPARTMENT_KEYBOARD_OPENCLOSE;")
cpp_quote("EXTERN_C const GUID GUID_COMPARTMENT_HANDWRITING_OPENCLOSE;")
cpp_quote("EXTERN_C const GUID GUID_COMPARTMENT_SPEECH_DISABLED;")
cpp_quote("EXTERN_C const GUID GUID_COMPARTMENT_SPEECH_OPENCLOSE;")
cpp_quote("EXTERN_C const GUID GUID_COMPARTMENT_SPEECH_GLOBALSTATE;")
cpp_quote("EXTERN_C const GUID GUID_COMPARTMENT_PERSISTMENUENABLED;")
cpp_quote("EXTERN_C const GUID GUID_COMPARTMENT_EMPTYCONTEXT;")
cpp_quote("EXTERN_C const GUID GUID_COMPARTMENT_TIPUISTATUS;")
/* GUIDs for Categories */
cpp_quote("EXTERN_C const GUID GUID_TFCAT_TIP_KEYBOARD;")
cpp_quote("EXTERN_C const GUID GUID_TFCAT_TIP_SPEECH;")
cpp_quote("EXTERN_C const GUID GUID_TFCAT_TIP_HANDWRITING;")
cpp_quote("EXTERN_C const GUID GUID_TFCAT_DISPLAYATTRIBUTEPROVIDER;")
cpp_quote("#define TF_MOD_ALT 0x0001")
cpp_quote("#define TF_MOD_CONTROL 0x0002")
cpp_quote("#define TF_MOD_SHIFT 0x0004")
cpp_quote("#define TF_MOD_RALT 0x0008")
cpp_quote("#define TF_MOD_RCONTROL 0x0010")
cpp_quote("#define TF_MOD_RSHIFT 0x0020")
cpp_quote("#define TF_MOD_LALT 0x0040")
cpp_quote("#define TF_MOD_LCONTROL 0x0080")
cpp_quote("#define TF_MOD_LSHIFT 0x0100")
cpp_quote("#define TF_MOD_ON_KEYUP 0x0200")
cpp_quote("#define TF_MOD_IGNORE_ALL_MODIFIER 0x0400")
interface ITfDocumentMgr;
interface ITfContext;
interface IEnumTfDocumentMgrs;
interface IEnumTfContexts;
interface ITfFunctionProvider;
interface IEnumTfFunctionProviders;
interface ITfCompartmentMgr;
interface ITfEditSession;
interface ITfRange;
interface ITfContextView;
interface IEnumTfContextViews;
interface ITfProperty;
interface ITfReadOnlyProperty;
interface IEnumTfProperties;
interface ITfRangeBackup;
interface IEnumTfLanguageProfiles;
interface ITfEditRecord;
interface ITfCompositionView;
interface ITfKeyEventSink;
{
{
typedef [uuid(5a886226-ae9a-489b-b991-2b1e25ee59a9)] enum { TF_ANCHOR_START = 0, TF_ANCHOR_END = 1 } TfAnchor;
[
]
interface ITfThreadMgr: IUnknown
{
};
[
]
interface ITfCompositionView : IUnknown
{
}
[
]
interface ITfDocumentMgr: IUnknown
{
};
[
]
interface ITfContext : IUnknown
{
typedef [uuid(1690be9b-d3e9-49f6-8d8b-51b905af4c43)] enum { TF_AE_NONE, TF_AE_START, TF_AE_END } TfActiveSelEnd;
{
{
} TF_SELECTION;
};
[
]
{
};
[
]
interface ITfInputProcessorProfiles : IUnknown
{
};
enum {
TF_LS_NONE = 0,
TF_LS_SOLID = 1,
TF_LS_DOT = 2,
TF_LS_DASH = 3,
TF_LS_SQUIGGLE = 4
enum {
TF_CT_NONE = 0,
TF_CT_SYSCOLOR = 1,
TF_CT_COLORREF = 2
union {
[case(TF_CT_SYSCOLOR)] int nIndex;
};
} TF_DA_COLOR;
enum {
TF_ATTR_INPUT = 0,
TF_ATTR_CONVERTED = 2,
TF_ATTR_INPUT_ERROR = 4,
TF_ATTR_OTHER = -1
[
]
interface ITfDisplayAttributeInfo : IUnknown
{
}
[
]
interface IEnumTfDisplayAttributeInfo : IUnknown
{
}
[
]
interface ITfDisplayAttributeMgr : IUnknown
{
}
[
]
interface ITfCategoryMgr : IUnknown
{
};
[
]
interface ITfTextEditSink : IUnknown
{
};
[
]
interface ITfContextOwnerCompositionSink : IUnknown
{
};
[
]
interface IEnumTfLanguageProfiles : IUnknown
{
};
[
]
interface ITfTextInputProcessor : IUnknown
{
};
[
]
interface ITfThreadMgrEventSink : IUnknown
{
};
[
]
interface ITfKeystrokeMgr : IUnknown
{
};
[
]
interface ITfKeyEventSink : IUnknown
{
};
[
]
interface ITfMessagePump : IUnknown
{
};
[
]
interface ITfClientId : IUnknown
{
};
[
]
interface ITfLanguageProfileNotifySink : IUnknown
{
}
[
]
interface ITfEditSession : IUnknown
{
}
[
]
{
typedef [uuid(cf610f06-2882-46f6-abe5-298568b664c4)] enum { TF_GRAVITY_BACKWARD = 0, TF_GRAVITY_FORWARD = 1 } TfGravity;
typedef [uuid(1e512533-bbdc-4530-9a8e-a1dc0af67468)] enum { TF_SD_BACKWARD = 0, TF_SD_FORWARD = 1 } TfShiftDir;
{
} TF_HALTCOND;
};
[
]
interface ITfRangeACP : ITfRange
{
}
[
]
interface ITfInsertAtSelection : IUnknown
{
};
[
]
interface ITfPropertyStore : IUnknown
{
}
[
]
interface IEnumTfRanges : IUnknown
{
}
[
]
interface IEnumITfCompositionView : IUnknown
{
}
[
]
interface ITfComposition : IUnknown
{
}
[
]
interface ITfCompositionSink : IUnknown
{
}
[
]
interface ITfContextComposition : IUnknown
{
}
[
]
{
}
[
]
interface ITfReadOnlyProperty : IUnknown
{
}
[
]
interface ITfProperty : ITfReadOnlyProperty
{
}
[
]
interface ITfCompartment : IUnknown
{
};
[
]
interface ITfCompartmentMgr : IUnknown
{
};
[
]
interface ITfCompartmentEventSink : IUnknown
{
}
[
]
interface IEnumTfContexts : IUnknown
{
};
[
]
interface IEnumTfDocumentMgrs : IUnknown
{
};
[
]
interface ITfSourceSingle : IUnknown
{
};
[
]
interface ITfThreadFocusSink : IUnknown
{
};