📄 mso.tli
字号:
// Created by Microsoft (R) C/C++ Compiler Version 12.00.9782.0 (af79b9be).
//
// d:\退耕还林\coding\afforestation\debug\MSO.tli
//
// Wrapper implementations for Win32 type library C:\Program Files\Common Files\Microsoft Shared\OFFICE11\MSO.DLL
// compiler-generated file created 07/07/06 at 17:21:04 - DO NOT EDIT!
//
// interface IAccessible wrapper method implementations
//
#pragma implementation_key(1)
inline IDispatchPtr Office::IAccessible::GetaccParent ( ) {
IDispatch * _result;
HRESULT _hr = get_accParent(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IDispatchPtr(_result, false);
}
#pragma implementation_key(2)
inline long Office::IAccessible::GetaccChildCount ( ) {
long _result;
HRESULT _hr = get_accChildCount(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(3)
inline IDispatchPtr Office::IAccessible::GetaccChild ( const _variant_t & varChild ) {
IDispatch * _result;
HRESULT _hr = get_accChild(varChild, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IDispatchPtr(_result, false);
}
#pragma implementation_key(4)
inline _bstr_t Office::IAccessible::GetaccName ( const _variant_t & varChild ) {
BSTR _result;
HRESULT _hr = get_accName(varChild, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
#pragma implementation_key(5)
inline _bstr_t Office::IAccessible::GetaccValue ( const _variant_t & varChild ) {
BSTR _result;
HRESULT _hr = get_accValue(varChild, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
#pragma implementation_key(6)
inline _bstr_t Office::IAccessible::GetaccDescription ( const _variant_t & varChild ) {
BSTR _result;
HRESULT _hr = get_accDescription(varChild, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
#pragma implementation_key(7)
inline _variant_t Office::IAccessible::GetaccRole ( const _variant_t & varChild ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_accRole(varChild, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
#pragma implementation_key(8)
inline _variant_t Office::IAccessible::GetaccState ( const _variant_t & varChild ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_accState(varChild, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
#pragma implementation_key(9)
inline _bstr_t Office::IAccessible::GetaccHelp ( const _variant_t & varChild ) {
BSTR _result;
HRESULT _hr = get_accHelp(varChild, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
#pragma implementation_key(10)
inline long Office::IAccessible::GetaccHelpTopic ( BSTR * pszHelpFile, const _variant_t & varChild ) {
long _result;
HRESULT _hr = get_accHelpTopic(pszHelpFile, varChild, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(11)
inline _bstr_t Office::IAccessible::GetaccKeyboardShortcut ( const _variant_t & varChild ) {
BSTR _result;
HRESULT _hr = get_accKeyboardShortcut(varChild, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
#pragma implementation_key(12)
inline _variant_t Office::IAccessible::GetaccFocus ( ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_accFocus(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
#pragma implementation_key(13)
inline _variant_t Office::IAccessible::GetaccSelection ( ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_accSelection(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
#pragma implementation_key(14)
inline _bstr_t Office::IAccessible::GetaccDefaultAction ( const _variant_t & varChild ) {
BSTR _result;
HRESULT _hr = get_accDefaultAction(varChild, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
#pragma implementation_key(15)
inline HRESULT Office::IAccessible::accSelect ( long flagsSelect, const _variant_t & varChild ) {
HRESULT _hr = raw_accSelect(flagsSelect, varChild);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
#pragma implementation_key(16)
inline HRESULT Office::IAccessible::accLocation ( long * pxLeft, long * pyTop, long * pcxWidth, long * pcyHeight, const _variant_t & varChild ) {
HRESULT _hr = raw_accLocation(pxLeft, pyTop, pcxWidth, pcyHeight, varChild);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
#pragma implementation_key(17)
inline _variant_t Office::IAccessible::accNavigate ( long navDir, const _variant_t & varStart ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = raw_accNavigate(navDir, varStart, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
#pragma implementation_key(18)
inline _variant_t Office::IAccessible::accHitTest ( long xLeft, long yTop ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = raw_accHitTest(xLeft, yTop, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
#pragma implementation_key(19)
inline HRESULT Office::IAccessible::accDoDefaultAction ( const _variant_t & varChild ) {
HRESULT _hr = raw_accDoDefaultAction(varChild);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
#pragma implementation_key(20)
inline void Office::IAccessible::PutaccName ( const _variant_t & varChild, _bstr_t pszName ) {
HRESULT _hr = put_accName(varChild, pszName);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(21)
inline void Office::IAccessible::PutaccValue ( const _variant_t & varChild, _bstr_t pszValue ) {
HRESULT _hr = put_accValue(varChild, pszValue);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
//
// interface _IMsoDispObj wrapper method implementations
//
#pragma implementation_key(22)
inline IDispatchPtr Office::_IMsoDispObj::GetApplication ( ) {
IDispatch * _result;
HRESULT _hr = get_Application(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IDispatchPtr(_result, false);
}
#pragma implementation_key(23)
inline long Office::_IMsoDispObj::GetCreator ( ) {
long _result;
HRESULT _hr = get_Creator(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
//
// interface _IMsoOleAccDispObj wrapper method implementations
//
#pragma implementation_key(24)
inline IDispatchPtr Office::_IMsoOleAccDispObj::GetApplication ( ) {
IDispatch * _result;
HRESULT _hr = get_Application(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IDispatchPtr(_result, false);
}
#pragma implementation_key(25)
inline long Office::_IMsoOleAccDispObj::GetCreator ( ) {
long _result;
HRESULT _hr = get_Creator(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
//
// interface _CommandBars wrapper method implementations
//
#pragma implementation_key(26)
inline Office::CommandBarControlPtr Office::_CommandBars::GetActionControl ( ) {
struct CommandBarControl * _result;
HRESULT _hr = get_ActionControl(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return CommandBarControlPtr(_result, false);
}
#pragma implementation_key(27)
inline Office::CommandBarPtr Office::_CommandBars::GetActiveMenuBar ( ) {
struct CommandBar * _result;
HRESULT _hr = get_ActiveMenuBar(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return CommandBarPtr(_result, false);
}
#pragma implementation_key(28)
inline Office::CommandBarPtr Office::_CommandBars::Add ( const _variant_t & Name, const _variant_t & Position, const _variant_t & MenuBar, const _variant_t & Temporary ) {
struct CommandBar * _result;
HRESULT _hr = raw_Add(Name, Position, MenuBar, Temporary, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return CommandBarPtr(_result, false);
}
#pragma implementation_key(29)
inline int Office::_CommandBars::GetCount ( ) {
int _result;
HRESULT _hr = get_Count(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(30)
inline VARIANT_BOOL Office::_CommandBars::GetDisplayTooltips ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_DisplayTooltips(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(31)
inline void Office::_CommandBars::PutDisplayTooltips ( VARIANT_BOOL pvarfDisplayTooltips ) {
HRESULT _hr = put_DisplayTooltips(pvarfDisplayTooltips);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(32)
inline VARIANT_BOOL Office::_CommandBars::GetDisplayKeysInTooltips ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_DisplayKeysInTooltips(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(33)
inline void Office::_CommandBars::PutDisplayKeysInTooltips ( VARIANT_BOOL pvarfDisplayKeys ) {
HRESULT _hr = put_DisplayKeysInTooltips(pvarfDisplayKeys);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(34)
inline Office::CommandBarControlPtr Office::_CommandBars::FindControl ( const _variant_t & Type, const _variant_t & Id, const _variant_t & Tag, const _variant_t & Visible ) {
struct CommandBarControl * _result;
HRESULT _hr = raw_FindControl(Type, Id, Tag, Visible, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return CommandBarControlPtr(_result, false);
}
#pragma implementation_key(35)
inline Office::CommandBarPtr Office::_CommandBars::GetItem ( const _variant_t & Index ) {
struct CommandBar * _result;
HRESULT _hr = get_Item(Index, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return CommandBarPtr(_result, false);
}
#pragma implementation_key(36)
inline VARIANT_BOOL Office::_CommandBars::GetLargeButtons ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_LargeButtons(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(37)
inline void Office::_CommandBars::PutLargeButtons ( VARIANT_BOOL pvarfLargeButtons ) {
HRESULT _hr = put_LargeButtons(pvarfLargeButtons);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(38)
inline enum MsoMenuAnimation Office::_CommandBars::GetMenuAnimationStyle ( ) {
enum MsoMenuAnimation _result;
HRESULT _hr = get_MenuAnimationStyle(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(39)
inline void Office::_CommandBars::PutMenuAnimationStyle ( enum MsoMenuAnimation pma ) {
HRESULT _hr = put_MenuAnimationStyle(pma);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(40)
inline IUnknownPtr Office::_CommandBars::Get_NewEnum ( ) {
IUnknown * _result;
HRESULT _hr = get__NewEnum(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IUnknownPtr(_result, false);
}
#pragma implementation_key(41)
inline IDispatchPtr Office::_CommandBars::GetParent ( ) {
IDispatch * _result;
HRESULT _hr = get_Parent(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IDispatchPtr(_result, false);
}
#pragma implementation_key(42)
inline HRESULT Office::_CommandBars::ReleaseFocus ( ) {
HRESULT _hr = raw_ReleaseFocus();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
#pragma implementation_key(43)
inline int Office::_CommandBars::GetIdsString ( int ids, BSTR * pbstrName ) {
int _result;
HRESULT _hr = get_IdsString(ids, pbstrName, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(44)
inline int Office::_CommandBars::GetTmcGetName ( int tmc, BSTR * pbstrName ) {
int _result;
HRESULT _hr = get_TmcGetName(tmc, pbstrName, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(45)
inline VARIANT_BOOL Office::_CommandBars::GetAdaptiveMenus ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_AdaptiveMenus(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -