hackedteam/vector-exploit

View on GitHub
src/PMIEFuck-WinWord/PMIEFuck-WinWord/Debug/msword.tli

Summary

Maintainability
Test Coverage
// Created by Microsoft (R) C/C++ Compiler Version 11.00.60315.1 (94527290).
//
// d:\sources\pmiefuck-winword\pmiefuck-winword\debug\msword.tli
//
// Wrapper implementations for Win32 type library D:\Program Files (x86)\Microsoft Office\Office14\MSWORD.OLB
// compiler-generated file created 06/07/13 at 10:24:01 - DO NOT EDIT!

#pragma once

//
// interface _OLEControl wrapper method implementations
//

#pragma implementation_key(1)
inline float Word::_OLEControl::GetLeft ( ) {
    float _result = 0;
    HRESULT _hr = get_Left(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2)
inline void Word::_OLEControl::PutLeft ( float prop ) {
    HRESULT _hr = put_Left(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3)
inline float Word::_OLEControl::GetTop ( ) {
    float _result = 0;
    HRESULT _hr = get_Top(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(4)
inline void Word::_OLEControl::PutTop ( float prop ) {
    HRESULT _hr = put_Top(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(5)
inline float Word::_OLEControl::GetHeight ( ) {
    float _result = 0;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(6)
inline void Word::_OLEControl::PutHeight ( float prop ) {
    HRESULT _hr = put_Height(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(7)
inline float Word::_OLEControl::GetWidth ( ) {
    float _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(8)
inline void Word::_OLEControl::PutWidth ( float prop ) {
    HRESULT _hr = put_Width(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(9)
inline _bstr_t Word::_OLEControl::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(10)
inline void Word::_OLEControl::PutName ( _bstr_t prop ) {
    HRESULT _hr = put_Name(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(11)
inline IDispatchPtr Word::_OLEControl::GetAutomation ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Automation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(12)
inline HRESULT Word::_OLEControl::Select ( ) {
    HRESULT _hr = raw_Select();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(13)
inline HRESULT Word::_OLEControl::Copy ( ) {
    HRESULT _hr = raw_Copy();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(14)
inline HRESULT Word::_OLEControl::Cut ( ) {
    HRESULT _hr = raw_Cut();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(15)
inline HRESULT Word::_OLEControl::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(16)
inline HRESULT Word::_OLEControl::Activate ( ) {
    HRESULT _hr = raw_Activate();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(17)
inline _bstr_t Word::_OLEControl::GetAltHTML ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_AltHTML(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(18)
inline void Word::_OLEControl::PutAltHTML ( _bstr_t prop ) {
    HRESULT _hr = put_AltHTML(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface FontNames wrapper method implementations
//

#pragma implementation_key(19)
inline IUnknownPtr Word::FontNames::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(20)
inline long Word::FontNames::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(21)
inline Word::_ApplicationPtr Word::FontNames::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(22)
inline long Word::FontNames::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(23)
inline IDispatchPtr Word::FontNames::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(24)
inline _bstr_t Word::FontNames::Item ( long Index ) {
    BSTR _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

//
// interface RoutingSlip wrapper method implementations
//

#pragma implementation_key(25)
inline Word::_ApplicationPtr Word::RoutingSlip::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(26)
inline long Word::RoutingSlip::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(27)
inline IDispatchPtr Word::RoutingSlip::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(28)
inline _bstr_t Word::RoutingSlip::GetSubject ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Subject(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(29)
inline void Word::RoutingSlip::PutSubject ( _bstr_t prop ) {
    HRESULT _hr = put_Subject(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(30)
inline _bstr_t Word::RoutingSlip::GetMessage ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Message(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(31)
inline void Word::RoutingSlip::PutMessage ( _bstr_t prop ) {
    HRESULT _hr = put_Message(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(32)
inline enum Word::WdRoutingSlipDelivery Word::RoutingSlip::GetDelivery ( ) {
    enum WdRoutingSlipDelivery _result;
    HRESULT _hr = get_Delivery(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(33)
inline void Word::RoutingSlip::PutDelivery ( enum WdRoutingSlipDelivery prop ) {
    HRESULT _hr = put_Delivery(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(34)
inline VARIANT_BOOL Word::RoutingSlip::GetTrackStatus ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_TrackStatus(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(35)
inline void Word::RoutingSlip::PutTrackStatus ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_TrackStatus(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(36)
inline enum Word::WdProtectionType Word::RoutingSlip::GetProtect ( ) {
    enum WdProtectionType _result;
    HRESULT _hr = get_Protect(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(37)
inline void Word::RoutingSlip::PutProtect ( enum WdProtectionType prop ) {
    HRESULT _hr = put_Protect(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(38)
inline VARIANT_BOOL Word::RoutingSlip::GetReturnWhenDone ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ReturnWhenDone(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(39)
inline void Word::RoutingSlip::PutReturnWhenDone ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ReturnWhenDone(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(40)
inline enum Word::WdRoutingSlipStatus Word::RoutingSlip::GetStatus ( ) {
    enum WdRoutingSlipStatus _result;
    HRESULT _hr = get_Status(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(41)
inline _variant_t Word::RoutingSlip::GetRecipients ( VARIANT * Index ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Recipients(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(42)
inline HRESULT Word::RoutingSlip::Reset ( ) {
    HRESULT _hr = raw_Reset();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(43)
inline HRESULT Word::RoutingSlip::AddRecipient ( _bstr_t Recipient ) {
    HRESULT _hr = raw_AddRecipient(Recipient);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Variable wrapper method implementations
//

#pragma implementation_key(44)
inline Word::_ApplicationPtr Word::Variable::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(45)
inline long Word::Variable::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(46)
inline IDispatchPtr Word::Variable::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(47)
inline _bstr_t Word::Variable::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(48)
inline _bstr_t Word::Variable::GetValue ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Value(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(49)
inline void Word::Variable::PutValue ( _bstr_t prop ) {
    HRESULT _hr = put_Value(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(50)
inline long Word::Variable::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(51)
inline HRESULT Word::Variable::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Variables wrapper method implementations
//

#pragma implementation_key(52)
inline IUnknownPtr Word::Variables::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(53)
inline long Word::Variables::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(54)
inline Word::_ApplicationPtr Word::Variables::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(55)
inline long Word::Variables::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(56)
inline IDispatchPtr Word::Variables::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(57)
inline Word::VariablePtr Word::Variables::Item ( VARIANT * Index ) {
    struct Variable * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return VariablePtr(_result, false);
}

#pragma implementation_key(58)
inline Word::VariablePtr Word::Variables::Add ( _bstr_t Name, VARIANT * Value ) {
    struct Variable * _result = 0;
    HRESULT _hr = raw_Add(Name, Value, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return VariablePtr(_result, false);
}

//
// interface DropCap wrapper method implementations
//

#pragma implementation_key(59)
inline Word::_ApplicationPtr Word::DropCap::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(60)
inline long Word::DropCap::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(61)
inline IDispatchPtr Word::DropCap::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(62)
inline enum Word::WdDropPosition Word::DropCap::GetPosition ( ) {
    enum WdDropPosition _result;
    HRESULT _hr = get_Position(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(63)
inline void Word::DropCap::PutPosition ( enum WdDropPosition prop ) {
    HRESULT _hr = put_Position(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(64)
inline _bstr_t Word::DropCap::GetFontName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_FontName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(65)
inline void Word::DropCap::PutFontName ( _bstr_t prop ) {
    HRESULT _hr = put_FontName(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(66)
inline long Word::DropCap::GetLinesToDrop ( ) {
    long _result = 0;
    HRESULT _hr = get_LinesToDrop(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(67)
inline void Word::DropCap::PutLinesToDrop ( long prop ) {
    HRESULT _hr = put_LinesToDrop(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(68)
inline float Word::DropCap::GetDistanceFromText ( ) {
    float _result = 0;
    HRESULT _hr = get_DistanceFromText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(69)
inline void Word::DropCap::PutDistanceFromText ( float prop ) {
    HRESULT _hr = put_DistanceFromText(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(70)
inline HRESULT Word::DropCap::Clear ( ) {
    HRESULT _hr = raw_Clear();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(71)
inline HRESULT Word::DropCap::Enable ( ) {
    HRESULT _hr = raw_Enable();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface TabStop wrapper method implementations
//

#pragma implementation_key(72)
inline Word::_ApplicationPtr Word::TabStop::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(73)
inline long Word::TabStop::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(74)
inline IDispatchPtr Word::TabStop::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(75)
inline enum Word::WdTabAlignment Word::TabStop::GetAlignment ( ) {
    enum WdTabAlignment _result;
    HRESULT _hr = get_Alignment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(76)
inline void Word::TabStop::PutAlignment ( enum WdTabAlignment prop ) {
    HRESULT _hr = put_Alignment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(77)
inline enum Word::WdTabLeader Word::TabStop::GetLeader ( ) {
    enum WdTabLeader _result;
    HRESULT _hr = get_Leader(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(78)
inline void Word::TabStop::PutLeader ( enum WdTabLeader prop ) {
    HRESULT _hr = put_Leader(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(79)
inline float Word::TabStop::GetPosition ( ) {
    float _result = 0;
    HRESULT _hr = get_Position(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(80)
inline void Word::TabStop::PutPosition ( float prop ) {
    HRESULT _hr = put_Position(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(81)
inline VARIANT_BOOL Word::TabStop::GetCustomTab ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_CustomTab(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(82)
inline Word::TabStopPtr Word::TabStop::GetNext ( ) {
    struct TabStop * _result = 0;
    HRESULT _hr = get_Next(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TabStopPtr(_result, false);
}

#pragma implementation_key(83)
inline Word::TabStopPtr Word::TabStop::GetPrevious ( ) {
    struct TabStop * _result = 0;
    HRESULT _hr = get_Previous(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TabStopPtr(_result, false);
}

#pragma implementation_key(84)
inline HRESULT Word::TabStop::Clear ( ) {
    HRESULT _hr = raw_Clear();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface TabStops wrapper method implementations
//

#pragma implementation_key(85)
inline IUnknownPtr Word::TabStops::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(86)
inline long Word::TabStops::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(87)
inline Word::_ApplicationPtr Word::TabStops::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(88)
inline long Word::TabStops::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(89)
inline IDispatchPtr Word::TabStops::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(90)
inline Word::TabStopPtr Word::TabStops::Item ( VARIANT * Index ) {
    struct TabStop * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TabStopPtr(_result, false);
}

#pragma implementation_key(91)
inline Word::TabStopPtr Word::TabStops::Add ( float Position, VARIANT * Alignment, VARIANT * Leader ) {
    struct TabStop * _result = 0;
    HRESULT _hr = raw_Add(Position, Alignment, Leader, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TabStopPtr(_result, false);
}

#pragma implementation_key(92)
inline HRESULT Word::TabStops::ClearAll ( ) {
    HRESULT _hr = raw_ClearAll();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(93)
inline Word::TabStopPtr Word::TabStops::Before ( float Position ) {
    struct TabStop * _result = 0;
    HRESULT _hr = raw_Before(Position, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TabStopPtr(_result, false);
}

#pragma implementation_key(94)
inline Word::TabStopPtr Word::TabStops::After ( float Position ) {
    struct TabStop * _result = 0;
    HRESULT _hr = raw_After(Position, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TabStopPtr(_result, false);
}

//
// interface FirstLetterException wrapper method implementations
//

#pragma implementation_key(95)
inline Word::_ApplicationPtr Word::FirstLetterException::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(96)
inline long Word::FirstLetterException::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(97)
inline IDispatchPtr Word::FirstLetterException::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(98)
inline long Word::FirstLetterException::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(99)
inline _bstr_t Word::FirstLetterException::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(100)
inline HRESULT Word::FirstLetterException::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface FirstLetterExceptions wrapper method implementations
//

#pragma implementation_key(101)
inline Word::_ApplicationPtr Word::FirstLetterExceptions::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(102)
inline long Word::FirstLetterExceptions::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(103)
inline IDispatchPtr Word::FirstLetterExceptions::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(104)
inline IUnknownPtr Word::FirstLetterExceptions::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(105)
inline long Word::FirstLetterExceptions::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(106)
inline Word::FirstLetterExceptionPtr Word::FirstLetterExceptions::Item ( VARIANT * Index ) {
    struct FirstLetterException * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FirstLetterExceptionPtr(_result, false);
}

#pragma implementation_key(107)
inline Word::FirstLetterExceptionPtr Word::FirstLetterExceptions::Add ( _bstr_t Name ) {
    struct FirstLetterException * _result = 0;
    HRESULT _hr = raw_Add(Name, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FirstLetterExceptionPtr(_result, false);
}

//
// interface TwoInitialCapsException wrapper method implementations
//

#pragma implementation_key(108)
inline Word::_ApplicationPtr Word::TwoInitialCapsException::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(109)
inline long Word::TwoInitialCapsException::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(110)
inline IDispatchPtr Word::TwoInitialCapsException::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(111)
inline long Word::TwoInitialCapsException::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(112)
inline _bstr_t Word::TwoInitialCapsException::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(113)
inline HRESULT Word::TwoInitialCapsException::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface TwoInitialCapsExceptions wrapper method implementations
//

#pragma implementation_key(114)
inline Word::_ApplicationPtr Word::TwoInitialCapsExceptions::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(115)
inline long Word::TwoInitialCapsExceptions::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(116)
inline IDispatchPtr Word::TwoInitialCapsExceptions::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(117)
inline IUnknownPtr Word::TwoInitialCapsExceptions::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(118)
inline long Word::TwoInitialCapsExceptions::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(119)
inline Word::TwoInitialCapsExceptionPtr Word::TwoInitialCapsExceptions::Item ( VARIANT * Index ) {
    struct TwoInitialCapsException * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TwoInitialCapsExceptionPtr(_result, false);
}

#pragma implementation_key(120)
inline Word::TwoInitialCapsExceptionPtr Word::TwoInitialCapsExceptions::Add ( _bstr_t Name ) {
    struct TwoInitialCapsException * _result = 0;
    HRESULT _hr = raw_Add(Name, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TwoInitialCapsExceptionPtr(_result, false);
}

//
// interface TextRetrievalMode wrapper method implementations
//

#pragma implementation_key(121)
inline Word::_ApplicationPtr Word::TextRetrievalMode::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(122)
inline long Word::TextRetrievalMode::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(123)
inline IDispatchPtr Word::TextRetrievalMode::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(124)
inline enum Word::WdViewType Word::TextRetrievalMode::GetViewType ( ) {
    enum WdViewType _result;
    HRESULT _hr = get_ViewType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(125)
inline void Word::TextRetrievalMode::PutViewType ( enum WdViewType prop ) {
    HRESULT _hr = put_ViewType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(126)
inline Word::TextRetrievalModePtr Word::TextRetrievalMode::GetDuplicate ( ) {
    struct TextRetrievalMode * _result = 0;
    HRESULT _hr = get_Duplicate(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TextRetrievalModePtr(_result, false);
}

#pragma implementation_key(127)
inline VARIANT_BOOL Word::TextRetrievalMode::GetIncludeHiddenText ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IncludeHiddenText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(128)
inline void Word::TextRetrievalMode::PutIncludeHiddenText ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_IncludeHiddenText(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(129)
inline VARIANT_BOOL Word::TextRetrievalMode::GetIncludeFieldCodes ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IncludeFieldCodes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(130)
inline void Word::TextRetrievalMode::PutIncludeFieldCodes ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_IncludeFieldCodes(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface System wrapper method implementations
//

#pragma implementation_key(131)
inline Word::_ApplicationPtr Word::System::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(132)
inline long Word::System::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(133)
inline IDispatchPtr Word::System::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(134)
inline _bstr_t Word::System::GetOperatingSystem ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_OperatingSystem(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(135)
inline _bstr_t Word::System::GetProcessorType ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_ProcessorType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(136)
inline _bstr_t Word::System::GetVersion ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Version(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(137)
inline long Word::System::GetFreeDiskSpace ( ) {
    long _result = 0;
    HRESULT _hr = get_FreeDiskSpace(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(138)
inline enum Word::WdCountry Word::System::GetCountry ( ) {
    enum WdCountry _result;
    HRESULT _hr = get_Country(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(139)
inline _bstr_t Word::System::GetLanguageDesignation ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_LanguageDesignation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(140)
inline long Word::System::GetHorizontalResolution ( ) {
    long _result = 0;
    HRESULT _hr = get_HorizontalResolution(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(141)
inline long Word::System::GetVerticalResolution ( ) {
    long _result = 0;
    HRESULT _hr = get_VerticalResolution(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(142)
inline _bstr_t Word::System::GetProfileString ( _bstr_t Section, _bstr_t Key ) {
    BSTR _result = 0;
    HRESULT _hr = get_ProfileString(Section, Key, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(143)
inline void Word::System::PutProfileString ( _bstr_t Section, _bstr_t Key, _bstr_t prop ) {
    HRESULT _hr = put_ProfileString(Section, Key, prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(144)
inline _bstr_t Word::System::GetPrivateProfileString ( _bstr_t FileName, _bstr_t Section, _bstr_t Key ) {
    BSTR _result = 0;
    HRESULT _hr = get_PrivateProfileString(FileName, Section, Key, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(145)
inline void Word::System::PutPrivateProfileString ( _bstr_t FileName, _bstr_t Section, _bstr_t Key, _bstr_t prop ) {
    HRESULT _hr = put_PrivateProfileString(FileName, Section, Key, prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(146)
inline VARIANT_BOOL Word::System::GetMathCoprocessorInstalled ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MathCoprocessorInstalled(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(147)
inline _bstr_t Word::System::GetComputerType ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_ComputerType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(148)
inline _bstr_t Word::System::GetMacintoshName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_MacintoshName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(149)
inline VARIANT_BOOL Word::System::GetQuickDrawInstalled ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_QuickDrawInstalled(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(150)
inline enum Word::WdCursorType Word::System::GetCursor ( ) {
    enum WdCursorType _result;
    HRESULT _hr = get_Cursor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(151)
inline void Word::System::PutCursor ( enum WdCursorType prop ) {
    HRESULT _hr = put_Cursor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(152)
inline HRESULT Word::System::MSInfo ( ) {
    HRESULT _hr = raw_MSInfo();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(153)
inline HRESULT Word::System::Connect ( _bstr_t Path, VARIANT * Drive, VARIANT * Password ) {
    HRESULT _hr = raw_Connect(Path, Drive, Password);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(154)
inline enum Word::WdCountry Word::System::GetCountryRegion ( ) {
    enum WdCountry _result;
    HRESULT _hr = get_CountryRegion(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface OLEFormat wrapper method implementations
//

#pragma implementation_key(155)
inline Word::_ApplicationPtr Word::OLEFormat::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(156)
inline long Word::OLEFormat::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(157)
inline IDispatchPtr Word::OLEFormat::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(158)
inline _bstr_t Word::OLEFormat::GetClassType ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_ClassType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(159)
inline void Word::OLEFormat::PutClassType ( _bstr_t prop ) {
    HRESULT _hr = put_ClassType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(160)
inline VARIANT_BOOL Word::OLEFormat::GetDisplayAsIcon ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DisplayAsIcon(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(161)
inline void Word::OLEFormat::PutDisplayAsIcon ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DisplayAsIcon(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(162)
inline _bstr_t Word::OLEFormat::GetIconName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_IconName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(163)
inline void Word::OLEFormat::PutIconName ( _bstr_t prop ) {
    HRESULT _hr = put_IconName(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(164)
inline _bstr_t Word::OLEFormat::GetIconPath ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_IconPath(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(165)
inline long Word::OLEFormat::GetIconIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_IconIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(166)
inline void Word::OLEFormat::PutIconIndex ( long prop ) {
    HRESULT _hr = put_IconIndex(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(167)
inline _bstr_t Word::OLEFormat::GetIconLabel ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_IconLabel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(168)
inline void Word::OLEFormat::PutIconLabel ( _bstr_t prop ) {
    HRESULT _hr = put_IconLabel(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(169)
inline _bstr_t Word::OLEFormat::GetLabel ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Label(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(170)
inline IDispatchPtr Word::OLEFormat::GetObject ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Object(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(171)
inline _bstr_t Word::OLEFormat::GetProgID ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_ProgID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(172)
inline HRESULT Word::OLEFormat::Activate ( ) {
    HRESULT _hr = raw_Activate();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(173)
inline HRESULT Word::OLEFormat::Edit ( ) {
    HRESULT _hr = raw_Edit();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(174)
inline HRESULT Word::OLEFormat::Open ( ) {
    HRESULT _hr = raw_Open();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(175)
inline HRESULT Word::OLEFormat::DoVerb ( VARIANT * VerbIndex ) {
    HRESULT _hr = raw_DoVerb(VerbIndex);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(176)
inline HRESULT Word::OLEFormat::ConvertTo ( VARIANT * ClassType, VARIANT * DisplayAsIcon, VARIANT * IconFileName, VARIANT * IconIndex, VARIANT * IconLabel ) {
    HRESULT _hr = raw_ConvertTo(ClassType, DisplayAsIcon, IconFileName, IconIndex, IconLabel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(177)
inline HRESULT Word::OLEFormat::ActivateAs ( _bstr_t ClassType ) {
    HRESULT _hr = raw_ActivateAs(ClassType);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(178)
inline VARIANT_BOOL Word::OLEFormat::GetPreserveFormattingOnUpdate ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PreserveFormattingOnUpdate(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(179)
inline void Word::OLEFormat::PutPreserveFormattingOnUpdate ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PreserveFormattingOnUpdate(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface LinkFormat wrapper method implementations
//

#pragma implementation_key(180)
inline Word::_ApplicationPtr Word::LinkFormat::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(181)
inline long Word::LinkFormat::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(182)
inline IDispatchPtr Word::LinkFormat::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(183)
inline VARIANT_BOOL Word::LinkFormat::GetAutoUpdate ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoUpdate(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(184)
inline void Word::LinkFormat::PutAutoUpdate ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoUpdate(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(185)
inline _bstr_t Word::LinkFormat::GetSourceName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_SourceName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(186)
inline _bstr_t Word::LinkFormat::GetSourcePath ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_SourcePath(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(187)
inline VARIANT_BOOL Word::LinkFormat::GetLocked ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Locked(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(188)
inline void Word::LinkFormat::PutLocked ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Locked(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(189)
inline enum Word::WdLinkType Word::LinkFormat::GetType ( ) {
    enum WdLinkType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(190)
inline _bstr_t Word::LinkFormat::GetSourceFullName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_SourceFullName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(191)
inline void Word::LinkFormat::PutSourceFullName ( _bstr_t prop ) {
    HRESULT _hr = put_SourceFullName(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(192)
inline VARIANT_BOOL Word::LinkFormat::GetSavePictureWithDocument ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SavePictureWithDocument(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(193)
inline void Word::LinkFormat::PutSavePictureWithDocument ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_SavePictureWithDocument(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(194)
inline HRESULT Word::LinkFormat::BreakLink ( ) {
    HRESULT _hr = raw_BreakLink();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(195)
inline HRESULT Word::LinkFormat::Update ( ) {
    HRESULT _hr = raw_Update();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Browser wrapper method implementations
//

#pragma implementation_key(196)
inline Word::_ApplicationPtr Word::Browser::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(197)
inline long Word::Browser::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(198)
inline IDispatchPtr Word::Browser::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(199)
inline enum Word::WdBrowseTarget Word::Browser::GetTarget ( ) {
    enum WdBrowseTarget _result;
    HRESULT _hr = get_Target(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(200)
inline void Word::Browser::PutTarget ( enum WdBrowseTarget prop ) {
    HRESULT _hr = put_Target(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(201)
inline HRESULT Word::Browser::Next ( ) {
    HRESULT _hr = raw_Next();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(202)
inline HRESULT Word::Browser::Previous ( ) {
    HRESULT _hr = raw_Previous();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface TextInput wrapper method implementations
//

#pragma implementation_key(203)
inline Word::_ApplicationPtr Word::TextInput::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(204)
inline long Word::TextInput::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(205)
inline IDispatchPtr Word::TextInput::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(206)
inline VARIANT_BOOL Word::TextInput::GetValid ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Valid(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(207)
inline _bstr_t Word::TextInput::GetDefault ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Default(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(208)
inline void Word::TextInput::PutDefault ( _bstr_t prop ) {
    HRESULT _hr = put_Default(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(209)
inline enum Word::WdTextFormFieldType Word::TextInput::GetType ( ) {
    enum WdTextFormFieldType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(210)
inline _bstr_t Word::TextInput::GetFormat ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(211)
inline long Word::TextInput::GetWidth ( ) {
    long _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(212)
inline void Word::TextInput::PutWidth ( long prop ) {
    HRESULT _hr = put_Width(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(213)
inline HRESULT Word::TextInput::Clear ( ) {
    HRESULT _hr = raw_Clear();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(214)
inline HRESULT Word::TextInput::EditType ( enum WdTextFormFieldType Type, VARIANT * Default, VARIANT * Format, VARIANT * Enabled ) {
    HRESULT _hr = raw_EditType(Type, Default, Format, Enabled);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface CheckBox wrapper method implementations
//

#pragma implementation_key(215)
inline Word::_ApplicationPtr Word::CheckBox::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(216)
inline long Word::CheckBox::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(217)
inline IDispatchPtr Word::CheckBox::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(218)
inline VARIANT_BOOL Word::CheckBox::GetValid ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Valid(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(219)
inline VARIANT_BOOL Word::CheckBox::GetAutoSize ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoSize(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(220)
inline void Word::CheckBox::PutAutoSize ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoSize(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(221)
inline float Word::CheckBox::GetSize ( ) {
    float _result = 0;
    HRESULT _hr = get_Size(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(222)
inline void Word::CheckBox::PutSize ( float prop ) {
    HRESULT _hr = put_Size(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(223)
inline VARIANT_BOOL Word::CheckBox::GetDefault ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Default(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(224)
inline void Word::CheckBox::PutDefault ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Default(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(225)
inline VARIANT_BOOL Word::CheckBox::GetValue ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Value(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(226)
inline void Word::CheckBox::PutValue ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Value(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface ListEntry wrapper method implementations
//

#pragma implementation_key(227)
inline Word::_ApplicationPtr Word::ListEntry::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(228)
inline long Word::ListEntry::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(229)
inline IDispatchPtr Word::ListEntry::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(230)
inline long Word::ListEntry::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(231)
inline _bstr_t Word::ListEntry::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(232)
inline void Word::ListEntry::PutName ( _bstr_t prop ) {
    HRESULT _hr = put_Name(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(233)
inline HRESULT Word::ListEntry::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface ListEntries wrapper method implementations
//

#pragma implementation_key(234)
inline Word::_ApplicationPtr Word::ListEntries::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(235)
inline long Word::ListEntries::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(236)
inline IDispatchPtr Word::ListEntries::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(237)
inline IUnknownPtr Word::ListEntries::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(238)
inline long Word::ListEntries::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(239)
inline Word::ListEntryPtr Word::ListEntries::Item ( VARIANT * Index ) {
    struct ListEntry * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ListEntryPtr(_result, false);
}

#pragma implementation_key(240)
inline Word::ListEntryPtr Word::ListEntries::Add ( _bstr_t Name, VARIANT * Index ) {
    struct ListEntry * _result = 0;
    HRESULT _hr = raw_Add(Name, Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ListEntryPtr(_result, false);
}

#pragma implementation_key(241)
inline HRESULT Word::ListEntries::Clear ( ) {
    HRESULT _hr = raw_Clear();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface DropDown wrapper method implementations
//

#pragma implementation_key(242)
inline Word::_ApplicationPtr Word::DropDown::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(243)
inline long Word::DropDown::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(244)
inline IDispatchPtr Word::DropDown::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(245)
inline VARIANT_BOOL Word::DropDown::GetValid ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Valid(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(246)
inline long Word::DropDown::GetDefault ( ) {
    long _result = 0;
    HRESULT _hr = get_Default(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(247)
inline void Word::DropDown::PutDefault ( long prop ) {
    HRESULT _hr = put_Default(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(248)
inline long Word::DropDown::GetValue ( ) {
    long _result = 0;
    HRESULT _hr = get_Value(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(249)
inline void Word::DropDown::PutValue ( long prop ) {
    HRESULT _hr = put_Value(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(250)
inline Word::ListEntriesPtr Word::DropDown::GetListEntries ( ) {
    struct ListEntries * _result = 0;
    HRESULT _hr = get_ListEntries(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ListEntriesPtr(_result, false);
}

//
// interface MailMergeFieldName wrapper method implementations
//

#pragma implementation_key(251)
inline Word::_ApplicationPtr Word::MailMergeFieldName::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(252)
inline long Word::MailMergeFieldName::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(253)
inline IDispatchPtr Word::MailMergeFieldName::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(254)
inline _bstr_t Word::MailMergeFieldName::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(255)
inline long Word::MailMergeFieldName::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface MailMergeFieldNames wrapper method implementations
//

#pragma implementation_key(256)
inline Word::_ApplicationPtr Word::MailMergeFieldNames::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(257)
inline long Word::MailMergeFieldNames::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(258)
inline IDispatchPtr Word::MailMergeFieldNames::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(259)
inline IUnknownPtr Word::MailMergeFieldNames::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(260)
inline long Word::MailMergeFieldNames::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(261)
inline Word::MailMergeFieldNamePtr Word::MailMergeFieldNames::Item ( VARIANT * Index ) {
    struct MailMergeFieldName * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return MailMergeFieldNamePtr(_result, false);
}

//
// interface MailMergeDataField wrapper method implementations
//

#pragma implementation_key(262)
inline Word::_ApplicationPtr Word::MailMergeDataField::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(263)
inline long Word::MailMergeDataField::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(264)
inline IDispatchPtr Word::MailMergeDataField::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(265)
inline _bstr_t Word::MailMergeDataField::GetValue ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Value(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(266)
inline _bstr_t Word::MailMergeDataField::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(267)
inline long Word::MailMergeDataField::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface MailMergeDataFields wrapper method implementations
//

#pragma implementation_key(268)
inline Word::_ApplicationPtr Word::MailMergeDataFields::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(269)
inline long Word::MailMergeDataFields::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(270)
inline IDispatchPtr Word::MailMergeDataFields::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(271)
inline IUnknownPtr Word::MailMergeDataFields::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(272)
inline long Word::MailMergeDataFields::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(273)
inline Word::MailMergeDataFieldPtr Word::MailMergeDataFields::Item ( VARIANT * Index ) {
    struct MailMergeDataField * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return MailMergeDataFieldPtr(_result, false);
}

//
// interface CustomLabel wrapper method implementations
//

#pragma implementation_key(274)
inline Word::_ApplicationPtr Word::CustomLabel::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(275)
inline long Word::CustomLabel::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(276)
inline IDispatchPtr Word::CustomLabel::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(277)
inline long Word::CustomLabel::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(278)
inline _bstr_t Word::CustomLabel::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(279)
inline void Word::CustomLabel::PutName ( _bstr_t prop ) {
    HRESULT _hr = put_Name(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(280)
inline float Word::CustomLabel::GetTopMargin ( ) {
    float _result = 0;
    HRESULT _hr = get_TopMargin(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(281)
inline void Word::CustomLabel::PutTopMargin ( float prop ) {
    HRESULT _hr = put_TopMargin(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(282)
inline float Word::CustomLabel::GetSideMargin ( ) {
    float _result = 0;
    HRESULT _hr = get_SideMargin(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(283)
inline void Word::CustomLabel::PutSideMargin ( float prop ) {
    HRESULT _hr = put_SideMargin(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(284)
inline float Word::CustomLabel::GetHeight ( ) {
    float _result = 0;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(285)
inline void Word::CustomLabel::PutHeight ( float prop ) {
    HRESULT _hr = put_Height(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(286)
inline float Word::CustomLabel::GetWidth ( ) {
    float _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(287)
inline void Word::CustomLabel::PutWidth ( float prop ) {
    HRESULT _hr = put_Width(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(288)
inline float Word::CustomLabel::GetVerticalPitch ( ) {
    float _result = 0;
    HRESULT _hr = get_VerticalPitch(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(289)
inline void Word::CustomLabel::PutVerticalPitch ( float prop ) {
    HRESULT _hr = put_VerticalPitch(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(290)
inline float Word::CustomLabel::GetHorizontalPitch ( ) {
    float _result = 0;
    HRESULT _hr = get_HorizontalPitch(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(291)
inline void Word::CustomLabel::PutHorizontalPitch ( float prop ) {
    HRESULT _hr = put_HorizontalPitch(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(292)
inline long Word::CustomLabel::GetNumberAcross ( ) {
    long _result = 0;
    HRESULT _hr = get_NumberAcross(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(293)
inline void Word::CustomLabel::PutNumberAcross ( long prop ) {
    HRESULT _hr = put_NumberAcross(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(294)
inline long Word::CustomLabel::GetNumberDown ( ) {
    long _result = 0;
    HRESULT _hr = get_NumberDown(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(295)
inline void Word::CustomLabel::PutNumberDown ( long prop ) {
    HRESULT _hr = put_NumberDown(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(296)
inline VARIANT_BOOL Word::CustomLabel::GetDotMatrix ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DotMatrix(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(297)
inline enum Word::WdCustomLabelPageSize Word::CustomLabel::GetPageSize ( ) {
    enum WdCustomLabelPageSize _result;
    HRESULT _hr = get_PageSize(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(298)
inline void Word::CustomLabel::PutPageSize ( enum WdCustomLabelPageSize prop ) {
    HRESULT _hr = put_PageSize(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(299)
inline VARIANT_BOOL Word::CustomLabel::GetValid ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Valid(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(300)
inline HRESULT Word::CustomLabel::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface CustomLabels wrapper method implementations
//

#pragma implementation_key(301)
inline Word::_ApplicationPtr Word::CustomLabels::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(302)
inline long Word::CustomLabels::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(303)
inline IDispatchPtr Word::CustomLabels::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(304)
inline IUnknownPtr Word::CustomLabels::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(305)
inline long Word::CustomLabels::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(306)
inline Word::CustomLabelPtr Word::CustomLabels::Item ( VARIANT * Index ) {
    struct CustomLabel * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CustomLabelPtr(_result, false);
}

#pragma implementation_key(307)
inline Word::CustomLabelPtr Word::CustomLabels::Add ( _bstr_t Name, VARIANT * DotMatrix ) {
    struct CustomLabel * _result = 0;
    HRESULT _hr = raw_Add(Name, DotMatrix, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CustomLabelPtr(_result, false);
}

//
// interface Dialog wrapper method implementations
//

#pragma implementation_key(308)
inline Word::_ApplicationPtr Word::Dialog::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(309)
inline long Word::Dialog::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(310)
inline IDispatchPtr Word::Dialog::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(311)
inline enum Word::WdWordDialogTab Word::Dialog::GetDefaultTab ( ) {
    enum WdWordDialogTab _result;
    HRESULT _hr = get_DefaultTab(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(312)
inline void Word::Dialog::PutDefaultTab ( enum WdWordDialogTab prop ) {
    HRESULT _hr = put_DefaultTab(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(313)
inline enum Word::WdWordDialog Word::Dialog::GetType ( ) {
    enum WdWordDialog _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(314)
inline long Word::Dialog::Show ( VARIANT * TimeOut ) {
    long _result = 0;
    HRESULT _hr = raw_Show(TimeOut, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(315)
inline long Word::Dialog::Display ( VARIANT * TimeOut ) {
    long _result = 0;
    HRESULT _hr = raw_Display(TimeOut, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(316)
inline HRESULT Word::Dialog::Execute ( ) {
    HRESULT _hr = raw_Execute();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(317)
inline HRESULT Word::Dialog::Update ( ) {
    HRESULT _hr = raw_Update();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(318)
inline _bstr_t Word::Dialog::GetCommandName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_CommandName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(319)
inline long Word::Dialog::GetCommandBarId ( ) {
    long _result = 0;
    HRESULT _hr = get_CommandBarId(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface Dialogs wrapper method implementations
//

#pragma implementation_key(320)
inline Word::_ApplicationPtr Word::Dialogs::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(321)
inline long Word::Dialogs::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(322)
inline IDispatchPtr Word::Dialogs::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(323)
inline IUnknownPtr Word::Dialogs::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(324)
inline long Word::Dialogs::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(325)
inline Word::DialogPtr Word::Dialogs::Item ( enum WdWordDialog Index ) {
    struct Dialog * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DialogPtr(_result, false);
}

//
// interface LineNumbering wrapper method implementations
//

#pragma implementation_key(326)
inline Word::_ApplicationPtr Word::LineNumbering::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(327)
inline long Word::LineNumbering::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(328)
inline IDispatchPtr Word::LineNumbering::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(329)
inline enum Word::WdNumberingRule Word::LineNumbering::GetRestartMode ( ) {
    enum WdNumberingRule _result;
    HRESULT _hr = get_RestartMode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(330)
inline void Word::LineNumbering::PutRestartMode ( enum WdNumberingRule prop ) {
    HRESULT _hr = put_RestartMode(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(331)
inline long Word::LineNumbering::GetStartingNumber ( ) {
    long _result = 0;
    HRESULT _hr = get_StartingNumber(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(332)
inline void Word::LineNumbering::PutStartingNumber ( long prop ) {
    HRESULT _hr = put_StartingNumber(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(333)
inline float Word::LineNumbering::GetDistanceFromText ( ) {
    float _result = 0;
    HRESULT _hr = get_DistanceFromText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(334)
inline void Word::LineNumbering::PutDistanceFromText ( float prop ) {
    HRESULT _hr = put_DistanceFromText(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(335)
inline long Word::LineNumbering::GetCountBy ( ) {
    long _result = 0;
    HRESULT _hr = get_CountBy(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(336)
inline void Word::LineNumbering::PutCountBy ( long prop ) {
    HRESULT _hr = put_CountBy(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(337)
inline long Word::LineNumbering::GetActive ( ) {
    long _result = 0;
    HRESULT _hr = get_Active(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(338)
inline void Word::LineNumbering::PutActive ( long prop ) {
    HRESULT _hr = put_Active(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface TextColumn wrapper method implementations
//

#pragma implementation_key(339)
inline Word::_ApplicationPtr Word::TextColumn::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(340)
inline long Word::TextColumn::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(341)
inline IDispatchPtr Word::TextColumn::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(342)
inline float Word::TextColumn::GetWidth ( ) {
    float _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(343)
inline void Word::TextColumn::PutWidth ( float prop ) {
    HRESULT _hr = put_Width(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(344)
inline float Word::TextColumn::GetSpaceAfter ( ) {
    float _result = 0;
    HRESULT _hr = get_SpaceAfter(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(345)
inline void Word::TextColumn::PutSpaceAfter ( float prop ) {
    HRESULT _hr = put_SpaceAfter(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface TableOfAuthoritiesCategory wrapper method implementations
//

#pragma implementation_key(346)
inline Word::_ApplicationPtr Word::TableOfAuthoritiesCategory::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(347)
inline long Word::TableOfAuthoritiesCategory::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(348)
inline IDispatchPtr Word::TableOfAuthoritiesCategory::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(349)
inline _bstr_t Word::TableOfAuthoritiesCategory::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(350)
inline void Word::TableOfAuthoritiesCategory::PutName ( _bstr_t prop ) {
    HRESULT _hr = put_Name(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(351)
inline long Word::TableOfAuthoritiesCategory::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface TablesOfAuthoritiesCategories wrapper method implementations
//

#pragma implementation_key(352)
inline Word::_ApplicationPtr Word::TablesOfAuthoritiesCategories::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(353)
inline long Word::TablesOfAuthoritiesCategories::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(354)
inline IDispatchPtr Word::TablesOfAuthoritiesCategories::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(355)
inline IUnknownPtr Word::TablesOfAuthoritiesCategories::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(356)
inline long Word::TablesOfAuthoritiesCategories::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(357)
inline Word::TableOfAuthoritiesCategoryPtr Word::TablesOfAuthoritiesCategories::Item ( VARIANT * Index ) {
    struct TableOfAuthoritiesCategory * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TableOfAuthoritiesCategoryPtr(_result, false);
}

//
// interface CaptionLabel wrapper method implementations
//

#pragma implementation_key(358)
inline Word::_ApplicationPtr Word::CaptionLabel::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(359)
inline long Word::CaptionLabel::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(360)
inline IDispatchPtr Word::CaptionLabel::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(361)
inline _bstr_t Word::CaptionLabel::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(362)
inline VARIANT_BOOL Word::CaptionLabel::GetBuiltIn ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_BuiltIn(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(363)
inline enum Word::WdCaptionLabelID Word::CaptionLabel::GetID ( ) {
    enum WdCaptionLabelID _result;
    HRESULT _hr = get_ID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(364)
inline VARIANT_BOOL Word::CaptionLabel::GetIncludeChapterNumber ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IncludeChapterNumber(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(365)
inline void Word::CaptionLabel::PutIncludeChapterNumber ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_IncludeChapterNumber(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(366)
inline enum Word::WdCaptionNumberStyle Word::CaptionLabel::GetNumberStyle ( ) {
    enum WdCaptionNumberStyle _result;
    HRESULT _hr = get_NumberStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(367)
inline void Word::CaptionLabel::PutNumberStyle ( enum WdCaptionNumberStyle prop ) {
    HRESULT _hr = put_NumberStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(368)
inline long Word::CaptionLabel::GetChapterStyleLevel ( ) {
    long _result = 0;
    HRESULT _hr = get_ChapterStyleLevel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(369)
inline void Word::CaptionLabel::PutChapterStyleLevel ( long prop ) {
    HRESULT _hr = put_ChapterStyleLevel(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(370)
inline enum Word::WdSeparatorType Word::CaptionLabel::GetSeparator ( ) {
    enum WdSeparatorType _result;
    HRESULT _hr = get_Separator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(371)
inline void Word::CaptionLabel::PutSeparator ( enum WdSeparatorType prop ) {
    HRESULT _hr = put_Separator(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(372)
inline enum Word::WdCaptionPosition Word::CaptionLabel::GetPosition ( ) {
    enum WdCaptionPosition _result;
    HRESULT _hr = get_Position(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(373)
inline void Word::CaptionLabel::PutPosition ( enum WdCaptionPosition prop ) {
    HRESULT _hr = put_Position(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(374)
inline HRESULT Word::CaptionLabel::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface CaptionLabels wrapper method implementations
//

#pragma implementation_key(375)
inline Word::_ApplicationPtr Word::CaptionLabels::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(376)
inline long Word::CaptionLabels::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(377)
inline IDispatchPtr Word::CaptionLabels::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(378)
inline IUnknownPtr Word::CaptionLabels::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(379)
inline long Word::CaptionLabels::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(380)
inline Word::CaptionLabelPtr Word::CaptionLabels::Item ( VARIANT * Index ) {
    struct CaptionLabel * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CaptionLabelPtr(_result, false);
}

#pragma implementation_key(381)
inline Word::CaptionLabelPtr Word::CaptionLabels::Add ( _bstr_t Name ) {
    struct CaptionLabel * _result = 0;
    HRESULT _hr = raw_Add(Name, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CaptionLabelPtr(_result, false);
}

//
// interface AutoCaption wrapper method implementations
//

#pragma implementation_key(382)
inline Word::_ApplicationPtr Word::AutoCaption::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(383)
inline long Word::AutoCaption::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(384)
inline IDispatchPtr Word::AutoCaption::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(385)
inline _bstr_t Word::AutoCaption::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(386)
inline VARIANT_BOOL Word::AutoCaption::GetAutoInsert ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoInsert(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(387)
inline void Word::AutoCaption::PutAutoInsert ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoInsert(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(388)
inline long Word::AutoCaption::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(389)
inline _variant_t Word::AutoCaption::GetCaptionLabel ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_CaptionLabel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(390)
inline void Word::AutoCaption::PutCaptionLabel ( VARIANT * prop ) {
    HRESULT _hr = put_CaptionLabel(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface AutoCaptions wrapper method implementations
//

#pragma implementation_key(391)
inline Word::_ApplicationPtr Word::AutoCaptions::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(392)
inline long Word::AutoCaptions::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(393)
inline IDispatchPtr Word::AutoCaptions::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(394)
inline IUnknownPtr Word::AutoCaptions::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(395)
inline long Word::AutoCaptions::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(396)
inline Word::AutoCaptionPtr Word::AutoCaptions::Item ( VARIANT * Index ) {
    struct AutoCaption * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return AutoCaptionPtr(_result, false);
}

#pragma implementation_key(397)
inline HRESULT Word::AutoCaptions::CancelAutoInsert ( ) {
    HRESULT _hr = raw_CancelAutoInsert();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface AddIn wrapper method implementations
//

#pragma implementation_key(398)
inline Word::_ApplicationPtr Word::AddIn::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(399)
inline long Word::AddIn::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(400)
inline IDispatchPtr Word::AddIn::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(401)
inline _bstr_t Word::AddIn::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(402)
inline long Word::AddIn::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(403)
inline _bstr_t Word::AddIn::GetPath ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Path(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(404)
inline VARIANT_BOOL Word::AddIn::GetInstalled ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Installed(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(405)
inline void Word::AddIn::PutInstalled ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Installed(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(406)
inline VARIANT_BOOL Word::AddIn::GetCompiled ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Compiled(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(407)
inline VARIANT_BOOL Word::AddIn::GetAutoload ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Autoload(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(408)
inline HRESULT Word::AddIn::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface AddIns wrapper method implementations
//

#pragma implementation_key(409)
inline Word::_ApplicationPtr Word::AddIns::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(410)
inline long Word::AddIns::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(411)
inline IDispatchPtr Word::AddIns::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(412)
inline IUnknownPtr Word::AddIns::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(413)
inline long Word::AddIns::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(414)
inline Word::AddInPtr Word::AddIns::Item ( VARIANT * Index ) {
    struct AddIn * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return AddInPtr(_result, false);
}

#pragma implementation_key(415)
inline Word::AddInPtr Word::AddIns::Add ( _bstr_t FileName, VARIANT * Install ) {
    struct AddIn * _result = 0;
    HRESULT _hr = raw_Add(FileName, Install, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return AddInPtr(_result, false);
}

#pragma implementation_key(416)
inline HRESULT Word::AddIns::Unload ( VARIANT_BOOL RemoveFromList ) {
    HRESULT _hr = raw_Unload(RemoveFromList);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Task wrapper method implementations
//

#pragma implementation_key(417)
inline Word::_ApplicationPtr Word::Task::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(418)
inline long Word::Task::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(419)
inline IDispatchPtr Word::Task::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(420)
inline _bstr_t Word::Task::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(421)
inline long Word::Task::GetLeft ( ) {
    long _result = 0;
    HRESULT _hr = get_Left(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(422)
inline void Word::Task::PutLeft ( long prop ) {
    HRESULT _hr = put_Left(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(423)
inline long Word::Task::GetTop ( ) {
    long _result = 0;
    HRESULT _hr = get_Top(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(424)
inline void Word::Task::PutTop ( long prop ) {
    HRESULT _hr = put_Top(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(425)
inline long Word::Task::GetWidth ( ) {
    long _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(426)
inline void Word::Task::PutWidth ( long prop ) {
    HRESULT _hr = put_Width(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(427)
inline long Word::Task::GetHeight ( ) {
    long _result = 0;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(428)
inline void Word::Task::PutHeight ( long prop ) {
    HRESULT _hr = put_Height(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(429)
inline enum Word::WdWindowState Word::Task::GetWindowState ( ) {
    enum WdWindowState _result;
    HRESULT _hr = get_WindowState(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(430)
inline void Word::Task::PutWindowState ( enum WdWindowState prop ) {
    HRESULT _hr = put_WindowState(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(431)
inline VARIANT_BOOL Word::Task::GetVisible ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Visible(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(432)
inline void Word::Task::PutVisible ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Visible(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(433)
inline HRESULT Word::Task::Activate ( VARIANT * Wait ) {
    HRESULT _hr = raw_Activate(Wait);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(434)
inline HRESULT Word::Task::Close ( ) {
    HRESULT _hr = raw_Close();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(435)
inline HRESULT Word::Task::Move ( long Left, long Top ) {
    HRESULT _hr = raw_Move(Left, Top);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(436)
inline HRESULT Word::Task::Resize ( long Width, long Height ) {
    HRESULT _hr = raw_Resize(Width, Height);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(437)
inline HRESULT Word::Task::SendWindowMessage ( long Message, long wParam, long lParam ) {
    HRESULT _hr = raw_SendWindowMessage(Message, wParam, lParam);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Tasks wrapper method implementations
//

#pragma implementation_key(438)
inline Word::_ApplicationPtr Word::Tasks::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(439)
inline long Word::Tasks::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(440)
inline IDispatchPtr Word::Tasks::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(441)
inline IUnknownPtr Word::Tasks::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(442)
inline long Word::Tasks::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(443)
inline Word::TaskPtr Word::Tasks::Item ( VARIANT * Index ) {
    struct Task * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TaskPtr(_result, false);
}

#pragma implementation_key(444)
inline VARIANT_BOOL Word::Tasks::Exists ( _bstr_t Name ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_Exists(Name, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(445)
inline HRESULT Word::Tasks::WordExitWindows ( ) {
    HRESULT _hr = raw_WordExitWindows();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface PageNumber wrapper method implementations
//

#pragma implementation_key(446)
inline Word::_ApplicationPtr Word::PageNumber::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(447)
inline long Word::PageNumber::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(448)
inline IDispatchPtr Word::PageNumber::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(449)
inline long Word::PageNumber::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(450)
inline enum Word::WdPageNumberAlignment Word::PageNumber::GetAlignment ( ) {
    enum WdPageNumberAlignment _result;
    HRESULT _hr = get_Alignment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(451)
inline void Word::PageNumber::PutAlignment ( enum WdPageNumberAlignment prop ) {
    HRESULT _hr = put_Alignment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(452)
inline HRESULT Word::PageNumber::Select ( ) {
    HRESULT _hr = raw_Select();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(453)
inline HRESULT Word::PageNumber::Copy ( ) {
    HRESULT _hr = raw_Copy();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(454)
inline HRESULT Word::PageNumber::Cut ( ) {
    HRESULT _hr = raw_Cut();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(455)
inline HRESULT Word::PageNumber::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface PageNumbers wrapper method implementations
//

#pragma implementation_key(456)
inline Word::_ApplicationPtr Word::PageNumbers::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(457)
inline long Word::PageNumbers::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(458)
inline IDispatchPtr Word::PageNumbers::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(459)
inline IUnknownPtr Word::PageNumbers::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(460)
inline long Word::PageNumbers::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(461)
inline enum Word::WdPageNumberStyle Word::PageNumbers::GetNumberStyle ( ) {
    enum WdPageNumberStyle _result;
    HRESULT _hr = get_NumberStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(462)
inline void Word::PageNumbers::PutNumberStyle ( enum WdPageNumberStyle prop ) {
    HRESULT _hr = put_NumberStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(463)
inline VARIANT_BOOL Word::PageNumbers::GetIncludeChapterNumber ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IncludeChapterNumber(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(464)
inline void Word::PageNumbers::PutIncludeChapterNumber ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_IncludeChapterNumber(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(465)
inline long Word::PageNumbers::GetHeadingLevelForChapter ( ) {
    long _result = 0;
    HRESULT _hr = get_HeadingLevelForChapter(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(466)
inline void Word::PageNumbers::PutHeadingLevelForChapter ( long prop ) {
    HRESULT _hr = put_HeadingLevelForChapter(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(467)
inline enum Word::WdSeparatorType Word::PageNumbers::GetChapterPageSeparator ( ) {
    enum WdSeparatorType _result;
    HRESULT _hr = get_ChapterPageSeparator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(468)
inline void Word::PageNumbers::PutChapterPageSeparator ( enum WdSeparatorType prop ) {
    HRESULT _hr = put_ChapterPageSeparator(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(469)
inline VARIANT_BOOL Word::PageNumbers::GetRestartNumberingAtSection ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_RestartNumberingAtSection(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(470)
inline void Word::PageNumbers::PutRestartNumberingAtSection ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_RestartNumberingAtSection(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(471)
inline long Word::PageNumbers::GetStartingNumber ( ) {
    long _result = 0;
    HRESULT _hr = get_StartingNumber(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(472)
inline void Word::PageNumbers::PutStartingNumber ( long prop ) {
    HRESULT _hr = put_StartingNumber(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(473)
inline VARIANT_BOOL Word::PageNumbers::GetShowFirstPageNumber ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowFirstPageNumber(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(474)
inline void Word::PageNumbers::PutShowFirstPageNumber ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowFirstPageNumber(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(475)
inline Word::PageNumberPtr Word::PageNumbers::Item ( long Index ) {
    struct PageNumber * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return PageNumberPtr(_result, false);
}

#pragma implementation_key(476)
inline Word::PageNumberPtr Word::PageNumbers::Add ( VARIANT * PageNumberAlignment, VARIANT * FirstPage ) {
    struct PageNumber * _result = 0;
    HRESULT _hr = raw_Add(PageNumberAlignment, FirstPage, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return PageNumberPtr(_result, false);
}

#pragma implementation_key(477)
inline VARIANT_BOOL Word::PageNumbers::GetDoubleQuote ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DoubleQuote(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(478)
inline void Word::PageNumbers::PutDoubleQuote ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DoubleQuote(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface HeadingStyle wrapper method implementations
//

#pragma implementation_key(479)
inline Word::_ApplicationPtr Word::HeadingStyle::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(480)
inline long Word::HeadingStyle::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(481)
inline IDispatchPtr Word::HeadingStyle::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(482)
inline _variant_t Word::HeadingStyle::GetStyle ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Style(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(483)
inline void Word::HeadingStyle::PutStyle ( VARIANT * prop ) {
    HRESULT _hr = put_Style(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(484)
inline short Word::HeadingStyle::GetLevel ( ) {
    short _result = 0;
    HRESULT _hr = get_Level(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(485)
inline void Word::HeadingStyle::PutLevel ( short prop ) {
    HRESULT _hr = put_Level(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(486)
inline HRESULT Word::HeadingStyle::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface HeadingStyles wrapper method implementations
//

#pragma implementation_key(487)
inline Word::_ApplicationPtr Word::HeadingStyles::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(488)
inline long Word::HeadingStyles::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(489)
inline IDispatchPtr Word::HeadingStyles::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(490)
inline IUnknownPtr Word::HeadingStyles::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(491)
inline long Word::HeadingStyles::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(492)
inline Word::HeadingStylePtr Word::HeadingStyles::Item ( long Index ) {
    struct HeadingStyle * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HeadingStylePtr(_result, false);
}

#pragma implementation_key(493)
inline Word::HeadingStylePtr Word::HeadingStyles::Add ( VARIANT * Style, short Level ) {
    struct HeadingStyle * _result = 0;
    HRESULT _hr = raw_Add(Style, Level, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HeadingStylePtr(_result, false);
}

//
// interface KeyBinding wrapper method implementations
//

#pragma implementation_key(494)
inline Word::_ApplicationPtr Word::KeyBinding::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(495)
inline long Word::KeyBinding::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(496)
inline IDispatchPtr Word::KeyBinding::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(497)
inline _bstr_t Word::KeyBinding::GetCommand ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Command(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(498)
inline _bstr_t Word::KeyBinding::GetKeyString ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_KeyString(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(499)
inline VARIANT_BOOL Word::KeyBinding::GetProtected ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Protected(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(500)
inline enum Word::WdKeyCategory Word::KeyBinding::GetKeyCategory ( ) {
    enum WdKeyCategory _result;
    HRESULT _hr = get_KeyCategory(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(501)
inline long Word::KeyBinding::GetKeyCode ( ) {
    long _result = 0;
    HRESULT _hr = get_KeyCode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(502)
inline long Word::KeyBinding::GetKeyCode2 ( ) {
    long _result = 0;
    HRESULT _hr = get_KeyCode2(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(503)
inline _bstr_t Word::KeyBinding::GetCommandParameter ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_CommandParameter(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(504)
inline IDispatchPtr Word::KeyBinding::GetContext ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Context(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(505)
inline HRESULT Word::KeyBinding::Clear ( ) {
    HRESULT _hr = raw_Clear();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(506)
inline HRESULT Word::KeyBinding::Disable ( ) {
    HRESULT _hr = raw_Disable();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(507)
inline HRESULT Word::KeyBinding::Execute ( ) {
    HRESULT _hr = raw_Execute();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(508)
inline HRESULT Word::KeyBinding::Rebind ( enum WdKeyCategory KeyCategory, _bstr_t Command, VARIANT * CommandParameter ) {
    HRESULT _hr = raw_Rebind(KeyCategory, Command, CommandParameter);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface KeyBindings wrapper method implementations
//

#pragma implementation_key(509)
inline Word::_ApplicationPtr Word::KeyBindings::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(510)
inline long Word::KeyBindings::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(511)
inline IDispatchPtr Word::KeyBindings::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(512)
inline IUnknownPtr Word::KeyBindings::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(513)
inline long Word::KeyBindings::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(514)
inline IDispatchPtr Word::KeyBindings::GetContext ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Context(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(515)
inline Word::KeyBindingPtr Word::KeyBindings::Item ( long Index ) {
    struct KeyBinding * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return KeyBindingPtr(_result, false);
}

#pragma implementation_key(516)
inline Word::KeyBindingPtr Word::KeyBindings::Add ( enum WdKeyCategory KeyCategory, _bstr_t Command, long KeyCode, VARIANT * KeyCode2, VARIANT * CommandParameter ) {
    struct KeyBinding * _result = 0;
    HRESULT _hr = raw_Add(KeyCategory, Command, KeyCode, KeyCode2, CommandParameter, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return KeyBindingPtr(_result, false);
}

#pragma implementation_key(517)
inline HRESULT Word::KeyBindings::ClearAll ( ) {
    HRESULT _hr = raw_ClearAll();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(518)
inline Word::KeyBindingPtr Word::KeyBindings::Key ( long KeyCode, VARIANT * KeyCode2 ) {
    struct KeyBinding * _result = 0;
    HRESULT _hr = raw_Key(KeyCode, KeyCode2, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return KeyBindingPtr(_result, false);
}

//
// interface KeysBoundTo wrapper method implementations
//

#pragma implementation_key(519)
inline Word::_ApplicationPtr Word::KeysBoundTo::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(520)
inline long Word::KeysBoundTo::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(521)
inline IDispatchPtr Word::KeysBoundTo::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(522)
inline IUnknownPtr Word::KeysBoundTo::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(523)
inline long Word::KeysBoundTo::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(524)
inline enum Word::WdKeyCategory Word::KeysBoundTo::GetKeyCategory ( ) {
    enum WdKeyCategory _result;
    HRESULT _hr = get_KeyCategory(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(525)
inline _bstr_t Word::KeysBoundTo::GetCommand ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Command(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(526)
inline _bstr_t Word::KeysBoundTo::GetCommandParameter ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_CommandParameter(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(527)
inline IDispatchPtr Word::KeysBoundTo::GetContext ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Context(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(528)
inline Word::KeyBindingPtr Word::KeysBoundTo::Item ( long Index ) {
    struct KeyBinding * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return KeyBindingPtr(_result, false);
}

#pragma implementation_key(529)
inline Word::KeyBindingPtr Word::KeysBoundTo::Key ( long KeyCode, VARIANT * KeyCode2 ) {
    struct KeyBinding * _result = 0;
    HRESULT _hr = raw_Key(KeyCode, KeyCode2, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return KeyBindingPtr(_result, false);
}

//
// interface FileConverter wrapper method implementations
//

#pragma implementation_key(530)
inline Word::_ApplicationPtr Word::FileConverter::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(531)
inline long Word::FileConverter::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(532)
inline IDispatchPtr Word::FileConverter::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(533)
inline _bstr_t Word::FileConverter::GetFormatName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_FormatName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(534)
inline _bstr_t Word::FileConverter::GetClassName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_ClassName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(535)
inline long Word::FileConverter::GetSaveFormat ( ) {
    long _result = 0;
    HRESULT _hr = get_SaveFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(536)
inline long Word::FileConverter::GetOpenFormat ( ) {
    long _result = 0;
    HRESULT _hr = get_OpenFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(537)
inline VARIANT_BOOL Word::FileConverter::GetCanSave ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_CanSave(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(538)
inline VARIANT_BOOL Word::FileConverter::GetCanOpen ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_CanOpen(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(539)
inline _bstr_t Word::FileConverter::GetPath ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Path(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(540)
inline _bstr_t Word::FileConverter::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(541)
inline _bstr_t Word::FileConverter::GetExtensions ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Extensions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

//
// interface FileConverters wrapper method implementations
//

#pragma implementation_key(542)
inline Word::_ApplicationPtr Word::FileConverters::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(543)
inline long Word::FileConverters::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(544)
inline IDispatchPtr Word::FileConverters::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(545)
inline long Word::FileConverters::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(546)
inline IUnknownPtr Word::FileConverters::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(547)
inline enum Word::WdChevronConvertRule Word::FileConverters::GetConvertMacWordChevrons ( ) {
    enum WdChevronConvertRule _result;
    HRESULT _hr = get_ConvertMacWordChevrons(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(548)
inline void Word::FileConverters::PutConvertMacWordChevrons ( enum WdChevronConvertRule prop ) {
    HRESULT _hr = put_ConvertMacWordChevrons(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(549)
inline Word::FileConverterPtr Word::FileConverters::Item ( VARIANT * Index ) {
    struct FileConverter * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FileConverterPtr(_result, false);
}

//
// interface SynonymInfo wrapper method implementations
//

#pragma implementation_key(550)
inline Word::_ApplicationPtr Word::SynonymInfo::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(551)
inline long Word::SynonymInfo::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(552)
inline IDispatchPtr Word::SynonymInfo::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(553)
inline _bstr_t Word::SynonymInfo::GetWord ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Word(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(554)
inline VARIANT_BOOL Word::SynonymInfo::GetFound ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Found(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(555)
inline long Word::SynonymInfo::GetMeaningCount ( ) {
    long _result = 0;
    HRESULT _hr = get_MeaningCount(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(556)
inline _variant_t Word::SynonymInfo::GetMeaningList ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_MeaningList(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(557)
inline _variant_t Word::SynonymInfo::GetPartOfSpeechList ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_PartOfSpeechList(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(558)
inline _variant_t Word::SynonymInfo::GetSynonymList ( VARIANT * Meaning ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_SynonymList(Meaning, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(559)
inline _variant_t Word::SynonymInfo::GetAntonymList ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_AntonymList(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(560)
inline _variant_t Word::SynonymInfo::GetRelatedExpressionList ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_RelatedExpressionList(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(561)
inline _variant_t Word::SynonymInfo::GetRelatedWordList ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_RelatedWordList(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

//
// interface Zoom wrapper method implementations
//

#pragma implementation_key(562)
inline Word::_ApplicationPtr Word::Zoom::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(563)
inline long Word::Zoom::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(564)
inline IDispatchPtr Word::Zoom::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(565)
inline long Word::Zoom::GetPercentage ( ) {
    long _result = 0;
    HRESULT _hr = get_Percentage(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(566)
inline void Word::Zoom::PutPercentage ( long prop ) {
    HRESULT _hr = put_Percentage(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(567)
inline enum Word::WdPageFit Word::Zoom::GetPageFit ( ) {
    enum WdPageFit _result;
    HRESULT _hr = get_PageFit(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(568)
inline void Word::Zoom::PutPageFit ( enum WdPageFit prop ) {
    HRESULT _hr = put_PageFit(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(569)
inline long Word::Zoom::GetPageRows ( ) {
    long _result = 0;
    HRESULT _hr = get_PageRows(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(570)
inline void Word::Zoom::PutPageRows ( long prop ) {
    HRESULT _hr = put_PageRows(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(571)
inline long Word::Zoom::GetPageColumns ( ) {
    long _result = 0;
    HRESULT _hr = get_PageColumns(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(572)
inline void Word::Zoom::PutPageColumns ( long prop ) {
    HRESULT _hr = put_PageColumns(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface Zooms wrapper method implementations
//

#pragma implementation_key(573)
inline Word::_ApplicationPtr Word::Zooms::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(574)
inline long Word::Zooms::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(575)
inline IDispatchPtr Word::Zooms::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(576)
inline Word::ZoomPtr Word::Zooms::Item ( enum WdViewType Index ) {
    struct Zoom * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ZoomPtr(_result, false);
}

//
// interface SpellingSuggestion wrapper method implementations
//

#pragma implementation_key(577)
inline Word::_ApplicationPtr Word::SpellingSuggestion::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(578)
inline long Word::SpellingSuggestion::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(579)
inline IDispatchPtr Word::SpellingSuggestion::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(580)
inline _bstr_t Word::SpellingSuggestion::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

//
// interface SpellingSuggestions wrapper method implementations
//

#pragma implementation_key(581)
inline Word::_ApplicationPtr Word::SpellingSuggestions::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(582)
inline long Word::SpellingSuggestions::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(583)
inline IDispatchPtr Word::SpellingSuggestions::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(584)
inline IUnknownPtr Word::SpellingSuggestions::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(585)
inline long Word::SpellingSuggestions::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(586)
inline enum Word::WdSpellingErrorType Word::SpellingSuggestions::GetSpellingErrorType ( ) {
    enum WdSpellingErrorType _result;
    HRESULT _hr = get_SpellingErrorType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(587)
inline Word::SpellingSuggestionPtr Word::SpellingSuggestions::Item ( long Index ) {
    struct SpellingSuggestion * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SpellingSuggestionPtr(_result, false);
}

//
// interface Dictionary wrapper method implementations
//

#pragma implementation_key(588)
inline Word::_ApplicationPtr Word::Dictionary::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(589)
inline long Word::Dictionary::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(590)
inline IDispatchPtr Word::Dictionary::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(591)
inline _bstr_t Word::Dictionary::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(592)
inline _bstr_t Word::Dictionary::GetPath ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Path(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(593)
inline enum Word::WdLanguageID Word::Dictionary::GetLanguageID ( ) {
    enum WdLanguageID _result;
    HRESULT _hr = get_LanguageID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(594)
inline void Word::Dictionary::PutLanguageID ( enum WdLanguageID prop ) {
    HRESULT _hr = put_LanguageID(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(595)
inline VARIANT_BOOL Word::Dictionary::GetReadOnly ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ReadOnly(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(596)
inline enum Word::WdDictionaryType Word::Dictionary::GetType ( ) {
    enum WdDictionaryType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(597)
inline VARIANT_BOOL Word::Dictionary::GetLanguageSpecific ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_LanguageSpecific(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(598)
inline void Word::Dictionary::PutLanguageSpecific ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_LanguageSpecific(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(599)
inline HRESULT Word::Dictionary::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Language wrapper method implementations
//

#pragma implementation_key(600)
inline Word::_ApplicationPtr Word::Language::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(601)
inline long Word::Language::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(602)
inline IDispatchPtr Word::Language::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(603)
inline enum Word::WdLanguageID Word::Language::GetID ( ) {
    enum WdLanguageID _result;
    HRESULT _hr = get_ID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(604)
inline _bstr_t Word::Language::GetNameLocal ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_NameLocal(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(605)
inline _bstr_t Word::Language::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(606)
inline Word::DictionaryPtr Word::Language::GetActiveGrammarDictionary ( ) {
    struct Dictionary * _result = 0;
    HRESULT _hr = get_ActiveGrammarDictionary(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DictionaryPtr(_result, false);
}

#pragma implementation_key(607)
inline Word::DictionaryPtr Word::Language::GetActiveHyphenationDictionary ( ) {
    struct Dictionary * _result = 0;
    HRESULT _hr = get_ActiveHyphenationDictionary(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DictionaryPtr(_result, false);
}

#pragma implementation_key(608)
inline Word::DictionaryPtr Word::Language::GetActiveSpellingDictionary ( ) {
    struct Dictionary * _result = 0;
    HRESULT _hr = get_ActiveSpellingDictionary(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DictionaryPtr(_result, false);
}

#pragma implementation_key(609)
inline Word::DictionaryPtr Word::Language::GetActiveThesaurusDictionary ( ) {
    struct Dictionary * _result = 0;
    HRESULT _hr = get_ActiveThesaurusDictionary(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DictionaryPtr(_result, false);
}

#pragma implementation_key(610)
inline _bstr_t Word::Language::GetDefaultWritingStyle ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_DefaultWritingStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(611)
inline void Word::Language::PutDefaultWritingStyle ( _bstr_t prop ) {
    HRESULT _hr = put_DefaultWritingStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(612)
inline _variant_t Word::Language::GetWritingStyleList ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_WritingStyleList(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(613)
inline enum Word::WdDictionaryType Word::Language::GetSpellingDictionaryType ( ) {
    enum WdDictionaryType _result;
    HRESULT _hr = get_SpellingDictionaryType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(614)
inline void Word::Language::PutSpellingDictionaryType ( enum WdDictionaryType prop ) {
    HRESULT _hr = put_SpellingDictionaryType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface Languages wrapper method implementations
//

#pragma implementation_key(615)
inline IUnknownPtr Word::Languages::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(616)
inline long Word::Languages::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(617)
inline Word::_ApplicationPtr Word::Languages::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(618)
inline long Word::Languages::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(619)
inline IDispatchPtr Word::Languages::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(620)
inline Word::LanguagePtr Word::Languages::Item ( VARIANT * Index ) {
    struct Language * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return LanguagePtr(_result, false);
}

//
// interface Dictionaries wrapper method implementations
//

#pragma implementation_key(621)
inline Word::_ApplicationPtr Word::Dictionaries::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(622)
inline long Word::Dictionaries::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(623)
inline IDispatchPtr Word::Dictionaries::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(624)
inline IUnknownPtr Word::Dictionaries::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(625)
inline long Word::Dictionaries::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(626)
inline long Word::Dictionaries::GetMaximum ( ) {
    long _result = 0;
    HRESULT _hr = get_Maximum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(627)
inline Word::DictionaryPtr Word::Dictionaries::GetActiveCustomDictionary ( ) {
    struct Dictionary * _result = 0;
    HRESULT _hr = get_ActiveCustomDictionary(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DictionaryPtr(_result, false);
}

#pragma implementation_key(628)
inline void Word::Dictionaries::PutActiveCustomDictionary ( struct Dictionary * prop ) {
    HRESULT _hr = put_ActiveCustomDictionary(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(629)
inline Word::DictionaryPtr Word::Dictionaries::Item ( VARIANT * Index ) {
    struct Dictionary * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DictionaryPtr(_result, false);
}

#pragma implementation_key(630)
inline Word::DictionaryPtr Word::Dictionaries::Add ( _bstr_t FileName ) {
    struct Dictionary * _result = 0;
    HRESULT _hr = raw_Add(FileName, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DictionaryPtr(_result, false);
}

#pragma implementation_key(631)
inline HRESULT Word::Dictionaries::ClearAll ( ) {
    HRESULT _hr = raw_ClearAll();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface HangulHanjaConversionDictionaries wrapper method implementations
//

#pragma implementation_key(632)
inline Word::_ApplicationPtr Word::HangulHanjaConversionDictionaries::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(633)
inline long Word::HangulHanjaConversionDictionaries::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(634)
inline IDispatchPtr Word::HangulHanjaConversionDictionaries::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(635)
inline IUnknownPtr Word::HangulHanjaConversionDictionaries::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(636)
inline long Word::HangulHanjaConversionDictionaries::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(637)
inline long Word::HangulHanjaConversionDictionaries::GetMaximum ( ) {
    long _result = 0;
    HRESULT _hr = get_Maximum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(638)
inline Word::DictionaryPtr Word::HangulHanjaConversionDictionaries::GetActiveCustomDictionary ( ) {
    struct Dictionary * _result = 0;
    HRESULT _hr = get_ActiveCustomDictionary(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DictionaryPtr(_result, false);
}

#pragma implementation_key(639)
inline void Word::HangulHanjaConversionDictionaries::PutActiveCustomDictionary ( struct Dictionary * prop ) {
    HRESULT _hr = put_ActiveCustomDictionary(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(640)
inline Word::DictionaryPtr Word::HangulHanjaConversionDictionaries::GetBuiltinDictionary ( ) {
    struct Dictionary * _result = 0;
    HRESULT _hr = get_BuiltinDictionary(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DictionaryPtr(_result, false);
}

#pragma implementation_key(641)
inline Word::DictionaryPtr Word::HangulHanjaConversionDictionaries::Item ( VARIANT * Index ) {
    struct Dictionary * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DictionaryPtr(_result, false);
}

#pragma implementation_key(642)
inline Word::DictionaryPtr Word::HangulHanjaConversionDictionaries::Add ( _bstr_t FileName ) {
    struct Dictionary * _result = 0;
    HRESULT _hr = raw_Add(FileName, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DictionaryPtr(_result, false);
}

#pragma implementation_key(643)
inline HRESULT Word::HangulHanjaConversionDictionaries::ClearAll ( ) {
    HRESULT _hr = raw_ClearAll();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface ReadabilityStatistic wrapper method implementations
//

#pragma implementation_key(644)
inline Word::_ApplicationPtr Word::ReadabilityStatistic::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(645)
inline long Word::ReadabilityStatistic::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(646)
inline IDispatchPtr Word::ReadabilityStatistic::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(647)
inline _bstr_t Word::ReadabilityStatistic::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(648)
inline float Word::ReadabilityStatistic::GetValue ( ) {
    float _result = 0;
    HRESULT _hr = get_Value(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface ReadabilityStatistics wrapper method implementations
//

#pragma implementation_key(649)
inline Word::_ApplicationPtr Word::ReadabilityStatistics::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(650)
inline long Word::ReadabilityStatistics::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(651)
inline IDispatchPtr Word::ReadabilityStatistics::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(652)
inline IUnknownPtr Word::ReadabilityStatistics::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(653)
inline long Word::ReadabilityStatistics::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(654)
inline Word::ReadabilityStatisticPtr Word::ReadabilityStatistics::Item ( VARIANT * Index ) {
    struct ReadabilityStatistic * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ReadabilityStatisticPtr(_result, false);
}

//
// interface MailMessage wrapper method implementations
//

#pragma implementation_key(655)
inline Word::_ApplicationPtr Word::MailMessage::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(656)
inline long Word::MailMessage::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(657)
inline IDispatchPtr Word::MailMessage::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(658)
inline HRESULT Word::MailMessage::CheckName ( ) {
    HRESULT _hr = raw_CheckName();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(659)
inline HRESULT Word::MailMessage::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(660)
inline HRESULT Word::MailMessage::DisplayMoveDialog ( ) {
    HRESULT _hr = raw_DisplayMoveDialog();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(661)
inline HRESULT Word::MailMessage::DisplayProperties ( ) {
    HRESULT _hr = raw_DisplayProperties();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(662)
inline HRESULT Word::MailMessage::DisplaySelectNamesDialog ( ) {
    HRESULT _hr = raw_DisplaySelectNamesDialog();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(663)
inline HRESULT Word::MailMessage::Forward ( ) {
    HRESULT _hr = raw_Forward();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(664)
inline HRESULT Word::MailMessage::GoToNext ( ) {
    HRESULT _hr = raw_GoToNext();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(665)
inline HRESULT Word::MailMessage::GoToPrevious ( ) {
    HRESULT _hr = raw_GoToPrevious();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(666)
inline HRESULT Word::MailMessage::Reply ( ) {
    HRESULT _hr = raw_Reply();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(667)
inline HRESULT Word::MailMessage::ReplyAll ( ) {
    HRESULT _hr = raw_ReplyAll();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(668)
inline HRESULT Word::MailMessage::ToggleHeader ( ) {
    HRESULT _hr = raw_ToggleHeader();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Mailer wrapper method implementations
//

#pragma implementation_key(669)
inline Word::_ApplicationPtr Word::Mailer::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(670)
inline long Word::Mailer::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(671)
inline IDispatchPtr Word::Mailer::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(672)
inline _variant_t Word::Mailer::GetBCCRecipients ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_BCCRecipients(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(673)
inline void Word::Mailer::PutBCCRecipients ( VARIANT * prop ) {
    HRESULT _hr = put_BCCRecipients(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(674)
inline _variant_t Word::Mailer::GetCCRecipients ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_CCRecipients(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(675)
inline void Word::Mailer::PutCCRecipients ( VARIANT * prop ) {
    HRESULT _hr = put_CCRecipients(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(676)
inline _variant_t Word::Mailer::GetRecipients ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Recipients(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(677)
inline void Word::Mailer::PutRecipients ( VARIANT * prop ) {
    HRESULT _hr = put_Recipients(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(678)
inline _variant_t Word::Mailer::GetEnclosures ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Enclosures(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(679)
inline void Word::Mailer::PutEnclosures ( VARIANT * prop ) {
    HRESULT _hr = put_Enclosures(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(680)
inline _bstr_t Word::Mailer::GetSender ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Sender(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(681)
inline DATE Word::Mailer::GetSendDateTime ( ) {
    DATE _result = 0;
    HRESULT _hr = get_SendDateTime(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(682)
inline VARIANT_BOOL Word::Mailer::GetReceived ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Received(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(683)
inline _bstr_t Word::Mailer::GetSubject ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Subject(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(684)
inline void Word::Mailer::PutSubject ( _bstr_t prop ) {
    HRESULT _hr = put_Subject(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface WrapFormat wrapper method implementations
//

#pragma implementation_key(685)
inline Word::_ApplicationPtr Word::WrapFormat::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(686)
inline long Word::WrapFormat::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(687)
inline IDispatchPtr Word::WrapFormat::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(688)
inline enum Word::WdWrapType Word::WrapFormat::GetType ( ) {
    enum WdWrapType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(689)
inline void Word::WrapFormat::PutType ( enum WdWrapType prop ) {
    HRESULT _hr = put_Type(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(690)
inline enum Word::WdWrapSideType Word::WrapFormat::GetSide ( ) {
    enum WdWrapSideType _result;
    HRESULT _hr = get_Side(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(691)
inline void Word::WrapFormat::PutSide ( enum WdWrapSideType prop ) {
    HRESULT _hr = put_Side(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(692)
inline float Word::WrapFormat::GetDistanceTop ( ) {
    float _result = 0;
    HRESULT _hr = get_DistanceTop(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(693)
inline void Word::WrapFormat::PutDistanceTop ( float prop ) {
    HRESULT _hr = put_DistanceTop(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(694)
inline float Word::WrapFormat::GetDistanceBottom ( ) {
    float _result = 0;
    HRESULT _hr = get_DistanceBottom(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(695)
inline void Word::WrapFormat::PutDistanceBottom ( float prop ) {
    HRESULT _hr = put_DistanceBottom(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(696)
inline float Word::WrapFormat::GetDistanceLeft ( ) {
    float _result = 0;
    HRESULT _hr = get_DistanceLeft(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(697)
inline void Word::WrapFormat::PutDistanceLeft ( float prop ) {
    HRESULT _hr = put_DistanceLeft(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(698)
inline float Word::WrapFormat::GetDistanceRight ( ) {
    float _result = 0;
    HRESULT _hr = get_DistanceRight(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(699)
inline void Word::WrapFormat::PutDistanceRight ( float prop ) {
    HRESULT _hr = put_DistanceRight(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(700)
inline long Word::WrapFormat::GetAllowOverlap ( ) {
    long _result = 0;
    HRESULT _hr = get_AllowOverlap(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(701)
inline void Word::WrapFormat::PutAllowOverlap ( long prop ) {
    HRESULT _hr = put_AllowOverlap(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface HangulAndAlphabetException wrapper method implementations
//

#pragma implementation_key(702)
inline Word::_ApplicationPtr Word::HangulAndAlphabetException::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(703)
inline long Word::HangulAndAlphabetException::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(704)
inline IDispatchPtr Word::HangulAndAlphabetException::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(705)
inline long Word::HangulAndAlphabetException::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(706)
inline _bstr_t Word::HangulAndAlphabetException::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(707)
inline HRESULT Word::HangulAndAlphabetException::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface HangulAndAlphabetExceptions wrapper method implementations
//

#pragma implementation_key(708)
inline Word::_ApplicationPtr Word::HangulAndAlphabetExceptions::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(709)
inline long Word::HangulAndAlphabetExceptions::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(710)
inline IDispatchPtr Word::HangulAndAlphabetExceptions::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(711)
inline IUnknownPtr Word::HangulAndAlphabetExceptions::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(712)
inline long Word::HangulAndAlphabetExceptions::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(713)
inline Word::HangulAndAlphabetExceptionPtr Word::HangulAndAlphabetExceptions::Item ( VARIANT * Index ) {
    struct HangulAndAlphabetException * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HangulAndAlphabetExceptionPtr(_result, false);
}

#pragma implementation_key(714)
inline Word::HangulAndAlphabetExceptionPtr Word::HangulAndAlphabetExceptions::Add ( _bstr_t Name ) {
    struct HangulAndAlphabetException * _result = 0;
    HRESULT _hr = raw_Add(Name, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HangulAndAlphabetExceptionPtr(_result, false);
}

//
// interface Adjustments wrapper method implementations
//

#pragma implementation_key(715)
inline Word::_ApplicationPtr Word::Adjustments::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(716)
inline long Word::Adjustments::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(717)
inline IDispatchPtr Word::Adjustments::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(718)
inline long Word::Adjustments::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(719)
inline float Word::Adjustments::GetItem ( long Index ) {
    float _result = 0;
    HRESULT _hr = get_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(720)
inline void Word::Adjustments::PutItem ( long Index, float prop ) {
    HRESULT _hr = put_Item(Index, prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface CalloutFormat wrapper method implementations
//

#pragma implementation_key(721)
inline Word::_ApplicationPtr Word::CalloutFormat::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(722)
inline long Word::CalloutFormat::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(723)
inline IDispatchPtr Word::CalloutFormat::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(724)
inline enum Office::MsoTriState Word::CalloutFormat::GetAccent ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_Accent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(725)
inline void Word::CalloutFormat::PutAccent ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_Accent(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(726)
inline enum Office::MsoCalloutAngleType Word::CalloutFormat::GetAngle ( ) {
    enum Office::MsoCalloutAngleType _result;
    HRESULT _hr = get_Angle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(727)
inline void Word::CalloutFormat::PutAngle ( enum Office::MsoCalloutAngleType prop ) {
    HRESULT _hr = put_Angle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(728)
inline enum Office::MsoTriState Word::CalloutFormat::GetAutoAttach ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_AutoAttach(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(729)
inline void Word::CalloutFormat::PutAutoAttach ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_AutoAttach(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(730)
inline enum Office::MsoTriState Word::CalloutFormat::GetAutoLength ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_AutoLength(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(731)
inline enum Office::MsoTriState Word::CalloutFormat::GetBorder ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_Border(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(732)
inline void Word::CalloutFormat::PutBorder ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_Border(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(733)
inline float Word::CalloutFormat::GetDrop ( ) {
    float _result = 0;
    HRESULT _hr = get_Drop(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(734)
inline enum Office::MsoCalloutDropType Word::CalloutFormat::GetDropType ( ) {
    enum Office::MsoCalloutDropType _result;
    HRESULT _hr = get_DropType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(735)
inline float Word::CalloutFormat::GetGap ( ) {
    float _result = 0;
    HRESULT _hr = get_Gap(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(736)
inline void Word::CalloutFormat::PutGap ( float prop ) {
    HRESULT _hr = put_Gap(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(737)
inline float Word::CalloutFormat::GetLength ( ) {
    float _result = 0;
    HRESULT _hr = get_Length(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(738)
inline enum Office::MsoCalloutType Word::CalloutFormat::GetType ( ) {
    enum Office::MsoCalloutType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(739)
inline void Word::CalloutFormat::PutType ( enum Office::MsoCalloutType prop ) {
    HRESULT _hr = put_Type(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(740)
inline HRESULT Word::CalloutFormat::AutomaticLength ( ) {
    HRESULT _hr = raw_AutomaticLength();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(741)
inline HRESULT Word::CalloutFormat::CustomDrop ( float Drop ) {
    HRESULT _hr = raw_CustomDrop(Drop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(742)
inline HRESULT Word::CalloutFormat::CustomLength ( float Length ) {
    HRESULT _hr = raw_CustomLength(Length);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(743)
inline HRESULT Word::CalloutFormat::PresetDrop ( enum Office::MsoCalloutDropType DropType ) {
    HRESULT _hr = raw_PresetDrop(DropType);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface PictureFormat wrapper method implementations
//

#pragma implementation_key(744)
inline Word::_ApplicationPtr Word::PictureFormat::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(745)
inline long Word::PictureFormat::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(746)
inline IDispatchPtr Word::PictureFormat::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(747)
inline float Word::PictureFormat::GetBrightness ( ) {
    float _result = 0;
    HRESULT _hr = get_Brightness(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(748)
inline void Word::PictureFormat::PutBrightness ( float prop ) {
    HRESULT _hr = put_Brightness(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(749)
inline enum Office::MsoPictureColorType Word::PictureFormat::GetColorType ( ) {
    enum Office::MsoPictureColorType _result;
    HRESULT _hr = get_ColorType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(750)
inline void Word::PictureFormat::PutColorType ( enum Office::MsoPictureColorType prop ) {
    HRESULT _hr = put_ColorType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(751)
inline float Word::PictureFormat::GetContrast ( ) {
    float _result = 0;
    HRESULT _hr = get_Contrast(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(752)
inline void Word::PictureFormat::PutContrast ( float prop ) {
    HRESULT _hr = put_Contrast(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(753)
inline float Word::PictureFormat::GetCropBottom ( ) {
    float _result = 0;
    HRESULT _hr = get_CropBottom(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(754)
inline void Word::PictureFormat::PutCropBottom ( float prop ) {
    HRESULT _hr = put_CropBottom(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(755)
inline float Word::PictureFormat::GetCropLeft ( ) {
    float _result = 0;
    HRESULT _hr = get_CropLeft(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(756)
inline void Word::PictureFormat::PutCropLeft ( float prop ) {
    HRESULT _hr = put_CropLeft(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(757)
inline float Word::PictureFormat::GetCropRight ( ) {
    float _result = 0;
    HRESULT _hr = get_CropRight(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(758)
inline void Word::PictureFormat::PutCropRight ( float prop ) {
    HRESULT _hr = put_CropRight(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(759)
inline float Word::PictureFormat::GetCropTop ( ) {
    float _result = 0;
    HRESULT _hr = get_CropTop(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(760)
inline void Word::PictureFormat::PutCropTop ( float prop ) {
    HRESULT _hr = put_CropTop(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(761)
inline long Word::PictureFormat::GetTransparencyColor ( ) {
    long _result = 0;
    HRESULT _hr = get_TransparencyColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(762)
inline void Word::PictureFormat::PutTransparencyColor ( long prop ) {
    HRESULT _hr = put_TransparencyColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(763)
inline enum Office::MsoTriState Word::PictureFormat::GetTransparentBackground ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_TransparentBackground(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(764)
inline void Word::PictureFormat::PutTransparentBackground ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_TransparentBackground(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(765)
inline HRESULT Word::PictureFormat::IncrementBrightness ( float Increment ) {
    HRESULT _hr = raw_IncrementBrightness(Increment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(766)
inline HRESULT Word::PictureFormat::IncrementContrast ( float Increment ) {
    HRESULT _hr = raw_IncrementContrast(Increment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(767)
inline Office::CropPtr Word::PictureFormat::GetCrop ( ) {
    struct Office::Crop * _result = 0;
    HRESULT _hr = get_Crop(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::CropPtr(_result, false);
}

#pragma implementation_key(768)
inline void Word::PictureFormat::PutCrop ( struct Office::Crop * prop ) {
    HRESULT _hr = put_Crop(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface ShapeNode wrapper method implementations
//

#pragma implementation_key(769)
inline Word::_ApplicationPtr Word::ShapeNode::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(770)
inline long Word::ShapeNode::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(771)
inline IDispatchPtr Word::ShapeNode::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(772)
inline enum Office::MsoEditingType Word::ShapeNode::GetEditingType ( ) {
    enum Office::MsoEditingType _result;
    HRESULT _hr = get_EditingType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(773)
inline _variant_t Word::ShapeNode::GetPoints ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Points(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(774)
inline enum Office::MsoSegmentType Word::ShapeNode::GetSegmentType ( ) {
    enum Office::MsoSegmentType _result;
    HRESULT _hr = get_SegmentType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface ShapeNodes wrapper method implementations
//

#pragma implementation_key(775)
inline Word::_ApplicationPtr Word::ShapeNodes::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(776)
inline long Word::ShapeNodes::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(777)
inline IDispatchPtr Word::ShapeNodes::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(778)
inline long Word::ShapeNodes::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(779)
inline IUnknownPtr Word::ShapeNodes::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(780)
inline HRESULT Word::ShapeNodes::Delete ( long Index ) {
    HRESULT _hr = raw_Delete(Index);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(781)
inline Word::ShapeNodePtr Word::ShapeNodes::Item ( VARIANT * Index ) {
    struct ShapeNode * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapeNodePtr(_result, false);
}

#pragma implementation_key(782)
inline HRESULT Word::ShapeNodes::SetEditingType ( long Index, enum Office::MsoEditingType EditingType ) {
    HRESULT _hr = raw_SetEditingType(Index, EditingType);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(783)
inline HRESULT Word::ShapeNodes::SetPosition ( long Index, float X1, float Y1 ) {
    HRESULT _hr = raw_SetPosition(Index, X1, Y1);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(784)
inline HRESULT Word::ShapeNodes::SetSegmentType ( long Index, enum Office::MsoSegmentType SegmentType ) {
    HRESULT _hr = raw_SetSegmentType(Index, SegmentType);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(785)
inline HRESULT Word::ShapeNodes::Insert ( long Index, enum Office::MsoSegmentType SegmentType, enum Office::MsoEditingType EditingType, float X1, float Y1, float X2, float Y2, float X3, float Y3 ) {
    HRESULT _hr = raw_Insert(Index, SegmentType, EditingType, X1, Y1, X2, Y2, X3, Y3);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface TextEffectFormat wrapper method implementations
//

#pragma implementation_key(786)
inline Word::_ApplicationPtr Word::TextEffectFormat::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(787)
inline long Word::TextEffectFormat::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(788)
inline IDispatchPtr Word::TextEffectFormat::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(789)
inline enum Office::MsoTextEffectAlignment Word::TextEffectFormat::GetAlignment ( ) {
    enum Office::MsoTextEffectAlignment _result;
    HRESULT _hr = get_Alignment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(790)
inline void Word::TextEffectFormat::PutAlignment ( enum Office::MsoTextEffectAlignment prop ) {
    HRESULT _hr = put_Alignment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(791)
inline enum Office::MsoTriState Word::TextEffectFormat::GetFontBold ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_FontBold(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(792)
inline void Word::TextEffectFormat::PutFontBold ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_FontBold(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(793)
inline enum Office::MsoTriState Word::TextEffectFormat::GetFontItalic ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_FontItalic(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(794)
inline void Word::TextEffectFormat::PutFontItalic ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_FontItalic(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(795)
inline _bstr_t Word::TextEffectFormat::GetFontName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_FontName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(796)
inline void Word::TextEffectFormat::PutFontName ( _bstr_t prop ) {
    HRESULT _hr = put_FontName(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(797)
inline float Word::TextEffectFormat::GetFontSize ( ) {
    float _result = 0;
    HRESULT _hr = get_FontSize(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(798)
inline void Word::TextEffectFormat::PutFontSize ( float prop ) {
    HRESULT _hr = put_FontSize(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(799)
inline enum Office::MsoTriState Word::TextEffectFormat::GetKernedPairs ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_KernedPairs(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(800)
inline void Word::TextEffectFormat::PutKernedPairs ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_KernedPairs(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(801)
inline enum Office::MsoTriState Word::TextEffectFormat::GetNormalizedHeight ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_NormalizedHeight(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(802)
inline void Word::TextEffectFormat::PutNormalizedHeight ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_NormalizedHeight(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(803)
inline enum Office::MsoPresetTextEffectShape Word::TextEffectFormat::GetPresetShape ( ) {
    enum Office::MsoPresetTextEffectShape _result;
    HRESULT _hr = get_PresetShape(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(804)
inline void Word::TextEffectFormat::PutPresetShape ( enum Office::MsoPresetTextEffectShape prop ) {
    HRESULT _hr = put_PresetShape(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(805)
inline enum Office::MsoPresetTextEffect Word::TextEffectFormat::GetPresetTextEffect ( ) {
    enum Office::MsoPresetTextEffect _result;
    HRESULT _hr = get_PresetTextEffect(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(806)
inline void Word::TextEffectFormat::PutPresetTextEffect ( enum Office::MsoPresetTextEffect prop ) {
    HRESULT _hr = put_PresetTextEffect(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(807)
inline enum Office::MsoTriState Word::TextEffectFormat::GetRotatedChars ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_RotatedChars(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(808)
inline void Word::TextEffectFormat::PutRotatedChars ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_RotatedChars(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(809)
inline _bstr_t Word::TextEffectFormat::GetText ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Text(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(810)
inline void Word::TextEffectFormat::PutText ( _bstr_t prop ) {
    HRESULT _hr = put_Text(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(811)
inline float Word::TextEffectFormat::GetTracking ( ) {
    float _result = 0;
    HRESULT _hr = get_Tracking(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(812)
inline void Word::TextEffectFormat::PutTracking ( float prop ) {
    HRESULT _hr = put_Tracking(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(813)
inline HRESULT Word::TextEffectFormat::ToggleVerticalText ( ) {
    HRESULT _hr = raw_ToggleVerticalText();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// dispinterface DocumentEvents wrapper method implementations
//

#pragma implementation_key(814)
inline HRESULT Word::DocumentEvents::New ( ) {
    return _com_dispatch_method(this, 0x4, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

#pragma implementation_key(815)
inline HRESULT Word::DocumentEvents::Open ( ) {
    return _com_dispatch_method(this, 0x5, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

#pragma implementation_key(816)
inline HRESULT Word::DocumentEvents::Close ( ) {
    return _com_dispatch_method(this, 0x6, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

//
// interface Documents wrapper method implementations
//

#pragma implementation_key(817)
inline IUnknownPtr Word::Documents::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(818)
inline long Word::Documents::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(819)
inline Word::_ApplicationPtr Word::Documents::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(820)
inline long Word::Documents::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(821)
inline IDispatchPtr Word::Documents::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(822)
inline Word::_DocumentPtr Word::Documents::Item ( VARIANT * Index ) {
    struct _Document * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _DocumentPtr(_result, false);
}

#pragma implementation_key(823)
inline HRESULT Word::Documents::Close ( VARIANT * SaveChanges, VARIANT * OriginalFormat, VARIANT * RouteDocument ) {
    HRESULT _hr = raw_Close(SaveChanges, OriginalFormat, RouteDocument);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(824)
inline Word::_DocumentPtr Word::Documents::AddOld ( VARIANT * Template, VARIANT * NewTemplate ) {
    struct _Document * _result = 0;
    HRESULT _hr = raw_AddOld(Template, NewTemplate, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _DocumentPtr(_result, false);
}

#pragma implementation_key(825)
inline Word::_DocumentPtr Word::Documents::OpenOld ( VARIANT * FileName, VARIANT * ConfirmConversions, VARIANT * ReadOnly, VARIANT * AddToRecentFiles, VARIANT * PasswordDocument, VARIANT * PasswordTemplate, VARIANT * Revert, VARIANT * WritePasswordDocument, VARIANT * WritePasswordTemplate, VARIANT * Format ) {
    struct _Document * _result = 0;
    HRESULT _hr = raw_OpenOld(FileName, ConfirmConversions, ReadOnly, AddToRecentFiles, PasswordDocument, PasswordTemplate, Revert, WritePasswordDocument, WritePasswordTemplate, Format, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _DocumentPtr(_result, false);
}

#pragma implementation_key(826)
inline HRESULT Word::Documents::Save ( VARIANT * NoPrompt, VARIANT * OriginalFormat ) {
    HRESULT _hr = raw_Save(NoPrompt, OriginalFormat);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(827)
inline Word::_DocumentPtr Word::Documents::Add ( VARIANT * Template, VARIANT * NewTemplate, VARIANT * DocumentType, VARIANT * Visible ) {
    struct _Document * _result = 0;
    HRESULT _hr = raw_Add(Template, NewTemplate, DocumentType, Visible, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _DocumentPtr(_result, false);
}

#pragma implementation_key(828)
inline Word::_DocumentPtr Word::Documents::Open2000 ( VARIANT * FileName, VARIANT * ConfirmConversions, VARIANT * ReadOnly, VARIANT * AddToRecentFiles, VARIANT * PasswordDocument, VARIANT * PasswordTemplate, VARIANT * Revert, VARIANT * WritePasswordDocument, VARIANT * WritePasswordTemplate, VARIANT * Format, VARIANT * Encoding, VARIANT * Visible ) {
    struct _Document * _result = 0;
    HRESULT _hr = raw_Open2000(FileName, ConfirmConversions, ReadOnly, AddToRecentFiles, PasswordDocument, PasswordTemplate, Revert, WritePasswordDocument, WritePasswordTemplate, Format, Encoding, Visible, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _DocumentPtr(_result, false);
}

#pragma implementation_key(829)
inline HRESULT Word::Documents::CheckOut ( _bstr_t FileName ) {
    HRESULT _hr = raw_CheckOut(FileName);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(830)
inline VARIANT_BOOL Word::Documents::CanCheckOut ( _bstr_t FileName ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_CanCheckOut(FileName, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(831)
inline Word::_DocumentPtr Word::Documents::Open2002 ( VARIANT * FileName, VARIANT * ConfirmConversions, VARIANT * ReadOnly, VARIANT * AddToRecentFiles, VARIANT * PasswordDocument, VARIANT * PasswordTemplate, VARIANT * Revert, VARIANT * WritePasswordDocument, VARIANT * WritePasswordTemplate, VARIANT * Format, VARIANT * Encoding, VARIANT * Visible, VARIANT * OpenAndRepair, VARIANT * DocumentDirection, VARIANT * NoEncodingDialog ) {
    struct _Document * _result = 0;
    HRESULT _hr = raw_Open2002(FileName, ConfirmConversions, ReadOnly, AddToRecentFiles, PasswordDocument, PasswordTemplate, Revert, WritePasswordDocument, WritePasswordTemplate, Format, Encoding, Visible, OpenAndRepair, DocumentDirection, NoEncodingDialog, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _DocumentPtr(_result, false);
}

#pragma implementation_key(832)
inline Word::_DocumentPtr Word::Documents::Open ( VARIANT * FileName, VARIANT * ConfirmConversions, VARIANT * ReadOnly, VARIANT * AddToRecentFiles, VARIANT * PasswordDocument, VARIANT * PasswordTemplate, VARIANT * Revert, VARIANT * WritePasswordDocument, VARIANT * WritePasswordTemplate, VARIANT * Format, VARIANT * Encoding, VARIANT * Visible, VARIANT * OpenAndRepair, VARIANT * DocumentDirection, VARIANT * NoEncodingDialog, VARIANT * XMLTransform ) {
    struct _Document * _result = 0;
    HRESULT _hr = raw_Open(FileName, ConfirmConversions, ReadOnly, AddToRecentFiles, PasswordDocument, PasswordTemplate, Revert, WritePasswordDocument, WritePasswordTemplate, Format, Encoding, Visible, OpenAndRepair, DocumentDirection, NoEncodingDialog, XMLTransform, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _DocumentPtr(_result, false);
}

#pragma implementation_key(833)
inline Word::_DocumentPtr Word::Documents::OpenNoRepairDialog ( VARIANT * FileName, VARIANT * ConfirmConversions, VARIANT * ReadOnly, VARIANT * AddToRecentFiles, VARIANT * PasswordDocument, VARIANT * PasswordTemplate, VARIANT * Revert, VARIANT * WritePasswordDocument, VARIANT * WritePasswordTemplate, VARIANT * Format, VARIANT * Encoding, VARIANT * Visible, VARIANT * OpenAndRepair, VARIANT * DocumentDirection, VARIANT * NoEncodingDialog, VARIANT * XMLTransform ) {
    struct _Document * _result = 0;
    HRESULT _hr = raw_OpenNoRepairDialog(FileName, ConfirmConversions, ReadOnly, AddToRecentFiles, PasswordDocument, PasswordTemplate, Revert, WritePasswordDocument, WritePasswordTemplate, Format, Encoding, Visible, OpenAndRepair, DocumentDirection, NoEncodingDialog, XMLTransform, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _DocumentPtr(_result, false);
}

#pragma implementation_key(834)
inline Word::_DocumentPtr Word::Documents::AddBlogDocument ( _bstr_t ProviderID, _bstr_t PostURL, _bstr_t BlogName, _bstr_t PostID ) {
    struct _Document * _result = 0;
    HRESULT _hr = raw_AddBlogDocument(ProviderID, PostURL, BlogName, PostID, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _DocumentPtr(_result, false);
}

//
// interface RecentFile wrapper method implementations
//

#pragma implementation_key(835)
inline Word::_ApplicationPtr Word::RecentFile::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(836)
inline long Word::RecentFile::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(837)
inline IDispatchPtr Word::RecentFile::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(838)
inline _bstr_t Word::RecentFile::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(839)
inline long Word::RecentFile::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(840)
inline VARIANT_BOOL Word::RecentFile::GetReadOnly ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ReadOnly(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(841)
inline void Word::RecentFile::PutReadOnly ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ReadOnly(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(842)
inline _bstr_t Word::RecentFile::GetPath ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Path(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(843)
inline Word::_DocumentPtr Word::RecentFile::Open ( ) {
    struct _Document * _result = 0;
    HRESULT _hr = raw_Open(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _DocumentPtr(_result, false);
}

#pragma implementation_key(844)
inline HRESULT Word::RecentFile::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface RecentFiles wrapper method implementations
//

#pragma implementation_key(845)
inline Word::_ApplicationPtr Word::RecentFiles::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(846)
inline long Word::RecentFiles::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(847)
inline IDispatchPtr Word::RecentFiles::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(848)
inline IUnknownPtr Word::RecentFiles::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(849)
inline long Word::RecentFiles::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(850)
inline long Word::RecentFiles::GetMaximum ( ) {
    long _result = 0;
    HRESULT _hr = get_Maximum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(851)
inline void Word::RecentFiles::PutMaximum ( long prop ) {
    HRESULT _hr = put_Maximum(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(852)
inline Word::RecentFilePtr Word::RecentFiles::Item ( long Index ) {
    struct RecentFile * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RecentFilePtr(_result, false);
}

#pragma implementation_key(853)
inline Word::RecentFilePtr Word::RecentFiles::Add ( VARIANT * Document, VARIANT * ReadOnly ) {
    struct RecentFile * _result = 0;
    HRESULT _hr = raw_Add(Document, ReadOnly, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RecentFilePtr(_result, false);
}

//
// interface MailingLabel wrapper method implementations
//

#pragma implementation_key(854)
inline Word::_ApplicationPtr Word::MailingLabel::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(855)
inline long Word::MailingLabel::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(856)
inline IDispatchPtr Word::MailingLabel::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(857)
inline VARIANT_BOOL Word::MailingLabel::GetDefaultPrintBarCode ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DefaultPrintBarCode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(858)
inline void Word::MailingLabel::PutDefaultPrintBarCode ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DefaultPrintBarCode(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(859)
inline enum Word::WdPaperTray Word::MailingLabel::GetDefaultLaserTray ( ) {
    enum WdPaperTray _result;
    HRESULT _hr = get_DefaultLaserTray(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(860)
inline void Word::MailingLabel::PutDefaultLaserTray ( enum WdPaperTray prop ) {
    HRESULT _hr = put_DefaultLaserTray(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(861)
inline Word::CustomLabelsPtr Word::MailingLabel::GetCustomLabels ( ) {
    struct CustomLabels * _result = 0;
    HRESULT _hr = get_CustomLabels(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CustomLabelsPtr(_result, false);
}

#pragma implementation_key(862)
inline _bstr_t Word::MailingLabel::GetDefaultLabelName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_DefaultLabelName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(863)
inline void Word::MailingLabel::PutDefaultLabelName ( _bstr_t prop ) {
    HRESULT _hr = put_DefaultLabelName(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(864)
inline Word::_DocumentPtr Word::MailingLabel::CreateNewDocument2000 ( VARIANT * Name, VARIANT * Address, VARIANT * AutoText, VARIANT * ExtractAddress, VARIANT * LaserTray ) {
    struct _Document * _result = 0;
    HRESULT _hr = raw_CreateNewDocument2000(Name, Address, AutoText, ExtractAddress, LaserTray, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _DocumentPtr(_result, false);
}

#pragma implementation_key(865)
inline HRESULT Word::MailingLabel::PrintOut2000 ( VARIANT * Name, VARIANT * Address, VARIANT * ExtractAddress, VARIANT * LaserTray, VARIANT * SingleLabel, VARIANT * Row, VARIANT * Column ) {
    HRESULT _hr = raw_PrintOut2000(Name, Address, ExtractAddress, LaserTray, SingleLabel, Row, Column);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(866)
inline HRESULT Word::MailingLabel::LabelOptions ( ) {
    HRESULT _hr = raw_LabelOptions();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(867)
inline Word::_DocumentPtr Word::MailingLabel::CreateNewDocument ( VARIANT * Name, VARIANT * Address, VARIANT * AutoText, VARIANT * ExtractAddress, VARIANT * LaserTray, VARIANT * PrintEPostageLabel, VARIANT * Vertical ) {
    struct _Document * _result = 0;
    HRESULT _hr = raw_CreateNewDocument(Name, Address, AutoText, ExtractAddress, LaserTray, PrintEPostageLabel, Vertical, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _DocumentPtr(_result, false);
}

#pragma implementation_key(868)
inline HRESULT Word::MailingLabel::PrintOut ( VARIANT * Name, VARIANT * Address, VARIANT * ExtractAddress, VARIANT * LaserTray, VARIANT * SingleLabel, VARIANT * Row, VARIANT * Column, VARIANT * PrintEPostageLabel, VARIANT * Vertical ) {
    HRESULT _hr = raw_PrintOut(Name, Address, ExtractAddress, LaserTray, SingleLabel, Row, Column, PrintEPostageLabel, Vertical);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(869)
inline VARIANT_BOOL Word::MailingLabel::GetVertical ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Vertical(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(870)
inline void Word::MailingLabel::PutVertical ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Vertical(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(871)
inline Word::_DocumentPtr Word::MailingLabel::CreateNewDocumentByID ( VARIANT * LabelID, VARIANT * Address, VARIANT * AutoText, VARIANT * ExtractAddress, VARIANT * LaserTray, VARIANT * PrintEPostageLabel, VARIANT * Vertical ) {
    struct _Document * _result = 0;
    HRESULT _hr = raw_CreateNewDocumentByID(LabelID, Address, AutoText, ExtractAddress, LaserTray, PrintEPostageLabel, Vertical, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _DocumentPtr(_result, false);
}

#pragma implementation_key(872)
inline HRESULT Word::MailingLabel::PrintOutByID ( VARIANT * LabelID, VARIANT * Address, VARIANT * ExtractAddress, VARIANT * LaserTray, VARIANT * SingleLabel, VARIANT * Row, VARIANT * Column, VARIANT * PrintEPostageLabel, VARIANT * Vertical ) {
    HRESULT _hr = raw_PrintOutByID(LabelID, Address, ExtractAddress, LaserTray, SingleLabel, Row, Column, PrintEPostageLabel, Vertical);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Version wrapper method implementations
//

#pragma implementation_key(873)
inline Word::_ApplicationPtr Word::Version::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(874)
inline long Word::Version::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(875)
inline IDispatchPtr Word::Version::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(876)
inline _bstr_t Word::Version::GetSavedBy ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_SavedBy(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(877)
inline _bstr_t Word::Version::GetComment ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Comment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(878)
inline DATE Word::Version::GetDate ( ) {
    DATE _result = 0;
    HRESULT _hr = get_Date(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(879)
inline long Word::Version::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(880)
inline HRESULT Word::Version::OpenOld ( ) {
    HRESULT _hr = raw_OpenOld();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(881)
inline HRESULT Word::Version::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(882)
inline Word::_DocumentPtr Word::Version::Open ( ) {
    struct _Document * _result = 0;
    HRESULT _hr = raw_Open(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _DocumentPtr(_result, false);
}

//
// interface Versions wrapper method implementations
//

#pragma implementation_key(883)
inline Word::_ApplicationPtr Word::Versions::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(884)
inline long Word::Versions::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(885)
inline IDispatchPtr Word::Versions::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(886)
inline IUnknownPtr Word::Versions::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(887)
inline long Word::Versions::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(888)
inline enum Word::WdAutoVersions Word::Versions::GetAutoVersion ( ) {
    enum WdAutoVersions _result;
    HRESULT _hr = get_AutoVersion(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(889)
inline void Word::Versions::PutAutoVersion ( enum WdAutoVersions prop ) {
    HRESULT _hr = put_AutoVersion(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(890)
inline Word::VersionPtr Word::Versions::Item ( long Index ) {
    struct Version * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return VersionPtr(_result, false);
}

#pragma implementation_key(891)
inline HRESULT Word::Versions::Save ( VARIANT * Comment ) {
    HRESULT _hr = raw_Save(Comment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// dispinterface OCXEvents wrapper method implementations
//

#pragma implementation_key(892)
inline HRESULT Word::OCXEvents::GotFocus ( ) {
    return _com_dispatch_method(this, 0x800100e0, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

#pragma implementation_key(893)
inline HRESULT Word::OCXEvents::LostFocus ( ) {
    return _com_dispatch_method(this, 0x800100e1, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

//
// interface _LetterContent wrapper method implementations
//

#pragma implementation_key(894)
inline Word::_ApplicationPtr Word::_LetterContent::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(895)
inline long Word::_LetterContent::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(896)
inline IDispatchPtr Word::_LetterContent::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(897)
inline Word::_LetterContentPtr Word::_LetterContent::GetDuplicate ( ) {
    struct _LetterContent * _result = 0;
    HRESULT _hr = get_Duplicate(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _LetterContentPtr(_result, false);
}

#pragma implementation_key(898)
inline _bstr_t Word::_LetterContent::GetDateFormat ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_DateFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(899)
inline void Word::_LetterContent::PutDateFormat ( _bstr_t prop ) {
    HRESULT _hr = put_DateFormat(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(900)
inline VARIANT_BOOL Word::_LetterContent::GetIncludeHeaderFooter ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IncludeHeaderFooter(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(901)
inline void Word::_LetterContent::PutIncludeHeaderFooter ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_IncludeHeaderFooter(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(902)
inline _bstr_t Word::_LetterContent::GetPageDesign ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_PageDesign(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(903)
inline void Word::_LetterContent::PutPageDesign ( _bstr_t prop ) {
    HRESULT _hr = put_PageDesign(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(904)
inline enum Word::WdLetterStyle Word::_LetterContent::GetLetterStyle ( ) {
    enum WdLetterStyle _result;
    HRESULT _hr = get_LetterStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(905)
inline void Word::_LetterContent::PutLetterStyle ( enum WdLetterStyle prop ) {
    HRESULT _hr = put_LetterStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(906)
inline VARIANT_BOOL Word::_LetterContent::GetLetterhead ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Letterhead(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(907)
inline void Word::_LetterContent::PutLetterhead ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Letterhead(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(908)
inline enum Word::WdLetterheadLocation Word::_LetterContent::GetLetterheadLocation ( ) {
    enum WdLetterheadLocation _result;
    HRESULT _hr = get_LetterheadLocation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(909)
inline void Word::_LetterContent::PutLetterheadLocation ( enum WdLetterheadLocation prop ) {
    HRESULT _hr = put_LetterheadLocation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(910)
inline float Word::_LetterContent::GetLetterheadSize ( ) {
    float _result = 0;
    HRESULT _hr = get_LetterheadSize(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(911)
inline void Word::_LetterContent::PutLetterheadSize ( float prop ) {
    HRESULT _hr = put_LetterheadSize(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(912)
inline _bstr_t Word::_LetterContent::GetRecipientName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_RecipientName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(913)
inline void Word::_LetterContent::PutRecipientName ( _bstr_t prop ) {
    HRESULT _hr = put_RecipientName(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(914)
inline _bstr_t Word::_LetterContent::GetRecipientAddress ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_RecipientAddress(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(915)
inline void Word::_LetterContent::PutRecipientAddress ( _bstr_t prop ) {
    HRESULT _hr = put_RecipientAddress(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(916)
inline _bstr_t Word::_LetterContent::GetSalutation ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Salutation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(917)
inline void Word::_LetterContent::PutSalutation ( _bstr_t prop ) {
    HRESULT _hr = put_Salutation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(918)
inline enum Word::WdSalutationType Word::_LetterContent::GetSalutationType ( ) {
    enum WdSalutationType _result;
    HRESULT _hr = get_SalutationType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(919)
inline void Word::_LetterContent::PutSalutationType ( enum WdSalutationType prop ) {
    HRESULT _hr = put_SalutationType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(920)
inline _bstr_t Word::_LetterContent::GetRecipientReference ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_RecipientReference(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(921)
inline void Word::_LetterContent::PutRecipientReference ( _bstr_t prop ) {
    HRESULT _hr = put_RecipientReference(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(922)
inline _bstr_t Word::_LetterContent::GetMailingInstructions ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_MailingInstructions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(923)
inline void Word::_LetterContent::PutMailingInstructions ( _bstr_t prop ) {
    HRESULT _hr = put_MailingInstructions(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(924)
inline _bstr_t Word::_LetterContent::GetAttentionLine ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_AttentionLine(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(925)
inline void Word::_LetterContent::PutAttentionLine ( _bstr_t prop ) {
    HRESULT _hr = put_AttentionLine(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(926)
inline _bstr_t Word::_LetterContent::GetSubject ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Subject(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(927)
inline void Word::_LetterContent::PutSubject ( _bstr_t prop ) {
    HRESULT _hr = put_Subject(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(928)
inline long Word::_LetterContent::GetEnclosureNumber ( ) {
    long _result = 0;
    HRESULT _hr = get_EnclosureNumber(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(929)
inline void Word::_LetterContent::PutEnclosureNumber ( long prop ) {
    HRESULT _hr = put_EnclosureNumber(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(930)
inline _bstr_t Word::_LetterContent::GetCCList ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_CCList(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(931)
inline void Word::_LetterContent::PutCCList ( _bstr_t prop ) {
    HRESULT _hr = put_CCList(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(932)
inline _bstr_t Word::_LetterContent::GetReturnAddress ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_ReturnAddress(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(933)
inline void Word::_LetterContent::PutReturnAddress ( _bstr_t prop ) {
    HRESULT _hr = put_ReturnAddress(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(934)
inline _bstr_t Word::_LetterContent::GetSenderName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_SenderName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(935)
inline void Word::_LetterContent::PutSenderName ( _bstr_t prop ) {
    HRESULT _hr = put_SenderName(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(936)
inline _bstr_t Word::_LetterContent::GetClosing ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Closing(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(937)
inline void Word::_LetterContent::PutClosing ( _bstr_t prop ) {
    HRESULT _hr = put_Closing(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(938)
inline _bstr_t Word::_LetterContent::GetSenderCompany ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_SenderCompany(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(939)
inline void Word::_LetterContent::PutSenderCompany ( _bstr_t prop ) {
    HRESULT _hr = put_SenderCompany(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(940)
inline _bstr_t Word::_LetterContent::GetSenderJobTitle ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_SenderJobTitle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(941)
inline void Word::_LetterContent::PutSenderJobTitle ( _bstr_t prop ) {
    HRESULT _hr = put_SenderJobTitle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(942)
inline _bstr_t Word::_LetterContent::GetSenderInitials ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_SenderInitials(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(943)
inline void Word::_LetterContent::PutSenderInitials ( _bstr_t prop ) {
    HRESULT _hr = put_SenderInitials(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(944)
inline VARIANT_BOOL Word::_LetterContent::GetInfoBlock ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_InfoBlock(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(945)
inline void Word::_LetterContent::PutInfoBlock ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_InfoBlock(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(946)
inline _bstr_t Word::_LetterContent::GetRecipientCode ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_RecipientCode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(947)
inline void Word::_LetterContent::PutRecipientCode ( _bstr_t prop ) {
    HRESULT _hr = put_RecipientCode(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(948)
inline enum Word::WdSalutationGender Word::_LetterContent::GetRecipientGender ( ) {
    enum WdSalutationGender _result;
    HRESULT _hr = get_RecipientGender(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(949)
inline void Word::_LetterContent::PutRecipientGender ( enum WdSalutationGender prop ) {
    HRESULT _hr = put_RecipientGender(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(950)
inline _bstr_t Word::_LetterContent::GetReturnAddressShortForm ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_ReturnAddressShortForm(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(951)
inline void Word::_LetterContent::PutReturnAddressShortForm ( _bstr_t prop ) {
    HRESULT _hr = put_ReturnAddressShortForm(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(952)
inline _bstr_t Word::_LetterContent::GetSenderCity ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_SenderCity(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(953)
inline void Word::_LetterContent::PutSenderCity ( _bstr_t prop ) {
    HRESULT _hr = put_SenderCity(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(954)
inline _bstr_t Word::_LetterContent::GetSenderCode ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_SenderCode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(955)
inline void Word::_LetterContent::PutSenderCode ( _bstr_t prop ) {
    HRESULT _hr = put_SenderCode(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(956)
inline enum Word::WdSalutationGender Word::_LetterContent::GetSenderGender ( ) {
    enum WdSalutationGender _result;
    HRESULT _hr = get_SenderGender(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(957)
inline void Word::_LetterContent::PutSenderGender ( enum WdSalutationGender prop ) {
    HRESULT _hr = put_SenderGender(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(958)
inline _bstr_t Word::_LetterContent::GetSenderReference ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_SenderReference(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(959)
inline void Word::_LetterContent::PutSenderReference ( _bstr_t prop ) {
    HRESULT _hr = put_SenderReference(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface IApplicationEvents wrapper method implementations
//

#pragma implementation_key(960)
inline HRESULT Word::IApplicationEvents::Startup ( ) {
    HRESULT _hr = raw_Startup();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(961)
inline HRESULT Word::IApplicationEvents::Quit ( ) {
    HRESULT _hr = raw_Quit();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(962)
inline HRESULT Word::IApplicationEvents::DocumentChange ( ) {
    HRESULT _hr = raw_DocumentChange();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// dispinterface ApplicationEvents2 wrapper method implementations
//

#pragma implementation_key(963)
inline HRESULT Word::ApplicationEvents2::Quit ( ) {
    return _com_dispatch_method(this, 0x2, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

#pragma implementation_key(964)
inline HRESULT Word::ApplicationEvents2::DocumentChange ( ) {
    return _com_dispatch_method(this, 0x3, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

#pragma implementation_key(965)
inline HRESULT Word::ApplicationEvents2::DocumentOpen ( struct _Document * Doc ) {
    return _com_dispatch_method(this, 0x4, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009", Doc);
}

#pragma implementation_key(966)
inline HRESULT Word::ApplicationEvents2::DocumentBeforeClose ( struct _Document * Doc, VARIANT_BOOL * Cancel ) {
    return _com_dispatch_method(this, 0x6, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x400b", Doc, Cancel);
}

#pragma implementation_key(967)
inline HRESULT Word::ApplicationEvents2::DocumentBeforePrint ( struct _Document * Doc, VARIANT_BOOL * Cancel ) {
    return _com_dispatch_method(this, 0x7, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x400b", Doc, Cancel);
}

#pragma implementation_key(968)
inline HRESULT Word::ApplicationEvents2::DocumentBeforeSave ( struct _Document * Doc, VARIANT_BOOL * SaveAsUI, VARIANT_BOOL * Cancel ) {
    return _com_dispatch_method(this, 0x8, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x400b\x400b", Doc, SaveAsUI, Cancel);
}

#pragma implementation_key(969)
inline HRESULT Word::ApplicationEvents2::NewDocument ( struct _Document * Doc ) {
    return _com_dispatch_method(this, 0x9, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009", Doc);
}

#pragma implementation_key(970)
inline HRESULT Word::ApplicationEvents2::WindowActivate ( struct _Document * Doc, struct Window * Wn ) {
    return _com_dispatch_method(this, 0xa, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x0009", Doc, Wn);
}

#pragma implementation_key(971)
inline HRESULT Word::ApplicationEvents2::WindowDeactivate ( struct _Document * Doc, struct Window * Wn ) {
    return _com_dispatch_method(this, 0xb, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x0009", Doc, Wn);
}

#pragma implementation_key(972)
inline HRESULT Word::ApplicationEvents2::WindowSelectionChange ( struct Selection * Sel ) {
    return _com_dispatch_method(this, 0xc, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009", Sel);
}

#pragma implementation_key(973)
inline HRESULT Word::ApplicationEvents2::WindowBeforeRightClick ( struct Selection * Sel, VARIANT_BOOL * Cancel ) {
    return _com_dispatch_method(this, 0xd, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x400b", Sel, Cancel);
}

#pragma implementation_key(974)
inline HRESULT Word::ApplicationEvents2::WindowBeforeDoubleClick ( struct Selection * Sel, VARIANT_BOOL * Cancel ) {
    return _com_dispatch_method(this, 0xe, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x400b", Sel, Cancel);
}

//
// interface TextColumns wrapper method implementations
//

#pragma implementation_key(975)
inline IUnknownPtr Word::TextColumns::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(976)
inline long Word::TextColumns::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(977)
inline Word::_ApplicationPtr Word::TextColumns::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(978)
inline long Word::TextColumns::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(979)
inline IDispatchPtr Word::TextColumns::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(980)
inline long Word::TextColumns::GetEvenlySpaced ( ) {
    long _result = 0;
    HRESULT _hr = get_EvenlySpaced(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(981)
inline void Word::TextColumns::PutEvenlySpaced ( long prop ) {
    HRESULT _hr = put_EvenlySpaced(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(982)
inline long Word::TextColumns::GetLineBetween ( ) {
    long _result = 0;
    HRESULT _hr = get_LineBetween(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(983)
inline void Word::TextColumns::PutLineBetween ( long prop ) {
    HRESULT _hr = put_LineBetween(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(984)
inline float Word::TextColumns::GetWidth ( ) {
    float _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(985)
inline void Word::TextColumns::PutWidth ( float prop ) {
    HRESULT _hr = put_Width(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(986)
inline float Word::TextColumns::GetSpacing ( ) {
    float _result = 0;
    HRESULT _hr = get_Spacing(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(987)
inline void Word::TextColumns::PutSpacing ( float prop ) {
    HRESULT _hr = put_Spacing(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(988)
inline Word::TextColumnPtr Word::TextColumns::Item ( long Index ) {
    struct TextColumn * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TextColumnPtr(_result, false);
}

#pragma implementation_key(989)
inline Word::TextColumnPtr Word::TextColumns::Add ( VARIANT * Width, VARIANT * Spacing, VARIANT * EvenlySpaced ) {
    struct TextColumn * _result = 0;
    HRESULT _hr = raw_Add(Width, Spacing, EvenlySpaced, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TextColumnPtr(_result, false);
}

#pragma implementation_key(990)
inline HRESULT Word::TextColumns::SetCount ( long NumColumns ) {
    HRESULT _hr = raw_SetCount(NumColumns);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(991)
inline enum Word::WdFlowDirection Word::TextColumns::GetFlowDirection ( ) {
    enum WdFlowDirection _result;
    HRESULT _hr = get_FlowDirection(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(992)
inline void Word::TextColumns::PutFlowDirection ( enum WdFlowDirection prop ) {
    HRESULT _hr = put_FlowDirection(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface PageSetup wrapper method implementations
//

#pragma implementation_key(993)
inline Word::_ApplicationPtr Word::PageSetup::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(994)
inline long Word::PageSetup::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(995)
inline IDispatchPtr Word::PageSetup::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(996)
inline float Word::PageSetup::GetTopMargin ( ) {
    float _result = 0;
    HRESULT _hr = get_TopMargin(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(997)
inline void Word::PageSetup::PutTopMargin ( float prop ) {
    HRESULT _hr = put_TopMargin(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(998)
inline float Word::PageSetup::GetBottomMargin ( ) {
    float _result = 0;
    HRESULT _hr = get_BottomMargin(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(999)
inline void Word::PageSetup::PutBottomMargin ( float prop ) {
    HRESULT _hr = put_BottomMargin(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1000)
inline float Word::PageSetup::GetLeftMargin ( ) {
    float _result = 0;
    HRESULT _hr = get_LeftMargin(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1001)
inline void Word::PageSetup::PutLeftMargin ( float prop ) {
    HRESULT _hr = put_LeftMargin(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1002)
inline float Word::PageSetup::GetRightMargin ( ) {
    float _result = 0;
    HRESULT _hr = get_RightMargin(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1003)
inline void Word::PageSetup::PutRightMargin ( float prop ) {
    HRESULT _hr = put_RightMargin(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1004)
inline float Word::PageSetup::GetGutter ( ) {
    float _result = 0;
    HRESULT _hr = get_Gutter(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1005)
inline void Word::PageSetup::PutGutter ( float prop ) {
    HRESULT _hr = put_Gutter(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1006)
inline float Word::PageSetup::GetPageWidth ( ) {
    float _result = 0;
    HRESULT _hr = get_PageWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1007)
inline void Word::PageSetup::PutPageWidth ( float prop ) {
    HRESULT _hr = put_PageWidth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1008)
inline float Word::PageSetup::GetPageHeight ( ) {
    float _result = 0;
    HRESULT _hr = get_PageHeight(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1009)
inline void Word::PageSetup::PutPageHeight ( float prop ) {
    HRESULT _hr = put_PageHeight(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1010)
inline enum Word::WdOrientation Word::PageSetup::GetOrientation ( ) {
    enum WdOrientation _result;
    HRESULT _hr = get_Orientation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1011)
inline void Word::PageSetup::PutOrientation ( enum WdOrientation prop ) {
    HRESULT _hr = put_Orientation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1012)
inline enum Word::WdPaperTray Word::PageSetup::GetFirstPageTray ( ) {
    enum WdPaperTray _result;
    HRESULT _hr = get_FirstPageTray(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1013)
inline void Word::PageSetup::PutFirstPageTray ( enum WdPaperTray prop ) {
    HRESULT _hr = put_FirstPageTray(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1014)
inline enum Word::WdPaperTray Word::PageSetup::GetOtherPagesTray ( ) {
    enum WdPaperTray _result;
    HRESULT _hr = get_OtherPagesTray(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1015)
inline void Word::PageSetup::PutOtherPagesTray ( enum WdPaperTray prop ) {
    HRESULT _hr = put_OtherPagesTray(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1016)
inline enum Word::WdVerticalAlignment Word::PageSetup::GetVerticalAlignment ( ) {
    enum WdVerticalAlignment _result;
    HRESULT _hr = get_VerticalAlignment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1017)
inline void Word::PageSetup::PutVerticalAlignment ( enum WdVerticalAlignment prop ) {
    HRESULT _hr = put_VerticalAlignment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1018)
inline long Word::PageSetup::GetMirrorMargins ( ) {
    long _result = 0;
    HRESULT _hr = get_MirrorMargins(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1019)
inline void Word::PageSetup::PutMirrorMargins ( long prop ) {
    HRESULT _hr = put_MirrorMargins(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1020)
inline float Word::PageSetup::GetHeaderDistance ( ) {
    float _result = 0;
    HRESULT _hr = get_HeaderDistance(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1021)
inline void Word::PageSetup::PutHeaderDistance ( float prop ) {
    HRESULT _hr = put_HeaderDistance(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1022)
inline float Word::PageSetup::GetFooterDistance ( ) {
    float _result = 0;
    HRESULT _hr = get_FooterDistance(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1023)
inline void Word::PageSetup::PutFooterDistance ( float prop ) {
    HRESULT _hr = put_FooterDistance(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1024)
inline enum Word::WdSectionStart Word::PageSetup::GetSectionStart ( ) {
    enum WdSectionStart _result;
    HRESULT _hr = get_SectionStart(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1025)
inline void Word::PageSetup::PutSectionStart ( enum WdSectionStart prop ) {
    HRESULT _hr = put_SectionStart(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1026)
inline long Word::PageSetup::GetOddAndEvenPagesHeaderFooter ( ) {
    long _result = 0;
    HRESULT _hr = get_OddAndEvenPagesHeaderFooter(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1027)
inline void Word::PageSetup::PutOddAndEvenPagesHeaderFooter ( long prop ) {
    HRESULT _hr = put_OddAndEvenPagesHeaderFooter(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1028)
inline long Word::PageSetup::GetDifferentFirstPageHeaderFooter ( ) {
    long _result = 0;
    HRESULT _hr = get_DifferentFirstPageHeaderFooter(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1029)
inline void Word::PageSetup::PutDifferentFirstPageHeaderFooter ( long prop ) {
    HRESULT _hr = put_DifferentFirstPageHeaderFooter(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1030)
inline long Word::PageSetup::GetSuppressEndnotes ( ) {
    long _result = 0;
    HRESULT _hr = get_SuppressEndnotes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1031)
inline void Word::PageSetup::PutSuppressEndnotes ( long prop ) {
    HRESULT _hr = put_SuppressEndnotes(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1032)
inline Word::LineNumberingPtr Word::PageSetup::GetLineNumbering ( ) {
    struct LineNumbering * _result = 0;
    HRESULT _hr = get_LineNumbering(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return LineNumberingPtr(_result, false);
}

#pragma implementation_key(1033)
inline void Word::PageSetup::PutLineNumbering ( struct LineNumbering * prop ) {
    HRESULT _hr = put_LineNumbering(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1034)
inline Word::TextColumnsPtr Word::PageSetup::GetTextColumns ( ) {
    struct TextColumns * _result = 0;
    HRESULT _hr = get_TextColumns(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TextColumnsPtr(_result, false);
}

#pragma implementation_key(1035)
inline void Word::PageSetup::PutTextColumns ( struct TextColumns * prop ) {
    HRESULT _hr = put_TextColumns(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1036)
inline enum Word::WdPaperSize Word::PageSetup::GetPaperSize ( ) {
    enum WdPaperSize _result;
    HRESULT _hr = get_PaperSize(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1037)
inline void Word::PageSetup::PutPaperSize ( enum WdPaperSize prop ) {
    HRESULT _hr = put_PaperSize(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1038)
inline VARIANT_BOOL Word::PageSetup::GetTwoPagesOnOne ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_TwoPagesOnOne(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1039)
inline void Word::PageSetup::PutTwoPagesOnOne ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_TwoPagesOnOne(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1040)
inline VARIANT_BOOL Word::PageSetup::GetGutterOnTop ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_GutterOnTop(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1041)
inline void Word::PageSetup::PutGutterOnTop ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_GutterOnTop(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1042)
inline float Word::PageSetup::GetCharsLine ( ) {
    float _result = 0;
    HRESULT _hr = get_CharsLine(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1043)
inline void Word::PageSetup::PutCharsLine ( float prop ) {
    HRESULT _hr = put_CharsLine(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1044)
inline float Word::PageSetup::GetLinesPage ( ) {
    float _result = 0;
    HRESULT _hr = get_LinesPage(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1045)
inline void Word::PageSetup::PutLinesPage ( float prop ) {
    HRESULT _hr = put_LinesPage(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1046)
inline VARIANT_BOOL Word::PageSetup::GetShowGrid ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowGrid(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1047)
inline void Word::PageSetup::PutShowGrid ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowGrid(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1048)
inline HRESULT Word::PageSetup::TogglePortrait ( ) {
    HRESULT _hr = raw_TogglePortrait();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1049)
inline HRESULT Word::PageSetup::SetAsTemplateDefault ( ) {
    HRESULT _hr = raw_SetAsTemplateDefault();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1050)
inline enum Word::WdGutterStyleOld Word::PageSetup::GetGutterStyle ( ) {
    enum WdGutterStyleOld _result;
    HRESULT _hr = get_GutterStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1051)
inline void Word::PageSetup::PutGutterStyle ( enum WdGutterStyleOld prop ) {
    HRESULT _hr = put_GutterStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1052)
inline enum Word::WdSectionDirection Word::PageSetup::GetSectionDirection ( ) {
    enum WdSectionDirection _result;
    HRESULT _hr = get_SectionDirection(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1053)
inline void Word::PageSetup::PutSectionDirection ( enum WdSectionDirection prop ) {
    HRESULT _hr = put_SectionDirection(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1054)
inline enum Word::WdLayoutMode Word::PageSetup::GetLayoutMode ( ) {
    enum WdLayoutMode _result;
    HRESULT _hr = get_LayoutMode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1055)
inline void Word::PageSetup::PutLayoutMode ( enum WdLayoutMode prop ) {
    HRESULT _hr = put_LayoutMode(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1056)
inline enum Word::WdGutterStyle Word::PageSetup::GetGutterPos ( ) {
    enum WdGutterStyle _result;
    HRESULT _hr = get_GutterPos(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1057)
inline void Word::PageSetup::PutGutterPos ( enum WdGutterStyle prop ) {
    HRESULT _hr = put_GutterPos(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1058)
inline VARIANT_BOOL Word::PageSetup::GetBookFoldPrinting ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_BookFoldPrinting(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1059)
inline void Word::PageSetup::PutBookFoldPrinting ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_BookFoldPrinting(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1060)
inline VARIANT_BOOL Word::PageSetup::GetBookFoldRevPrinting ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_BookFoldRevPrinting(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1061)
inline void Word::PageSetup::PutBookFoldRevPrinting ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_BookFoldRevPrinting(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1062)
inline long Word::PageSetup::GetBookFoldPrintingSheets ( ) {
    long _result = 0;
    HRESULT _hr = get_BookFoldPrintingSheets(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1063)
inline void Word::PageSetup::PutBookFoldPrintingSheets ( long prop ) {
    HRESULT _hr = put_BookFoldPrintingSheets(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface Border wrapper method implementations
//

#pragma implementation_key(1064)
inline Word::_ApplicationPtr Word::Border::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1065)
inline long Word::Border::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1066)
inline IDispatchPtr Word::Border::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1067)
inline VARIANT_BOOL Word::Border::GetVisible ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Visible(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1068)
inline void Word::Border::PutVisible ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Visible(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1069)
inline enum Word::WdColorIndex Word::Border::GetColorIndex ( ) {
    enum WdColorIndex _result;
    HRESULT _hr = get_ColorIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1070)
inline void Word::Border::PutColorIndex ( enum WdColorIndex prop ) {
    HRESULT _hr = put_ColorIndex(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1071)
inline VARIANT_BOOL Word::Border::GetInside ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Inside(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1072)
inline enum Word::WdLineStyle Word::Border::GetLineStyle ( ) {
    enum WdLineStyle _result;
    HRESULT _hr = get_LineStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1073)
inline void Word::Border::PutLineStyle ( enum WdLineStyle prop ) {
    HRESULT _hr = put_LineStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1074)
inline enum Word::WdLineWidth Word::Border::GetLineWidth ( ) {
    enum WdLineWidth _result;
    HRESULT _hr = get_LineWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1075)
inline void Word::Border::PutLineWidth ( enum WdLineWidth prop ) {
    HRESULT _hr = put_LineWidth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1076)
inline enum Word::WdPageBorderArt Word::Border::GetArtStyle ( ) {
    enum WdPageBorderArt _result;
    HRESULT _hr = get_ArtStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1077)
inline void Word::Border::PutArtStyle ( enum WdPageBorderArt prop ) {
    HRESULT _hr = put_ArtStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1078)
inline long Word::Border::GetArtWidth ( ) {
    long _result = 0;
    HRESULT _hr = get_ArtWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1079)
inline void Word::Border::PutArtWidth ( long prop ) {
    HRESULT _hr = put_ArtWidth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1080)
inline enum Word::WdColor Word::Border::GetColor ( ) {
    enum WdColor _result;
    HRESULT _hr = get_Color(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1081)
inline void Word::Border::PutColor ( enum WdColor prop ) {
    HRESULT _hr = put_Color(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface Borders wrapper method implementations
//

#pragma implementation_key(1082)
inline Word::_ApplicationPtr Word::Borders::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1083)
inline long Word::Borders::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1084)
inline IDispatchPtr Word::Borders::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1085)
inline IUnknownPtr Word::Borders::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(1086)
inline long Word::Borders::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1087)
inline long Word::Borders::GetEnable ( ) {
    long _result = 0;
    HRESULT _hr = get_Enable(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1088)
inline void Word::Borders::PutEnable ( long prop ) {
    HRESULT _hr = put_Enable(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1089)
inline long Word::Borders::GetDistanceFromTop ( ) {
    long _result = 0;
    HRESULT _hr = get_DistanceFromTop(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1090)
inline void Word::Borders::PutDistanceFromTop ( long prop ) {
    HRESULT _hr = put_DistanceFromTop(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1091)
inline VARIANT_BOOL Word::Borders::GetShadow ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Shadow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1092)
inline void Word::Borders::PutShadow ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Shadow(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1093)
inline enum Word::WdLineStyle Word::Borders::GetInsideLineStyle ( ) {
    enum WdLineStyle _result;
    HRESULT _hr = get_InsideLineStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1094)
inline void Word::Borders::PutInsideLineStyle ( enum WdLineStyle prop ) {
    HRESULT _hr = put_InsideLineStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1095)
inline enum Word::WdLineStyle Word::Borders::GetOutsideLineStyle ( ) {
    enum WdLineStyle _result;
    HRESULT _hr = get_OutsideLineStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1096)
inline void Word::Borders::PutOutsideLineStyle ( enum WdLineStyle prop ) {
    HRESULT _hr = put_OutsideLineStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1097)
inline enum Word::WdLineWidth Word::Borders::GetInsideLineWidth ( ) {
    enum WdLineWidth _result;
    HRESULT _hr = get_InsideLineWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1098)
inline void Word::Borders::PutInsideLineWidth ( enum WdLineWidth prop ) {
    HRESULT _hr = put_InsideLineWidth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1099)
inline enum Word::WdLineWidth Word::Borders::GetOutsideLineWidth ( ) {
    enum WdLineWidth _result;
    HRESULT _hr = get_OutsideLineWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1100)
inline void Word::Borders::PutOutsideLineWidth ( enum WdLineWidth prop ) {
    HRESULT _hr = put_OutsideLineWidth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1101)
inline enum Word::WdColorIndex Word::Borders::GetInsideColorIndex ( ) {
    enum WdColorIndex _result;
    HRESULT _hr = get_InsideColorIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1102)
inline void Word::Borders::PutInsideColorIndex ( enum WdColorIndex prop ) {
    HRESULT _hr = put_InsideColorIndex(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1103)
inline enum Word::WdColorIndex Word::Borders::GetOutsideColorIndex ( ) {
    enum WdColorIndex _result;
    HRESULT _hr = get_OutsideColorIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1104)
inline void Word::Borders::PutOutsideColorIndex ( enum WdColorIndex prop ) {
    HRESULT _hr = put_OutsideColorIndex(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1105)
inline long Word::Borders::GetDistanceFromLeft ( ) {
    long _result = 0;
    HRESULT _hr = get_DistanceFromLeft(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1106)
inline void Word::Borders::PutDistanceFromLeft ( long prop ) {
    HRESULT _hr = put_DistanceFromLeft(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1107)
inline long Word::Borders::GetDistanceFromBottom ( ) {
    long _result = 0;
    HRESULT _hr = get_DistanceFromBottom(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1108)
inline void Word::Borders::PutDistanceFromBottom ( long prop ) {
    HRESULT _hr = put_DistanceFromBottom(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1109)
inline long Word::Borders::GetDistanceFromRight ( ) {
    long _result = 0;
    HRESULT _hr = get_DistanceFromRight(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1110)
inline void Word::Borders::PutDistanceFromRight ( long prop ) {
    HRESULT _hr = put_DistanceFromRight(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1111)
inline VARIANT_BOOL Word::Borders::GetAlwaysInFront ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AlwaysInFront(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1112)
inline void Word::Borders::PutAlwaysInFront ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AlwaysInFront(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1113)
inline VARIANT_BOOL Word::Borders::GetSurroundHeader ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SurroundHeader(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1114)
inline void Word::Borders::PutSurroundHeader ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_SurroundHeader(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1115)
inline VARIANT_BOOL Word::Borders::GetSurroundFooter ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SurroundFooter(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1116)
inline void Word::Borders::PutSurroundFooter ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_SurroundFooter(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1117)
inline VARIANT_BOOL Word::Borders::GetJoinBorders ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_JoinBorders(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1118)
inline void Word::Borders::PutJoinBorders ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_JoinBorders(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1119)
inline VARIANT_BOOL Word::Borders::GetHasHorizontal ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HasHorizontal(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1120)
inline VARIANT_BOOL Word::Borders::GetHasVertical ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HasVertical(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1121)
inline enum Word::WdBorderDistanceFrom Word::Borders::GetDistanceFrom ( ) {
    enum WdBorderDistanceFrom _result;
    HRESULT _hr = get_DistanceFrom(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1122)
inline void Word::Borders::PutDistanceFrom ( enum WdBorderDistanceFrom prop ) {
    HRESULT _hr = put_DistanceFrom(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1123)
inline VARIANT_BOOL Word::Borders::GetEnableFirstPageInSection ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_EnableFirstPageInSection(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1124)
inline void Word::Borders::PutEnableFirstPageInSection ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_EnableFirstPageInSection(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1125)
inline VARIANT_BOOL Word::Borders::GetEnableOtherPagesInSection ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_EnableOtherPagesInSection(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1126)
inline void Word::Borders::PutEnableOtherPagesInSection ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_EnableOtherPagesInSection(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1127)
inline Word::BorderPtr Word::Borders::Item ( enum WdBorderType Index ) {
    struct Border * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BorderPtr(_result, false);
}

#pragma implementation_key(1128)
inline HRESULT Word::Borders::ApplyPageBordersToAllSections ( ) {
    HRESULT _hr = raw_ApplyPageBordersToAllSections();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1129)
inline enum Word::WdColor Word::Borders::GetInsideColor ( ) {
    enum WdColor _result;
    HRESULT _hr = get_InsideColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1130)
inline void Word::Borders::PutInsideColor ( enum WdColor prop ) {
    HRESULT _hr = put_InsideColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1131)
inline enum Word::WdColor Word::Borders::GetOutsideColor ( ) {
    enum WdColor _result;
    HRESULT _hr = get_OutsideColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1132)
inline void Word::Borders::PutOutsideColor ( enum WdColor prop ) {
    HRESULT _hr = put_OutsideColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface Shading wrapper method implementations
//

#pragma implementation_key(1133)
inline Word::_ApplicationPtr Word::Shading::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1134)
inline long Word::Shading::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1135)
inline IDispatchPtr Word::Shading::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1136)
inline enum Word::WdColorIndex Word::Shading::GetForegroundPatternColorIndex ( ) {
    enum WdColorIndex _result;
    HRESULT _hr = get_ForegroundPatternColorIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1137)
inline void Word::Shading::PutForegroundPatternColorIndex ( enum WdColorIndex prop ) {
    HRESULT _hr = put_ForegroundPatternColorIndex(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1138)
inline enum Word::WdColorIndex Word::Shading::GetBackgroundPatternColorIndex ( ) {
    enum WdColorIndex _result;
    HRESULT _hr = get_BackgroundPatternColorIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1139)
inline void Word::Shading::PutBackgroundPatternColorIndex ( enum WdColorIndex prop ) {
    HRESULT _hr = put_BackgroundPatternColorIndex(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1140)
inline enum Word::WdTextureIndex Word::Shading::GetTexture ( ) {
    enum WdTextureIndex _result;
    HRESULT _hr = get_Texture(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1141)
inline void Word::Shading::PutTexture ( enum WdTextureIndex prop ) {
    HRESULT _hr = put_Texture(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1142)
inline enum Word::WdColor Word::Shading::GetForegroundPatternColor ( ) {
    enum WdColor _result;
    HRESULT _hr = get_ForegroundPatternColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1143)
inline void Word::Shading::PutForegroundPatternColor ( enum WdColor prop ) {
    HRESULT _hr = put_ForegroundPatternColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1144)
inline enum Word::WdColor Word::Shading::GetBackgroundPatternColor ( ) {
    enum WdColor _result;
    HRESULT _hr = get_BackgroundPatternColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1145)
inline void Word::Shading::PutBackgroundPatternColor ( enum WdColor prop ) {
    HRESULT _hr = put_BackgroundPatternColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface HorizontalLineFormat wrapper method implementations
//

#pragma implementation_key(1146)
inline Word::_ApplicationPtr Word::HorizontalLineFormat::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1147)
inline long Word::HorizontalLineFormat::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1148)
inline IDispatchPtr Word::HorizontalLineFormat::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1149)
inline float Word::HorizontalLineFormat::GetPercentWidth ( ) {
    float _result = 0;
    HRESULT _hr = get_PercentWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1150)
inline void Word::HorizontalLineFormat::PutPercentWidth ( float prop ) {
    HRESULT _hr = put_PercentWidth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1151)
inline VARIANT_BOOL Word::HorizontalLineFormat::GetNoShade ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_NoShade(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1152)
inline void Word::HorizontalLineFormat::PutNoShade ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_NoShade(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1153)
inline enum Word::WdHorizontalLineAlignment Word::HorizontalLineFormat::GetAlignment ( ) {
    enum WdHorizontalLineAlignment _result;
    HRESULT _hr = get_Alignment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1154)
inline void Word::HorizontalLineFormat::PutAlignment ( enum WdHorizontalLineAlignment prop ) {
    HRESULT _hr = put_Alignment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1155)
inline enum Word::WdHorizontalLineWidthType Word::HorizontalLineFormat::GetWidthType ( ) {
    enum WdHorizontalLineWidthType _result;
    HRESULT _hr = get_WidthType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1156)
inline void Word::HorizontalLineFormat::PutWidthType ( enum WdHorizontalLineWidthType prop ) {
    HRESULT _hr = put_WidthType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface Frameset wrapper method implementations
//

#pragma implementation_key(1157)
inline Word::_ApplicationPtr Word::Frameset::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1158)
inline long Word::Frameset::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1159)
inline IDispatchPtr Word::Frameset::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1160)
inline IUnknownPtr Word::Frameset::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(1161)
inline Word::FramesetPtr Word::Frameset::GetParentFrameset ( ) {
    struct Frameset * _result = 0;
    HRESULT _hr = get_ParentFrameset(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FramesetPtr(_result, false);
}

#pragma implementation_key(1162)
inline enum Word::WdFramesetType Word::Frameset::GetType ( ) {
    enum WdFramesetType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1163)
inline enum Word::WdFramesetSizeType Word::Frameset::GetWidthType ( ) {
    enum WdFramesetSizeType _result;
    HRESULT _hr = get_WidthType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1164)
inline void Word::Frameset::PutWidthType ( enum WdFramesetSizeType prop ) {
    HRESULT _hr = put_WidthType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1165)
inline enum Word::WdFramesetSizeType Word::Frameset::GetHeightType ( ) {
    enum WdFramesetSizeType _result;
    HRESULT _hr = get_HeightType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1166)
inline void Word::Frameset::PutHeightType ( enum WdFramesetSizeType prop ) {
    HRESULT _hr = put_HeightType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1167)
inline long Word::Frameset::GetWidth ( ) {
    long _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1168)
inline void Word::Frameset::PutWidth ( long prop ) {
    HRESULT _hr = put_Width(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1169)
inline long Word::Frameset::GetHeight ( ) {
    long _result = 0;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1170)
inline void Word::Frameset::PutHeight ( long prop ) {
    HRESULT _hr = put_Height(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1171)
inline long Word::Frameset::GetChildFramesetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_ChildFramesetCount(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1172)
inline Word::FramesetPtr Word::Frameset::GetChildFramesetItem ( long Index ) {
    struct Frameset * _result = 0;
    HRESULT _hr = get_ChildFramesetItem(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FramesetPtr(_result, false);
}

#pragma implementation_key(1173)
inline float Word::Frameset::GetFramesetBorderWidth ( ) {
    float _result = 0;
    HRESULT _hr = get_FramesetBorderWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1174)
inline void Word::Frameset::PutFramesetBorderWidth ( float prop ) {
    HRESULT _hr = put_FramesetBorderWidth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1175)
inline enum Word::WdColor Word::Frameset::GetFramesetBorderColor ( ) {
    enum WdColor _result;
    HRESULT _hr = get_FramesetBorderColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1176)
inline void Word::Frameset::PutFramesetBorderColor ( enum WdColor prop ) {
    HRESULT _hr = put_FramesetBorderColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1177)
inline enum Word::WdScrollbarType Word::Frameset::GetFrameScrollbarType ( ) {
    enum WdScrollbarType _result;
    HRESULT _hr = get_FrameScrollbarType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1178)
inline void Word::Frameset::PutFrameScrollbarType ( enum WdScrollbarType prop ) {
    HRESULT _hr = put_FrameScrollbarType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1179)
inline VARIANT_BOOL Word::Frameset::GetFrameResizable ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_FrameResizable(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1180)
inline void Word::Frameset::PutFrameResizable ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_FrameResizable(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1181)
inline _bstr_t Word::Frameset::GetFrameName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_FrameName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1182)
inline void Word::Frameset::PutFrameName ( _bstr_t prop ) {
    HRESULT _hr = put_FrameName(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1183)
inline VARIANT_BOOL Word::Frameset::GetFrameDisplayBorders ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_FrameDisplayBorders(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1184)
inline void Word::Frameset::PutFrameDisplayBorders ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_FrameDisplayBorders(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1185)
inline _bstr_t Word::Frameset::GetFrameDefaultURL ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_FrameDefaultURL(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1186)
inline void Word::Frameset::PutFrameDefaultURL ( _bstr_t prop ) {
    HRESULT _hr = put_FrameDefaultURL(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1187)
inline VARIANT_BOOL Word::Frameset::GetFrameLinkToFile ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_FrameLinkToFile(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1188)
inline void Word::Frameset::PutFrameLinkToFile ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_FrameLinkToFile(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1189)
inline Word::FramesetPtr Word::Frameset::AddNewFrame ( enum WdFramesetNewFrameLocation Where ) {
    struct Frameset * _result = 0;
    HRESULT _hr = raw_AddNewFrame(Where, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FramesetPtr(_result, false);
}

#pragma implementation_key(1190)
inline HRESULT Word::Frameset::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface DefaultWebOptions wrapper method implementations
//

#pragma implementation_key(1191)
inline Word::_ApplicationPtr Word::DefaultWebOptions::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1192)
inline long Word::DefaultWebOptions::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1193)
inline IDispatchPtr Word::DefaultWebOptions::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1194)
inline VARIANT_BOOL Word::DefaultWebOptions::GetOptimizeForBrowser ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_OptimizeForBrowser(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1195)
inline void Word::DefaultWebOptions::PutOptimizeForBrowser ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_OptimizeForBrowser(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1196)
inline enum Word::WdBrowserLevel Word::DefaultWebOptions::GetBrowserLevel ( ) {
    enum WdBrowserLevel _result;
    HRESULT _hr = get_BrowserLevel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1197)
inline void Word::DefaultWebOptions::PutBrowserLevel ( enum WdBrowserLevel prop ) {
    HRESULT _hr = put_BrowserLevel(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1198)
inline VARIANT_BOOL Word::DefaultWebOptions::GetRelyOnCSS ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_RelyOnCSS(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1199)
inline void Word::DefaultWebOptions::PutRelyOnCSS ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_RelyOnCSS(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1200)
inline VARIANT_BOOL Word::DefaultWebOptions::GetOrganizeInFolder ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_OrganizeInFolder(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1201)
inline void Word::DefaultWebOptions::PutOrganizeInFolder ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_OrganizeInFolder(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1202)
inline VARIANT_BOOL Word::DefaultWebOptions::GetUpdateLinksOnSave ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_UpdateLinksOnSave(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1203)
inline void Word::DefaultWebOptions::PutUpdateLinksOnSave ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_UpdateLinksOnSave(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1204)
inline VARIANT_BOOL Word::DefaultWebOptions::GetUseLongFileNames ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_UseLongFileNames(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1205)
inline void Word::DefaultWebOptions::PutUseLongFileNames ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_UseLongFileNames(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1206)
inline VARIANT_BOOL Word::DefaultWebOptions::GetCheckIfOfficeIsHTMLEditor ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_CheckIfOfficeIsHTMLEditor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1207)
inline void Word::DefaultWebOptions::PutCheckIfOfficeIsHTMLEditor ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_CheckIfOfficeIsHTMLEditor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1208)
inline VARIANT_BOOL Word::DefaultWebOptions::GetCheckIfWordIsDefaultHTMLEditor ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_CheckIfWordIsDefaultHTMLEditor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1209)
inline void Word::DefaultWebOptions::PutCheckIfWordIsDefaultHTMLEditor ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_CheckIfWordIsDefaultHTMLEditor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1210)
inline VARIANT_BOOL Word::DefaultWebOptions::GetRelyOnVML ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_RelyOnVML(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1211)
inline void Word::DefaultWebOptions::PutRelyOnVML ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_RelyOnVML(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1212)
inline VARIANT_BOOL Word::DefaultWebOptions::GetAllowPNG ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AllowPNG(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1213)
inline void Word::DefaultWebOptions::PutAllowPNG ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AllowPNG(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1214)
inline enum Office::MsoScreenSize Word::DefaultWebOptions::GetScreenSize ( ) {
    enum Office::MsoScreenSize _result;
    HRESULT _hr = get_ScreenSize(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1215)
inline void Word::DefaultWebOptions::PutScreenSize ( enum Office::MsoScreenSize prop ) {
    HRESULT _hr = put_ScreenSize(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1216)
inline long Word::DefaultWebOptions::GetPixelsPerInch ( ) {
    long _result = 0;
    HRESULT _hr = get_PixelsPerInch(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1217)
inline void Word::DefaultWebOptions::PutPixelsPerInch ( long prop ) {
    HRESULT _hr = put_PixelsPerInch(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1218)
inline enum Office::MsoEncoding Word::DefaultWebOptions::GetEncoding ( ) {
    enum Office::MsoEncoding _result;
    HRESULT _hr = get_Encoding(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1219)
inline void Word::DefaultWebOptions::PutEncoding ( enum Office::MsoEncoding prop ) {
    HRESULT _hr = put_Encoding(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1220)
inline VARIANT_BOOL Word::DefaultWebOptions::GetAlwaysSaveInDefaultEncoding ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AlwaysSaveInDefaultEncoding(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1221)
inline void Word::DefaultWebOptions::PutAlwaysSaveInDefaultEncoding ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AlwaysSaveInDefaultEncoding(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1222)
inline Office::WebPageFontsPtr Word::DefaultWebOptions::GetFonts ( ) {
    struct Office::WebPageFonts * _result = 0;
    HRESULT _hr = get_Fonts(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::WebPageFontsPtr(_result, false);
}

#pragma implementation_key(1223)
inline _bstr_t Word::DefaultWebOptions::GetFolderSuffix ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_FolderSuffix(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1224)
inline enum Office::MsoTargetBrowser Word::DefaultWebOptions::GetTargetBrowser ( ) {
    enum Office::MsoTargetBrowser _result;
    HRESULT _hr = get_TargetBrowser(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1225)
inline void Word::DefaultWebOptions::PutTargetBrowser ( enum Office::MsoTargetBrowser prop ) {
    HRESULT _hr = put_TargetBrowser(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1226)
inline VARIANT_BOOL Word::DefaultWebOptions::GetSaveNewWebPagesAsWebArchives ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SaveNewWebPagesAsWebArchives(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1227)
inline void Word::DefaultWebOptions::PutSaveNewWebPagesAsWebArchives ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_SaveNewWebPagesAsWebArchives(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface WebOptions wrapper method implementations
//

#pragma implementation_key(1228)
inline Word::_ApplicationPtr Word::WebOptions::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1229)
inline long Word::WebOptions::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1230)
inline IDispatchPtr Word::WebOptions::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1231)
inline VARIANT_BOOL Word::WebOptions::GetOptimizeForBrowser ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_OptimizeForBrowser(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1232)
inline void Word::WebOptions::PutOptimizeForBrowser ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_OptimizeForBrowser(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1233)
inline enum Word::WdBrowserLevel Word::WebOptions::GetBrowserLevel ( ) {
    enum WdBrowserLevel _result;
    HRESULT _hr = get_BrowserLevel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1234)
inline void Word::WebOptions::PutBrowserLevel ( enum WdBrowserLevel prop ) {
    HRESULT _hr = put_BrowserLevel(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1235)
inline VARIANT_BOOL Word::WebOptions::GetRelyOnCSS ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_RelyOnCSS(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1236)
inline void Word::WebOptions::PutRelyOnCSS ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_RelyOnCSS(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1237)
inline VARIANT_BOOL Word::WebOptions::GetOrganizeInFolder ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_OrganizeInFolder(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1238)
inline void Word::WebOptions::PutOrganizeInFolder ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_OrganizeInFolder(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1239)
inline VARIANT_BOOL Word::WebOptions::GetUseLongFileNames ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_UseLongFileNames(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1240)
inline void Word::WebOptions::PutUseLongFileNames ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_UseLongFileNames(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1241)
inline VARIANT_BOOL Word::WebOptions::GetRelyOnVML ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_RelyOnVML(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1242)
inline void Word::WebOptions::PutRelyOnVML ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_RelyOnVML(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1243)
inline VARIANT_BOOL Word::WebOptions::GetAllowPNG ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AllowPNG(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1244)
inline void Word::WebOptions::PutAllowPNG ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AllowPNG(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1245)
inline enum Office::MsoScreenSize Word::WebOptions::GetScreenSize ( ) {
    enum Office::MsoScreenSize _result;
    HRESULT _hr = get_ScreenSize(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1246)
inline void Word::WebOptions::PutScreenSize ( enum Office::MsoScreenSize prop ) {
    HRESULT _hr = put_ScreenSize(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1247)
inline long Word::WebOptions::GetPixelsPerInch ( ) {
    long _result = 0;
    HRESULT _hr = get_PixelsPerInch(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1248)
inline void Word::WebOptions::PutPixelsPerInch ( long prop ) {
    HRESULT _hr = put_PixelsPerInch(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1249)
inline enum Office::MsoEncoding Word::WebOptions::GetEncoding ( ) {
    enum Office::MsoEncoding _result;
    HRESULT _hr = get_Encoding(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1250)
inline void Word::WebOptions::PutEncoding ( enum Office::MsoEncoding prop ) {
    HRESULT _hr = put_Encoding(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1251)
inline _bstr_t Word::WebOptions::GetFolderSuffix ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_FolderSuffix(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1252)
inline HRESULT Word::WebOptions::UseDefaultFolderSuffix ( ) {
    HRESULT _hr = raw_UseDefaultFolderSuffix();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1253)
inline enum Office::MsoTargetBrowser Word::WebOptions::GetTargetBrowser ( ) {
    enum Office::MsoTargetBrowser _result;
    HRESULT _hr = get_TargetBrowser(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1254)
inline void Word::WebOptions::PutTargetBrowser ( enum Office::MsoTargetBrowser prop ) {
    HRESULT _hr = put_TargetBrowser(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface OtherCorrectionsException wrapper method implementations
//

#pragma implementation_key(1255)
inline Word::_ApplicationPtr Word::OtherCorrectionsException::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1256)
inline long Word::OtherCorrectionsException::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1257)
inline IDispatchPtr Word::OtherCorrectionsException::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1258)
inline long Word::OtherCorrectionsException::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1259)
inline _bstr_t Word::OtherCorrectionsException::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1260)
inline HRESULT Word::OtherCorrectionsException::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface OtherCorrectionsExceptions wrapper method implementations
//

#pragma implementation_key(1261)
inline Word::_ApplicationPtr Word::OtherCorrectionsExceptions::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1262)
inline long Word::OtherCorrectionsExceptions::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1263)
inline IDispatchPtr Word::OtherCorrectionsExceptions::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1264)
inline IUnknownPtr Word::OtherCorrectionsExceptions::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(1265)
inline long Word::OtherCorrectionsExceptions::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1266)
inline Word::OtherCorrectionsExceptionPtr Word::OtherCorrectionsExceptions::Item ( VARIANT * Index ) {
    struct OtherCorrectionsException * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OtherCorrectionsExceptionPtr(_result, false);
}

#pragma implementation_key(1267)
inline Word::OtherCorrectionsExceptionPtr Word::OtherCorrectionsExceptions::Add ( _bstr_t Name ) {
    struct OtherCorrectionsException * _result = 0;
    HRESULT _hr = raw_Add(Name, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OtherCorrectionsExceptionPtr(_result, false);
}

//
// interface EmailSignatureEntry wrapper method implementations
//

#pragma implementation_key(1268)
inline Word::_ApplicationPtr Word::EmailSignatureEntry::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1269)
inline long Word::EmailSignatureEntry::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1270)
inline IDispatchPtr Word::EmailSignatureEntry::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1271)
inline long Word::EmailSignatureEntry::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1272)
inline _bstr_t Word::EmailSignatureEntry::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1273)
inline void Word::EmailSignatureEntry::PutName ( _bstr_t prop ) {
    HRESULT _hr = put_Name(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1274)
inline HRESULT Word::EmailSignatureEntry::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface CustomProperty wrapper method implementations
//

#pragma implementation_key(1275)
inline _bstr_t Word::CustomProperty::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1276)
inline _bstr_t Word::CustomProperty::GetValue ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Value(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1277)
inline void Word::CustomProperty::PutValue ( _bstr_t prop ) {
    HRESULT _hr = put_Value(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1278)
inline Word::_ApplicationPtr Word::CustomProperty::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1279)
inline long Word::CustomProperty::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1280)
inline IDispatchPtr Word::CustomProperty::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1281)
inline HRESULT Word::CustomProperty::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface CustomProperties wrapper method implementations
//

#pragma implementation_key(1282)
inline IUnknownPtr Word::CustomProperties::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(1283)
inline long Word::CustomProperties::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1284)
inline Word::_ApplicationPtr Word::CustomProperties::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1285)
inline long Word::CustomProperties::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1286)
inline IDispatchPtr Word::CustomProperties::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1287)
inline Word::CustomPropertyPtr Word::CustomProperties::Item ( VARIANT * Index ) {
    struct CustomProperty * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CustomPropertyPtr(_result, false);
}

#pragma implementation_key(1288)
inline Word::CustomPropertyPtr Word::CustomProperties::Add ( _bstr_t Name, _bstr_t Value ) {
    struct CustomProperty * _result = 0;
    HRESULT _hr = raw_Add(Name, Value, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CustomPropertyPtr(_result, false);
}

//
// interface MappedDataField wrapper method implementations
//

#pragma implementation_key(1289)
inline Word::_ApplicationPtr Word::MappedDataField::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1290)
inline long Word::MappedDataField::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1291)
inline IDispatchPtr Word::MappedDataField::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1292)
inline long Word::MappedDataField::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1293)
inline _bstr_t Word::MappedDataField::GetDataFieldName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_DataFieldName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1294)
inline _bstr_t Word::MappedDataField::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1295)
inline _bstr_t Word::MappedDataField::GetValue ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Value(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1296)
inline long Word::MappedDataField::GetDataFieldIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_DataFieldIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1297)
inline void Word::MappedDataField::PutDataFieldIndex ( long prop ) {
    HRESULT _hr = put_DataFieldIndex(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface ConditionalStyle wrapper method implementations
//

#pragma implementation_key(1298)
inline Word::_ApplicationPtr Word::ConditionalStyle::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1299)
inline long Word::ConditionalStyle::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1300)
inline IDispatchPtr Word::ConditionalStyle::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1301)
inline Word::ShadingPtr Word::ConditionalStyle::GetShading ( ) {
    struct Shading * _result = 0;
    HRESULT _hr = get_Shading(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShadingPtr(_result, false);
}

#pragma implementation_key(1302)
inline Word::BordersPtr Word::ConditionalStyle::GetBorders ( ) {
    struct Borders * _result = 0;
    HRESULT _hr = get_Borders(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BordersPtr(_result, false);
}

#pragma implementation_key(1303)
inline void Word::ConditionalStyle::PutBorders ( struct Borders * prop ) {
    HRESULT _hr = put_Borders(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1304)
inline float Word::ConditionalStyle::GetBottomPadding ( ) {
    float _result = 0;
    HRESULT _hr = get_BottomPadding(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1305)
inline void Word::ConditionalStyle::PutBottomPadding ( float prop ) {
    HRESULT _hr = put_BottomPadding(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1306)
inline float Word::ConditionalStyle::GetTopPadding ( ) {
    float _result = 0;
    HRESULT _hr = get_TopPadding(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1307)
inline void Word::ConditionalStyle::PutTopPadding ( float prop ) {
    HRESULT _hr = put_TopPadding(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1308)
inline float Word::ConditionalStyle::GetLeftPadding ( ) {
    float _result = 0;
    HRESULT _hr = get_LeftPadding(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1309)
inline void Word::ConditionalStyle::PutLeftPadding ( float prop ) {
    HRESULT _hr = put_LeftPadding(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1310)
inline float Word::ConditionalStyle::GetRightPadding ( ) {
    float _result = 0;
    HRESULT _hr = get_RightPadding(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1311)
inline void Word::ConditionalStyle::PutRightPadding ( float prop ) {
    HRESULT _hr = put_RightPadding(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1312)
inline Word::_ParagraphFormatPtr Word::ConditionalStyle::GetParagraphFormat ( ) {
    struct _ParagraphFormat * _result = 0;
    HRESULT _hr = get_ParagraphFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ParagraphFormatPtr(_result, false);
}

#pragma implementation_key(1313)
inline void Word::ConditionalStyle::PutParagraphFormat ( struct _ParagraphFormat * prop ) {
    HRESULT _hr = put_ParagraphFormat(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1314)
inline Word::_FontPtr Word::ConditionalStyle::GetFont ( ) {
    struct _Font * _result = 0;
    HRESULT _hr = get_Font(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _FontPtr(_result, false);
}

#pragma implementation_key(1315)
inline void Word::ConditionalStyle::PutFont ( struct _Font * prop ) {
    HRESULT _hr = put_Font(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface FootnoteOptions wrapper method implementations
//

#pragma implementation_key(1316)
inline Word::_ApplicationPtr Word::FootnoteOptions::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1317)
inline long Word::FootnoteOptions::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1318)
inline IDispatchPtr Word::FootnoteOptions::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1319)
inline enum Word::WdFootnoteLocation Word::FootnoteOptions::GetLocation ( ) {
    enum WdFootnoteLocation _result;
    HRESULT _hr = get_Location(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1320)
inline void Word::FootnoteOptions::PutLocation ( enum WdFootnoteLocation prop ) {
    HRESULT _hr = put_Location(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1321)
inline enum Word::WdNoteNumberStyle Word::FootnoteOptions::GetNumberStyle ( ) {
    enum WdNoteNumberStyle _result;
    HRESULT _hr = get_NumberStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1322)
inline void Word::FootnoteOptions::PutNumberStyle ( enum WdNoteNumberStyle prop ) {
    HRESULT _hr = put_NumberStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1323)
inline long Word::FootnoteOptions::GetStartingNumber ( ) {
    long _result = 0;
    HRESULT _hr = get_StartingNumber(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1324)
inline void Word::FootnoteOptions::PutStartingNumber ( long prop ) {
    HRESULT _hr = put_StartingNumber(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1325)
inline enum Word::WdNumberingRule Word::FootnoteOptions::GetNumberingRule ( ) {
    enum WdNumberingRule _result;
    HRESULT _hr = get_NumberingRule(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1326)
inline void Word::FootnoteOptions::PutNumberingRule ( enum WdNumberingRule prop ) {
    HRESULT _hr = put_NumberingRule(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface EndnoteOptions wrapper method implementations
//

#pragma implementation_key(1327)
inline Word::_ApplicationPtr Word::EndnoteOptions::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1328)
inline long Word::EndnoteOptions::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1329)
inline IDispatchPtr Word::EndnoteOptions::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1330)
inline enum Word::WdEndnoteLocation Word::EndnoteOptions::GetLocation ( ) {
    enum WdEndnoteLocation _result;
    HRESULT _hr = get_Location(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1331)
inline void Word::EndnoteOptions::PutLocation ( enum WdEndnoteLocation prop ) {
    HRESULT _hr = put_Location(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1332)
inline enum Word::WdNoteNumberStyle Word::EndnoteOptions::GetNumberStyle ( ) {
    enum WdNoteNumberStyle _result;
    HRESULT _hr = get_NumberStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1333)
inline void Word::EndnoteOptions::PutNumberStyle ( enum WdNoteNumberStyle prop ) {
    HRESULT _hr = put_NumberStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1334)
inline long Word::EndnoteOptions::GetStartingNumber ( ) {
    long _result = 0;
    HRESULT _hr = get_StartingNumber(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1335)
inline void Word::EndnoteOptions::PutStartingNumber ( long prop ) {
    HRESULT _hr = put_StartingNumber(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1336)
inline enum Word::WdNumberingRule Word::EndnoteOptions::GetNumberingRule ( ) {
    enum WdNumberingRule _result;
    HRESULT _hr = get_NumberingRule(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1337)
inline void Word::EndnoteOptions::PutNumberingRule ( enum WdNumberingRule prop ) {
    HRESULT _hr = put_NumberingRule(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface Reviewer wrapper method implementations
//

#pragma implementation_key(1338)
inline Word::_ApplicationPtr Word::Reviewer::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1339)
inline long Word::Reviewer::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1340)
inline IDispatchPtr Word::Reviewer::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1341)
inline VARIANT_BOOL Word::Reviewer::GetVisible ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Visible(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1342)
inline void Word::Reviewer::PutVisible ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Visible(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface Reviewers wrapper method implementations
//

#pragma implementation_key(1343)
inline IUnknownPtr Word::Reviewers::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(1344)
inline Word::_ApplicationPtr Word::Reviewers::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1345)
inline long Word::Reviewers::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1346)
inline IDispatchPtr Word::Reviewers::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1347)
inline long Word::Reviewers::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1348)
inline Word::ReviewerPtr Word::Reviewers::Item ( VARIANT * Index ) {
    struct Reviewer * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ReviewerPtr(_result, false);
}

//
// interface TaskPane wrapper method implementations
//

#pragma implementation_key(1349)
inline Word::_ApplicationPtr Word::TaskPane::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1350)
inline long Word::TaskPane::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1351)
inline IDispatchPtr Word::TaskPane::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1352)
inline VARIANT_BOOL Word::TaskPane::GetVisible ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Visible(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1353)
inline void Word::TaskPane::PutVisible ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Visible(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// dispinterface ApplicationEvents3 wrapper method implementations
//

#pragma implementation_key(1354)
inline HRESULT Word::ApplicationEvents3::Quit ( ) {
    return _com_dispatch_method(this, 0x2, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

#pragma implementation_key(1355)
inline HRESULT Word::ApplicationEvents3::DocumentChange ( ) {
    return _com_dispatch_method(this, 0x3, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

#pragma implementation_key(1356)
inline HRESULT Word::ApplicationEvents3::DocumentOpen ( struct _Document * Doc ) {
    return _com_dispatch_method(this, 0x4, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009", Doc);
}

#pragma implementation_key(1357)
inline HRESULT Word::ApplicationEvents3::DocumentBeforeClose ( struct _Document * Doc, VARIANT_BOOL * Cancel ) {
    return _com_dispatch_method(this, 0x6, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x400b", Doc, Cancel);
}

#pragma implementation_key(1358)
inline HRESULT Word::ApplicationEvents3::DocumentBeforePrint ( struct _Document * Doc, VARIANT_BOOL * Cancel ) {
    return _com_dispatch_method(this, 0x7, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x400b", Doc, Cancel);
}

#pragma implementation_key(1359)
inline HRESULT Word::ApplicationEvents3::DocumentBeforeSave ( struct _Document * Doc, VARIANT_BOOL * SaveAsUI, VARIANT_BOOL * Cancel ) {
    return _com_dispatch_method(this, 0x8, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x400b\x400b", Doc, SaveAsUI, Cancel);
}

#pragma implementation_key(1360)
inline HRESULT Word::ApplicationEvents3::NewDocument ( struct _Document * Doc ) {
    return _com_dispatch_method(this, 0x9, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009", Doc);
}

#pragma implementation_key(1361)
inline HRESULT Word::ApplicationEvents3::WindowActivate ( struct _Document * Doc, struct Window * Wn ) {
    return _com_dispatch_method(this, 0xa, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x0009", Doc, Wn);
}

#pragma implementation_key(1362)
inline HRESULT Word::ApplicationEvents3::WindowDeactivate ( struct _Document * Doc, struct Window * Wn ) {
    return _com_dispatch_method(this, 0xb, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x0009", Doc, Wn);
}

#pragma implementation_key(1363)
inline HRESULT Word::ApplicationEvents3::WindowSelectionChange ( struct Selection * Sel ) {
    return _com_dispatch_method(this, 0xc, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009", Sel);
}

#pragma implementation_key(1364)
inline HRESULT Word::ApplicationEvents3::WindowBeforeRightClick ( struct Selection * Sel, VARIANT_BOOL * Cancel ) {
    return _com_dispatch_method(this, 0xd, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x400b", Sel, Cancel);
}

#pragma implementation_key(1365)
inline HRESULT Word::ApplicationEvents3::WindowBeforeDoubleClick ( struct Selection * Sel, VARIANT_BOOL * Cancel ) {
    return _com_dispatch_method(this, 0xe, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x400b", Sel, Cancel);
}

#pragma implementation_key(1366)
inline HRESULT Word::ApplicationEvents3::EPostagePropertyDialog ( struct _Document * Doc ) {
    return _com_dispatch_method(this, 0xf, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009", Doc);
}

#pragma implementation_key(1367)
inline HRESULT Word::ApplicationEvents3::EPostageInsert ( struct _Document * Doc ) {
    return _com_dispatch_method(this, 0x10, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009", Doc);
}

#pragma implementation_key(1368)
inline HRESULT Word::ApplicationEvents3::MailMergeAfterMerge ( struct _Document * Doc, struct _Document * DocResult ) {
    return _com_dispatch_method(this, 0x11, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x0009", Doc, DocResult);
}

#pragma implementation_key(1369)
inline HRESULT Word::ApplicationEvents3::MailMergeAfterRecordMerge ( struct _Document * Doc ) {
    return _com_dispatch_method(this, 0x12, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009", Doc);
}

#pragma implementation_key(1370)
inline HRESULT Word::ApplicationEvents3::MailMergeBeforeMerge ( struct _Document * Doc, long StartRecord, long EndRecord, VARIANT_BOOL * Cancel ) {
    return _com_dispatch_method(this, 0x13, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x0003\x0003\x400b", Doc, StartRecord, EndRecord, Cancel);
}

#pragma implementation_key(1371)
inline HRESULT Word::ApplicationEvents3::MailMergeBeforeRecordMerge ( struct _Document * Doc, VARIANT_BOOL * Cancel ) {
    return _com_dispatch_method(this, 0x14, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x400b", Doc, Cancel);
}

#pragma implementation_key(1372)
inline HRESULT Word::ApplicationEvents3::MailMergeDataSourceLoad ( struct _Document * Doc ) {
    return _com_dispatch_method(this, 0x15, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009", Doc);
}

#pragma implementation_key(1373)
inline HRESULT Word::ApplicationEvents3::MailMergeDataSourceValidate ( struct _Document * Doc, VARIANT_BOOL * Handled ) {
    return _com_dispatch_method(this, 0x16, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x400b", Doc, Handled);
}

#pragma implementation_key(1374)
inline HRESULT Word::ApplicationEvents3::MailMergeWizardSendToCustom ( struct _Document * Doc ) {
    return _com_dispatch_method(this, 0x17, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009", Doc);
}

#pragma implementation_key(1375)
inline HRESULT Word::ApplicationEvents3::MailMergeWizardStateChange ( struct _Document * Doc, int * FromState, int * ToState, VARIANT_BOOL * Handled ) {
    return _com_dispatch_method(this, 0x18, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x4003\x4003\x400b", Doc, FromState, ToState, Handled);
}

#pragma implementation_key(1376)
inline HRESULT Word::ApplicationEvents3::WindowSize ( struct _Document * Doc, struct Window * Wn ) {
    return _com_dispatch_method(this, 0x19, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x0009", Doc, Wn);
}

//
// interface StyleSheet wrapper method implementations
//

#pragma implementation_key(1377)
inline Word::_ApplicationPtr Word::StyleSheet::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1378)
inline long Word::StyleSheet::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1379)
inline IDispatchPtr Word::StyleSheet::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1380)
inline _bstr_t Word::StyleSheet::GetFullName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_FullName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1381)
inline long Word::StyleSheet::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1382)
inline _bstr_t Word::StyleSheet::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1383)
inline _bstr_t Word::StyleSheet::GetPath ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Path(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1384)
inline enum Word::WdStyleSheetLinkType Word::StyleSheet::GetType ( ) {
    enum WdStyleSheetLinkType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1385)
inline void Word::StyleSheet::PutType ( enum WdStyleSheetLinkType prop ) {
    HRESULT _hr = put_Type(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1386)
inline _bstr_t Word::StyleSheet::GetTitle ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Title(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1387)
inline void Word::StyleSheet::PutTitle ( _bstr_t prop ) {
    HRESULT _hr = put_Title(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1388)
inline HRESULT Word::StyleSheet::Move ( enum WdStyleSheetPrecedence Precedence ) {
    HRESULT _hr = raw_Move(Precedence);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1389)
inline HRESULT Word::StyleSheet::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface StyleSheets wrapper method implementations
//

#pragma implementation_key(1390)
inline Word::_ApplicationPtr Word::StyleSheets::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1391)
inline long Word::StyleSheets::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1392)
inline IDispatchPtr Word::StyleSheets::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1393)
inline IUnknownPtr Word::StyleSheets::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(1394)
inline long Word::StyleSheets::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1395)
inline Word::StyleSheetPtr Word::StyleSheets::Item ( VARIANT * Index ) {
    struct StyleSheet * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return StyleSheetPtr(_result, false);
}

#pragma implementation_key(1396)
inline Word::StyleSheetPtr Word::StyleSheets::Add ( _bstr_t FileName, enum WdStyleSheetLinkType LinkType, _bstr_t Title, enum WdStyleSheetPrecedence Precedence ) {
    struct StyleSheet * _result = 0;
    HRESULT _hr = raw_Add(FileName, LinkType, Title, Precedence, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return StyleSheetPtr(_result, false);
}

//
// interface MappedDataFields wrapper method implementations
//

#pragma implementation_key(1397)
inline Word::_ApplicationPtr Word::MappedDataFields::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1398)
inline long Word::MappedDataFields::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1399)
inline IDispatchPtr Word::MappedDataFields::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1400)
inline long Word::MappedDataFields::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1401)
inline IUnknownPtr Word::MappedDataFields::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(1402)
inline Word::MappedDataFieldPtr Word::MappedDataFields::Item ( enum WdMappedDataFields Index ) {
    struct MappedDataField * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return MappedDataFieldPtr(_result, false);
}

//
// interface MailMergeDataSource wrapper method implementations
//

#pragma implementation_key(1403)
inline Word::_ApplicationPtr Word::MailMergeDataSource::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1404)
inline long Word::MailMergeDataSource::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1405)
inline IDispatchPtr Word::MailMergeDataSource::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1406)
inline _bstr_t Word::MailMergeDataSource::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1407)
inline _bstr_t Word::MailMergeDataSource::GetHeaderSourceName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_HeaderSourceName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1408)
inline enum Word::WdMailMergeDataSource Word::MailMergeDataSource::GetType ( ) {
    enum WdMailMergeDataSource _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1409)
inline enum Word::WdMailMergeDataSource Word::MailMergeDataSource::GetHeaderSourceType ( ) {
    enum WdMailMergeDataSource _result;
    HRESULT _hr = get_HeaderSourceType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1410)
inline _bstr_t Word::MailMergeDataSource::GetConnectString ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_ConnectString(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1411)
inline _bstr_t Word::MailMergeDataSource::GetQueryString ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_QueryString(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1412)
inline void Word::MailMergeDataSource::PutQueryString ( _bstr_t prop ) {
    HRESULT _hr = put_QueryString(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1413)
inline enum Word::WdMailMergeActiveRecord Word::MailMergeDataSource::GetActiveRecord ( ) {
    enum WdMailMergeActiveRecord _result;
    HRESULT _hr = get_ActiveRecord(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1414)
inline void Word::MailMergeDataSource::PutActiveRecord ( enum WdMailMergeActiveRecord prop ) {
    HRESULT _hr = put_ActiveRecord(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1415)
inline long Word::MailMergeDataSource::GetFirstRecord ( ) {
    long _result = 0;
    HRESULT _hr = get_FirstRecord(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1416)
inline void Word::MailMergeDataSource::PutFirstRecord ( long prop ) {
    HRESULT _hr = put_FirstRecord(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1417)
inline long Word::MailMergeDataSource::GetLastRecord ( ) {
    long _result = 0;
    HRESULT _hr = get_LastRecord(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1418)
inline void Word::MailMergeDataSource::PutLastRecord ( long prop ) {
    HRESULT _hr = put_LastRecord(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1419)
inline Word::MailMergeFieldNamesPtr Word::MailMergeDataSource::GetFieldNames ( ) {
    struct MailMergeFieldNames * _result = 0;
    HRESULT _hr = get_FieldNames(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return MailMergeFieldNamesPtr(_result, false);
}

#pragma implementation_key(1420)
inline Word::MailMergeDataFieldsPtr Word::MailMergeDataSource::GetDataFields ( ) {
    struct MailMergeDataFields * _result = 0;
    HRESULT _hr = get_DataFields(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return MailMergeDataFieldsPtr(_result, false);
}

#pragma implementation_key(1421)
inline VARIANT_BOOL Word::MailMergeDataSource::FindRecord2000 ( _bstr_t __FindText, _bstr_t Field ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_FindRecord2000(__FindText, Field, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1422)
inline long Word::MailMergeDataSource::GetRecordCount ( ) {
    long _result = 0;
    HRESULT _hr = get_RecordCount(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1423)
inline VARIANT_BOOL Word::MailMergeDataSource::GetIncluded ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Included(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1424)
inline void Word::MailMergeDataSource::PutIncluded ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Included(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1425)
inline VARIANT_BOOL Word::MailMergeDataSource::GetInvalidAddress ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_InvalidAddress(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1426)
inline void Word::MailMergeDataSource::PutInvalidAddress ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_InvalidAddress(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1427)
inline _bstr_t Word::MailMergeDataSource::GetInvalidComments ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_InvalidComments(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1428)
inline void Word::MailMergeDataSource::PutInvalidComments ( _bstr_t prop ) {
    HRESULT _hr = put_InvalidComments(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1429)
inline Word::MappedDataFieldsPtr Word::MailMergeDataSource::GetMappedDataFields ( ) {
    struct MappedDataFields * _result = 0;
    HRESULT _hr = get_MappedDataFields(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return MappedDataFieldsPtr(_result, false);
}

#pragma implementation_key(1430)
inline _bstr_t Word::MailMergeDataSource::GetTableName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_TableName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1431)
inline VARIANT_BOOL Word::MailMergeDataSource::FindRecord ( _bstr_t __FindText, VARIANT * Field ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_FindRecord(__FindText, Field, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1432)
inline HRESULT Word::MailMergeDataSource::SetAllIncludedFlags ( VARIANT_BOOL Included ) {
    HRESULT _hr = raw_SetAllIncludedFlags(Included);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1433)
inline HRESULT Word::MailMergeDataSource::SetAllErrorFlags ( VARIANT_BOOL Invalid, _bstr_t InvalidComment ) {
    HRESULT _hr = raw_SetAllErrorFlags(Invalid, InvalidComment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1434)
inline HRESULT Word::MailMergeDataSource::Close ( ) {
    HRESULT _hr = raw_Close();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface TableStyle wrapper method implementations
//

#pragma implementation_key(1435)
inline Word::_ApplicationPtr Word::TableStyle::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1436)
inline long Word::TableStyle::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1437)
inline IDispatchPtr Word::TableStyle::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1438)
inline VARIANT_BOOL Word::TableStyle::GetAllowPageBreaks ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AllowPageBreaks(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1439)
inline void Word::TableStyle::PutAllowPageBreaks ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AllowPageBreaks(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1440)
inline Word::BordersPtr Word::TableStyle::GetBorders ( ) {
    struct Borders * _result = 0;
    HRESULT _hr = get_Borders(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BordersPtr(_result, false);
}

#pragma implementation_key(1441)
inline void Word::TableStyle::PutBorders ( struct Borders * prop ) {
    HRESULT _hr = put_Borders(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1442)
inline float Word::TableStyle::GetBottomPadding ( ) {
    float _result = 0;
    HRESULT _hr = get_BottomPadding(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1443)
inline void Word::TableStyle::PutBottomPadding ( float prop ) {
    HRESULT _hr = put_BottomPadding(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1444)
inline float Word::TableStyle::GetLeftPadding ( ) {
    float _result = 0;
    HRESULT _hr = get_LeftPadding(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1445)
inline void Word::TableStyle::PutLeftPadding ( float prop ) {
    HRESULT _hr = put_LeftPadding(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1446)
inline float Word::TableStyle::GetTopPadding ( ) {
    float _result = 0;
    HRESULT _hr = get_TopPadding(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1447)
inline void Word::TableStyle::PutTopPadding ( float prop ) {
    HRESULT _hr = put_TopPadding(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1448)
inline float Word::TableStyle::GetRightPadding ( ) {
    float _result = 0;
    HRESULT _hr = get_RightPadding(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1449)
inline void Word::TableStyle::PutRightPadding ( float prop ) {
    HRESULT _hr = put_RightPadding(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1450)
inline enum Word::WdRowAlignment Word::TableStyle::GetAlignment ( ) {
    enum WdRowAlignment _result;
    HRESULT _hr = get_Alignment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1451)
inline void Word::TableStyle::PutAlignment ( enum WdRowAlignment prop ) {
    HRESULT _hr = put_Alignment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1452)
inline float Word::TableStyle::GetSpacing ( ) {
    float _result = 0;
    HRESULT _hr = get_Spacing(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1453)
inline void Word::TableStyle::PutSpacing ( float prop ) {
    HRESULT _hr = put_Spacing(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1454)
inline Word::ConditionalStylePtr Word::TableStyle::Condition ( enum WdConditionCode ConditionCode ) {
    struct ConditionalStyle * _result = 0;
    HRESULT _hr = raw_Condition(ConditionCode, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ConditionalStylePtr(_result, false);
}

#pragma implementation_key(1455)
inline enum Word::WdTableDirection Word::TableStyle::GetTableDirection ( ) {
    enum WdTableDirection _result;
    HRESULT _hr = get_TableDirection(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1456)
inline void Word::TableStyle::PutTableDirection ( enum WdTableDirection prop ) {
    HRESULT _hr = put_TableDirection(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1457)
inline long Word::TableStyle::GetAllowBreakAcrossPage ( ) {
    long _result = 0;
    HRESULT _hr = get_AllowBreakAcrossPage(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1458)
inline void Word::TableStyle::PutAllowBreakAcrossPage ( long prop ) {
    HRESULT _hr = put_AllowBreakAcrossPage(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1459)
inline float Word::TableStyle::GetLeftIndent ( ) {
    float _result = 0;
    HRESULT _hr = get_LeftIndent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1460)
inline void Word::TableStyle::PutLeftIndent ( float prop ) {
    HRESULT _hr = put_LeftIndent(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1461)
inline Word::ShadingPtr Word::TableStyle::GetShading ( ) {
    struct Shading * _result = 0;
    HRESULT _hr = get_Shading(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShadingPtr(_result, false);
}

#pragma implementation_key(1462)
inline long Word::TableStyle::GetRowStripe ( ) {
    long _result = 0;
    HRESULT _hr = get_RowStripe(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1463)
inline void Word::TableStyle::PutRowStripe ( long prop ) {
    HRESULT _hr = put_RowStripe(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1464)
inline long Word::TableStyle::GetColumnStripe ( ) {
    long _result = 0;
    HRESULT _hr = get_ColumnStripe(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1465)
inline void Word::TableStyle::PutColumnStripe ( long prop ) {
    HRESULT _hr = put_ColumnStripe(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface TaskPanes wrapper method implementations
//

#pragma implementation_key(1466)
inline IUnknownPtr Word::TaskPanes::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(1467)
inline long Word::TaskPanes::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1468)
inline Word::_ApplicationPtr Word::TaskPanes::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1469)
inline long Word::TaskPanes::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1470)
inline IDispatchPtr Word::TaskPanes::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1471)
inline Word::TaskPanePtr Word::TaskPanes::Item ( enum WdTaskPanes Index ) {
    struct TaskPane * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TaskPanePtr(_result, false);
}

//
// interface SmartTagRecognizer wrapper method implementations
//

#pragma implementation_key(1472)
inline _bstr_t Word::SmartTagRecognizer::GetFullName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_FullName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1473)
inline Word::_ApplicationPtr Word::SmartTagRecognizer::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1474)
inline long Word::SmartTagRecognizer::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1475)
inline IDispatchPtr Word::SmartTagRecognizer::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1476)
inline VARIANT_BOOL Word::SmartTagRecognizer::GetEnabled ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Enabled(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1477)
inline void Word::SmartTagRecognizer::PutEnabled ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Enabled(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1478)
inline _bstr_t Word::SmartTagRecognizer::GetProgID ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_ProgID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1479)
inline _bstr_t Word::SmartTagRecognizer::GetCaption ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Caption(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

//
// interface SmartTagRecognizers wrapper method implementations
//

#pragma implementation_key(1480)
inline IUnknownPtr Word::SmartTagRecognizers::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(1481)
inline long Word::SmartTagRecognizers::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1482)
inline Word::_ApplicationPtr Word::SmartTagRecognizers::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1483)
inline long Word::SmartTagRecognizers::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1484)
inline IDispatchPtr Word::SmartTagRecognizers::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1485)
inline Word::SmartTagRecognizerPtr Word::SmartTagRecognizers::Item ( VARIANT * Index ) {
    struct SmartTagRecognizer * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SmartTagRecognizerPtr(_result, false);
}

#pragma implementation_key(1486)
inline HRESULT Word::SmartTagRecognizers::ReloadRecognizers ( ) {
    HRESULT _hr = raw_ReloadRecognizers();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface XMLSchemaReference wrapper method implementations
//

#pragma implementation_key(1487)
inline Word::_ApplicationPtr Word::XMLSchemaReference::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1488)
inline long Word::XMLSchemaReference::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1489)
inline IDispatchPtr Word::XMLSchemaReference::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1490)
inline _bstr_t Word::XMLSchemaReference::GetNamespaceURI ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_NamespaceURI(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1491)
inline _bstr_t Word::XMLSchemaReference::GetLocation ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Location(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1492)
inline HRESULT Word::XMLSchemaReference::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1493)
inline HRESULT Word::XMLSchemaReference::Reload ( ) {
    HRESULT _hr = raw_Reload();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface XMLSchemaReferences wrapper method implementations
//

#pragma implementation_key(1494)
inline IUnknownPtr Word::XMLSchemaReferences::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(1495)
inline long Word::XMLSchemaReferences::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1496)
inline Word::_ApplicationPtr Word::XMLSchemaReferences::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1497)
inline long Word::XMLSchemaReferences::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1498)
inline IDispatchPtr Word::XMLSchemaReferences::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1499)
inline VARIANT_BOOL Word::XMLSchemaReferences::GetAutomaticValidation ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutomaticValidation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1500)
inline void Word::XMLSchemaReferences::PutAutomaticValidation ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutomaticValidation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1501)
inline VARIANT_BOOL Word::XMLSchemaReferences::GetAllowSaveAsXMLWithoutValidation ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AllowSaveAsXMLWithoutValidation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1502)
inline void Word::XMLSchemaReferences::PutAllowSaveAsXMLWithoutValidation ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AllowSaveAsXMLWithoutValidation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1503)
inline VARIANT_BOOL Word::XMLSchemaReferences::GetHideValidationErrors ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HideValidationErrors(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1504)
inline void Word::XMLSchemaReferences::PutHideValidationErrors ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HideValidationErrors(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1505)
inline VARIANT_BOOL Word::XMLSchemaReferences::GetIgnoreMixedContent ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IgnoreMixedContent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1506)
inline void Word::XMLSchemaReferences::PutIgnoreMixedContent ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_IgnoreMixedContent(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1507)
inline VARIANT_BOOL Word::XMLSchemaReferences::GetShowPlaceholderText ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowPlaceholderText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1508)
inline void Word::XMLSchemaReferences::PutShowPlaceholderText ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowPlaceholderText(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1509)
inline Word::XMLSchemaReferencePtr Word::XMLSchemaReferences::Item ( VARIANT * Index ) {
    struct XMLSchemaReference * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLSchemaReferencePtr(_result, false);
}

#pragma implementation_key(1510)
inline HRESULT Word::XMLSchemaReferences::Validate ( ) {
    HRESULT _hr = raw_Validate();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1511)
inline Word::XMLSchemaReferencePtr Word::XMLSchemaReferences::Add ( VARIANT * NamespaceURI, VARIANT * Alias, VARIANT * FileName, VARIANT_BOOL InstallForAllUsers ) {
    struct XMLSchemaReference * _result = 0;
    HRESULT _hr = raw_Add(NamespaceURI, Alias, FileName, InstallForAllUsers, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLSchemaReferencePtr(_result, false);
}

//
// interface XSLTransform wrapper method implementations
//

#pragma implementation_key(1512)
inline Word::_ApplicationPtr Word::XSLTransform::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1513)
inline long Word::XSLTransform::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1514)
inline IDispatchPtr Word::XSLTransform::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1515)
inline _bstr_t Word::XSLTransform::GetAlias ( VARIANT_BOOL AllUsers ) {
    BSTR _result = 0;
    HRESULT _hr = get_Alias(AllUsers, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1516)
inline void Word::XSLTransform::PutAlias ( VARIANT_BOOL AllUsers, _bstr_t prop ) {
    HRESULT _hr = put_Alias(AllUsers, prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1517)
inline _bstr_t Word::XSLTransform::GetLocation ( VARIANT_BOOL AllUsers ) {
    BSTR _result = 0;
    HRESULT _hr = get_Location(AllUsers, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1518)
inline void Word::XSLTransform::PutLocation ( VARIANT_BOOL AllUsers, _bstr_t prop ) {
    HRESULT _hr = put_Location(AllUsers, prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1519)
inline HRESULT Word::XSLTransform::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1520)
inline _bstr_t Word::XSLTransform::GetID ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_ID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

//
// interface XSLTransforms wrapper method implementations
//

#pragma implementation_key(1521)
inline IUnknownPtr Word::XSLTransforms::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(1522)
inline long Word::XSLTransforms::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1523)
inline Word::_ApplicationPtr Word::XSLTransforms::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1524)
inline long Word::XSLTransforms::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1525)
inline IDispatchPtr Word::XSLTransforms::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1526)
inline Word::XSLTransformPtr Word::XSLTransforms::Item ( VARIANT * Index ) {
    struct XSLTransform * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XSLTransformPtr(_result, false);
}

#pragma implementation_key(1527)
inline Word::XSLTransformPtr Word::XSLTransforms::Add ( _bstr_t Location, VARIANT * Alias, VARIANT_BOOL InstallForAllUsers ) {
    struct XSLTransform * _result = 0;
    HRESULT _hr = raw_Add(Location, Alias, InstallForAllUsers, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XSLTransformPtr(_result, false);
}

//
// interface XMLNamespace wrapper method implementations
//

#pragma implementation_key(1528)
inline Word::_ApplicationPtr Word::XMLNamespace::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1529)
inline long Word::XMLNamespace::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1530)
inline IDispatchPtr Word::XMLNamespace::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1531)
inline _bstr_t Word::XMLNamespace::GetURI ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_URI(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1532)
inline _bstr_t Word::XMLNamespace::GetLocation ( VARIANT_BOOL AllUsers ) {
    BSTR _result = 0;
    HRESULT _hr = get_Location(AllUsers, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1533)
inline void Word::XMLNamespace::PutLocation ( VARIANT_BOOL AllUsers, _bstr_t prop ) {
    HRESULT _hr = put_Location(AllUsers, prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1534)
inline _bstr_t Word::XMLNamespace::GetAlias ( VARIANT_BOOL AllUsers ) {
    BSTR _result = 0;
    HRESULT _hr = get_Alias(AllUsers, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1535)
inline void Word::XMLNamespace::PutAlias ( VARIANT_BOOL AllUsers, _bstr_t prop ) {
    HRESULT _hr = put_Alias(AllUsers, prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1536)
inline Word::XSLTransformsPtr Word::XMLNamespace::GetXSLTransforms ( ) {
    struct XSLTransforms * _result = 0;
    HRESULT _hr = get_XSLTransforms(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XSLTransformsPtr(_result, false);
}

#pragma implementation_key(1537)
inline Word::XSLTransformPtr Word::XMLNamespace::GetDefaultTransform ( VARIANT_BOOL AllUsers ) {
    struct XSLTransform * _result = 0;
    HRESULT _hr = get_DefaultTransform(AllUsers, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XSLTransformPtr(_result, false);
}

#pragma implementation_key(1538)
inline void Word::XMLNamespace::PutDefaultTransform ( VARIANT_BOOL AllUsers, struct XSLTransform * prop ) {
    HRESULT _hr = put_DefaultTransform(AllUsers, prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1539)
inline HRESULT Word::XMLNamespace::AttachToDocument ( VARIANT * Document ) {
    HRESULT _hr = raw_AttachToDocument(Document);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1540)
inline HRESULT Word::XMLNamespace::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface XMLNamespaces wrapper method implementations
//

#pragma implementation_key(1541)
inline IUnknownPtr Word::XMLNamespaces::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(1542)
inline long Word::XMLNamespaces::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1543)
inline Word::_ApplicationPtr Word::XMLNamespaces::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1544)
inline long Word::XMLNamespaces::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1545)
inline IDispatchPtr Word::XMLNamespaces::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1546)
inline Word::XMLNamespacePtr Word::XMLNamespaces::Item ( VARIANT * Index ) {
    struct XMLNamespace * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLNamespacePtr(_result, false);
}

#pragma implementation_key(1547)
inline Word::XMLNamespacePtr Word::XMLNamespaces::Add ( _bstr_t Path, VARIANT * NamespaceURI, VARIANT * Alias, VARIANT_BOOL InstallForAllUsers ) {
    struct XMLNamespace * _result = 0;
    HRESULT _hr = raw_Add(Path, NamespaceURI, Alias, InstallForAllUsers, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLNamespacePtr(_result, false);
}

#pragma implementation_key(1548)
inline HRESULT Word::XMLNamespaces::InstallManifest ( _bstr_t Path, VARIANT_BOOL InstallForAllUsers ) {
    HRESULT _hr = raw_InstallManifest(Path, InstallForAllUsers);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// dispinterface ApplicationEvents4 wrapper method implementations
//

#pragma implementation_key(1549)
inline HRESULT Word::ApplicationEvents4::Quit ( ) {
    return _com_dispatch_method(this, 0x2, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

#pragma implementation_key(1550)
inline HRESULT Word::ApplicationEvents4::DocumentChange ( ) {
    return _com_dispatch_method(this, 0x3, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

#pragma implementation_key(1551)
inline HRESULT Word::ApplicationEvents4::DocumentOpen ( struct _Document * Doc ) {
    return _com_dispatch_method(this, 0x4, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009", Doc);
}

#pragma implementation_key(1552)
inline HRESULT Word::ApplicationEvents4::DocumentBeforeClose ( struct _Document * Doc, VARIANT_BOOL * Cancel ) {
    return _com_dispatch_method(this, 0x6, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x400b", Doc, Cancel);
}

#pragma implementation_key(1553)
inline HRESULT Word::ApplicationEvents4::DocumentBeforePrint ( struct _Document * Doc, VARIANT_BOOL * Cancel ) {
    return _com_dispatch_method(this, 0x7, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x400b", Doc, Cancel);
}

#pragma implementation_key(1554)
inline HRESULT Word::ApplicationEvents4::DocumentBeforeSave ( struct _Document * Doc, VARIANT_BOOL * SaveAsUI, VARIANT_BOOL * Cancel ) {
    return _com_dispatch_method(this, 0x8, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x400b\x400b", Doc, SaveAsUI, Cancel);
}

#pragma implementation_key(1555)
inline HRESULT Word::ApplicationEvents4::NewDocument ( struct _Document * Doc ) {
    return _com_dispatch_method(this, 0x9, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009", Doc);
}

#pragma implementation_key(1556)
inline HRESULT Word::ApplicationEvents4::WindowActivate ( struct _Document * Doc, struct Window * Wn ) {
    return _com_dispatch_method(this, 0xa, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x0009", Doc, Wn);
}

#pragma implementation_key(1557)
inline HRESULT Word::ApplicationEvents4::WindowDeactivate ( struct _Document * Doc, struct Window * Wn ) {
    return _com_dispatch_method(this, 0xb, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x0009", Doc, Wn);
}

#pragma implementation_key(1558)
inline HRESULT Word::ApplicationEvents4::WindowSelectionChange ( struct Selection * Sel ) {
    return _com_dispatch_method(this, 0xc, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009", Sel);
}

#pragma implementation_key(1559)
inline HRESULT Word::ApplicationEvents4::WindowBeforeRightClick ( struct Selection * Sel, VARIANT_BOOL * Cancel ) {
    return _com_dispatch_method(this, 0xd, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x400b", Sel, Cancel);
}

#pragma implementation_key(1560)
inline HRESULT Word::ApplicationEvents4::WindowBeforeDoubleClick ( struct Selection * Sel, VARIANT_BOOL * Cancel ) {
    return _com_dispatch_method(this, 0xe, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x400b", Sel, Cancel);
}

#pragma implementation_key(1561)
inline HRESULT Word::ApplicationEvents4::EPostagePropertyDialog ( struct _Document * Doc ) {
    return _com_dispatch_method(this, 0xf, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009", Doc);
}

#pragma implementation_key(1562)
inline HRESULT Word::ApplicationEvents4::EPostageInsert ( struct _Document * Doc ) {
    return _com_dispatch_method(this, 0x10, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009", Doc);
}

#pragma implementation_key(1563)
inline HRESULT Word::ApplicationEvents4::MailMergeAfterMerge ( struct _Document * Doc, struct _Document * DocResult ) {
    return _com_dispatch_method(this, 0x11, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x0009", Doc, DocResult);
}

#pragma implementation_key(1564)
inline HRESULT Word::ApplicationEvents4::MailMergeAfterRecordMerge ( struct _Document * Doc ) {
    return _com_dispatch_method(this, 0x12, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009", Doc);
}

#pragma implementation_key(1565)
inline HRESULT Word::ApplicationEvents4::MailMergeBeforeMerge ( struct _Document * Doc, long StartRecord, long EndRecord, VARIANT_BOOL * Cancel ) {
    return _com_dispatch_method(this, 0x13, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x0003\x0003\x400b", Doc, StartRecord, EndRecord, Cancel);
}

#pragma implementation_key(1566)
inline HRESULT Word::ApplicationEvents4::MailMergeBeforeRecordMerge ( struct _Document * Doc, VARIANT_BOOL * Cancel ) {
    return _com_dispatch_method(this, 0x14, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x400b", Doc, Cancel);
}

#pragma implementation_key(1567)
inline HRESULT Word::ApplicationEvents4::MailMergeDataSourceLoad ( struct _Document * Doc ) {
    return _com_dispatch_method(this, 0x15, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009", Doc);
}

#pragma implementation_key(1568)
inline HRESULT Word::ApplicationEvents4::MailMergeDataSourceValidate ( struct _Document * Doc, VARIANT_BOOL * Handled ) {
    return _com_dispatch_method(this, 0x16, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x400b", Doc, Handled);
}

#pragma implementation_key(1569)
inline HRESULT Word::ApplicationEvents4::MailMergeWizardSendToCustom ( struct _Document * Doc ) {
    return _com_dispatch_method(this, 0x17, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009", Doc);
}

#pragma implementation_key(1570)
inline HRESULT Word::ApplicationEvents4::MailMergeWizardStateChange ( struct _Document * Doc, int * FromState, int * ToState, VARIANT_BOOL * Handled ) {
    return _com_dispatch_method(this, 0x18, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x4003\x4003\x400b", Doc, FromState, ToState, Handled);
}

#pragma implementation_key(1571)
inline HRESULT Word::ApplicationEvents4::WindowSize ( struct _Document * Doc, struct Window * Wn ) {
    return _com_dispatch_method(this, 0x19, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x0009", Doc, Wn);
}

#pragma implementation_key(1572)
inline HRESULT Word::ApplicationEvents4::XMLSelectionChange ( struct Selection * Sel, struct XMLNode * OldXMLNode, struct XMLNode * NewXMLNode, long * Reason ) {
    return _com_dispatch_method(this, 0x1a, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x0009\x0009\x4003", Sel, OldXMLNode, NewXMLNode, Reason);
}

#pragma implementation_key(1573)
inline HRESULT Word::ApplicationEvents4::XMLValidationError ( struct XMLNode * XMLNode ) {
    return _com_dispatch_method(this, 0x1b, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009", XMLNode);
}

#pragma implementation_key(1574)
inline HRESULT Word::ApplicationEvents4::DocumentSync ( struct _Document * Doc, enum Office::MsoSyncEventType SyncEventType ) {
    return _com_dispatch_method(this, 0x1c, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x0003", Doc, SyncEventType);
}

#pragma implementation_key(1575)
inline HRESULT Word::ApplicationEvents4::EPostageInsertEx ( struct _Document * Doc, int cpDeliveryAddrStart, int cpDeliveryAddrEnd, int cpReturnAddrStart, int cpReturnAddrEnd, int xaWidth, int yaHeight, _bstr_t bstrPrinterName, _bstr_t bstrPaperFeed, VARIANT_BOOL fPrint, VARIANT_BOOL * fCancel ) {
    return _com_dispatch_method(this, 0x1d, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x0003\x0003\x0003\x0003\x0003\x0003\x0008\x0008\x000b\x400b", Doc, cpDeliveryAddrStart, cpDeliveryAddrEnd, cpReturnAddrStart, cpReturnAddrEnd, xaWidth, yaHeight, (BSTR)bstrPrinterName, (BSTR)bstrPaperFeed, fPrint, fCancel);
}

#pragma implementation_key(1576)
inline HRESULT Word::ApplicationEvents4::MailMergeDataSourceValidate2 ( struct _Document * Doc, VARIANT_BOOL * Handled ) {
    return _com_dispatch_method(this, 0x1e, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x400b", Doc, Handled);
}

#pragma implementation_key(1577)
inline HRESULT Word::ApplicationEvents4::ProtectedViewWindowOpen ( struct ProtectedViewWindow * PvWindow ) {
    return _com_dispatch_method(this, 0x1f, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009", PvWindow);
}

#pragma implementation_key(1578)
inline HRESULT Word::ApplicationEvents4::ProtectedViewWindowBeforeEdit ( struct ProtectedViewWindow * PvWindow, VARIANT_BOOL * Cancel ) {
    return _com_dispatch_method(this, 0x20, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x400b", PvWindow, Cancel);
}

#pragma implementation_key(1579)
inline HRESULT Word::ApplicationEvents4::ProtectedViewWindowBeforeClose ( struct ProtectedViewWindow * PvWindow, int CloseReason, VARIANT_BOOL * Cancel ) {
    return _com_dispatch_method(this, 0x21, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x0003\x400b", PvWindow, CloseReason, Cancel);
}

#pragma implementation_key(1580)
inline HRESULT Word::ApplicationEvents4::ProtectedViewWindowSize ( struct ProtectedViewWindow * PvWindow ) {
    return _com_dispatch_method(this, 0x22, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009", PvWindow);
}

#pragma implementation_key(1581)
inline HRESULT Word::ApplicationEvents4::ProtectedViewWindowActivate ( struct ProtectedViewWindow * PvWindow ) {
    return _com_dispatch_method(this, 0x23, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009", PvWindow);
}

#pragma implementation_key(1582)
inline HRESULT Word::ApplicationEvents4::ProtectedViewWindowDeactivate ( struct ProtectedViewWindow * PvWindow ) {
    return _com_dispatch_method(this, 0x24, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009", PvWindow);
}

//
// dispinterface DocumentEvents2 wrapper method implementations
//

#pragma implementation_key(1583)
inline HRESULT Word::DocumentEvents2::New ( ) {
    return _com_dispatch_method(this, 0x4, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

#pragma implementation_key(1584)
inline HRESULT Word::DocumentEvents2::Open ( ) {
    return _com_dispatch_method(this, 0x5, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

#pragma implementation_key(1585)
inline HRESULT Word::DocumentEvents2::Close ( ) {
    return _com_dispatch_method(this, 0x6, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

#pragma implementation_key(1586)
inline HRESULT Word::DocumentEvents2::Sync ( enum Office::MsoSyncEventType SyncEventType ) {
    return _com_dispatch_method(this, 0x7, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0003", SyncEventType);
}

#pragma implementation_key(1587)
inline HRESULT Word::DocumentEvents2::XMLAfterInsert ( struct XMLNode * NewXMLNode, VARIANT_BOOL InUndoRedo ) {
    return _com_dispatch_method(this, 0x8, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x000b", NewXMLNode, InUndoRedo);
}

#pragma implementation_key(1588)
inline HRESULT Word::DocumentEvents2::XMLBeforeDelete ( struct Range * DeletedRange, struct XMLNode * OldXMLNode, VARIANT_BOOL InUndoRedo ) {
    return _com_dispatch_method(this, 0x9, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x0009\x000b", DeletedRange, OldXMLNode, InUndoRedo);
}

#pragma implementation_key(1589)
inline HRESULT Word::DocumentEvents2::ContentControlAfterAdd ( struct ContentControl * NewContentControl, VARIANT_BOOL InUndoRedo ) {
    return _com_dispatch_method(this, 0xc, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x000b", NewContentControl, InUndoRedo);
}

#pragma implementation_key(1590)
inline HRESULT Word::DocumentEvents2::ContentControlBeforeDelete ( struct ContentControl * OldContentControl, VARIANT_BOOL InUndoRedo ) {
    return _com_dispatch_method(this, 0xd, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x000b", OldContentControl, InUndoRedo);
}

#pragma implementation_key(1591)
inline HRESULT Word::DocumentEvents2::ContentControlOnExit ( struct ContentControl * ContentControl, VARIANT_BOOL * Cancel ) {
    return _com_dispatch_method(this, 0xe, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x400b", ContentControl, Cancel);
}

#pragma implementation_key(1592)
inline HRESULT Word::DocumentEvents2::ContentControlOnEnter ( struct ContentControl * ContentControl ) {
    return _com_dispatch_method(this, 0xf, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009", ContentControl);
}

#pragma implementation_key(1593)
inline HRESULT Word::DocumentEvents2::ContentControlBeforeStoreUpdate ( struct ContentControl * ContentControl, BSTR * Content ) {
    return _com_dispatch_method(this, 0x10, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x4008", ContentControl, Content);
}

#pragma implementation_key(1594)
inline HRESULT Word::DocumentEvents2::ContentControlBeforeContentUpdate ( struct ContentControl * ContentControl, BSTR * Content ) {
    return _com_dispatch_method(this, 0x11, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x4008", ContentControl, Content);
}

#pragma implementation_key(1595)
inline HRESULT Word::DocumentEvents2::BuildingBlockInsert ( struct Range * Range, _bstr_t Name, _bstr_t Category, _bstr_t BlockType, _bstr_t Template ) {
    return _com_dispatch_method(this, 0x12, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x0008\x0008\x0008\x0008", Range, (BSTR)Name, (BSTR)Category, (BSTR)BlockType, (BSTR)Template);
}

//
// interface SmartTagAction wrapper method implementations
//

#pragma implementation_key(1596)
inline _bstr_t Word::SmartTagAction::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1597)
inline Word::_ApplicationPtr Word::SmartTagAction::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1598)
inline long Word::SmartTagAction::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1599)
inline IDispatchPtr Word::SmartTagAction::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1600)
inline HRESULT Word::SmartTagAction::Execute ( ) {
    HRESULT _hr = raw_Execute();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1601)
inline enum Word::WdSmartTagControlType Word::SmartTagAction::GetType ( ) {
    enum WdSmartTagControlType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1602)
inline VARIANT_BOOL Word::SmartTagAction::GetPresentInPane ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PresentInPane(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1603)
inline VARIANT_BOOL Word::SmartTagAction::GetExpandHelp ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ExpandHelp(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1604)
inline void Word::SmartTagAction::PutExpandHelp ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ExpandHelp(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1605)
inline VARIANT_BOOL Word::SmartTagAction::GetCheckboxState ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_CheckboxState(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1606)
inline void Word::SmartTagAction::PutCheckboxState ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_CheckboxState(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1607)
inline _bstr_t Word::SmartTagAction::GetTextboxText ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_TextboxText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1608)
inline void Word::SmartTagAction::PutTextboxText ( _bstr_t prop ) {
    HRESULT _hr = put_TextboxText(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1609)
inline long Word::SmartTagAction::GetListSelection ( ) {
    long _result = 0;
    HRESULT _hr = get_ListSelection(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1610)
inline void Word::SmartTagAction::PutListSelection ( long prop ) {
    HRESULT _hr = put_ListSelection(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1611)
inline long Word::SmartTagAction::GetRadioGroupSelection ( ) {
    long _result = 0;
    HRESULT _hr = get_RadioGroupSelection(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1612)
inline void Word::SmartTagAction::PutRadioGroupSelection ( long prop ) {
    HRESULT _hr = put_RadioGroupSelection(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1613)
inline VARIANT_BOOL Word::SmartTagAction::GetExpandDocumentFragment ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ExpandDocumentFragment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1614)
inline void Word::SmartTagAction::PutExpandDocumentFragment ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ExpandDocumentFragment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1615)
inline IDispatchPtr Word::SmartTagAction::GetActiveXControl ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_ActiveXControl(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

//
// interface SmartTagActions wrapper method implementations
//

#pragma implementation_key(1616)
inline IUnknownPtr Word::SmartTagActions::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(1617)
inline long Word::SmartTagActions::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1618)
inline Word::_ApplicationPtr Word::SmartTagActions::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1619)
inline long Word::SmartTagActions::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1620)
inline IDispatchPtr Word::SmartTagActions::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1621)
inline Word::SmartTagActionPtr Word::SmartTagActions::Item ( VARIANT * Index ) {
    struct SmartTagAction * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SmartTagActionPtr(_result, false);
}

#pragma implementation_key(1622)
inline HRESULT Word::SmartTagActions::ReloadActions ( ) {
    HRESULT _hr = raw_ReloadActions();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface SmartTagType wrapper method implementations
//

#pragma implementation_key(1623)
inline _bstr_t Word::SmartTagType::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1624)
inline Word::_ApplicationPtr Word::SmartTagType::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1625)
inline long Word::SmartTagType::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1626)
inline IDispatchPtr Word::SmartTagType::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1627)
inline Word::SmartTagActionsPtr Word::SmartTagType::GetSmartTagActions ( ) {
    struct SmartTagActions * _result = 0;
    HRESULT _hr = get_SmartTagActions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SmartTagActionsPtr(_result, false);
}

#pragma implementation_key(1628)
inline Word::SmartTagRecognizersPtr Word::SmartTagType::GetSmartTagRecognizers ( ) {
    struct SmartTagRecognizers * _result = 0;
    HRESULT _hr = get_SmartTagRecognizers(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SmartTagRecognizersPtr(_result, false);
}

#pragma implementation_key(1629)
inline _bstr_t Word::SmartTagType::GetFriendlyName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_FriendlyName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

//
// interface SmartTagTypes wrapper method implementations
//

#pragma implementation_key(1630)
inline IUnknownPtr Word::SmartTagTypes::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(1631)
inline long Word::SmartTagTypes::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1632)
inline Word::_ApplicationPtr Word::SmartTagTypes::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1633)
inline long Word::SmartTagTypes::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1634)
inline IDispatchPtr Word::SmartTagTypes::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1635)
inline Word::SmartTagTypePtr Word::SmartTagTypes::Item ( VARIANT * Index ) {
    struct SmartTagType * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SmartTagTypePtr(_result, false);
}

#pragma implementation_key(1636)
inline HRESULT Word::SmartTagTypes::ReloadAll ( ) {
    HRESULT _hr = raw_ReloadAll();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Source wrapper method implementations
//

#pragma implementation_key(1637)
inline Word::_ApplicationPtr Word::Source::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1638)
inline long Word::Source::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1639)
inline IDispatchPtr Word::Source::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1640)
inline _bstr_t Word::Source::GetTag ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Tag(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1641)
inline _bstr_t Word::Source::GetField ( _bstr_t Name ) {
    BSTR _result = 0;
    HRESULT _hr = get_Field(Name, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1642)
inline void Word::Source::PutField ( _bstr_t Name, _bstr_t prop ) {
    HRESULT _hr = put_Field(Name, prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1643)
inline _bstr_t Word::Source::GetXML ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_XML(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1644)
inline VARIANT_BOOL Word::Source::GetCited ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Cited(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1645)
inline HRESULT Word::Source::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Sources wrapper method implementations
//

#pragma implementation_key(1646)
inline IUnknownPtr Word::Sources::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(1647)
inline long Word::Sources::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1648)
inline Word::_ApplicationPtr Word::Sources::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1649)
inline long Word::Sources::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1650)
inline IDispatchPtr Word::Sources::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1651)
inline Word::SourcePtr Word::Sources::Item ( long Index ) {
    struct Source * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SourcePtr(_result, false);
}

#pragma implementation_key(1652)
inline HRESULT Word::Sources::Add ( _bstr_t Data ) {
    HRESULT _hr = raw_Add(Data);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Bibliography wrapper method implementations
//

#pragma implementation_key(1653)
inline Word::_ApplicationPtr Word::Bibliography::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1654)
inline long Word::Bibliography::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1655)
inline IDispatchPtr Word::Bibliography::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1656)
inline Word::SourcesPtr Word::Bibliography::GetSources ( ) {
    struct Sources * _result = 0;
    HRESULT _hr = get_Sources(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SourcesPtr(_result, false);
}

#pragma implementation_key(1657)
inline _bstr_t Word::Bibliography::GetBibliographyStyle ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_BibliographyStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1658)
inline void Word::Bibliography::PutBibliographyStyle ( _bstr_t prop ) {
    HRESULT _hr = put_BibliographyStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1659)
inline _bstr_t Word::Bibliography::GenerateUniqueTag ( ) {
    BSTR _result = 0;
    HRESULT _hr = raw_GenerateUniqueTag(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

//
// interface OMathAutoCorrectEntry wrapper method implementations
//

#pragma implementation_key(1660)
inline Word::_ApplicationPtr Word::OMathAutoCorrectEntry::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1661)
inline long Word::OMathAutoCorrectEntry::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1662)
inline IDispatchPtr Word::OMathAutoCorrectEntry::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1663)
inline long Word::OMathAutoCorrectEntry::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1664)
inline _bstr_t Word::OMathAutoCorrectEntry::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1665)
inline void Word::OMathAutoCorrectEntry::PutName ( _bstr_t prop ) {
    HRESULT _hr = put_Name(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1666)
inline _bstr_t Word::OMathAutoCorrectEntry::GetValue ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Value(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1667)
inline void Word::OMathAutoCorrectEntry::PutValue ( _bstr_t prop ) {
    HRESULT _hr = put_Value(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1668)
inline HRESULT Word::OMathAutoCorrectEntry::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface OMathAutoCorrectEntries wrapper method implementations
//

#pragma implementation_key(1669)
inline Word::_ApplicationPtr Word::OMathAutoCorrectEntries::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1670)
inline long Word::OMathAutoCorrectEntries::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1671)
inline IDispatchPtr Word::OMathAutoCorrectEntries::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1672)
inline IUnknownPtr Word::OMathAutoCorrectEntries::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(1673)
inline long Word::OMathAutoCorrectEntries::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1674)
inline Word::OMathAutoCorrectEntryPtr Word::OMathAutoCorrectEntries::Item ( VARIANT * Index ) {
    struct OMathAutoCorrectEntry * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathAutoCorrectEntryPtr(_result, false);
}

#pragma implementation_key(1675)
inline Word::OMathAutoCorrectEntryPtr Word::OMathAutoCorrectEntries::Add ( _bstr_t Name, _bstr_t Value ) {
    struct OMathAutoCorrectEntry * _result = 0;
    HRESULT _hr = raw_Add(Name, Value, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathAutoCorrectEntryPtr(_result, false);
}

//
// interface OMathRecognizedFunction wrapper method implementations
//

#pragma implementation_key(1676)
inline Word::_ApplicationPtr Word::OMathRecognizedFunction::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1677)
inline long Word::OMathRecognizedFunction::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1678)
inline IDispatchPtr Word::OMathRecognizedFunction::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1679)
inline long Word::OMathRecognizedFunction::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1680)
inline _bstr_t Word::OMathRecognizedFunction::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1681)
inline HRESULT Word::OMathRecognizedFunction::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface OMathRecognizedFunctions wrapper method implementations
//

#pragma implementation_key(1682)
inline Word::_ApplicationPtr Word::OMathRecognizedFunctions::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1683)
inline long Word::OMathRecognizedFunctions::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1684)
inline IDispatchPtr Word::OMathRecognizedFunctions::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1685)
inline IUnknownPtr Word::OMathRecognizedFunctions::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(1686)
inline long Word::OMathRecognizedFunctions::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1687)
inline Word::OMathRecognizedFunctionPtr Word::OMathRecognizedFunctions::Item ( VARIANT * Index ) {
    struct OMathRecognizedFunction * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathRecognizedFunctionPtr(_result, false);
}

#pragma implementation_key(1688)
inline Word::OMathRecognizedFunctionPtr Word::OMathRecognizedFunctions::Add ( _bstr_t Name ) {
    struct OMathRecognizedFunction * _result = 0;
    HRESULT _hr = raw_Add(Name, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathRecognizedFunctionPtr(_result, false);
}

//
// interface OMathAutoCorrect wrapper method implementations
//

#pragma implementation_key(1689)
inline Word::_ApplicationPtr Word::OMathAutoCorrect::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1690)
inline long Word::OMathAutoCorrect::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1691)
inline IDispatchPtr Word::OMathAutoCorrect::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1692)
inline VARIANT_BOOL Word::OMathAutoCorrect::Get__ReplaceText ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get___ReplaceText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1693)
inline void Word::OMathAutoCorrect::Put__ReplaceText ( VARIANT_BOOL prop ) {
    HRESULT _hr = put___ReplaceText(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1694)
inline VARIANT_BOOL Word::OMathAutoCorrect::GetUseOutsideOMath ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_UseOutsideOMath(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1695)
inline void Word::OMathAutoCorrect::PutUseOutsideOMath ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_UseOutsideOMath(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1696)
inline Word::OMathAutoCorrectEntriesPtr Word::OMathAutoCorrect::GetEntries ( ) {
    struct OMathAutoCorrectEntries * _result = 0;
    HRESULT _hr = get_Entries(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathAutoCorrectEntriesPtr(_result, false);
}

#pragma implementation_key(1697)
inline Word::OMathRecognizedFunctionsPtr Word::OMathAutoCorrect::GetFunctions ( ) {
    struct OMathRecognizedFunctions * _result = 0;
    HRESULT _hr = get_Functions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathRecognizedFunctionsPtr(_result, false);
}

//
// interface XMLMapping wrapper method implementations
//

#pragma implementation_key(1698)
inline Word::_ApplicationPtr Word::XMLMapping::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1699)
inline long Word::XMLMapping::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1700)
inline IDispatchPtr Word::XMLMapping::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1701)
inline VARIANT_BOOL Word::XMLMapping::GetIsMapped ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IsMapped(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1702)
inline Office::_CustomXMLPartPtr Word::XMLMapping::GetCustomXMLPart ( ) {
    struct Office::_CustomXMLPart * _result = 0;
    HRESULT _hr = get_CustomXMLPart(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::_CustomXMLPartPtr(_result, false);
}

#pragma implementation_key(1703)
inline Office::CustomXMLNodePtr Word::XMLMapping::GetCustomXMLNode ( ) {
    struct Office::CustomXMLNode * _result = 0;
    HRESULT _hr = get_CustomXMLNode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::CustomXMLNodePtr(_result, false);
}

#pragma implementation_key(1704)
inline VARIANT_BOOL Word::XMLMapping::SetMapping ( _bstr_t XPath, _bstr_t PrefixMapping, struct Office::_CustomXMLPart * Source ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_SetMapping(XPath, PrefixMapping, Source, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1705)
inline HRESULT Word::XMLMapping::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1706)
inline VARIANT_BOOL Word::XMLMapping::SetMappingByNode ( struct Office::CustomXMLNode * Node ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_SetMappingByNode(Node, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1707)
inline _bstr_t Word::XMLMapping::GetXPath ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_XPath(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1708)
inline _bstr_t Word::XMLMapping::GetPrefixMappings ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_PrefixMappings(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

//
// interface ContentControlListEntry wrapper method implementations
//

#pragma implementation_key(1709)
inline Word::_ApplicationPtr Word::ContentControlListEntry::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1710)
inline long Word::ContentControlListEntry::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1711)
inline IDispatchPtr Word::ContentControlListEntry::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1712)
inline _bstr_t Word::ContentControlListEntry::GetText ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Text(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1713)
inline void Word::ContentControlListEntry::PutText ( _bstr_t prop ) {
    HRESULT _hr = put_Text(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1714)
inline _bstr_t Word::ContentControlListEntry::GetValue ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Value(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1715)
inline void Word::ContentControlListEntry::PutValue ( _bstr_t prop ) {
    HRESULT _hr = put_Value(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1716)
inline long Word::ContentControlListEntry::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1717)
inline void Word::ContentControlListEntry::PutIndex ( long prop ) {
    HRESULT _hr = put_Index(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1718)
inline HRESULT Word::ContentControlListEntry::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1719)
inline HRESULT Word::ContentControlListEntry::MoveUp ( ) {
    HRESULT _hr = raw_MoveUp();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1720)
inline HRESULT Word::ContentControlListEntry::MoveDown ( ) {
    HRESULT _hr = raw_MoveDown();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1721)
inline HRESULT Word::ContentControlListEntry::Select ( ) {
    HRESULT _hr = raw_Select();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface ContentControlListEntries wrapper method implementations
//

#pragma implementation_key(1722)
inline IUnknownPtr Word::ContentControlListEntries::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(1723)
inline Word::_ApplicationPtr Word::ContentControlListEntries::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1724)
inline long Word::ContentControlListEntries::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1725)
inline IDispatchPtr Word::ContentControlListEntries::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1726)
inline long Word::ContentControlListEntries::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1727)
inline HRESULT Word::ContentControlListEntries::Clear ( ) {
    HRESULT _hr = raw_Clear();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1728)
inline Word::ContentControlListEntryPtr Word::ContentControlListEntries::Item ( long Index ) {
    struct ContentControlListEntry * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ContentControlListEntryPtr(_result, false);
}

#pragma implementation_key(1729)
inline Word::ContentControlListEntryPtr Word::ContentControlListEntries::Add ( _bstr_t Text, _bstr_t Value, long Index ) {
    struct ContentControlListEntry * _result = 0;
    HRESULT _hr = raw_Add(Text, Value, Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ContentControlListEntryPtr(_result, false);
}

//
// interface Research wrapper method implementations
//

#pragma implementation_key(1730)
inline Word::_ApplicationPtr Word::Research::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1731)
inline long Word::Research::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1732)
inline IDispatchPtr Word::Research::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1733)
inline _variant_t Word::Research::Query ( _bstr_t ServiceID, _bstr_t QueryString, enum WdLanguageID QueryLanguage, VARIANT_BOOL UseSelection, VARIANT_BOOL LaunchQuery ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Query(ServiceID, QueryString, QueryLanguage, UseSelection, LaunchQuery, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(1734)
inline _variant_t Word::Research::SetLanguagePair ( enum WdLanguageID LanguageFrom, enum WdLanguageID LanguageTo ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_SetLanguagePair(LanguageFrom, LanguageTo, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(1735)
inline VARIANT_BOOL Word::Research::IsResearchService ( _bstr_t ServiceID ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_IsResearchService(ServiceID, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1736)
inline _bstr_t Word::Research::GetFavoriteService ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_FavoriteService(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1737)
inline void Word::Research::PutFavoriteService ( _bstr_t prop ) {
    HRESULT _hr = put_FavoriteService(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface SoftEdgeFormat wrapper method implementations
//

#pragma implementation_key(1738)
inline enum Office::MsoSoftEdgeType Word::SoftEdgeFormat::GetType ( ) {
    enum Office::MsoSoftEdgeType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1739)
inline void Word::SoftEdgeFormat::PutType ( enum Office::MsoSoftEdgeType prop ) {
    HRESULT _hr = put_Type(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1740)
inline float Word::SoftEdgeFormat::GetRadius ( ) {
    float _result = 0;
    HRESULT _hr = get_Radius(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1741)
inline void Word::SoftEdgeFormat::PutRadius ( float prop ) {
    HRESULT _hr = put_Radius(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1742)
inline Word::_ApplicationPtr Word::SoftEdgeFormat::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1743)
inline long Word::SoftEdgeFormat::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1744)
inline IDispatchPtr Word::SoftEdgeFormat::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

//
// interface ReflectionFormat wrapper method implementations
//

#pragma implementation_key(1745)
inline enum Office::MsoReflectionType Word::ReflectionFormat::GetType ( ) {
    enum Office::MsoReflectionType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1746)
inline void Word::ReflectionFormat::PutType ( enum Office::MsoReflectionType prop ) {
    HRESULT _hr = put_Type(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1747)
inline Word::_ApplicationPtr Word::ReflectionFormat::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1748)
inline long Word::ReflectionFormat::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1749)
inline IDispatchPtr Word::ReflectionFormat::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1750)
inline float Word::ReflectionFormat::GetTransparency ( ) {
    float _result = 0;
    HRESULT _hr = get_Transparency(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1751)
inline void Word::ReflectionFormat::PutTransparency ( float prop ) {
    HRESULT _hr = put_Transparency(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1752)
inline float Word::ReflectionFormat::GetSize ( ) {
    float _result = 0;
    HRESULT _hr = get_Size(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1753)
inline void Word::ReflectionFormat::PutSize ( float prop ) {
    HRESULT _hr = put_Size(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1754)
inline float Word::ReflectionFormat::GetOffset ( ) {
    float _result = 0;
    HRESULT _hr = get_Offset(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1755)
inline void Word::ReflectionFormat::PutOffset ( float prop ) {
    HRESULT _hr = put_Offset(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1756)
inline float Word::ReflectionFormat::GetBlur ( ) {
    float _result = 0;
    HRESULT _hr = get_Blur(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1757)
inline void Word::ReflectionFormat::PutBlur ( float prop ) {
    HRESULT _hr = put_Blur(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface View wrapper method implementations
//

#pragma implementation_key(1758)
inline Word::_ApplicationPtr Word::View::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1759)
inline long Word::View::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1760)
inline IDispatchPtr Word::View::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1761)
inline enum Word::WdViewType Word::View::GetType ( ) {
    enum WdViewType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1762)
inline void Word::View::PutType ( enum WdViewType prop ) {
    HRESULT _hr = put_Type(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1763)
inline VARIANT_BOOL Word::View::GetFullScreen ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_FullScreen(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1764)
inline void Word::View::PutFullScreen ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_FullScreen(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1765)
inline VARIANT_BOOL Word::View::GetDraft ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Draft(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1766)
inline void Word::View::PutDraft ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Draft(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1767)
inline VARIANT_BOOL Word::View::GetShowAll ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowAll(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1768)
inline void Word::View::PutShowAll ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowAll(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1769)
inline VARIANT_BOOL Word::View::GetShowFieldCodes ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowFieldCodes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1770)
inline void Word::View::PutShowFieldCodes ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowFieldCodes(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1771)
inline VARIANT_BOOL Word::View::GetMailMergeDataView ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MailMergeDataView(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1772)
inline void Word::View::PutMailMergeDataView ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MailMergeDataView(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1773)
inline VARIANT_BOOL Word::View::GetMagnifier ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Magnifier(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1774)
inline void Word::View::PutMagnifier ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Magnifier(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1775)
inline VARIANT_BOOL Word::View::GetShowFirstLineOnly ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowFirstLineOnly(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1776)
inline void Word::View::PutShowFirstLineOnly ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowFirstLineOnly(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1777)
inline VARIANT_BOOL Word::View::GetShowFormat ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1778)
inline void Word::View::PutShowFormat ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowFormat(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1779)
inline Word::ZoomPtr Word::View::GetZoom ( ) {
    struct Zoom * _result = 0;
    HRESULT _hr = get_Zoom(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ZoomPtr(_result, false);
}

#pragma implementation_key(1780)
inline VARIANT_BOOL Word::View::GetShowObjectAnchors ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowObjectAnchors(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1781)
inline void Word::View::PutShowObjectAnchors ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowObjectAnchors(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1782)
inline VARIANT_BOOL Word::View::GetShowTextBoundaries ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowTextBoundaries(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1783)
inline void Word::View::PutShowTextBoundaries ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowTextBoundaries(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1784)
inline VARIANT_BOOL Word::View::GetShowHighlight ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowHighlight(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1785)
inline void Word::View::PutShowHighlight ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowHighlight(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1786)
inline VARIANT_BOOL Word::View::GetShowDrawings ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowDrawings(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1787)
inline void Word::View::PutShowDrawings ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowDrawings(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1788)
inline VARIANT_BOOL Word::View::GetShowTabs ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowTabs(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1789)
inline void Word::View::PutShowTabs ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowTabs(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1790)
inline VARIANT_BOOL Word::View::GetShowSpaces ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowSpaces(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1791)
inline void Word::View::PutShowSpaces ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowSpaces(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1792)
inline VARIANT_BOOL Word::View::GetShowParagraphs ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowParagraphs(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1793)
inline void Word::View::PutShowParagraphs ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowParagraphs(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1794)
inline VARIANT_BOOL Word::View::GetShowHyphens ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowHyphens(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1795)
inline void Word::View::PutShowHyphens ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowHyphens(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1796)
inline VARIANT_BOOL Word::View::GetShowHiddenText ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowHiddenText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1797)
inline void Word::View::PutShowHiddenText ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowHiddenText(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1798)
inline VARIANT_BOOL Word::View::GetWrapToWindow ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_WrapToWindow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1799)
inline void Word::View::PutWrapToWindow ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_WrapToWindow(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1800)
inline VARIANT_BOOL Word::View::GetShowPicturePlaceHolders ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowPicturePlaceHolders(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1801)
inline void Word::View::PutShowPicturePlaceHolders ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowPicturePlaceHolders(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1802)
inline VARIANT_BOOL Word::View::GetShowBookmarks ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowBookmarks(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1803)
inline void Word::View::PutShowBookmarks ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowBookmarks(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1804)
inline enum Word::WdFieldShading Word::View::GetFieldShading ( ) {
    enum WdFieldShading _result;
    HRESULT _hr = get_FieldShading(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1805)
inline void Word::View::PutFieldShading ( enum WdFieldShading prop ) {
    HRESULT _hr = put_FieldShading(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1806)
inline VARIANT_BOOL Word::View::GetShowAnimation ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowAnimation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1807)
inline void Word::View::PutShowAnimation ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowAnimation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1808)
inline VARIANT_BOOL Word::View::GetTableGridlines ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_TableGridlines(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1809)
inline void Word::View::PutTableGridlines ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_TableGridlines(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1810)
inline long Word::View::GetEnlargeFontsLessThan ( ) {
    long _result = 0;
    HRESULT _hr = get_EnlargeFontsLessThan(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1811)
inline void Word::View::PutEnlargeFontsLessThan ( long prop ) {
    HRESULT _hr = put_EnlargeFontsLessThan(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1812)
inline VARIANT_BOOL Word::View::GetShowMainTextLayer ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowMainTextLayer(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1813)
inline void Word::View::PutShowMainTextLayer ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowMainTextLayer(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1814)
inline enum Word::WdSeekView Word::View::GetSeekView ( ) {
    enum WdSeekView _result;
    HRESULT _hr = get_SeekView(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1815)
inline void Word::View::PutSeekView ( enum WdSeekView prop ) {
    HRESULT _hr = put_SeekView(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1816)
inline enum Word::WdSpecialPane Word::View::GetSplitSpecial ( ) {
    enum WdSpecialPane _result;
    HRESULT _hr = get_SplitSpecial(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1817)
inline void Word::View::PutSplitSpecial ( enum WdSpecialPane prop ) {
    HRESULT _hr = put_SplitSpecial(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1818)
inline long Word::View::GetBrowseToWindow ( ) {
    long _result = 0;
    HRESULT _hr = get_BrowseToWindow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1819)
inline void Word::View::PutBrowseToWindow ( long prop ) {
    HRESULT _hr = put_BrowseToWindow(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1820)
inline VARIANT_BOOL Word::View::GetShowOptionalBreaks ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowOptionalBreaks(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1821)
inline void Word::View::PutShowOptionalBreaks ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowOptionalBreaks(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1822)
inline HRESULT Word::View::CollapseOutline ( VARIANT * Range ) {
    HRESULT _hr = raw_CollapseOutline(Range);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1823)
inline HRESULT Word::View::ExpandOutline ( VARIANT * Range ) {
    HRESULT _hr = raw_ExpandOutline(Range);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1824)
inline HRESULT Word::View::ShowAllHeadings ( ) {
    HRESULT _hr = raw_ShowAllHeadings();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1825)
inline HRESULT Word::View::ShowHeading ( long Level ) {
    HRESULT _hr = raw_ShowHeading(Level);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1826)
inline HRESULT Word::View::PreviousHeaderFooter ( ) {
    HRESULT _hr = raw_PreviousHeaderFooter();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1827)
inline HRESULT Word::View::NextHeaderFooter ( ) {
    HRESULT _hr = raw_NextHeaderFooter();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1828)
inline VARIANT_BOOL Word::View::GetDisplayPageBoundaries ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DisplayPageBoundaries(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1829)
inline void Word::View::PutDisplayPageBoundaries ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DisplayPageBoundaries(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1830)
inline VARIANT_BOOL Word::View::GetDisplaySmartTags ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DisplaySmartTags(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1831)
inline void Word::View::PutDisplaySmartTags ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DisplaySmartTags(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1832)
inline VARIANT_BOOL Word::View::GetShowRevisionsAndComments ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowRevisionsAndComments(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1833)
inline void Word::View::PutShowRevisionsAndComments ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowRevisionsAndComments(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1834)
inline VARIANT_BOOL Word::View::GetShowComments ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowComments(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1835)
inline void Word::View::PutShowComments ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowComments(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1836)
inline VARIANT_BOOL Word::View::GetShowInsertionsAndDeletions ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowInsertionsAndDeletions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1837)
inline void Word::View::PutShowInsertionsAndDeletions ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowInsertionsAndDeletions(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1838)
inline VARIANT_BOOL Word::View::GetShowFormatChanges ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowFormatChanges(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1839)
inline void Word::View::PutShowFormatChanges ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowFormatChanges(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1840)
inline enum Word::WdRevisionsView Word::View::GetRevisionsView ( ) {
    enum WdRevisionsView _result;
    HRESULT _hr = get_RevisionsView(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1841)
inline void Word::View::PutRevisionsView ( enum WdRevisionsView prop ) {
    HRESULT _hr = put_RevisionsView(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1842)
inline enum Word::WdRevisionsMode Word::View::GetRevisionsMode ( ) {
    enum WdRevisionsMode _result;
    HRESULT _hr = get_RevisionsMode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1843)
inline void Word::View::PutRevisionsMode ( enum WdRevisionsMode prop ) {
    HRESULT _hr = put_RevisionsMode(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1844)
inline float Word::View::GetRevisionsBalloonWidth ( ) {
    float _result = 0;
    HRESULT _hr = get_RevisionsBalloonWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1845)
inline void Word::View::PutRevisionsBalloonWidth ( float prop ) {
    HRESULT _hr = put_RevisionsBalloonWidth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1846)
inline enum Word::WdRevisionsBalloonWidthType Word::View::GetRevisionsBalloonWidthType ( ) {
    enum WdRevisionsBalloonWidthType _result;
    HRESULT _hr = get_RevisionsBalloonWidthType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1847)
inline void Word::View::PutRevisionsBalloonWidthType ( enum WdRevisionsBalloonWidthType prop ) {
    HRESULT _hr = put_RevisionsBalloonWidthType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1848)
inline enum Word::WdRevisionsBalloonMargin Word::View::GetRevisionsBalloonSide ( ) {
    enum WdRevisionsBalloonMargin _result;
    HRESULT _hr = get_RevisionsBalloonSide(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1849)
inline void Word::View::PutRevisionsBalloonSide ( enum WdRevisionsBalloonMargin prop ) {
    HRESULT _hr = put_RevisionsBalloonSide(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1850)
inline Word::ReviewersPtr Word::View::GetReviewers ( ) {
    struct Reviewers * _result = 0;
    HRESULT _hr = get_Reviewers(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ReviewersPtr(_result, false);
}

#pragma implementation_key(1851)
inline VARIANT_BOOL Word::View::GetRevisionsBalloonShowConnectingLines ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_RevisionsBalloonShowConnectingLines(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1852)
inline void Word::View::PutRevisionsBalloonShowConnectingLines ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_RevisionsBalloonShowConnectingLines(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1853)
inline VARIANT_BOOL Word::View::GetReadingLayout ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ReadingLayout(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1854)
inline void Word::View::PutReadingLayout ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ReadingLayout(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1855)
inline long Word::View::GetShowXMLMarkup ( ) {
    long _result = 0;
    HRESULT _hr = get_ShowXMLMarkup(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1856)
inline void Word::View::PutShowXMLMarkup ( long prop ) {
    HRESULT _hr = put_ShowXMLMarkup(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1857)
inline long Word::View::GetShadeEditableRanges ( ) {
    long _result = 0;
    HRESULT _hr = get_ShadeEditableRanges(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1858)
inline void Word::View::PutShadeEditableRanges ( long prop ) {
    HRESULT _hr = put_ShadeEditableRanges(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1859)
inline VARIANT_BOOL Word::View::GetShowInkAnnotations ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowInkAnnotations(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1860)
inline void Word::View::PutShowInkAnnotations ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowInkAnnotations(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1861)
inline VARIANT_BOOL Word::View::GetDisplayBackgrounds ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DisplayBackgrounds(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1862)
inline void Word::View::PutDisplayBackgrounds ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DisplayBackgrounds(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1863)
inline VARIANT_BOOL Word::View::GetReadingLayoutActualView ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ReadingLayoutActualView(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1864)
inline void Word::View::PutReadingLayoutActualView ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ReadingLayoutActualView(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1865)
inline VARIANT_BOOL Word::View::GetReadingLayoutAllowMultiplePages ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ReadingLayoutAllowMultiplePages(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1866)
inline void Word::View::PutReadingLayoutAllowMultiplePages ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ReadingLayoutAllowMultiplePages(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1867)
inline VARIANT_BOOL Word::View::GetReadingLayoutAllowEditing ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ReadingLayoutAllowEditing(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1868)
inline void Word::View::PutReadingLayoutAllowEditing ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ReadingLayoutAllowEditing(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1869)
inline enum Word::WdReadingLayoutMargin Word::View::GetReadingLayoutTruncateMargins ( ) {
    enum WdReadingLayoutMargin _result;
    HRESULT _hr = get_ReadingLayoutTruncateMargins(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1870)
inline void Word::View::PutReadingLayoutTruncateMargins ( enum WdReadingLayoutMargin prop ) {
    HRESULT _hr = put_ReadingLayoutTruncateMargins(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1871)
inline VARIANT_BOOL Word::View::GetShowMarkupAreaHighlight ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowMarkupAreaHighlight(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1872)
inline void Word::View::PutShowMarkupAreaHighlight ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowMarkupAreaHighlight(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1873)
inline VARIANT_BOOL Word::View::GetPanning ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Panning(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1874)
inline void Word::View::PutPanning ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Panning(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1875)
inline VARIANT_BOOL Word::View::GetShowCropMarks ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowCropMarks(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1876)
inline void Word::View::PutShowCropMarks ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowCropMarks(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1877)
inline enum Word::WdRevisionsMode Word::View::GetMarkupMode ( ) {
    enum WdRevisionsMode _result;
    HRESULT _hr = get_MarkupMode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1878)
inline void Word::View::PutMarkupMode ( enum WdRevisionsMode prop ) {
    HRESULT _hr = put_MarkupMode(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1879)
inline VARIANT_BOOL Word::View::GetConflictMode ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ConflictMode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1880)
inline void Word::View::PutConflictMode ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ConflictMode(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1881)
inline VARIANT_BOOL Word::View::GetShowOtherAuthors ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowOtherAuthors(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1882)
inline void Word::View::PutShowOtherAuthors ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowOtherAuthors(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface _ParagraphFormat wrapper method implementations
//

#pragma implementation_key(1883)
inline Word::_ApplicationPtr Word::_ParagraphFormat::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1884)
inline long Word::_ParagraphFormat::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1885)
inline IDispatchPtr Word::_ParagraphFormat::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1886)
inline Word::_ParagraphFormatPtr Word::_ParagraphFormat::GetDuplicate ( ) {
    struct _ParagraphFormat * _result = 0;
    HRESULT _hr = get_Duplicate(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ParagraphFormatPtr(_result, false);
}

#pragma implementation_key(1887)
inline _variant_t Word::_ParagraphFormat::GetStyle ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Style(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(1888)
inline void Word::_ParagraphFormat::PutStyle ( VARIANT * prop ) {
    HRESULT _hr = put_Style(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1889)
inline enum Word::WdParagraphAlignment Word::_ParagraphFormat::GetAlignment ( ) {
    enum WdParagraphAlignment _result;
    HRESULT _hr = get_Alignment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1890)
inline void Word::_ParagraphFormat::PutAlignment ( enum WdParagraphAlignment prop ) {
    HRESULT _hr = put_Alignment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1891)
inline long Word::_ParagraphFormat::GetKeepTogether ( ) {
    long _result = 0;
    HRESULT _hr = get_KeepTogether(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1892)
inline void Word::_ParagraphFormat::PutKeepTogether ( long prop ) {
    HRESULT _hr = put_KeepTogether(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1893)
inline long Word::_ParagraphFormat::GetKeepWithNext ( ) {
    long _result = 0;
    HRESULT _hr = get_KeepWithNext(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1894)
inline void Word::_ParagraphFormat::PutKeepWithNext ( long prop ) {
    HRESULT _hr = put_KeepWithNext(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1895)
inline long Word::_ParagraphFormat::GetPageBreakBefore ( ) {
    long _result = 0;
    HRESULT _hr = get_PageBreakBefore(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1896)
inline void Word::_ParagraphFormat::PutPageBreakBefore ( long prop ) {
    HRESULT _hr = put_PageBreakBefore(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1897)
inline long Word::_ParagraphFormat::GetNoLineNumber ( ) {
    long _result = 0;
    HRESULT _hr = get_NoLineNumber(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1898)
inline void Word::_ParagraphFormat::PutNoLineNumber ( long prop ) {
    HRESULT _hr = put_NoLineNumber(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1899)
inline float Word::_ParagraphFormat::GetRightIndent ( ) {
    float _result = 0;
    HRESULT _hr = get_RightIndent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1900)
inline void Word::_ParagraphFormat::PutRightIndent ( float prop ) {
    HRESULT _hr = put_RightIndent(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1901)
inline float Word::_ParagraphFormat::GetLeftIndent ( ) {
    float _result = 0;
    HRESULT _hr = get_LeftIndent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1902)
inline void Word::_ParagraphFormat::PutLeftIndent ( float prop ) {
    HRESULT _hr = put_LeftIndent(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1903)
inline float Word::_ParagraphFormat::GetFirstLineIndent ( ) {
    float _result = 0;
    HRESULT _hr = get_FirstLineIndent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1904)
inline void Word::_ParagraphFormat::PutFirstLineIndent ( float prop ) {
    HRESULT _hr = put_FirstLineIndent(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1905)
inline float Word::_ParagraphFormat::GetLineSpacing ( ) {
    float _result = 0;
    HRESULT _hr = get_LineSpacing(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1906)
inline void Word::_ParagraphFormat::PutLineSpacing ( float prop ) {
    HRESULT _hr = put_LineSpacing(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1907)
inline enum Word::WdLineSpacing Word::_ParagraphFormat::GetLineSpacingRule ( ) {
    enum WdLineSpacing _result;
    HRESULT _hr = get_LineSpacingRule(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1908)
inline void Word::_ParagraphFormat::PutLineSpacingRule ( enum WdLineSpacing prop ) {
    HRESULT _hr = put_LineSpacingRule(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1909)
inline float Word::_ParagraphFormat::GetSpaceBefore ( ) {
    float _result = 0;
    HRESULT _hr = get_SpaceBefore(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1910)
inline void Word::_ParagraphFormat::PutSpaceBefore ( float prop ) {
    HRESULT _hr = put_SpaceBefore(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1911)
inline float Word::_ParagraphFormat::GetSpaceAfter ( ) {
    float _result = 0;
    HRESULT _hr = get_SpaceAfter(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1912)
inline void Word::_ParagraphFormat::PutSpaceAfter ( float prop ) {
    HRESULT _hr = put_SpaceAfter(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1913)
inline long Word::_ParagraphFormat::GetHyphenation ( ) {
    long _result = 0;
    HRESULT _hr = get_Hyphenation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1914)
inline void Word::_ParagraphFormat::PutHyphenation ( long prop ) {
    HRESULT _hr = put_Hyphenation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1915)
inline long Word::_ParagraphFormat::GetWidowControl ( ) {
    long _result = 0;
    HRESULT _hr = get_WidowControl(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1916)
inline void Word::_ParagraphFormat::PutWidowControl ( long prop ) {
    HRESULT _hr = put_WidowControl(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1917)
inline long Word::_ParagraphFormat::GetFarEastLineBreakControl ( ) {
    long _result = 0;
    HRESULT _hr = get_FarEastLineBreakControl(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1918)
inline void Word::_ParagraphFormat::PutFarEastLineBreakControl ( long prop ) {
    HRESULT _hr = put_FarEastLineBreakControl(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1919)
inline long Word::_ParagraphFormat::GetWordWrap ( ) {
    long _result = 0;
    HRESULT _hr = get_WordWrap(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1920)
inline void Word::_ParagraphFormat::PutWordWrap ( long prop ) {
    HRESULT _hr = put_WordWrap(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1921)
inline long Word::_ParagraphFormat::GetHangingPunctuation ( ) {
    long _result = 0;
    HRESULT _hr = get_HangingPunctuation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1922)
inline void Word::_ParagraphFormat::PutHangingPunctuation ( long prop ) {
    HRESULT _hr = put_HangingPunctuation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1923)
inline long Word::_ParagraphFormat::GetHalfWidthPunctuationOnTopOfLine ( ) {
    long _result = 0;
    HRESULT _hr = get_HalfWidthPunctuationOnTopOfLine(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1924)
inline void Word::_ParagraphFormat::PutHalfWidthPunctuationOnTopOfLine ( long prop ) {
    HRESULT _hr = put_HalfWidthPunctuationOnTopOfLine(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1925)
inline long Word::_ParagraphFormat::GetAddSpaceBetweenFarEastAndAlpha ( ) {
    long _result = 0;
    HRESULT _hr = get_AddSpaceBetweenFarEastAndAlpha(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1926)
inline void Word::_ParagraphFormat::PutAddSpaceBetweenFarEastAndAlpha ( long prop ) {
    HRESULT _hr = put_AddSpaceBetweenFarEastAndAlpha(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1927)
inline long Word::_ParagraphFormat::GetAddSpaceBetweenFarEastAndDigit ( ) {
    long _result = 0;
    HRESULT _hr = get_AddSpaceBetweenFarEastAndDigit(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1928)
inline void Word::_ParagraphFormat::PutAddSpaceBetweenFarEastAndDigit ( long prop ) {
    HRESULT _hr = put_AddSpaceBetweenFarEastAndDigit(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1929)
inline enum Word::WdBaselineAlignment Word::_ParagraphFormat::GetBaseLineAlignment ( ) {
    enum WdBaselineAlignment _result;
    HRESULT _hr = get_BaseLineAlignment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1930)
inline void Word::_ParagraphFormat::PutBaseLineAlignment ( enum WdBaselineAlignment prop ) {
    HRESULT _hr = put_BaseLineAlignment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1931)
inline long Word::_ParagraphFormat::GetAutoAdjustRightIndent ( ) {
    long _result = 0;
    HRESULT _hr = get_AutoAdjustRightIndent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1932)
inline void Word::_ParagraphFormat::PutAutoAdjustRightIndent ( long prop ) {
    HRESULT _hr = put_AutoAdjustRightIndent(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1933)
inline long Word::_ParagraphFormat::GetDisableLineHeightGrid ( ) {
    long _result = 0;
    HRESULT _hr = get_DisableLineHeightGrid(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1934)
inline void Word::_ParagraphFormat::PutDisableLineHeightGrid ( long prop ) {
    HRESULT _hr = put_DisableLineHeightGrid(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1935)
inline Word::TabStopsPtr Word::_ParagraphFormat::GetTabStops ( ) {
    struct TabStops * _result = 0;
    HRESULT _hr = get_TabStops(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TabStopsPtr(_result, false);
}

#pragma implementation_key(1936)
inline void Word::_ParagraphFormat::PutTabStops ( struct TabStops * prop ) {
    HRESULT _hr = put_TabStops(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1937)
inline Word::BordersPtr Word::_ParagraphFormat::GetBorders ( ) {
    struct Borders * _result = 0;
    HRESULT _hr = get_Borders(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BordersPtr(_result, false);
}

#pragma implementation_key(1938)
inline void Word::_ParagraphFormat::PutBorders ( struct Borders * prop ) {
    HRESULT _hr = put_Borders(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1939)
inline Word::ShadingPtr Word::_ParagraphFormat::GetShading ( ) {
    struct Shading * _result = 0;
    HRESULT _hr = get_Shading(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShadingPtr(_result, false);
}

#pragma implementation_key(1940)
inline enum Word::WdOutlineLevel Word::_ParagraphFormat::GetOutlineLevel ( ) {
    enum WdOutlineLevel _result;
    HRESULT _hr = get_OutlineLevel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1941)
inline void Word::_ParagraphFormat::PutOutlineLevel ( enum WdOutlineLevel prop ) {
    HRESULT _hr = put_OutlineLevel(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1942)
inline HRESULT Word::_ParagraphFormat::CloseUp ( ) {
    HRESULT _hr = raw_CloseUp();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1943)
inline HRESULT Word::_ParagraphFormat::OpenUp ( ) {
    HRESULT _hr = raw_OpenUp();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1944)
inline HRESULT Word::_ParagraphFormat::OpenOrCloseUp ( ) {
    HRESULT _hr = raw_OpenOrCloseUp();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1945)
inline HRESULT Word::_ParagraphFormat::TabHangingIndent ( short Count ) {
    HRESULT _hr = raw_TabHangingIndent(Count);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1946)
inline HRESULT Word::_ParagraphFormat::TabIndent ( short Count ) {
    HRESULT _hr = raw_TabIndent(Count);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1947)
inline HRESULT Word::_ParagraphFormat::Reset ( ) {
    HRESULT _hr = raw_Reset();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1948)
inline HRESULT Word::_ParagraphFormat::Space1 ( ) {
    HRESULT _hr = raw_Space1();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1949)
inline HRESULT Word::_ParagraphFormat::Space15 ( ) {
    HRESULT _hr = raw_Space15();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1950)
inline HRESULT Word::_ParagraphFormat::Space2 ( ) {
    HRESULT _hr = raw_Space2();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1951)
inline HRESULT Word::_ParagraphFormat::IndentCharWidth ( short Count ) {
    HRESULT _hr = raw_IndentCharWidth(Count);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1952)
inline HRESULT Word::_ParagraphFormat::IndentFirstLineCharWidth ( short Count ) {
    HRESULT _hr = raw_IndentFirstLineCharWidth(Count);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1953)
inline float Word::_ParagraphFormat::GetCharacterUnitRightIndent ( ) {
    float _result = 0;
    HRESULT _hr = get_CharacterUnitRightIndent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1954)
inline void Word::_ParagraphFormat::PutCharacterUnitRightIndent ( float prop ) {
    HRESULT _hr = put_CharacterUnitRightIndent(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1955)
inline float Word::_ParagraphFormat::GetCharacterUnitLeftIndent ( ) {
    float _result = 0;
    HRESULT _hr = get_CharacterUnitLeftIndent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1956)
inline void Word::_ParagraphFormat::PutCharacterUnitLeftIndent ( float prop ) {
    HRESULT _hr = put_CharacterUnitLeftIndent(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1957)
inline float Word::_ParagraphFormat::GetCharacterUnitFirstLineIndent ( ) {
    float _result = 0;
    HRESULT _hr = get_CharacterUnitFirstLineIndent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1958)
inline void Word::_ParagraphFormat::PutCharacterUnitFirstLineIndent ( float prop ) {
    HRESULT _hr = put_CharacterUnitFirstLineIndent(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1959)
inline float Word::_ParagraphFormat::GetLineUnitBefore ( ) {
    float _result = 0;
    HRESULT _hr = get_LineUnitBefore(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1960)
inline void Word::_ParagraphFormat::PutLineUnitBefore ( float prop ) {
    HRESULT _hr = put_LineUnitBefore(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1961)
inline float Word::_ParagraphFormat::GetLineUnitAfter ( ) {
    float _result = 0;
    HRESULT _hr = get_LineUnitAfter(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1962)
inline void Word::_ParagraphFormat::PutLineUnitAfter ( float prop ) {
    HRESULT _hr = put_LineUnitAfter(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1963)
inline enum Word::WdReadingOrder Word::_ParagraphFormat::GetReadingOrder ( ) {
    enum WdReadingOrder _result;
    HRESULT _hr = get_ReadingOrder(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1964)
inline void Word::_ParagraphFormat::PutReadingOrder ( enum WdReadingOrder prop ) {
    HRESULT _hr = put_ReadingOrder(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1965)
inline long Word::_ParagraphFormat::GetSpaceBeforeAuto ( ) {
    long _result = 0;
    HRESULT _hr = get_SpaceBeforeAuto(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1966)
inline void Word::_ParagraphFormat::PutSpaceBeforeAuto ( long prop ) {
    HRESULT _hr = put_SpaceBeforeAuto(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1967)
inline long Word::_ParagraphFormat::GetSpaceAfterAuto ( ) {
    long _result = 0;
    HRESULT _hr = get_SpaceAfterAuto(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1968)
inline void Word::_ParagraphFormat::PutSpaceAfterAuto ( long prop ) {
    HRESULT _hr = put_SpaceAfterAuto(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1969)
inline long Word::_ParagraphFormat::GetMirrorIndents ( ) {
    long _result = 0;
    HRESULT _hr = get_MirrorIndents(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1970)
inline void Word::_ParagraphFormat::PutMirrorIndents ( long prop ) {
    HRESULT _hr = put_MirrorIndents(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1971)
inline enum Word::WdTextboxTightWrap Word::_ParagraphFormat::GetTextboxTightWrap ( ) {
    enum WdTextboxTightWrap _result;
    HRESULT _hr = get_TextboxTightWrap(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1972)
inline void Word::_ParagraphFormat::PutTextboxTightWrap ( enum WdTextboxTightWrap prop ) {
    HRESULT _hr = put_TextboxTightWrap(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface ColorFormat wrapper method implementations
//

#pragma implementation_key(1973)
inline Word::_ApplicationPtr Word::ColorFormat::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(1974)
inline long Word::ColorFormat::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1975)
inline IDispatchPtr Word::ColorFormat::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(1976)
inline long Word::ColorFormat::Get__RGB ( ) {
    long _result = 0;
    HRESULT _hr = get___RGB(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1977)
inline void Word::ColorFormat::Put__RGB ( long prop ) {
    HRESULT _hr = put___RGB(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1978)
inline long Word::ColorFormat::GetSchemeColor ( ) {
    long _result = 0;
    HRESULT _hr = get_SchemeColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1979)
inline void Word::ColorFormat::PutSchemeColor ( long prop ) {
    HRESULT _hr = put_SchemeColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1980)
inline enum Office::MsoColorType Word::ColorFormat::GetType ( ) {
    enum Office::MsoColorType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1981)
inline _bstr_t Word::ColorFormat::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(1982)
inline void Word::ColorFormat::PutName ( _bstr_t prop ) {
    HRESULT _hr = put_Name(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1983)
inline float Word::ColorFormat::GetTintAndShade ( ) {
    float _result = 0;
    HRESULT _hr = get_TintAndShade(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1984)
inline void Word::ColorFormat::PutTintAndShade ( float prop ) {
    HRESULT _hr = put_TintAndShade(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1985)
inline enum Office::MsoTriState Word::ColorFormat::GetOverPrint ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_OverPrint(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1986)
inline void Word::ColorFormat::PutOverPrint ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_OverPrint(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1987)
inline float Word::ColorFormat::GetInk ( long Index ) {
    float _result = 0;
    HRESULT _hr = get_Ink(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1988)
inline void Word::ColorFormat::PutInk ( long Index, float prop ) {
    HRESULT _hr = put_Ink(Index, prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1989)
inline long Word::ColorFormat::GetCyan ( ) {
    long _result = 0;
    HRESULT _hr = get_Cyan(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1990)
inline void Word::ColorFormat::PutCyan ( long prop ) {
    HRESULT _hr = put_Cyan(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1991)
inline long Word::ColorFormat::GetMagenta ( ) {
    long _result = 0;
    HRESULT _hr = get_Magenta(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1992)
inline void Word::ColorFormat::PutMagenta ( long prop ) {
    HRESULT _hr = put_Magenta(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1993)
inline long Word::ColorFormat::GetYellow ( ) {
    long _result = 0;
    HRESULT _hr = get_Yellow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1994)
inline void Word::ColorFormat::PutYellow ( long prop ) {
    HRESULT _hr = put_Yellow(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1995)
inline long Word::ColorFormat::GetBlack ( ) {
    long _result = 0;
    HRESULT _hr = get_Black(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1996)
inline void Word::ColorFormat::PutBlack ( long prop ) {
    HRESULT _hr = put_Black(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(1997)
inline HRESULT Word::ColorFormat::SetCMYK ( long Cyan, long Magenta, long Yellow, long Black ) {
    HRESULT _hr = raw_SetCMYK(Cyan, Magenta, Yellow, Black);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(1998)
inline enum Word::WdThemeColorIndex Word::ColorFormat::GetObjectThemeColor ( ) {
    enum WdThemeColorIndex _result;
    HRESULT _hr = get_ObjectThemeColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(1999)
inline void Word::ColorFormat::PutObjectThemeColor ( enum WdThemeColorIndex prop ) {
    HRESULT _hr = put_ObjectThemeColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2000)
inline float Word::ColorFormat::GetBrightness ( ) {
    float _result = 0;
    HRESULT _hr = get_Brightness(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2001)
inline void Word::ColorFormat::PutBrightness ( float prop ) {
    HRESULT _hr = put_Brightness(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface FillFormat wrapper method implementations
//

#pragma implementation_key(2002)
inline Word::_ApplicationPtr Word::FillFormat::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(2003)
inline long Word::FillFormat::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2004)
inline IDispatchPtr Word::FillFormat::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2005)
inline Word::ColorFormatPtr Word::FillFormat::GetBackColor ( ) {
    struct ColorFormat * _result = 0;
    HRESULT _hr = get_BackColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ColorFormatPtr(_result, false);
}

#pragma implementation_key(2006)
inline Word::ColorFormatPtr Word::FillFormat::GetForeColor ( ) {
    struct ColorFormat * _result = 0;
    HRESULT _hr = get_ForeColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ColorFormatPtr(_result, false);
}

#pragma implementation_key(2007)
inline enum Office::MsoGradientColorType Word::FillFormat::GetGradientColorType ( ) {
    enum Office::MsoGradientColorType _result;
    HRESULT _hr = get_GradientColorType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2008)
inline float Word::FillFormat::GetGradientDegree ( ) {
    float _result = 0;
    HRESULT _hr = get_GradientDegree(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2009)
inline enum Office::MsoGradientStyle Word::FillFormat::GetGradientStyle ( ) {
    enum Office::MsoGradientStyle _result;
    HRESULT _hr = get_GradientStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2010)
inline long Word::FillFormat::GetGradientVariant ( ) {
    long _result = 0;
    HRESULT _hr = get_GradientVariant(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2011)
inline enum Office::MsoPatternType Word::FillFormat::GetPattern ( ) {
    enum Office::MsoPatternType _result;
    HRESULT _hr = get_Pattern(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2012)
inline enum Office::MsoPresetGradientType Word::FillFormat::GetPresetGradientType ( ) {
    enum Office::MsoPresetGradientType _result;
    HRESULT _hr = get_PresetGradientType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2013)
inline enum Office::MsoPresetTexture Word::FillFormat::GetPresetTexture ( ) {
    enum Office::MsoPresetTexture _result;
    HRESULT _hr = get_PresetTexture(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2014)
inline _bstr_t Word::FillFormat::GetTextureName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_TextureName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2015)
inline enum Office::MsoTextureType Word::FillFormat::GetTextureType ( ) {
    enum Office::MsoTextureType _result;
    HRESULT _hr = get_TextureType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2016)
inline float Word::FillFormat::GetTransparency ( ) {
    float _result = 0;
    HRESULT _hr = get_Transparency(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2017)
inline void Word::FillFormat::PutTransparency ( float prop ) {
    HRESULT _hr = put_Transparency(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2018)
inline enum Office::MsoFillType Word::FillFormat::GetType ( ) {
    enum Office::MsoFillType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2019)
inline enum Office::MsoTriState Word::FillFormat::GetVisible ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_Visible(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2020)
inline void Word::FillFormat::PutVisible ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_Visible(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2021)
inline HRESULT Word::FillFormat::Background ( ) {
    HRESULT _hr = raw_Background();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2022)
inline HRESULT Word::FillFormat::OneColorGradient ( enum Office::MsoGradientStyle Style, long Variant, float Degree ) {
    HRESULT _hr = raw_OneColorGradient(Style, Variant, Degree);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2023)
inline HRESULT Word::FillFormat::Patterned ( enum Office::MsoPatternType Pattern ) {
    HRESULT _hr = raw_Patterned(Pattern);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2024)
inline HRESULT Word::FillFormat::PresetGradient ( enum Office::MsoGradientStyle Style, long Variant, enum Office::MsoPresetGradientType PresetGradientType ) {
    HRESULT _hr = raw_PresetGradient(Style, Variant, PresetGradientType);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2025)
inline HRESULT Word::FillFormat::PresetTextured ( enum Office::MsoPresetTexture PresetTexture ) {
    HRESULT _hr = raw_PresetTextured(PresetTexture);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2026)
inline HRESULT Word::FillFormat::Solid ( ) {
    HRESULT _hr = raw_Solid();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2027)
inline HRESULT Word::FillFormat::TwoColorGradient ( enum Office::MsoGradientStyle Style, long Variant ) {
    HRESULT _hr = raw_TwoColorGradient(Style, Variant);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2028)
inline HRESULT Word::FillFormat::UserPicture ( _bstr_t PictureFile ) {
    HRESULT _hr = raw_UserPicture(PictureFile);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2029)
inline HRESULT Word::FillFormat::UserTextured ( _bstr_t TextureFile ) {
    HRESULT _hr = raw_UserTextured(TextureFile);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2030)
inline Office::GradientStopsPtr Word::FillFormat::GetGradientStops ( ) {
    struct Office::GradientStops * _result = 0;
    HRESULT _hr = get_GradientStops(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::GradientStopsPtr(_result, false);
}

#pragma implementation_key(2031)
inline float Word::FillFormat::GetTextureOffsetX ( ) {
    float _result = 0;
    HRESULT _hr = get_TextureOffsetX(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2032)
inline void Word::FillFormat::PutTextureOffsetX ( float prop ) {
    HRESULT _hr = put_TextureOffsetX(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2033)
inline float Word::FillFormat::GetTextureOffsetY ( ) {
    float _result = 0;
    HRESULT _hr = get_TextureOffsetY(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2034)
inline void Word::FillFormat::PutTextureOffsetY ( float prop ) {
    HRESULT _hr = put_TextureOffsetY(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2035)
inline enum Office::MsoTextureAlignment Word::FillFormat::GetTextureAlignment ( ) {
    enum Office::MsoTextureAlignment _result;
    HRESULT _hr = get_TextureAlignment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2036)
inline void Word::FillFormat::PutTextureAlignment ( enum Office::MsoTextureAlignment prop ) {
    HRESULT _hr = put_TextureAlignment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2037)
inline float Word::FillFormat::GetTextureHorizontalScale ( ) {
    float _result = 0;
    HRESULT _hr = get_TextureHorizontalScale(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2038)
inline void Word::FillFormat::PutTextureHorizontalScale ( float prop ) {
    HRESULT _hr = put_TextureHorizontalScale(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2039)
inline float Word::FillFormat::GetTextureVerticalScale ( ) {
    float _result = 0;
    HRESULT _hr = get_TextureVerticalScale(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2040)
inline void Word::FillFormat::PutTextureVerticalScale ( float prop ) {
    HRESULT _hr = put_TextureVerticalScale(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2041)
inline enum Office::MsoTriState Word::FillFormat::GetTextureTile ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_TextureTile(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2042)
inline void Word::FillFormat::PutTextureTile ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_TextureTile(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2043)
inline enum Office::MsoTriState Word::FillFormat::GetRotateWithObject ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_RotateWithObject(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2044)
inline void Word::FillFormat::PutRotateWithObject ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_RotateWithObject(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2045)
inline Office::PictureEffectsPtr Word::FillFormat::GetPictureEffects ( ) {
    struct Office::PictureEffects * _result = 0;
    HRESULT _hr = get_PictureEffects(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::PictureEffectsPtr(_result, false);
}

#pragma implementation_key(2046)
inline float Word::FillFormat::GetGradientAngle ( ) {
    float _result = 0;
    HRESULT _hr = get_GradientAngle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2047)
inline void Word::FillFormat::PutGradientAngle ( float prop ) {
    HRESULT _hr = put_GradientAngle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface LineFormat wrapper method implementations
//

#pragma implementation_key(2048)
inline Word::_ApplicationPtr Word::LineFormat::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(2049)
inline long Word::LineFormat::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2050)
inline IDispatchPtr Word::LineFormat::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2051)
inline Word::ColorFormatPtr Word::LineFormat::GetBackColor ( ) {
    struct ColorFormat * _result = 0;
    HRESULT _hr = get_BackColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ColorFormatPtr(_result, false);
}

#pragma implementation_key(2052)
inline enum Office::MsoArrowheadLength Word::LineFormat::GetBeginArrowheadLength ( ) {
    enum Office::MsoArrowheadLength _result;
    HRESULT _hr = get_BeginArrowheadLength(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2053)
inline void Word::LineFormat::PutBeginArrowheadLength ( enum Office::MsoArrowheadLength prop ) {
    HRESULT _hr = put_BeginArrowheadLength(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2054)
inline enum Office::MsoArrowheadStyle Word::LineFormat::GetBeginArrowheadStyle ( ) {
    enum Office::MsoArrowheadStyle _result;
    HRESULT _hr = get_BeginArrowheadStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2055)
inline void Word::LineFormat::PutBeginArrowheadStyle ( enum Office::MsoArrowheadStyle prop ) {
    HRESULT _hr = put_BeginArrowheadStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2056)
inline enum Office::MsoArrowheadWidth Word::LineFormat::GetBeginArrowheadWidth ( ) {
    enum Office::MsoArrowheadWidth _result;
    HRESULT _hr = get_BeginArrowheadWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2057)
inline void Word::LineFormat::PutBeginArrowheadWidth ( enum Office::MsoArrowheadWidth prop ) {
    HRESULT _hr = put_BeginArrowheadWidth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2058)
inline enum Office::MsoLineDashStyle Word::LineFormat::GetDashStyle ( ) {
    enum Office::MsoLineDashStyle _result;
    HRESULT _hr = get_DashStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2059)
inline void Word::LineFormat::PutDashStyle ( enum Office::MsoLineDashStyle prop ) {
    HRESULT _hr = put_DashStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2060)
inline enum Office::MsoArrowheadLength Word::LineFormat::GetEndArrowheadLength ( ) {
    enum Office::MsoArrowheadLength _result;
    HRESULT _hr = get_EndArrowheadLength(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2061)
inline void Word::LineFormat::PutEndArrowheadLength ( enum Office::MsoArrowheadLength prop ) {
    HRESULT _hr = put_EndArrowheadLength(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2062)
inline enum Office::MsoArrowheadStyle Word::LineFormat::GetEndArrowheadStyle ( ) {
    enum Office::MsoArrowheadStyle _result;
    HRESULT _hr = get_EndArrowheadStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2063)
inline void Word::LineFormat::PutEndArrowheadStyle ( enum Office::MsoArrowheadStyle prop ) {
    HRESULT _hr = put_EndArrowheadStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2064)
inline enum Office::MsoArrowheadWidth Word::LineFormat::GetEndArrowheadWidth ( ) {
    enum Office::MsoArrowheadWidth _result;
    HRESULT _hr = get_EndArrowheadWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2065)
inline void Word::LineFormat::PutEndArrowheadWidth ( enum Office::MsoArrowheadWidth prop ) {
    HRESULT _hr = put_EndArrowheadWidth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2066)
inline Word::ColorFormatPtr Word::LineFormat::GetForeColor ( ) {
    struct ColorFormat * _result = 0;
    HRESULT _hr = get_ForeColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ColorFormatPtr(_result, false);
}

#pragma implementation_key(2067)
inline enum Office::MsoPatternType Word::LineFormat::GetPattern ( ) {
    enum Office::MsoPatternType _result;
    HRESULT _hr = get_Pattern(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2068)
inline void Word::LineFormat::PutPattern ( enum Office::MsoPatternType prop ) {
    HRESULT _hr = put_Pattern(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2069)
inline enum Office::MsoLineStyle Word::LineFormat::GetStyle ( ) {
    enum Office::MsoLineStyle _result;
    HRESULT _hr = get_Style(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2070)
inline void Word::LineFormat::PutStyle ( enum Office::MsoLineStyle prop ) {
    HRESULT _hr = put_Style(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2071)
inline float Word::LineFormat::GetTransparency ( ) {
    float _result = 0;
    HRESULT _hr = get_Transparency(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2072)
inline void Word::LineFormat::PutTransparency ( float prop ) {
    HRESULT _hr = put_Transparency(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2073)
inline enum Office::MsoTriState Word::LineFormat::GetVisible ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_Visible(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2074)
inline void Word::LineFormat::PutVisible ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_Visible(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2075)
inline float Word::LineFormat::GetWeight ( ) {
    float _result = 0;
    HRESULT _hr = get_Weight(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2076)
inline void Word::LineFormat::PutWeight ( float prop ) {
    HRESULT _hr = put_Weight(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2077)
inline enum Office::MsoTriState Word::LineFormat::GetInsetPen ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_InsetPen(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2078)
inline void Word::LineFormat::PutInsetPen ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_InsetPen(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface ShadowFormat wrapper method implementations
//

#pragma implementation_key(2079)
inline Word::_ApplicationPtr Word::ShadowFormat::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(2080)
inline long Word::ShadowFormat::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2081)
inline IDispatchPtr Word::ShadowFormat::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2082)
inline Word::ColorFormatPtr Word::ShadowFormat::GetForeColor ( ) {
    struct ColorFormat * _result = 0;
    HRESULT _hr = get_ForeColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ColorFormatPtr(_result, false);
}

#pragma implementation_key(2083)
inline enum Office::MsoTriState Word::ShadowFormat::GetObscured ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_Obscured(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2084)
inline void Word::ShadowFormat::PutObscured ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_Obscured(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2085)
inline float Word::ShadowFormat::GetOffsetX ( ) {
    float _result = 0;
    HRESULT _hr = get_OffsetX(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2086)
inline void Word::ShadowFormat::PutOffsetX ( float prop ) {
    HRESULT _hr = put_OffsetX(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2087)
inline float Word::ShadowFormat::GetOffsetY ( ) {
    float _result = 0;
    HRESULT _hr = get_OffsetY(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2088)
inline void Word::ShadowFormat::PutOffsetY ( float prop ) {
    HRESULT _hr = put_OffsetY(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2089)
inline float Word::ShadowFormat::GetTransparency ( ) {
    float _result = 0;
    HRESULT _hr = get_Transparency(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2090)
inline void Word::ShadowFormat::PutTransparency ( float prop ) {
    HRESULT _hr = put_Transparency(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2091)
inline enum Office::MsoShadowType Word::ShadowFormat::GetType ( ) {
    enum Office::MsoShadowType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2092)
inline void Word::ShadowFormat::PutType ( enum Office::MsoShadowType prop ) {
    HRESULT _hr = put_Type(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2093)
inline enum Office::MsoTriState Word::ShadowFormat::GetVisible ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_Visible(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2094)
inline void Word::ShadowFormat::PutVisible ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_Visible(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2095)
inline HRESULT Word::ShadowFormat::IncrementOffsetX ( float Increment ) {
    HRESULT _hr = raw_IncrementOffsetX(Increment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2096)
inline HRESULT Word::ShadowFormat::IncrementOffsetY ( float Increment ) {
    HRESULT _hr = raw_IncrementOffsetY(Increment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2097)
inline enum Office::MsoShadowStyle Word::ShadowFormat::GetStyle ( ) {
    enum Office::MsoShadowStyle _result;
    HRESULT _hr = get_Style(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2098)
inline void Word::ShadowFormat::PutStyle ( enum Office::MsoShadowStyle prop ) {
    HRESULT _hr = put_Style(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2099)
inline float Word::ShadowFormat::GetBlur ( ) {
    float _result = 0;
    HRESULT _hr = get_Blur(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2100)
inline void Word::ShadowFormat::PutBlur ( float prop ) {
    HRESULT _hr = put_Blur(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2101)
inline float Word::ShadowFormat::GetSize ( ) {
    float _result = 0;
    HRESULT _hr = get_Size(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2102)
inline void Word::ShadowFormat::PutSize ( float prop ) {
    HRESULT _hr = put_Size(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2103)
inline enum Office::MsoTriState Word::ShadowFormat::GetRotateWithShape ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_RotateWithShape(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2104)
inline void Word::ShadowFormat::PutRotateWithShape ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_RotateWithShape(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface ThreeDFormat wrapper method implementations
//

#pragma implementation_key(2105)
inline Word::_ApplicationPtr Word::ThreeDFormat::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(2106)
inline long Word::ThreeDFormat::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2107)
inline IDispatchPtr Word::ThreeDFormat::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2108)
inline float Word::ThreeDFormat::GetDepth ( ) {
    float _result = 0;
    HRESULT _hr = get_Depth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2109)
inline void Word::ThreeDFormat::PutDepth ( float prop ) {
    HRESULT _hr = put_Depth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2110)
inline Word::ColorFormatPtr Word::ThreeDFormat::GetExtrusionColor ( ) {
    struct ColorFormat * _result = 0;
    HRESULT _hr = get_ExtrusionColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ColorFormatPtr(_result, false);
}

#pragma implementation_key(2111)
inline enum Office::MsoExtrusionColorType Word::ThreeDFormat::GetExtrusionColorType ( ) {
    enum Office::MsoExtrusionColorType _result;
    HRESULT _hr = get_ExtrusionColorType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2112)
inline void Word::ThreeDFormat::PutExtrusionColorType ( enum Office::MsoExtrusionColorType prop ) {
    HRESULT _hr = put_ExtrusionColorType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2113)
inline enum Office::MsoTriState Word::ThreeDFormat::GetPerspective ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_Perspective(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2114)
inline void Word::ThreeDFormat::PutPerspective ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_Perspective(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2115)
inline enum Office::MsoPresetExtrusionDirection Word::ThreeDFormat::GetPresetExtrusionDirection ( ) {
    enum Office::MsoPresetExtrusionDirection _result;
    HRESULT _hr = get_PresetExtrusionDirection(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2116)
inline enum Office::MsoPresetLightingDirection Word::ThreeDFormat::GetPresetLightingDirection ( ) {
    enum Office::MsoPresetLightingDirection _result;
    HRESULT _hr = get_PresetLightingDirection(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2117)
inline void Word::ThreeDFormat::PutPresetLightingDirection ( enum Office::MsoPresetLightingDirection prop ) {
    HRESULT _hr = put_PresetLightingDirection(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2118)
inline enum Office::MsoPresetLightingSoftness Word::ThreeDFormat::GetPresetLightingSoftness ( ) {
    enum Office::MsoPresetLightingSoftness _result;
    HRESULT _hr = get_PresetLightingSoftness(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2119)
inline void Word::ThreeDFormat::PutPresetLightingSoftness ( enum Office::MsoPresetLightingSoftness prop ) {
    HRESULT _hr = put_PresetLightingSoftness(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2120)
inline enum Office::MsoPresetMaterial Word::ThreeDFormat::GetPresetMaterial ( ) {
    enum Office::MsoPresetMaterial _result;
    HRESULT _hr = get_PresetMaterial(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2121)
inline void Word::ThreeDFormat::PutPresetMaterial ( enum Office::MsoPresetMaterial prop ) {
    HRESULT _hr = put_PresetMaterial(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2122)
inline enum Office::MsoPresetThreeDFormat Word::ThreeDFormat::GetPresetThreeDFormat ( ) {
    enum Office::MsoPresetThreeDFormat _result;
    HRESULT _hr = get_PresetThreeDFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2123)
inline float Word::ThreeDFormat::GetRotationX ( ) {
    float _result = 0;
    HRESULT _hr = get_RotationX(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2124)
inline void Word::ThreeDFormat::PutRotationX ( float prop ) {
    HRESULT _hr = put_RotationX(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2125)
inline float Word::ThreeDFormat::GetRotationY ( ) {
    float _result = 0;
    HRESULT _hr = get_RotationY(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2126)
inline void Word::ThreeDFormat::PutRotationY ( float prop ) {
    HRESULT _hr = put_RotationY(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2127)
inline enum Office::MsoTriState Word::ThreeDFormat::GetVisible ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_Visible(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2128)
inline void Word::ThreeDFormat::PutVisible ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_Visible(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2129)
inline HRESULT Word::ThreeDFormat::IncrementRotationX ( float Increment ) {
    HRESULT _hr = raw_IncrementRotationX(Increment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2130)
inline HRESULT Word::ThreeDFormat::IncrementRotationY ( float Increment ) {
    HRESULT _hr = raw_IncrementRotationY(Increment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2131)
inline HRESULT Word::ThreeDFormat::ResetRotation ( ) {
    HRESULT _hr = raw_ResetRotation();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2132)
inline HRESULT Word::ThreeDFormat::SetExtrusionDirection ( enum Office::MsoPresetExtrusionDirection PresetExtrusionDirection ) {
    HRESULT _hr = raw_SetExtrusionDirection(PresetExtrusionDirection);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2133)
inline HRESULT Word::ThreeDFormat::SetThreeDFormat ( enum Office::MsoPresetThreeDFormat PresetThreeDFormat ) {
    HRESULT _hr = raw_SetThreeDFormat(PresetThreeDFormat);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2134)
inline HRESULT Word::ThreeDFormat::SetPresetCamera ( enum Office::MsoPresetCamera PresetCamera ) {
    HRESULT _hr = raw_SetPresetCamera(PresetCamera);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2135)
inline HRESULT Word::ThreeDFormat::IncrementRotationZ ( float Increment ) {
    HRESULT _hr = raw_IncrementRotationZ(Increment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2136)
inline HRESULT Word::ThreeDFormat::IncrementRotationHorizontal ( float Increment ) {
    HRESULT _hr = raw_IncrementRotationHorizontal(Increment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2137)
inline HRESULT Word::ThreeDFormat::IncrementRotationVertical ( float Increment ) {
    HRESULT _hr = raw_IncrementRotationVertical(Increment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2138)
inline enum Office::MsoLightRigType Word::ThreeDFormat::GetPresetLighting ( ) {
    enum Office::MsoLightRigType _result;
    HRESULT _hr = get_PresetLighting(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2139)
inline void Word::ThreeDFormat::PutPresetLighting ( enum Office::MsoLightRigType prop ) {
    HRESULT _hr = put_PresetLighting(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2140)
inline float Word::ThreeDFormat::GetZ ( ) {
    float _result = 0;
    HRESULT _hr = get_Z(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2141)
inline void Word::ThreeDFormat::PutZ ( float prop ) {
    HRESULT _hr = put_Z(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2142)
inline enum Office::MsoBevelType Word::ThreeDFormat::GetBevelTopType ( ) {
    enum Office::MsoBevelType _result;
    HRESULT _hr = get_BevelTopType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2143)
inline void Word::ThreeDFormat::PutBevelTopType ( enum Office::MsoBevelType prop ) {
    HRESULT _hr = put_BevelTopType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2144)
inline float Word::ThreeDFormat::GetBevelTopInset ( ) {
    float _result = 0;
    HRESULT _hr = get_BevelTopInset(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2145)
inline void Word::ThreeDFormat::PutBevelTopInset ( float prop ) {
    HRESULT _hr = put_BevelTopInset(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2146)
inline float Word::ThreeDFormat::GetBevelTopDepth ( ) {
    float _result = 0;
    HRESULT _hr = get_BevelTopDepth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2147)
inline void Word::ThreeDFormat::PutBevelTopDepth ( float prop ) {
    HRESULT _hr = put_BevelTopDepth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2148)
inline enum Office::MsoBevelType Word::ThreeDFormat::GetBevelBottomType ( ) {
    enum Office::MsoBevelType _result;
    HRESULT _hr = get_BevelBottomType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2149)
inline void Word::ThreeDFormat::PutBevelBottomType ( enum Office::MsoBevelType prop ) {
    HRESULT _hr = put_BevelBottomType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2150)
inline float Word::ThreeDFormat::GetBevelBottomInset ( ) {
    float _result = 0;
    HRESULT _hr = get_BevelBottomInset(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2151)
inline void Word::ThreeDFormat::PutBevelBottomInset ( float prop ) {
    HRESULT _hr = put_BevelBottomInset(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2152)
inline float Word::ThreeDFormat::GetBevelBottomDepth ( ) {
    float _result = 0;
    HRESULT _hr = get_BevelBottomDepth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2153)
inline void Word::ThreeDFormat::PutBevelBottomDepth ( float prop ) {
    HRESULT _hr = put_BevelBottomDepth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2154)
inline enum Office::MsoPresetCamera Word::ThreeDFormat::GetPresetCamera ( ) {
    enum Office::MsoPresetCamera _result;
    HRESULT _hr = get_PresetCamera(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2155)
inline float Word::ThreeDFormat::GetRotationZ ( ) {
    float _result = 0;
    HRESULT _hr = get_RotationZ(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2156)
inline void Word::ThreeDFormat::PutRotationZ ( float prop ) {
    HRESULT _hr = put_RotationZ(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2157)
inline float Word::ThreeDFormat::GetContourWidth ( ) {
    float _result = 0;
    HRESULT _hr = get_ContourWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2158)
inline void Word::ThreeDFormat::PutContourWidth ( float prop ) {
    HRESULT _hr = put_ContourWidth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2159)
inline Word::ColorFormatPtr Word::ThreeDFormat::GetContourColor ( ) {
    struct ColorFormat * _result = 0;
    HRESULT _hr = get_ContourColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ColorFormatPtr(_result, false);
}

#pragma implementation_key(2160)
inline float Word::ThreeDFormat::GetFieldOfView ( ) {
    float _result = 0;
    HRESULT _hr = get_FieldOfView(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2161)
inline void Word::ThreeDFormat::PutFieldOfView ( float prop ) {
    HRESULT _hr = put_FieldOfView(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2162)
inline enum Office::MsoTriState Word::ThreeDFormat::GetProjectText ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_ProjectText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2163)
inline void Word::ThreeDFormat::PutProjectText ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_ProjectText(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2164)
inline float Word::ThreeDFormat::GetLightAngle ( ) {
    float _result = 0;
    HRESULT _hr = get_LightAngle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2165)
inline void Word::ThreeDFormat::PutLightAngle ( float prop ) {
    HRESULT _hr = put_LightAngle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface GlowFormat wrapper method implementations
//

#pragma implementation_key(2166)
inline float Word::GlowFormat::GetRadius ( ) {
    float _result = 0;
    HRESULT _hr = get_Radius(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2167)
inline void Word::GlowFormat::PutRadius ( float prop ) {
    HRESULT _hr = put_Radius(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2168)
inline Word::ColorFormatPtr Word::GlowFormat::GetColor ( ) {
    struct ColorFormat * _result = 0;
    HRESULT _hr = get_Color(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ColorFormatPtr(_result, false);
}

#pragma implementation_key(2169)
inline Word::_ApplicationPtr Word::GlowFormat::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(2170)
inline long Word::GlowFormat::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2171)
inline IDispatchPtr Word::GlowFormat::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2172)
inline float Word::GlowFormat::GetTransparency ( ) {
    float _result = 0;
    HRESULT _hr = get_Transparency(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2173)
inline void Word::GlowFormat::PutTransparency ( float prop ) {
    HRESULT _hr = put_Transparency(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface ChartData wrapper method implementations
//

#pragma implementation_key(2174)
inline IDispatchPtr Word::ChartData::GetWorkbook ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Workbook(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2175)
inline HRESULT Word::ChartData::Activate ( ) {
    HRESULT _hr = raw_Activate();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2176)
inline VARIANT_BOOL Word::ChartData::GetIsLinked ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IsLinked(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2177)
inline HRESULT Word::ChartData::BreakLink ( ) {
    HRESULT _hr = raw_BreakLink();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Corners wrapper method implementations
//

#pragma implementation_key(2178)
inline IDispatchPtr Word::Corners::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2179)
inline _bstr_t Word::Corners::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2180)
inline _variant_t Word::Corners::Select ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Select(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2181)
inline IDispatchPtr Word::Corners::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2182)
inline long Word::Corners::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface ChartBorder wrapper method implementations
//

#pragma implementation_key(2183)
inline _variant_t Word::ChartBorder::GetColor ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Color(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2184)
inline void Word::ChartBorder::PutColor ( const _variant_t & prop ) {
    HRESULT _hr = put_Color(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2185)
inline _variant_t Word::ChartBorder::GetColorIndex ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_ColorIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2186)
inline void Word::ChartBorder::PutColorIndex ( const _variant_t & prop ) {
    HRESULT _hr = put_ColorIndex(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2187)
inline _variant_t Word::ChartBorder::GetLineStyle ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_LineStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2188)
inline void Word::ChartBorder::PutLineStyle ( const _variant_t & prop ) {
    HRESULT _hr = put_LineStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2189)
inline _variant_t Word::ChartBorder::GetWeight ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Weight(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2190)
inline void Word::ChartBorder::PutWeight ( const _variant_t & prop ) {
    HRESULT _hr = put_Weight(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2191)
inline IDispatchPtr Word::ChartBorder::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2192)
inline long Word::ChartBorder::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2193)
inline IDispatchPtr Word::ChartBorder::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

//
// interface Interior wrapper method implementations
//

#pragma implementation_key(2194)
inline _variant_t Word::Interior::GetColor ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Color(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2195)
inline void Word::Interior::PutColor ( const _variant_t & prop ) {
    HRESULT _hr = put_Color(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2196)
inline _variant_t Word::Interior::GetColorIndex ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_ColorIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2197)
inline void Word::Interior::PutColorIndex ( const _variant_t & prop ) {
    HRESULT _hr = put_ColorIndex(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2198)
inline _variant_t Word::Interior::GetInvertIfNegative ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_InvertIfNegative(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2199)
inline void Word::Interior::PutInvertIfNegative ( const _variant_t & prop ) {
    HRESULT _hr = put_InvertIfNegative(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2200)
inline _variant_t Word::Interior::GetPattern ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Pattern(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2201)
inline void Word::Interior::PutPattern ( const _variant_t & prop ) {
    HRESULT _hr = put_Pattern(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2202)
inline _variant_t Word::Interior::GetPatternColor ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_PatternColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2203)
inline void Word::Interior::PutPatternColor ( const _variant_t & prop ) {
    HRESULT _hr = put_PatternColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2204)
inline _variant_t Word::Interior::GetPatternColorIndex ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_PatternColorIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2205)
inline void Word::Interior::PutPatternColorIndex ( const _variant_t & prop ) {
    HRESULT _hr = put_PatternColorIndex(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2206)
inline IDispatchPtr Word::Interior::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2207)
inline long Word::Interior::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2208)
inline IDispatchPtr Word::Interior::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

//
// interface ChartFont wrapper method implementations
//

#pragma implementation_key(2209)
inline _variant_t Word::ChartFont::GetBackground ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Background(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2210)
inline void Word::ChartFont::PutBackground ( const _variant_t & prop ) {
    HRESULT _hr = put_Background(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2211)
inline _variant_t Word::ChartFont::GetBold ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Bold(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2212)
inline void Word::ChartFont::PutBold ( const _variant_t & prop ) {
    HRESULT _hr = put_Bold(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2213)
inline _variant_t Word::ChartFont::GetColor ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Color(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2214)
inline void Word::ChartFont::PutColor ( const _variant_t & prop ) {
    HRESULT _hr = put_Color(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2215)
inline _variant_t Word::ChartFont::GetColorIndex ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_ColorIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2216)
inline void Word::ChartFont::PutColorIndex ( const _variant_t & prop ) {
    HRESULT _hr = put_ColorIndex(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2217)
inline _variant_t Word::ChartFont::GetFontStyle ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_FontStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2218)
inline void Word::ChartFont::PutFontStyle ( const _variant_t & prop ) {
    HRESULT _hr = put_FontStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2219)
inline _variant_t Word::ChartFont::GetItalic ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Italic(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2220)
inline void Word::ChartFont::PutItalic ( const _variant_t & prop ) {
    HRESULT _hr = put_Italic(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2221)
inline _variant_t Word::ChartFont::GetName ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2222)
inline void Word::ChartFont::PutName ( const _variant_t & prop ) {
    HRESULT _hr = put_Name(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2223)
inline _variant_t Word::ChartFont::GetOutlineFont ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_OutlineFont(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2224)
inline void Word::ChartFont::PutOutlineFont ( const _variant_t & prop ) {
    HRESULT _hr = put_OutlineFont(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2225)
inline _variant_t Word::ChartFont::GetShadow ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Shadow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2226)
inline void Word::ChartFont::PutShadow ( const _variant_t & prop ) {
    HRESULT _hr = put_Shadow(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2227)
inline _variant_t Word::ChartFont::GetSize ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Size(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2228)
inline void Word::ChartFont::PutSize ( const _variant_t & prop ) {
    HRESULT _hr = put_Size(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2229)
inline _variant_t Word::ChartFont::GetStrikeThrough ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_StrikeThrough(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2230)
inline void Word::ChartFont::PutStrikeThrough ( const _variant_t & prop ) {
    HRESULT _hr = put_StrikeThrough(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2231)
inline _variant_t Word::ChartFont::GetSubscript ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Subscript(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2232)
inline void Word::ChartFont::PutSubscript ( const _variant_t & prop ) {
    HRESULT _hr = put_Subscript(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2233)
inline _variant_t Word::ChartFont::GetSuperscript ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Superscript(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2234)
inline void Word::ChartFont::PutSuperscript ( const _variant_t & prop ) {
    HRESULT _hr = put_Superscript(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2235)
inline _variant_t Word::ChartFont::GetUnderline ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Underline(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2236)
inline void Word::ChartFont::PutUnderline ( const _variant_t & prop ) {
    HRESULT _hr = put_Underline(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2237)
inline IDispatchPtr Word::ChartFont::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2238)
inline long Word::ChartFont::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2239)
inline IDispatchPtr Word::ChartFont::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

//
// interface ChartColorFormat wrapper method implementations
//

#pragma implementation_key(2240)
inline IDispatchPtr Word::ChartColorFormat::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2241)
inline long Word::ChartColorFormat::GetSchemeColor ( ) {
    long _result = 0;
    HRESULT _hr = get_SchemeColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2242)
inline void Word::ChartColorFormat::PutSchemeColor ( long prop ) {
    HRESULT _hr = put_SchemeColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2243)
inline long Word::ChartColorFormat::Get__RGB ( ) {
    long _result = 0;
    HRESULT _hr = get___RGB(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2244)
inline long Word::ChartColorFormat::Get_Default ( ) {
    long _result = 0;
    HRESULT _hr = get__Default(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2245)
inline long Word::ChartColorFormat::GetType ( ) {
    long _result = 0;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2246)
inline IDispatchPtr Word::ChartColorFormat::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2247)
inline long Word::ChartColorFormat::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface ChartFillFormat wrapper method implementations
//

#pragma implementation_key(2248)
inline HRESULT Word::ChartFillFormat::OneColorGradient ( enum Office::MsoGradientStyle Style, long Variant, float Degree ) {
    HRESULT _hr = raw_OneColorGradient(Style, Variant, Degree);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2249)
inline HRESULT Word::ChartFillFormat::TwoColorGradient ( enum Office::MsoGradientStyle Style, long Variant ) {
    HRESULT _hr = raw_TwoColorGradient(Style, Variant);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2250)
inline HRESULT Word::ChartFillFormat::PresetTextured ( enum Office::MsoPresetTexture PresetTexture ) {
    HRESULT _hr = raw_PresetTextured(PresetTexture);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2251)
inline HRESULT Word::ChartFillFormat::Solid ( ) {
    HRESULT _hr = raw_Solid();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2252)
inline HRESULT Word::ChartFillFormat::Patterned ( enum Office::MsoPatternType Pattern ) {
    HRESULT _hr = raw_Patterned(Pattern);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2253)
inline HRESULT Word::ChartFillFormat::UserPicture ( const _variant_t & PictureFile, const _variant_t & PictureFormat, const _variant_t & PictureStackUnit, const _variant_t & PicturePlacement ) {
    HRESULT _hr = raw_UserPicture(PictureFile, PictureFormat, PictureStackUnit, PicturePlacement);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2254)
inline HRESULT Word::ChartFillFormat::UserTextured ( _bstr_t TextureFile ) {
    HRESULT _hr = raw_UserTextured(TextureFile);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2255)
inline HRESULT Word::ChartFillFormat::PresetGradient ( enum Office::MsoGradientStyle Style, long Variant, enum Office::MsoPresetGradientType PresetGradientType ) {
    HRESULT _hr = raw_PresetGradient(Style, Variant, PresetGradientType);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2256)
inline Word::ChartColorFormatPtr Word::ChartFillFormat::GetBackColor ( ) {
    struct ChartColorFormat * _result = 0;
    HRESULT _hr = get_BackColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartColorFormatPtr(_result, false);
}

#pragma implementation_key(2257)
inline Word::ChartColorFormatPtr Word::ChartFillFormat::GetForeColor ( ) {
    struct ChartColorFormat * _result = 0;
    HRESULT _hr = get_ForeColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartColorFormatPtr(_result, false);
}

#pragma implementation_key(2258)
inline enum Office::MsoGradientColorType Word::ChartFillFormat::GetGradientColorType ( ) {
    enum Office::MsoGradientColorType _result;
    HRESULT _hr = get_GradientColorType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2259)
inline float Word::ChartFillFormat::GetGradientDegree ( ) {
    float _result = 0;
    HRESULT _hr = get_GradientDegree(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2260)
inline enum Office::MsoGradientStyle Word::ChartFillFormat::GetGradientStyle ( ) {
    enum Office::MsoGradientStyle _result;
    HRESULT _hr = get_GradientStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2261)
inline long Word::ChartFillFormat::GetGradientVariant ( ) {
    long _result = 0;
    HRESULT _hr = get_GradientVariant(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2262)
inline enum Office::MsoPatternType Word::ChartFillFormat::GetPattern ( ) {
    enum Office::MsoPatternType _result;
    HRESULT _hr = get_Pattern(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2263)
inline enum Office::MsoPresetGradientType Word::ChartFillFormat::GetPresetGradientType ( ) {
    enum Office::MsoPresetGradientType _result;
    HRESULT _hr = get_PresetGradientType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2264)
inline enum Office::MsoPresetTexture Word::ChartFillFormat::GetPresetTexture ( ) {
    enum Office::MsoPresetTexture _result;
    HRESULT _hr = get_PresetTexture(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2265)
inline _bstr_t Word::ChartFillFormat::GetTextureName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_TextureName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2266)
inline enum Office::MsoTextureType Word::ChartFillFormat::GetTextureType ( ) {
    enum Office::MsoTextureType _result;
    HRESULT _hr = get_TextureType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2267)
inline enum Office::MsoFillType Word::ChartFillFormat::GetType ( ) {
    enum Office::MsoFillType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2268)
inline enum Office::MsoTriState Word::ChartFillFormat::GetVisible ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_Visible(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2269)
inline void Word::ChartFillFormat::PutVisible ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_Visible(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2270)
inline IDispatchPtr Word::ChartFillFormat::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2271)
inline long Word::ChartFillFormat::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2272)
inline IDispatchPtr Word::ChartFillFormat::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

//
// interface ChartCharacters wrapper method implementations
//

#pragma implementation_key(2273)
inline IDispatchPtr Word::ChartCharacters::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2274)
inline _bstr_t Word::ChartCharacters::GetCaption ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Caption(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2275)
inline void Word::ChartCharacters::PutCaption ( _bstr_t prop ) {
    HRESULT _hr = put_Caption(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2276)
inline long Word::ChartCharacters::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2277)
inline _variant_t Word::ChartCharacters::Delete ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Delete(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2278)
inline Word::ChartFontPtr Word::ChartCharacters::GetFont ( ) {
    struct ChartFont * _result = 0;
    HRESULT _hr = get_Font(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFontPtr(_result, false);
}

#pragma implementation_key(2279)
inline _variant_t Word::ChartCharacters::Insert ( _bstr_t String ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Insert(String, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2280)
inline _bstr_t Word::ChartCharacters::GetText ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Text(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2281)
inline void Word::ChartCharacters::PutText ( _bstr_t prop ) {
    HRESULT _hr = put_Text(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2282)
inline _bstr_t Word::ChartCharacters::GetPhoneticCharacters ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_PhoneticCharacters(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2283)
inline void Word::ChartCharacters::PutPhoneticCharacters ( _bstr_t prop ) {
    HRESULT _hr = put_PhoneticCharacters(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2284)
inline IDispatchPtr Word::ChartCharacters::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2285)
inline long Word::ChartCharacters::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface ChartFormat wrapper method implementations
//

#pragma implementation_key(2286)
inline Word::FillFormatPtr Word::ChartFormat::GetFill ( ) {
    struct FillFormat * _result = 0;
    HRESULT _hr = get_Fill(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FillFormatPtr(_result, false);
}

#pragma implementation_key(2287)
inline Word::GlowFormatPtr Word::ChartFormat::GetGlow ( ) {
    struct GlowFormat * _result = 0;
    HRESULT _hr = get_Glow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return GlowFormatPtr(_result, false);
}

#pragma implementation_key(2288)
inline Word::LineFormatPtr Word::ChartFormat::GetLine ( ) {
    struct LineFormat * _result = 0;
    HRESULT _hr = get_Line(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return LineFormatPtr(_result, false);
}

#pragma implementation_key(2289)
inline IDispatchPtr Word::ChartFormat::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2290)
inline Word::PictureFormatPtr Word::ChartFormat::GetPictureFormat ( ) {
    struct PictureFormat * _result = 0;
    HRESULT _hr = get_PictureFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return PictureFormatPtr(_result, false);
}

#pragma implementation_key(2291)
inline Word::ShadowFormatPtr Word::ChartFormat::GetShadow ( ) {
    struct ShadowFormat * _result = 0;
    HRESULT _hr = get_Shadow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShadowFormatPtr(_result, false);
}

#pragma implementation_key(2292)
inline Word::SoftEdgeFormatPtr Word::ChartFormat::GetSoftEdge ( ) {
    struct SoftEdgeFormat * _result = 0;
    HRESULT _hr = get_SoftEdge(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SoftEdgeFormatPtr(_result, false);
}

#pragma implementation_key(2293)
inline Office::TextFrame2Ptr Word::ChartFormat::GetTextFrame2 ( ) {
    struct Office::TextFrame2 * _result = 0;
    HRESULT _hr = get_TextFrame2(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::TextFrame2Ptr(_result, false);
}

#pragma implementation_key(2294)
inline Word::ThreeDFormatPtr Word::ChartFormat::GetThreeD ( ) {
    struct ThreeDFormat * _result = 0;
    HRESULT _hr = get_ThreeD(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ThreeDFormatPtr(_result, false);
}

#pragma implementation_key(2295)
inline IDispatchPtr Word::ChartFormat::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2296)
inline long Word::ChartFormat::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface Walls wrapper method implementations
//

#pragma implementation_key(2297)
inline _bstr_t Word::Walls::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2298)
inline _variant_t Word::Walls::Select ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Select(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2299)
inline IDispatchPtr Word::Walls::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2300)
inline Word::ChartBorderPtr Word::Walls::GetBorder ( ) {
    struct ChartBorder * _result = 0;
    HRESULT _hr = get_Border(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartBorderPtr(_result, false);
}

#pragma implementation_key(2301)
inline _variant_t Word::Walls::ClearFormats ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_ClearFormats(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2302)
inline Word::InteriorPtr Word::Walls::GetInterior ( ) {
    struct Interior * _result = 0;
    HRESULT _hr = get_Interior(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InteriorPtr(_result, false);
}

#pragma implementation_key(2303)
inline Word::ChartFillFormatPtr Word::Walls::GetFill ( ) {
    struct ChartFillFormat * _result = 0;
    HRESULT _hr = get_Fill(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFillFormatPtr(_result, false);
}

#pragma implementation_key(2304)
inline _variant_t Word::Walls::GetPictureType ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_PictureType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2305)
inline void Word::Walls::PutPictureType ( const _variant_t & prop ) {
    HRESULT _hr = put_PictureType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2306)
inline HRESULT Word::Walls::Paste ( ) {
    HRESULT _hr = raw_Paste();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2307)
inline _variant_t Word::Walls::GetPictureUnit ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_PictureUnit(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2308)
inline void Word::Walls::PutPictureUnit ( const _variant_t & prop ) {
    HRESULT _hr = put_PictureUnit(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2309)
inline long Word::Walls::GetThickness ( ) {
    long _result = 0;
    HRESULT _hr = get_Thickness(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2310)
inline void Word::Walls::PutThickness ( long prop ) {
    HRESULT _hr = put_Thickness(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2311)
inline Word::ChartFormatPtr Word::Walls::GetFormat ( ) {
    struct ChartFormat * _result = 0;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFormatPtr(_result, false);
}

#pragma implementation_key(2312)
inline IDispatchPtr Word::Walls::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2313)
inline long Word::Walls::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface Floor wrapper method implementations
//

#pragma implementation_key(2314)
inline _bstr_t Word::Floor::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2315)
inline _variant_t Word::Floor::Select ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Select(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2316)
inline IDispatchPtr Word::Floor::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2317)
inline Word::ChartBorderPtr Word::Floor::GetBorder ( ) {
    struct ChartBorder * _result = 0;
    HRESULT _hr = get_Border(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartBorderPtr(_result, false);
}

#pragma implementation_key(2318)
inline _variant_t Word::Floor::ClearFormats ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_ClearFormats(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2319)
inline Word::InteriorPtr Word::Floor::GetInterior ( ) {
    struct Interior * _result = 0;
    HRESULT _hr = get_Interior(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InteriorPtr(_result, false);
}

#pragma implementation_key(2320)
inline Word::ChartFillFormatPtr Word::Floor::GetFill ( ) {
    struct ChartFillFormat * _result = 0;
    HRESULT _hr = get_Fill(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFillFormatPtr(_result, false);
}

#pragma implementation_key(2321)
inline _variant_t Word::Floor::GetPictureType ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_PictureType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2322)
inline void Word::Floor::PutPictureType ( const _variant_t & prop ) {
    HRESULT _hr = put_PictureType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2323)
inline HRESULT Word::Floor::Paste ( ) {
    HRESULT _hr = raw_Paste();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2324)
inline long Word::Floor::GetThickness ( ) {
    long _result = 0;
    HRESULT _hr = get_Thickness(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2325)
inline void Word::Floor::PutThickness ( long prop ) {
    HRESULT _hr = put_Thickness(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2326)
inline Word::ChartFormatPtr Word::Floor::GetFormat ( ) {
    struct ChartFormat * _result = 0;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFormatPtr(_result, false);
}

#pragma implementation_key(2327)
inline IDispatchPtr Word::Floor::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2328)
inline long Word::Floor::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface ChartArea wrapper method implementations
//

#pragma implementation_key(2329)
inline _bstr_t Word::ChartArea::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2330)
inline _variant_t Word::ChartArea::Select ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Select(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2331)
inline IDispatchPtr Word::ChartArea::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2332)
inline Word::ChartBorderPtr Word::ChartArea::GetBorder ( ) {
    struct ChartBorder * _result = 0;
    HRESULT _hr = get_Border(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartBorderPtr(_result, false);
}

#pragma implementation_key(2333)
inline _variant_t Word::ChartArea::Clear ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Clear(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2334)
inline _variant_t Word::ChartArea::ClearContents ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_ClearContents(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2335)
inline _variant_t Word::ChartArea::Copy ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Copy(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2336)
inline Word::ChartFontPtr Word::ChartArea::GetFont ( ) {
    struct ChartFont * _result = 0;
    HRESULT _hr = get_Font(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFontPtr(_result, false);
}

#pragma implementation_key(2337)
inline VARIANT_BOOL Word::ChartArea::GetShadow ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Shadow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2338)
inline void Word::ChartArea::PutShadow ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Shadow(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2339)
inline _variant_t Word::ChartArea::ClearFormats ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_ClearFormats(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2340)
inline double Word::ChartArea::GetHeight ( ) {
    double _result = 0;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2341)
inline void Word::ChartArea::PutHeight ( double prop ) {
    HRESULT _hr = put_Height(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2342)
inline Word::InteriorPtr Word::ChartArea::GetInterior ( ) {
    struct Interior * _result = 0;
    HRESULT _hr = get_Interior(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InteriorPtr(_result, false);
}

#pragma implementation_key(2343)
inline Word::ChartFillFormatPtr Word::ChartArea::GetFill ( ) {
    struct ChartFillFormat * _result = 0;
    HRESULT _hr = get_Fill(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFillFormatPtr(_result, false);
}

#pragma implementation_key(2344)
inline double Word::ChartArea::GetLeft ( ) {
    double _result = 0;
    HRESULT _hr = get_Left(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2345)
inline void Word::ChartArea::PutLeft ( double prop ) {
    HRESULT _hr = put_Left(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2346)
inline double Word::ChartArea::GetTop ( ) {
    double _result = 0;
    HRESULT _hr = get_Top(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2347)
inline void Word::ChartArea::PutTop ( double prop ) {
    HRESULT _hr = put_Top(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2348)
inline double Word::ChartArea::GetWidth ( ) {
    double _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2349)
inline void Word::ChartArea::PutWidth ( double prop ) {
    HRESULT _hr = put_Width(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2350)
inline _variant_t Word::ChartArea::GetAutoScaleFont ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_AutoScaleFont(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2351)
inline void Word::ChartArea::PutAutoScaleFont ( const _variant_t & prop ) {
    HRESULT _hr = put_AutoScaleFont(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2352)
inline Word::ChartFormatPtr Word::ChartArea::GetFormat ( ) {
    struct ChartFormat * _result = 0;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFormatPtr(_result, false);
}

#pragma implementation_key(2353)
inline IDispatchPtr Word::ChartArea::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2354)
inline long Word::ChartArea::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface SeriesLines wrapper method implementations
//

#pragma implementation_key(2355)
inline _bstr_t Word::SeriesLines::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2356)
inline _variant_t Word::SeriesLines::Select ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Select(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2357)
inline IDispatchPtr Word::SeriesLines::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2358)
inline Word::ChartBorderPtr Word::SeriesLines::GetBorder ( ) {
    struct ChartBorder * _result = 0;
    HRESULT _hr = get_Border(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartBorderPtr(_result, false);
}

#pragma implementation_key(2359)
inline _variant_t Word::SeriesLines::Delete ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Delete(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2360)
inline Word::ChartFormatPtr Word::SeriesLines::GetFormat ( ) {
    struct ChartFormat * _result = 0;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFormatPtr(_result, false);
}

#pragma implementation_key(2361)
inline IDispatchPtr Word::SeriesLines::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2362)
inline long Word::SeriesLines::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface LeaderLines wrapper method implementations
//

#pragma implementation_key(2363)
inline HRESULT Word::LeaderLines::Select ( ) {
    HRESULT _hr = raw_Select();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2364)
inline Word::ChartBorderPtr Word::LeaderLines::GetBorder ( ) {
    struct ChartBorder * _result = 0;
    HRESULT _hr = get_Border(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartBorderPtr(_result, false);
}

#pragma implementation_key(2365)
inline HRESULT Word::LeaderLines::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2366)
inline Word::ChartFormatPtr Word::LeaderLines::GetFormat ( ) {
    struct ChartFormat * _result = 0;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFormatPtr(_result, false);
}

#pragma implementation_key(2367)
inline IDispatchPtr Word::LeaderLines::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2368)
inline long Word::LeaderLines::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2369)
inline IDispatchPtr Word::LeaderLines::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

//
// interface Gridlines wrapper method implementations
//

#pragma implementation_key(2370)
inline _bstr_t Word::Gridlines::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2371)
inline _variant_t Word::Gridlines::Select ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Select(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2372)
inline IDispatchPtr Word::Gridlines::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2373)
inline Word::ChartBorderPtr Word::Gridlines::GetBorder ( ) {
    struct ChartBorder * _result = 0;
    HRESULT _hr = get_Border(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartBorderPtr(_result, false);
}

#pragma implementation_key(2374)
inline _variant_t Word::Gridlines::Delete ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Delete(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2375)
inline Word::ChartFormatPtr Word::Gridlines::GetFormat ( ) {
    struct ChartFormat * _result = 0;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFormatPtr(_result, false);
}

#pragma implementation_key(2376)
inline IDispatchPtr Word::Gridlines::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2377)
inline long Word::Gridlines::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface UpBars wrapper method implementations
//

#pragma implementation_key(2378)
inline _bstr_t Word::UpBars::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2379)
inline _variant_t Word::UpBars::Select ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Select(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2380)
inline IDispatchPtr Word::UpBars::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2381)
inline Word::ChartBorderPtr Word::UpBars::GetBorder ( ) {
    struct ChartBorder * _result = 0;
    HRESULT _hr = get_Border(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartBorderPtr(_result, false);
}

#pragma implementation_key(2382)
inline _variant_t Word::UpBars::Delete ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Delete(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2383)
inline Word::InteriorPtr Word::UpBars::GetInterior ( ) {
    struct Interior * _result = 0;
    HRESULT _hr = get_Interior(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InteriorPtr(_result, false);
}

#pragma implementation_key(2384)
inline Word::ChartFillFormatPtr Word::UpBars::GetFill ( ) {
    struct ChartFillFormat * _result = 0;
    HRESULT _hr = get_Fill(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFillFormatPtr(_result, false);
}

#pragma implementation_key(2385)
inline Word::ChartFormatPtr Word::UpBars::GetFormat ( ) {
    struct ChartFormat * _result = 0;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFormatPtr(_result, false);
}

#pragma implementation_key(2386)
inline IDispatchPtr Word::UpBars::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2387)
inline long Word::UpBars::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface DownBars wrapper method implementations
//

#pragma implementation_key(2388)
inline _bstr_t Word::DownBars::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2389)
inline _variant_t Word::DownBars::Select ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Select(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2390)
inline IDispatchPtr Word::DownBars::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2391)
inline Word::ChartBorderPtr Word::DownBars::GetBorder ( ) {
    struct ChartBorder * _result = 0;
    HRESULT _hr = get_Border(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartBorderPtr(_result, false);
}

#pragma implementation_key(2392)
inline _variant_t Word::DownBars::Delete ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Delete(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2393)
inline Word::InteriorPtr Word::DownBars::GetInterior ( ) {
    struct Interior * _result = 0;
    HRESULT _hr = get_Interior(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InteriorPtr(_result, false);
}

#pragma implementation_key(2394)
inline Word::ChartFillFormatPtr Word::DownBars::GetFill ( ) {
    struct ChartFillFormat * _result = 0;
    HRESULT _hr = get_Fill(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFillFormatPtr(_result, false);
}

#pragma implementation_key(2395)
inline Word::ChartFormatPtr Word::DownBars::GetFormat ( ) {
    struct ChartFormat * _result = 0;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFormatPtr(_result, false);
}

#pragma implementation_key(2396)
inline IDispatchPtr Word::DownBars::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2397)
inline long Word::DownBars::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface DataTable wrapper method implementations
//

#pragma implementation_key(2398)
inline VARIANT_BOOL Word::DataTable::GetShowLegendKey ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowLegendKey(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2399)
inline void Word::DataTable::PutShowLegendKey ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowLegendKey(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2400)
inline VARIANT_BOOL Word::DataTable::GetHasBorderHorizontal ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HasBorderHorizontal(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2401)
inline void Word::DataTable::PutHasBorderHorizontal ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HasBorderHorizontal(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2402)
inline VARIANT_BOOL Word::DataTable::GetHasBorderVertical ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HasBorderVertical(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2403)
inline void Word::DataTable::PutHasBorderVertical ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HasBorderVertical(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2404)
inline VARIANT_BOOL Word::DataTable::GetHasBorderOutline ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HasBorderOutline(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2405)
inline void Word::DataTable::PutHasBorderOutline ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HasBorderOutline(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2406)
inline Word::ChartBorderPtr Word::DataTable::GetBorder ( ) {
    struct ChartBorder * _result = 0;
    HRESULT _hr = get_Border(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartBorderPtr(_result, false);
}

#pragma implementation_key(2407)
inline Word::ChartFontPtr Word::DataTable::GetFont ( ) {
    struct ChartFont * _result = 0;
    HRESULT _hr = get_Font(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFontPtr(_result, false);
}

#pragma implementation_key(2408)
inline HRESULT Word::DataTable::Select ( ) {
    HRESULT _hr = raw_Select();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2409)
inline HRESULT Word::DataTable::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2410)
inline IDispatchPtr Word::DataTable::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2411)
inline _variant_t Word::DataTable::GetAutoScaleFont ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_AutoScaleFont(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2412)
inline void Word::DataTable::PutAutoScaleFont ( const _variant_t & prop ) {
    HRESULT _hr = put_AutoScaleFont(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2413)
inline Word::ChartFormatPtr Word::DataTable::GetFormat ( ) {
    struct ChartFormat * _result = 0;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFormatPtr(_result, false);
}

#pragma implementation_key(2414)
inline IDispatchPtr Word::DataTable::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2415)
inline long Word::DataTable::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface DropLines wrapper method implementations
//

#pragma implementation_key(2416)
inline _bstr_t Word::DropLines::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2417)
inline HRESULT Word::DropLines::Select ( ) {
    HRESULT _hr = raw_Select();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2418)
inline IDispatchPtr Word::DropLines::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2419)
inline Word::ChartBorderPtr Word::DropLines::GetBorder ( ) {
    struct ChartBorder * _result = 0;
    HRESULT _hr = get_Border(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartBorderPtr(_result, false);
}

#pragma implementation_key(2420)
inline HRESULT Word::DropLines::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2421)
inline Word::ChartFormatPtr Word::DropLines::GetFormat ( ) {
    struct ChartFormat * _result = 0;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFormatPtr(_result, false);
}

#pragma implementation_key(2422)
inline IDispatchPtr Word::DropLines::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2423)
inline long Word::DropLines::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface HiLoLines wrapper method implementations
//

#pragma implementation_key(2424)
inline IDispatchPtr Word::HiLoLines::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2425)
inline _bstr_t Word::HiLoLines::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2426)
inline HRESULT Word::HiLoLines::Select ( ) {
    HRESULT _hr = raw_Select();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2427)
inline Word::ChartBorderPtr Word::HiLoLines::GetBorder ( ) {
    struct ChartBorder * _result = 0;
    HRESULT _hr = get_Border(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartBorderPtr(_result, false);
}

#pragma implementation_key(2428)
inline HRESULT Word::HiLoLines::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2429)
inline Word::ChartFormatPtr Word::HiLoLines::GetFormat ( ) {
    struct ChartFormat * _result = 0;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFormatPtr(_result, false);
}

#pragma implementation_key(2430)
inline IDispatchPtr Word::HiLoLines::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2431)
inline long Word::HiLoLines::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface Legend wrapper method implementations
//

#pragma implementation_key(2432)
inline IDispatchPtr Word::Legend::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2433)
inline _bstr_t Word::Legend::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2434)
inline _variant_t Word::Legend::Select ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Select(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2435)
inline Word::ChartBorderPtr Word::Legend::GetBorder ( ) {
    struct ChartBorder * _result = 0;
    HRESULT _hr = get_Border(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartBorderPtr(_result, false);
}

#pragma implementation_key(2436)
inline _variant_t Word::Legend::Delete ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Delete(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2437)
inline Word::ChartFontPtr Word::Legend::GetFont ( ) {
    struct ChartFont * _result = 0;
    HRESULT _hr = get_Font(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFontPtr(_result, false);
}

#pragma implementation_key(2438)
inline IDispatchPtr Word::Legend::LegendEntries ( const _variant_t & Index ) {
    IDispatch * _result = 0;
    HRESULT _hr = raw_LegendEntries(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2439)
inline enum Word::XlLegendPosition Word::Legend::GetPosition ( ) {
    enum XlLegendPosition _result;
    HRESULT _hr = get_Position(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2440)
inline void Word::Legend::PutPosition ( enum XlLegendPosition prop ) {
    HRESULT _hr = put_Position(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2441)
inline VARIANT_BOOL Word::Legend::GetShadow ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Shadow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2442)
inline void Word::Legend::PutShadow ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Shadow(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2443)
inline _variant_t Word::Legend::Clear ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Clear(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2444)
inline double Word::Legend::GetHeight ( ) {
    double _result = 0;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2445)
inline void Word::Legend::PutHeight ( double prop ) {
    HRESULT _hr = put_Height(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2446)
inline Word::InteriorPtr Word::Legend::GetInterior ( ) {
    struct Interior * _result = 0;
    HRESULT _hr = get_Interior(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InteriorPtr(_result, false);
}

#pragma implementation_key(2447)
inline Word::ChartFillFormatPtr Word::Legend::GetFill ( ) {
    struct ChartFillFormat * _result = 0;
    HRESULT _hr = get_Fill(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFillFormatPtr(_result, false);
}

#pragma implementation_key(2448)
inline double Word::Legend::GetLeft ( ) {
    double _result = 0;
    HRESULT _hr = get_Left(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2449)
inline void Word::Legend::PutLeft ( double prop ) {
    HRESULT _hr = put_Left(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2450)
inline double Word::Legend::GetTop ( ) {
    double _result = 0;
    HRESULT _hr = get_Top(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2451)
inline void Word::Legend::PutTop ( double prop ) {
    HRESULT _hr = put_Top(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2452)
inline double Word::Legend::GetWidth ( ) {
    double _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2453)
inline void Word::Legend::PutWidth ( double prop ) {
    HRESULT _hr = put_Width(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2454)
inline _variant_t Word::Legend::GetAutoScaleFont ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_AutoScaleFont(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2455)
inline void Word::Legend::PutAutoScaleFont ( const _variant_t & prop ) {
    HRESULT _hr = put_AutoScaleFont(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2456)
inline VARIANT_BOOL Word::Legend::GetIncludeInLayout ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IncludeInLayout(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2457)
inline void Word::Legend::PutIncludeInLayout ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_IncludeInLayout(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2458)
inline Word::ChartFormatPtr Word::Legend::GetFormat ( ) {
    struct ChartFormat * _result = 0;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFormatPtr(_result, false);
}

#pragma implementation_key(2459)
inline IDispatchPtr Word::Legend::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2460)
inline long Word::Legend::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface LegendKey wrapper method implementations
//

#pragma implementation_key(2461)
inline IDispatchPtr Word::LegendKey::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2462)
inline Word::ChartBorderPtr Word::LegendKey::GetBorder ( ) {
    struct ChartBorder * _result = 0;
    HRESULT _hr = get_Border(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartBorderPtr(_result, false);
}

#pragma implementation_key(2463)
inline _variant_t Word::LegendKey::ClearFormats ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_ClearFormats(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2464)
inline _variant_t Word::LegendKey::Delete ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Delete(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2465)
inline Word::InteriorPtr Word::LegendKey::GetInterior ( ) {
    struct Interior * _result = 0;
    HRESULT _hr = get_Interior(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InteriorPtr(_result, false);
}

#pragma implementation_key(2466)
inline Word::ChartFillFormatPtr Word::LegendKey::GetFill ( ) {
    struct ChartFillFormat * _result = 0;
    HRESULT _hr = get_Fill(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFillFormatPtr(_result, false);
}

#pragma implementation_key(2467)
inline VARIANT_BOOL Word::LegendKey::GetInvertIfNegative ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_InvertIfNegative(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2468)
inline void Word::LegendKey::PutInvertIfNegative ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_InvertIfNegative(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2469)
inline long Word::LegendKey::GetMarkerBackgroundColor ( ) {
    long _result = 0;
    HRESULT _hr = get_MarkerBackgroundColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2470)
inline void Word::LegendKey::PutMarkerBackgroundColor ( long prop ) {
    HRESULT _hr = put_MarkerBackgroundColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2471)
inline enum Word::XlColorIndex Word::LegendKey::GetMarkerBackgroundColorIndex ( ) {
    enum XlColorIndex _result;
    HRESULT _hr = get_MarkerBackgroundColorIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2472)
inline void Word::LegendKey::PutMarkerBackgroundColorIndex ( enum XlColorIndex prop ) {
    HRESULT _hr = put_MarkerBackgroundColorIndex(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2473)
inline long Word::LegendKey::GetMarkerForegroundColor ( ) {
    long _result = 0;
    HRESULT _hr = get_MarkerForegroundColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2474)
inline void Word::LegendKey::PutMarkerForegroundColor ( long prop ) {
    HRESULT _hr = put_MarkerForegroundColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2475)
inline enum Word::XlColorIndex Word::LegendKey::GetMarkerForegroundColorIndex ( ) {
    enum XlColorIndex _result;
    HRESULT _hr = get_MarkerForegroundColorIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2476)
inline void Word::LegendKey::PutMarkerForegroundColorIndex ( enum XlColorIndex prop ) {
    HRESULT _hr = put_MarkerForegroundColorIndex(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2477)
inline long Word::LegendKey::GetMarkerSize ( ) {
    long _result = 0;
    HRESULT _hr = get_MarkerSize(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2478)
inline void Word::LegendKey::PutMarkerSize ( long prop ) {
    HRESULT _hr = put_MarkerSize(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2479)
inline enum Word::XlMarkerStyle Word::LegendKey::GetMarkerStyle ( ) {
    enum XlMarkerStyle _result;
    HRESULT _hr = get_MarkerStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2480)
inline void Word::LegendKey::PutMarkerStyle ( enum XlMarkerStyle prop ) {
    HRESULT _hr = put_MarkerStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2481)
inline long Word::LegendKey::GetPictureType ( ) {
    long _result = 0;
    HRESULT _hr = get_PictureType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2482)
inline void Word::LegendKey::PutPictureType ( long prop ) {
    HRESULT _hr = put_PictureType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2483)
inline double Word::LegendKey::GetPictureUnit ( ) {
    double _result = 0;
    HRESULT _hr = get_PictureUnit(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2484)
inline void Word::LegendKey::PutPictureUnit ( double prop ) {
    HRESULT _hr = put_PictureUnit(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2485)
inline _variant_t Word::LegendKey::Select ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Select(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2486)
inline VARIANT_BOOL Word::LegendKey::GetSmooth ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Smooth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2487)
inline void Word::LegendKey::PutSmooth ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Smooth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2488)
inline double Word::LegendKey::GetLeft ( ) {
    double _result = 0;
    HRESULT _hr = get_Left(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2489)
inline double Word::LegendKey::GetTop ( ) {
    double _result = 0;
    HRESULT _hr = get_Top(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2490)
inline double Word::LegendKey::GetWidth ( ) {
    double _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2491)
inline double Word::LegendKey::GetHeight ( ) {
    double _result = 0;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2492)
inline VARIANT_BOOL Word::LegendKey::GetShadow ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Shadow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2493)
inline void Word::LegendKey::PutShadow ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Shadow(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2494)
inline Word::ChartFormatPtr Word::LegendKey::GetFormat ( ) {
    struct ChartFormat * _result = 0;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFormatPtr(_result, false);
}

#pragma implementation_key(2495)
inline IDispatchPtr Word::LegendKey::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2496)
inline long Word::LegendKey::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2497)
inline double Word::LegendKey::GetPictureUnit2 ( ) {
    double _result = 0;
    HRESULT _hr = get_PictureUnit2(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2498)
inline void Word::LegendKey::PutPictureUnit2 ( double prop ) {
    HRESULT _hr = put_PictureUnit2(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface LegendEntry wrapper method implementations
//

#pragma implementation_key(2499)
inline IDispatchPtr Word::LegendEntry::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2500)
inline _variant_t Word::LegendEntry::Delete ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Delete(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2501)
inline Word::ChartFontPtr Word::LegendEntry::GetFont ( ) {
    struct ChartFont * _result = 0;
    HRESULT _hr = get_Font(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFontPtr(_result, false);
}

#pragma implementation_key(2502)
inline long Word::LegendEntry::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2503)
inline Word::LegendKeyPtr Word::LegendEntry::GetLegendKey ( ) {
    struct LegendKey * _result = 0;
    HRESULT _hr = get_LegendKey(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return LegendKeyPtr(_result, false);
}

#pragma implementation_key(2504)
inline _variant_t Word::LegendEntry::Select ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Select(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2505)
inline _variant_t Word::LegendEntry::GetAutoScaleFont ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_AutoScaleFont(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2506)
inline void Word::LegendEntry::PutAutoScaleFont ( const _variant_t & prop ) {
    HRESULT _hr = put_AutoScaleFont(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2507)
inline double Word::LegendEntry::GetLeft ( ) {
    double _result = 0;
    HRESULT _hr = get_Left(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2508)
inline double Word::LegendEntry::GetTop ( ) {
    double _result = 0;
    HRESULT _hr = get_Top(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2509)
inline double Word::LegendEntry::GetWidth ( ) {
    double _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2510)
inline double Word::LegendEntry::GetHeight ( ) {
    double _result = 0;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2511)
inline Word::ChartFormatPtr Word::LegendEntry::GetFormat ( ) {
    struct ChartFormat * _result = 0;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFormatPtr(_result, false);
}

#pragma implementation_key(2512)
inline IDispatchPtr Word::LegendEntry::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2513)
inline long Word::LegendEntry::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface LegendEntries wrapper method implementations
//

#pragma implementation_key(2514)
inline IDispatchPtr Word::LegendEntries::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2515)
inline long Word::LegendEntries::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2516)
inline Word::LegendEntryPtr Word::LegendEntries::Item ( const _variant_t & Index ) {
    struct LegendEntry * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return LegendEntryPtr(_result, false);
}

#pragma implementation_key(2517)
inline IUnknownPtr Word::LegendEntries::_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = raw__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(2518)
inline IDispatchPtr Word::LegendEntries::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2519)
inline long Word::LegendEntries::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2520)
inline Word::LegendEntryPtr Word::LegendEntries::_Default ( const _variant_t & Index ) {
    struct LegendEntry * _result = 0;
    HRESULT _hr = raw__Default(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return LegendEntryPtr(_result, false);
}

//
// interface ErrorBars wrapper method implementations
//

#pragma implementation_key(2521)
inline IDispatchPtr Word::ErrorBars::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2522)
inline _bstr_t Word::ErrorBars::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2523)
inline _variant_t Word::ErrorBars::Select ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Select(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2524)
inline Word::ChartBorderPtr Word::ErrorBars::GetBorder ( ) {
    struct ChartBorder * _result = 0;
    HRESULT _hr = get_Border(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartBorderPtr(_result, false);
}

#pragma implementation_key(2525)
inline _variant_t Word::ErrorBars::Delete ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Delete(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2526)
inline _variant_t Word::ErrorBars::ClearFormats ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_ClearFormats(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2527)
inline enum Word::XlEndStyleCap Word::ErrorBars::GetEndStyle ( ) {
    enum XlEndStyleCap _result;
    HRESULT _hr = get_EndStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2528)
inline void Word::ErrorBars::PutEndStyle ( enum XlEndStyleCap prop ) {
    HRESULT _hr = put_EndStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2529)
inline Word::ChartFormatPtr Word::ErrorBars::GetFormat ( ) {
    struct ChartFormat * _result = 0;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFormatPtr(_result, false);
}

#pragma implementation_key(2530)
inline IDispatchPtr Word::ErrorBars::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2531)
inline long Word::ErrorBars::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface Series wrapper method implementations
//

#pragma implementation_key(2532)
inline IDispatchPtr Word::Series::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2533)
inline enum Word::XlAxisGroup Word::Series::GetAxisGroup ( ) {
    enum XlAxisGroup _result;
    HRESULT _hr = get_AxisGroup(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2534)
inline void Word::Series::PutAxisGroup ( enum XlAxisGroup prop ) {
    HRESULT _hr = put_AxisGroup(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2535)
inline Word::ChartBorderPtr Word::Series::GetBorder ( ) {
    struct ChartBorder * _result = 0;
    HRESULT _hr = get_Border(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartBorderPtr(_result, false);
}

#pragma implementation_key(2536)
inline _variant_t Word::Series::ClearFormats ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_ClearFormats(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2537)
inline _variant_t Word::Series::Copy ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Copy(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2538)
inline IDispatchPtr Word::Series::DataLabels ( const _variant_t & Index ) {
    IDispatch * _result = 0;
    HRESULT _hr = raw_DataLabels(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2539)
inline _variant_t Word::Series::Delete ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Delete(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2540)
inline _variant_t Word::Series::ErrorBar ( enum XlErrorBarDirection Direction, enum XlErrorBarInclude Include, enum XlErrorBarType Type, const _variant_t & Amount, const _variant_t & MinusValues ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_ErrorBar(Direction, Include, Type, Amount, MinusValues, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2541)
inline Word::ErrorBarsPtr Word::Series::GetErrorBars ( ) {
    struct ErrorBars * _result = 0;
    HRESULT _hr = get_ErrorBars(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ErrorBarsPtr(_result, false);
}

#pragma implementation_key(2542)
inline long Word::Series::GetExplosion ( ) {
    long _result = 0;
    HRESULT _hr = get_Explosion(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2543)
inline void Word::Series::PutExplosion ( long prop ) {
    HRESULT _hr = put_Explosion(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2544)
inline _bstr_t Word::Series::GetFormula ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Formula(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2545)
inline void Word::Series::PutFormula ( _bstr_t prop ) {
    HRESULT _hr = put_Formula(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2546)
inline _bstr_t Word::Series::GetFormulaLocal ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_FormulaLocal(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2547)
inline void Word::Series::PutFormulaLocal ( _bstr_t prop ) {
    HRESULT _hr = put_FormulaLocal(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2548)
inline _bstr_t Word::Series::GetFormulaR1C1 ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_FormulaR1C1(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2549)
inline void Word::Series::PutFormulaR1C1 ( _bstr_t prop ) {
    HRESULT _hr = put_FormulaR1C1(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2550)
inline _bstr_t Word::Series::GetFormulaR1C1Local ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_FormulaR1C1Local(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2551)
inline void Word::Series::PutFormulaR1C1Local ( _bstr_t prop ) {
    HRESULT _hr = put_FormulaR1C1Local(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2552)
inline VARIANT_BOOL Word::Series::GetHasDataLabels ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HasDataLabels(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2553)
inline void Word::Series::PutHasDataLabels ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HasDataLabels(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2554)
inline VARIANT_BOOL Word::Series::GetHasErrorBars ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HasErrorBars(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2555)
inline void Word::Series::PutHasErrorBars ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HasErrorBars(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2556)
inline Word::InteriorPtr Word::Series::GetInterior ( ) {
    struct Interior * _result = 0;
    HRESULT _hr = get_Interior(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InteriorPtr(_result, false);
}

#pragma implementation_key(2557)
inline Word::ChartFillFormatPtr Word::Series::GetFill ( ) {
    struct ChartFillFormat * _result = 0;
    HRESULT _hr = get_Fill(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFillFormatPtr(_result, false);
}

#pragma implementation_key(2558)
inline VARIANT_BOOL Word::Series::GetInvertIfNegative ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_InvertIfNegative(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2559)
inline void Word::Series::PutInvertIfNegative ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_InvertIfNegative(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2560)
inline long Word::Series::GetMarkerBackgroundColor ( ) {
    long _result = 0;
    HRESULT _hr = get_MarkerBackgroundColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2561)
inline void Word::Series::PutMarkerBackgroundColor ( long prop ) {
    HRESULT _hr = put_MarkerBackgroundColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2562)
inline enum Word::XlColorIndex Word::Series::GetMarkerBackgroundColorIndex ( ) {
    enum XlColorIndex _result;
    HRESULT _hr = get_MarkerBackgroundColorIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2563)
inline void Word::Series::PutMarkerBackgroundColorIndex ( enum XlColorIndex prop ) {
    HRESULT _hr = put_MarkerBackgroundColorIndex(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2564)
inline long Word::Series::GetMarkerForegroundColor ( ) {
    long _result = 0;
    HRESULT _hr = get_MarkerForegroundColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2565)
inline void Word::Series::PutMarkerForegroundColor ( long prop ) {
    HRESULT _hr = put_MarkerForegroundColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2566)
inline enum Word::XlColorIndex Word::Series::GetMarkerForegroundColorIndex ( ) {
    enum XlColorIndex _result;
    HRESULT _hr = get_MarkerForegroundColorIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2567)
inline void Word::Series::PutMarkerForegroundColorIndex ( enum XlColorIndex prop ) {
    HRESULT _hr = put_MarkerForegroundColorIndex(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2568)
inline long Word::Series::GetMarkerSize ( ) {
    long _result = 0;
    HRESULT _hr = get_MarkerSize(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2569)
inline void Word::Series::PutMarkerSize ( long prop ) {
    HRESULT _hr = put_MarkerSize(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2570)
inline enum Word::XlMarkerStyle Word::Series::GetMarkerStyle ( ) {
    enum XlMarkerStyle _result;
    HRESULT _hr = get_MarkerStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2571)
inline void Word::Series::PutMarkerStyle ( enum XlMarkerStyle prop ) {
    HRESULT _hr = put_MarkerStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2572)
inline _bstr_t Word::Series::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2573)
inline void Word::Series::PutName ( _bstr_t prop ) {
    HRESULT _hr = put_Name(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2574)
inline _variant_t Word::Series::Paste ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Paste(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2575)
inline enum Word::XlChartPictureType Word::Series::GetPictureType ( ) {
    enum XlChartPictureType _result;
    HRESULT _hr = get_PictureType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2576)
inline void Word::Series::PutPictureType ( enum XlChartPictureType prop ) {
    HRESULT _hr = put_PictureType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2577)
inline double Word::Series::GetPictureUnit ( ) {
    double _result = 0;
    HRESULT _hr = get_PictureUnit(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2578)
inline void Word::Series::PutPictureUnit ( double prop ) {
    HRESULT _hr = put_PictureUnit(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2579)
inline long Word::Series::GetPlotOrder ( ) {
    long _result = 0;
    HRESULT _hr = get_PlotOrder(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2580)
inline void Word::Series::PutPlotOrder ( long prop ) {
    HRESULT _hr = put_PlotOrder(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2581)
inline IDispatchPtr Word::Series::Points ( const _variant_t & Index ) {
    IDispatch * _result = 0;
    HRESULT _hr = raw_Points(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2582)
inline _variant_t Word::Series::Select ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Select(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2583)
inline VARIANT_BOOL Word::Series::GetSmooth ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Smooth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2584)
inline void Word::Series::PutSmooth ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Smooth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2585)
inline IDispatchPtr Word::Series::Trendlines ( const _variant_t & Index ) {
    IDispatch * _result = 0;
    HRESULT _hr = raw_Trendlines(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2586)
inline long Word::Series::GetType ( ) {
    long _result = 0;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2587)
inline void Word::Series::PutType ( long prop ) {
    HRESULT _hr = put_Type(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2588)
inline enum Office::XlChartType Word::Series::GetChartType ( ) {
    enum Office::XlChartType _result;
    HRESULT _hr = get_ChartType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2589)
inline void Word::Series::PutChartType ( enum Office::XlChartType prop ) {
    HRESULT _hr = put_ChartType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2590)
inline HRESULT Word::Series::ApplyCustomType ( enum Office::XlChartType ChartType ) {
    HRESULT _hr = raw_ApplyCustomType(ChartType);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2591)
inline _variant_t Word::Series::GetValues ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Values(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2592)
inline void Word::Series::PutValues ( const _variant_t & prop ) {
    HRESULT _hr = put_Values(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2593)
inline _variant_t Word::Series::GetXValues ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_XValues(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2594)
inline void Word::Series::PutXValues ( const _variant_t & prop ) {
    HRESULT _hr = put_XValues(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2595)
inline _variant_t Word::Series::GetBubbleSizes ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_BubbleSizes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2596)
inline void Word::Series::PutBubbleSizes ( const _variant_t & prop ) {
    HRESULT _hr = put_BubbleSizes(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2597)
inline enum Word::XlBarShape Word::Series::GetBarShape ( ) {
    enum XlBarShape _result;
    HRESULT _hr = get_BarShape(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2598)
inline void Word::Series::PutBarShape ( enum XlBarShape prop ) {
    HRESULT _hr = put_BarShape(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2599)
inline VARIANT_BOOL Word::Series::GetApplyPictToSides ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ApplyPictToSides(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2600)
inline void Word::Series::PutApplyPictToSides ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ApplyPictToSides(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2601)
inline VARIANT_BOOL Word::Series::GetApplyPictToFront ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ApplyPictToFront(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2602)
inline void Word::Series::PutApplyPictToFront ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ApplyPictToFront(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2603)
inline VARIANT_BOOL Word::Series::GetApplyPictToEnd ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ApplyPictToEnd(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2604)
inline void Word::Series::PutApplyPictToEnd ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ApplyPictToEnd(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2605)
inline VARIANT_BOOL Word::Series::GetHas3DEffect ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Has3DEffect(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2606)
inline void Word::Series::PutHas3DEffect ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Has3DEffect(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2607)
inline VARIANT_BOOL Word::Series::GetShadow ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Shadow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2608)
inline void Word::Series::PutShadow ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Shadow(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2609)
inline VARIANT_BOOL Word::Series::GetHasLeaderLines ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HasLeaderLines(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2610)
inline void Word::Series::PutHasLeaderLines ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HasLeaderLines(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2611)
inline Word::LeaderLinesPtr Word::Series::GetLeaderLines ( ) {
    struct LeaderLines * _result = 0;
    HRESULT _hr = get_LeaderLines(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return LeaderLinesPtr(_result, false);
}

#pragma implementation_key(2612)
inline _variant_t Word::Series::ApplyDataLabels ( enum XlDataLabelsType Type, const _variant_t & LegendKey, const _variant_t & AutoText, const _variant_t & HasLeaderLines, const _variant_t & ShowSeriesName, const _variant_t & ShowCategoryName, const _variant_t & ShowValue, const _variant_t & ShowPercentage, const _variant_t & ShowBubbleSize, const _variant_t & Separator ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_ApplyDataLabels(Type, LegendKey, AutoText, HasLeaderLines, ShowSeriesName, ShowCategoryName, ShowValue, ShowPercentage, ShowBubbleSize, Separator, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2613)
inline Word::ChartFormatPtr Word::Series::GetFormat ( ) {
    struct ChartFormat * _result = 0;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFormatPtr(_result, false);
}

#pragma implementation_key(2614)
inline IDispatchPtr Word::Series::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2615)
inline long Word::Series::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2616)
inline double Word::Series::GetPictureUnit2 ( ) {
    double _result = 0;
    HRESULT _hr = get_PictureUnit2(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2617)
inline void Word::Series::PutPictureUnit2 ( double prop ) {
    HRESULT _hr = put_PictureUnit2(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2618)
inline long Word::Series::GetPlotColorIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_PlotColorIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2619)
inline long Word::Series::GetInvertColor ( ) {
    long _result = 0;
    HRESULT _hr = get_InvertColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2620)
inline void Word::Series::PutInvertColor ( long prop ) {
    HRESULT _hr = put_InvertColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2621)
inline enum Word::XlColorIndex Word::Series::GetInvertColorIndex ( ) {
    enum XlColorIndex _result;
    HRESULT _hr = get_InvertColorIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2622)
inline void Word::Series::PutInvertColorIndex ( enum XlColorIndex prop ) {
    HRESULT _hr = put_InvertColorIndex(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface SeriesCollection wrapper method implementations
//

#pragma implementation_key(2623)
inline IDispatchPtr Word::SeriesCollection::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2624)
inline Word::SeriesPtr Word::SeriesCollection::Add ( const _variant_t & Source, enum XlRowCol Rowcol, const _variant_t & SeriesLabels, const _variant_t & CategoryLabels, const _variant_t & Replace ) {
    struct Series * _result = 0;
    HRESULT _hr = raw_Add(Source, Rowcol, SeriesLabels, CategoryLabels, Replace, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SeriesPtr(_result, false);
}

#pragma implementation_key(2625)
inline long Word::SeriesCollection::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2626)
inline _variant_t Word::SeriesCollection::Extend ( const _variant_t & Source, const _variant_t & Rowcol, const _variant_t & CategoryLabels ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Extend(Source, Rowcol, CategoryLabels, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2627)
inline Word::SeriesPtr Word::SeriesCollection::Item ( const _variant_t & Index ) {
    struct Series * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SeriesPtr(_result, false);
}

#pragma implementation_key(2628)
inline IUnknownPtr Word::SeriesCollection::_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = raw__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(2629)
inline Word::SeriesPtr Word::SeriesCollection::NewSeries ( ) {
    struct Series * _result = 0;
    HRESULT _hr = raw_NewSeries(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SeriesPtr(_result, false);
}

#pragma implementation_key(2630)
inline IDispatchPtr Word::SeriesCollection::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2631)
inline long Word::SeriesCollection::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2632)
inline Word::SeriesPtr Word::SeriesCollection::_Default ( const _variant_t & Index ) {
    struct Series * _result = 0;
    HRESULT _hr = raw__Default(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SeriesPtr(_result, false);
}

//
// interface TickLabels wrapper method implementations
//

#pragma implementation_key(2633)
inline IDispatchPtr Word::TickLabels::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2634)
inline _variant_t Word::TickLabels::Delete ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Delete(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2635)
inline Word::ChartFontPtr Word::TickLabels::GetFont ( ) {
    struct ChartFont * _result = 0;
    HRESULT _hr = get_Font(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFontPtr(_result, false);
}

#pragma implementation_key(2636)
inline _bstr_t Word::TickLabels::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2637)
inline _bstr_t Word::TickLabels::GetNumberFormat ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_NumberFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2638)
inline void Word::TickLabels::PutNumberFormat ( _bstr_t prop ) {
    HRESULT _hr = put_NumberFormat(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2639)
inline VARIANT_BOOL Word::TickLabels::GetNumberFormatLinked ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_NumberFormatLinked(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2640)
inline void Word::TickLabels::PutNumberFormatLinked ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_NumberFormatLinked(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2641)
inline _variant_t Word::TickLabels::GetNumberFormatLocal ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_NumberFormatLocal(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2642)
inline void Word::TickLabels::PutNumberFormatLocal ( const _variant_t & prop ) {
    HRESULT _hr = put_NumberFormatLocal(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2643)
inline enum Word::XlTickLabelOrientation Word::TickLabels::GetOrientation ( ) {
    enum XlTickLabelOrientation _result;
    HRESULT _hr = get_Orientation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2644)
inline void Word::TickLabels::PutOrientation ( enum XlTickLabelOrientation prop ) {
    HRESULT _hr = put_Orientation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2645)
inline _variant_t Word::TickLabels::Select ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Select(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2646)
inline long Word::TickLabels::GetReadingOrder ( ) {
    long _result = 0;
    HRESULT _hr = get_ReadingOrder(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2647)
inline void Word::TickLabels::PutReadingOrder ( long prop ) {
    HRESULT _hr = put_ReadingOrder(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2648)
inline _variant_t Word::TickLabels::GetAutoScaleFont ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_AutoScaleFont(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2649)
inline void Word::TickLabels::PutAutoScaleFont ( const _variant_t & prop ) {
    HRESULT _hr = put_AutoScaleFont(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2650)
inline long Word::TickLabels::GetDepth ( ) {
    long _result = 0;
    HRESULT _hr = get_Depth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2651)
inline long Word::TickLabels::GetOffset ( ) {
    long _result = 0;
    HRESULT _hr = get_Offset(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2652)
inline void Word::TickLabels::PutOffset ( long prop ) {
    HRESULT _hr = put_Offset(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2653)
inline long Word::TickLabels::GetAlignment ( ) {
    long _result = 0;
    HRESULT _hr = get_Alignment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2654)
inline void Word::TickLabels::PutAlignment ( long prop ) {
    HRESULT _hr = put_Alignment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2655)
inline VARIANT_BOOL Word::TickLabels::GetMultiLevel ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MultiLevel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2656)
inline void Word::TickLabels::PutMultiLevel ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MultiLevel(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2657)
inline Word::ChartFormatPtr Word::TickLabels::GetFormat ( ) {
    struct ChartFormat * _result = 0;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFormatPtr(_result, false);
}

#pragma implementation_key(2658)
inline IDispatchPtr Word::TickLabels::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2659)
inline long Word::TickLabels::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface ChartGroup wrapper method implementations
//

#pragma implementation_key(2660)
inline enum Word::XlAxisGroup Word::ChartGroup::GetAxisGroup ( ) {
    enum XlAxisGroup _result;
    HRESULT _hr = get_AxisGroup(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2661)
inline void Word::ChartGroup::PutAxisGroup ( enum XlAxisGroup prop ) {
    HRESULT _hr = put_AxisGroup(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2662)
inline long Word::ChartGroup::GetDoughnutHoleSize ( ) {
    long _result = 0;
    HRESULT _hr = get_DoughnutHoleSize(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2663)
inline void Word::ChartGroup::PutDoughnutHoleSize ( long prop ) {
    HRESULT _hr = put_DoughnutHoleSize(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2664)
inline Word::DownBarsPtr Word::ChartGroup::GetDownBars ( ) {
    struct DownBars * _result = 0;
    HRESULT _hr = get_DownBars(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DownBarsPtr(_result, false);
}

#pragma implementation_key(2665)
inline Word::DropLinesPtr Word::ChartGroup::GetDropLines ( ) {
    struct DropLines * _result = 0;
    HRESULT _hr = get_DropLines(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DropLinesPtr(_result, false);
}

#pragma implementation_key(2666)
inline long Word::ChartGroup::GetFirstSliceAngle ( ) {
    long _result = 0;
    HRESULT _hr = get_FirstSliceAngle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2667)
inline void Word::ChartGroup::PutFirstSliceAngle ( long prop ) {
    HRESULT _hr = put_FirstSliceAngle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2668)
inline long Word::ChartGroup::GetGapWidth ( ) {
    long _result = 0;
    HRESULT _hr = get_GapWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2669)
inline void Word::ChartGroup::PutGapWidth ( long prop ) {
    HRESULT _hr = put_GapWidth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2670)
inline VARIANT_BOOL Word::ChartGroup::GetHasDropLines ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HasDropLines(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2671)
inline void Word::ChartGroup::PutHasDropLines ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HasDropLines(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2672)
inline VARIANT_BOOL Word::ChartGroup::GetHasHiLoLines ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HasHiLoLines(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2673)
inline void Word::ChartGroup::PutHasHiLoLines ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HasHiLoLines(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2674)
inline VARIANT_BOOL Word::ChartGroup::GetHasRadarAxisLabels ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HasRadarAxisLabels(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2675)
inline void Word::ChartGroup::PutHasRadarAxisLabels ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HasRadarAxisLabels(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2676)
inline VARIANT_BOOL Word::ChartGroup::GetHasSeriesLines ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HasSeriesLines(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2677)
inline void Word::ChartGroup::PutHasSeriesLines ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HasSeriesLines(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2678)
inline VARIANT_BOOL Word::ChartGroup::GetHasUpDownBars ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HasUpDownBars(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2679)
inline void Word::ChartGroup::PutHasUpDownBars ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HasUpDownBars(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2680)
inline Word::HiLoLinesPtr Word::ChartGroup::GetHiLoLines ( ) {
    struct HiLoLines * _result = 0;
    HRESULT _hr = get_HiLoLines(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HiLoLinesPtr(_result, false);
}

#pragma implementation_key(2681)
inline long Word::ChartGroup::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2682)
inline long Word::ChartGroup::GetOverlap ( ) {
    long _result = 0;
    HRESULT _hr = get_Overlap(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2683)
inline void Word::ChartGroup::PutOverlap ( long prop ) {
    HRESULT _hr = put_Overlap(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2684)
inline Word::TickLabelsPtr Word::ChartGroup::GetRadarAxisLabels ( ) {
    struct TickLabels * _result = 0;
    HRESULT _hr = get_RadarAxisLabels(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TickLabelsPtr(_result, false);
}

#pragma implementation_key(2685)
inline IDispatchPtr Word::ChartGroup::SeriesCollection ( const _variant_t & Index ) {
    IDispatch * _result = 0;
    HRESULT _hr = raw_SeriesCollection(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2686)
inline Word::SeriesLinesPtr Word::ChartGroup::GetSeriesLines ( ) {
    struct SeriesLines * _result = 0;
    HRESULT _hr = get_SeriesLines(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SeriesLinesPtr(_result, false);
}

#pragma implementation_key(2687)
inline long Word::ChartGroup::GetSubType ( ) {
    long _result = 0;
    HRESULT _hr = get_SubType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2688)
inline void Word::ChartGroup::PutSubType ( long prop ) {
    HRESULT _hr = put_SubType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2689)
inline long Word::ChartGroup::GetType ( ) {
    long _result = 0;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2690)
inline void Word::ChartGroup::PutType ( long prop ) {
    HRESULT _hr = put_Type(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2691)
inline Word::UpBarsPtr Word::ChartGroup::GetUpBars ( ) {
    struct UpBars * _result = 0;
    HRESULT _hr = get_UpBars(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return UpBarsPtr(_result, false);
}

#pragma implementation_key(2692)
inline VARIANT_BOOL Word::ChartGroup::GetVaryByCategories ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_VaryByCategories(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2693)
inline void Word::ChartGroup::PutVaryByCategories ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_VaryByCategories(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2694)
inline enum Word::XlSizeRepresents Word::ChartGroup::GetSizeRepresents ( ) {
    enum XlSizeRepresents _result;
    HRESULT _hr = get_SizeRepresents(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2695)
inline void Word::ChartGroup::PutSizeRepresents ( enum XlSizeRepresents prop ) {
    HRESULT _hr = put_SizeRepresents(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2696)
inline long Word::ChartGroup::GetBubbleScale ( ) {
    long _result = 0;
    HRESULT _hr = get_BubbleScale(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2697)
inline void Word::ChartGroup::PutBubbleScale ( long prop ) {
    HRESULT _hr = put_BubbleScale(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2698)
inline VARIANT_BOOL Word::ChartGroup::GetShowNegativeBubbles ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowNegativeBubbles(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2699)
inline void Word::ChartGroup::PutShowNegativeBubbles ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowNegativeBubbles(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2700)
inline enum Word::XlChartSplitType Word::ChartGroup::GetSplitType ( ) {
    enum XlChartSplitType _result;
    HRESULT _hr = get_SplitType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2701)
inline void Word::ChartGroup::PutSplitType ( enum XlChartSplitType prop ) {
    HRESULT _hr = put_SplitType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2702)
inline _variant_t Word::ChartGroup::GetSplitValue ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_SplitValue(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2703)
inline void Word::ChartGroup::PutSplitValue ( const _variant_t & prop ) {
    HRESULT _hr = put_SplitValue(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2704)
inline long Word::ChartGroup::GetSecondPlotSize ( ) {
    long _result = 0;
    HRESULT _hr = get_SecondPlotSize(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2705)
inline void Word::ChartGroup::PutSecondPlotSize ( long prop ) {
    HRESULT _hr = put_SecondPlotSize(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2706)
inline VARIANT_BOOL Word::ChartGroup::GetHas3DShading ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Has3DShading(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2707)
inline void Word::ChartGroup::PutHas3DShading ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Has3DShading(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2708)
inline IDispatchPtr Word::ChartGroup::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2709)
inline long Word::ChartGroup::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2710)
inline IDispatchPtr Word::ChartGroup::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

//
// interface ChartGroups wrapper method implementations
//

#pragma implementation_key(2711)
inline IDispatchPtr Word::ChartGroups::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2712)
inline long Word::ChartGroups::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2713)
inline Word::ChartGroupPtr Word::ChartGroups::Item ( const _variant_t & Index ) {
    struct ChartGroup * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartGroupPtr(_result, false);
}

#pragma implementation_key(2714)
inline IUnknownPtr Word::ChartGroups::_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = raw__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(2715)
inline IDispatchPtr Word::ChartGroups::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2716)
inline long Word::ChartGroups::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface DataLabel wrapper method implementations
//

#pragma implementation_key(2717)
inline IDispatchPtr Word::DataLabel::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2718)
inline _bstr_t Word::DataLabel::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2719)
inline _variant_t Word::DataLabel::Select ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Select(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2720)
inline Word::ChartBorderPtr Word::DataLabel::GetBorder ( ) {
    struct ChartBorder * _result = 0;
    HRESULT _hr = get_Border(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartBorderPtr(_result, false);
}

#pragma implementation_key(2721)
inline _variant_t Word::DataLabel::Delete ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Delete(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2722)
inline Word::InteriorPtr Word::DataLabel::GetInterior ( ) {
    struct Interior * _result = 0;
    HRESULT _hr = get_Interior(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InteriorPtr(_result, false);
}

#pragma implementation_key(2723)
inline Word::ChartFillFormatPtr Word::DataLabel::GetFill ( ) {
    struct ChartFillFormat * _result = 0;
    HRESULT _hr = get_Fill(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFillFormatPtr(_result, false);
}

#pragma implementation_key(2724)
inline _bstr_t Word::DataLabel::GetCaption ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Caption(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2725)
inline void Word::DataLabel::PutCaption ( _bstr_t prop ) {
    HRESULT _hr = put_Caption(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2726)
inline Word::ChartCharactersPtr Word::DataLabel::GetCharacters ( const _variant_t & Start, const _variant_t & Length ) {
    struct ChartCharacters * _result = 0;
    HRESULT _hr = get_Characters(Start, Length, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartCharactersPtr(_result, false);
}

#pragma implementation_key(2727)
inline Word::ChartFontPtr Word::DataLabel::GetFont ( ) {
    struct ChartFont * _result = 0;
    HRESULT _hr = get_Font(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFontPtr(_result, false);
}

#pragma implementation_key(2728)
inline _variant_t Word::DataLabel::GetHorizontalAlignment ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_HorizontalAlignment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2729)
inline void Word::DataLabel::PutHorizontalAlignment ( const _variant_t & prop ) {
    HRESULT _hr = put_HorizontalAlignment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2730)
inline double Word::DataLabel::GetLeft ( ) {
    double _result = 0;
    HRESULT _hr = get_Left(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2731)
inline void Word::DataLabel::PutLeft ( double prop ) {
    HRESULT _hr = put_Left(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2732)
inline _variant_t Word::DataLabel::GetOrientation ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Orientation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2733)
inline void Word::DataLabel::PutOrientation ( const _variant_t & prop ) {
    HRESULT _hr = put_Orientation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2734)
inline VARIANT_BOOL Word::DataLabel::GetShadow ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Shadow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2735)
inline void Word::DataLabel::PutShadow ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Shadow(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2736)
inline _bstr_t Word::DataLabel::GetText ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Text(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2737)
inline void Word::DataLabel::PutText ( _bstr_t prop ) {
    HRESULT _hr = put_Text(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2738)
inline double Word::DataLabel::GetTop ( ) {
    double _result = 0;
    HRESULT _hr = get_Top(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2739)
inline void Word::DataLabel::PutTop ( double prop ) {
    HRESULT _hr = put_Top(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2740)
inline _variant_t Word::DataLabel::GetVerticalAlignment ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_VerticalAlignment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2741)
inline void Word::DataLabel::PutVerticalAlignment ( const _variant_t & prop ) {
    HRESULT _hr = put_VerticalAlignment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2742)
inline long Word::DataLabel::GetReadingOrder ( ) {
    long _result = 0;
    HRESULT _hr = get_ReadingOrder(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2743)
inline void Word::DataLabel::PutReadingOrder ( long prop ) {
    HRESULT _hr = put_ReadingOrder(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2744)
inline _variant_t Word::DataLabel::GetAutoScaleFont ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_AutoScaleFont(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2745)
inline void Word::DataLabel::PutAutoScaleFont ( const _variant_t & prop ) {
    HRESULT _hr = put_AutoScaleFont(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2746)
inline VARIANT_BOOL Word::DataLabel::GetAutoText ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2747)
inline void Word::DataLabel::PutAutoText ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoText(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2748)
inline _bstr_t Word::DataLabel::GetNumberFormat ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_NumberFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2749)
inline void Word::DataLabel::PutNumberFormat ( _bstr_t prop ) {
    HRESULT _hr = put_NumberFormat(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2750)
inline VARIANT_BOOL Word::DataLabel::GetNumberFormatLinked ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_NumberFormatLinked(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2751)
inline void Word::DataLabel::PutNumberFormatLinked ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_NumberFormatLinked(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2752)
inline _variant_t Word::DataLabel::GetNumberFormatLocal ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_NumberFormatLocal(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2753)
inline void Word::DataLabel::PutNumberFormatLocal ( const _variant_t & prop ) {
    HRESULT _hr = put_NumberFormatLocal(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2754)
inline VARIANT_BOOL Word::DataLabel::GetShowLegendKey ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowLegendKey(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2755)
inline void Word::DataLabel::PutShowLegendKey ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowLegendKey(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2756)
inline _variant_t Word::DataLabel::GetType ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2757)
inline void Word::DataLabel::PutType ( const _variant_t & prop ) {
    HRESULT _hr = put_Type(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2758)
inline enum Word::XlDataLabelPosition Word::DataLabel::GetPosition ( ) {
    enum XlDataLabelPosition _result;
    HRESULT _hr = get_Position(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2759)
inline void Word::DataLabel::PutPosition ( enum XlDataLabelPosition prop ) {
    HRESULT _hr = put_Position(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2760)
inline VARIANT_BOOL Word::DataLabel::GetShowSeriesName ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowSeriesName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2761)
inline void Word::DataLabel::PutShowSeriesName ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowSeriesName(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2762)
inline VARIANT_BOOL Word::DataLabel::GetShowCategoryName ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowCategoryName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2763)
inline void Word::DataLabel::PutShowCategoryName ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowCategoryName(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2764)
inline VARIANT_BOOL Word::DataLabel::GetShowValue ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowValue(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2765)
inline void Word::DataLabel::PutShowValue ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowValue(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2766)
inline VARIANT_BOOL Word::DataLabel::GetShowPercentage ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowPercentage(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2767)
inline void Word::DataLabel::PutShowPercentage ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowPercentage(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2768)
inline VARIANT_BOOL Word::DataLabel::GetShowBubbleSize ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowBubbleSize(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2769)
inline void Word::DataLabel::PutShowBubbleSize ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowBubbleSize(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2770)
inline _variant_t Word::DataLabel::GetSeparator ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Separator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2771)
inline void Word::DataLabel::PutSeparator ( const _variant_t & prop ) {
    HRESULT _hr = put_Separator(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2772)
inline Word::ChartFormatPtr Word::DataLabel::GetFormat ( ) {
    struct ChartFormat * _result = 0;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFormatPtr(_result, false);
}

#pragma implementation_key(2773)
inline IDispatchPtr Word::DataLabel::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2774)
inline long Word::DataLabel::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2775)
inline double Word::DataLabel::GetHeight ( ) {
    double _result = 0;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2776)
inline double Word::DataLabel::GetWidth ( ) {
    double _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2777)
inline _bstr_t Word::DataLabel::GetFormula ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Formula(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2778)
inline void Word::DataLabel::PutFormula ( _bstr_t prop ) {
    HRESULT _hr = put_Formula(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2779)
inline _bstr_t Word::DataLabel::GetFormulaR1C1 ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_FormulaR1C1(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2780)
inline void Word::DataLabel::PutFormulaR1C1 ( _bstr_t prop ) {
    HRESULT _hr = put_FormulaR1C1(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2781)
inline _bstr_t Word::DataLabel::GetFormulaLocal ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_FormulaLocal(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2782)
inline void Word::DataLabel::PutFormulaLocal ( _bstr_t prop ) {
    HRESULT _hr = put_FormulaLocal(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2783)
inline _bstr_t Word::DataLabel::GetFormulaR1C1Local ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_FormulaR1C1Local(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2784)
inline void Word::DataLabel::PutFormulaR1C1Local ( _bstr_t prop ) {
    HRESULT _hr = put_FormulaR1C1Local(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface Trendline wrapper method implementations
//

#pragma implementation_key(2785)
inline IDispatchPtr Word::Trendline::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2786)
inline double Word::Trendline::GetBackward ( ) {
    double _result = 0;
    HRESULT _hr = get_Backward(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2787)
inline void Word::Trendline::PutBackward ( double prop ) {
    HRESULT _hr = put_Backward(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2788)
inline Word::ChartBorderPtr Word::Trendline::GetBorder ( ) {
    struct ChartBorder * _result = 0;
    HRESULT _hr = get_Border(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartBorderPtr(_result, false);
}

#pragma implementation_key(2789)
inline _variant_t Word::Trendline::ClearFormats ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_ClearFormats(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2790)
inline Word::DataLabelPtr Word::Trendline::GetDataLabel ( ) {
    struct DataLabel * _result = 0;
    HRESULT _hr = get_DataLabel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DataLabelPtr(_result, false);
}

#pragma implementation_key(2791)
inline _variant_t Word::Trendline::Delete ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Delete(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2792)
inline VARIANT_BOOL Word::Trendline::GetDisplayEquation ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DisplayEquation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2793)
inline void Word::Trendline::PutDisplayEquation ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DisplayEquation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2794)
inline VARIANT_BOOL Word::Trendline::GetDisplayRSquared ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DisplayRSquared(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2795)
inline void Word::Trendline::PutDisplayRSquared ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DisplayRSquared(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2796)
inline double Word::Trendline::GetForward ( ) {
    double _result = 0;
    HRESULT _hr = get_Forward(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2797)
inline void Word::Trendline::PutForward ( double prop ) {
    HRESULT _hr = put_Forward(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2798)
inline long Word::Trendline::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2799)
inline double Word::Trendline::GetIntercept ( ) {
    double _result = 0;
    HRESULT _hr = get_Intercept(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2800)
inline void Word::Trendline::PutIntercept ( double prop ) {
    HRESULT _hr = put_Intercept(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2801)
inline VARIANT_BOOL Word::Trendline::GetInterceptIsAuto ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_InterceptIsAuto(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2802)
inline void Word::Trendline::PutInterceptIsAuto ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_InterceptIsAuto(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2803)
inline _bstr_t Word::Trendline::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2804)
inline void Word::Trendline::PutName ( _bstr_t prop ) {
    HRESULT _hr = put_Name(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2805)
inline VARIANT_BOOL Word::Trendline::GetNameIsAuto ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_NameIsAuto(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2806)
inline void Word::Trendline::PutNameIsAuto ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_NameIsAuto(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2807)
inline long Word::Trendline::GetOrder ( ) {
    long _result = 0;
    HRESULT _hr = get_Order(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2808)
inline void Word::Trendline::PutOrder ( long prop ) {
    HRESULT _hr = put_Order(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2809)
inline long Word::Trendline::GetPeriod ( ) {
    long _result = 0;
    HRESULT _hr = get_Period(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2810)
inline void Word::Trendline::PutPeriod ( long prop ) {
    HRESULT _hr = put_Period(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2811)
inline _variant_t Word::Trendline::Select ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Select(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2812)
inline enum Word::XlTrendlineType Word::Trendline::GetType ( ) {
    enum XlTrendlineType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2813)
inline void Word::Trendline::PutType ( enum XlTrendlineType prop ) {
    HRESULT _hr = put_Type(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2814)
inline Word::ChartFormatPtr Word::Trendline::GetFormat ( ) {
    struct ChartFormat * _result = 0;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFormatPtr(_result, false);
}

#pragma implementation_key(2815)
inline IDispatchPtr Word::Trendline::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2816)
inline long Word::Trendline::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2817)
inline double Word::Trendline::GetBackward2 ( ) {
    double _result = 0;
    HRESULT _hr = get_Backward2(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2818)
inline void Word::Trendline::PutBackward2 ( double prop ) {
    HRESULT _hr = put_Backward2(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2819)
inline double Word::Trendline::GetForward2 ( ) {
    double _result = 0;
    HRESULT _hr = get_Forward2(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2820)
inline void Word::Trendline::PutForward2 ( double prop ) {
    HRESULT _hr = put_Forward2(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface Trendlines wrapper method implementations
//

#pragma implementation_key(2821)
inline IDispatchPtr Word::Trendlines::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2822)
inline Word::TrendlinePtr Word::Trendlines::Add ( enum XlTrendlineType Type, const _variant_t & Order, const _variant_t & Period, const _variant_t & Forward, const _variant_t & Backward, const _variant_t & Intercept, const _variant_t & DisplayEquation, const _variant_t & DisplayRSquared, const _variant_t & Name ) {
    struct Trendline * _result = 0;
    HRESULT _hr = raw_Add(Type, Order, Period, Forward, Backward, Intercept, DisplayEquation, DisplayRSquared, Name, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TrendlinePtr(_result, false);
}

#pragma implementation_key(2823)
inline long Word::Trendlines::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2824)
inline Word::TrendlinePtr Word::Trendlines::Item ( const _variant_t & Index ) {
    struct Trendline * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TrendlinePtr(_result, false);
}

#pragma implementation_key(2825)
inline IUnknownPtr Word::Trendlines::_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = raw__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(2826)
inline IDispatchPtr Word::Trendlines::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2827)
inline long Word::Trendlines::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2828)
inline Word::TrendlinePtr Word::Trendlines::_Default ( const _variant_t & Index ) {
    struct Trendline * _result = 0;
    HRESULT _hr = raw__Default(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TrendlinePtr(_result, false);
}

//
// interface DataLabels wrapper method implementations
//

#pragma implementation_key(2829)
inline IDispatchPtr Word::DataLabels::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2830)
inline _bstr_t Word::DataLabels::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2831)
inline _variant_t Word::DataLabels::Select ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Select(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2832)
inline Word::ChartBorderPtr Word::DataLabels::GetBorder ( ) {
    struct ChartBorder * _result = 0;
    HRESULT _hr = get_Border(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartBorderPtr(_result, false);
}

#pragma implementation_key(2833)
inline _variant_t Word::DataLabels::Delete ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Delete(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2834)
inline Word::InteriorPtr Word::DataLabels::GetInterior ( ) {
    struct Interior * _result = 0;
    HRESULT _hr = get_Interior(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InteriorPtr(_result, false);
}

#pragma implementation_key(2835)
inline Word::ChartFillFormatPtr Word::DataLabels::GetFill ( ) {
    struct ChartFillFormat * _result = 0;
    HRESULT _hr = get_Fill(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFillFormatPtr(_result, false);
}

#pragma implementation_key(2836)
inline Word::ChartFontPtr Word::DataLabels::GetFont ( ) {
    struct ChartFont * _result = 0;
    HRESULT _hr = get_Font(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFontPtr(_result, false);
}

#pragma implementation_key(2837)
inline _variant_t Word::DataLabels::GetHorizontalAlignment ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_HorizontalAlignment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2838)
inline void Word::DataLabels::PutHorizontalAlignment ( const _variant_t & prop ) {
    HRESULT _hr = put_HorizontalAlignment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2839)
inline _variant_t Word::DataLabels::GetOrientation ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Orientation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2840)
inline void Word::DataLabels::PutOrientation ( const _variant_t & prop ) {
    HRESULT _hr = put_Orientation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2841)
inline VARIANT_BOOL Word::DataLabels::GetShadow ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Shadow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2842)
inline void Word::DataLabels::PutShadow ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Shadow(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2843)
inline _variant_t Word::DataLabels::GetVerticalAlignment ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_VerticalAlignment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2844)
inline void Word::DataLabels::PutVerticalAlignment ( const _variant_t & prop ) {
    HRESULT _hr = put_VerticalAlignment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2845)
inline long Word::DataLabels::GetReadingOrder ( ) {
    long _result = 0;
    HRESULT _hr = get_ReadingOrder(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2846)
inline void Word::DataLabels::PutReadingOrder ( long prop ) {
    HRESULT _hr = put_ReadingOrder(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2847)
inline _variant_t Word::DataLabels::GetAutoScaleFont ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_AutoScaleFont(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2848)
inline void Word::DataLabels::PutAutoScaleFont ( const _variant_t & prop ) {
    HRESULT _hr = put_AutoScaleFont(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2849)
inline VARIANT_BOOL Word::DataLabels::GetAutoText ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2850)
inline void Word::DataLabels::PutAutoText ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoText(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2851)
inline _bstr_t Word::DataLabels::GetNumberFormat ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_NumberFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2852)
inline void Word::DataLabels::PutNumberFormat ( _bstr_t prop ) {
    HRESULT _hr = put_NumberFormat(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2853)
inline VARIANT_BOOL Word::DataLabels::GetNumberFormatLinked ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_NumberFormatLinked(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2854)
inline void Word::DataLabels::PutNumberFormatLinked ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_NumberFormatLinked(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2855)
inline _variant_t Word::DataLabels::GetNumberFormatLocal ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_NumberFormatLocal(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2856)
inline void Word::DataLabels::PutNumberFormatLocal ( const _variant_t & prop ) {
    HRESULT _hr = put_NumberFormatLocal(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2857)
inline VARIANT_BOOL Word::DataLabels::GetShowLegendKey ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowLegendKey(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2858)
inline void Word::DataLabels::PutShowLegendKey ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowLegendKey(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2859)
inline _variant_t Word::DataLabels::GetType ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2860)
inline void Word::DataLabels::PutType ( const _variant_t & prop ) {
    HRESULT _hr = put_Type(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2861)
inline enum Word::XlDataLabelPosition Word::DataLabels::GetPosition ( ) {
    enum XlDataLabelPosition _result;
    HRESULT _hr = get_Position(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2862)
inline void Word::DataLabels::PutPosition ( enum XlDataLabelPosition prop ) {
    HRESULT _hr = put_Position(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2863)
inline VARIANT_BOOL Word::DataLabels::GetShowSeriesName ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowSeriesName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2864)
inline void Word::DataLabels::PutShowSeriesName ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowSeriesName(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2865)
inline VARIANT_BOOL Word::DataLabels::GetShowCategoryName ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowCategoryName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2866)
inline void Word::DataLabels::PutShowCategoryName ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowCategoryName(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2867)
inline VARIANT_BOOL Word::DataLabels::GetShowValue ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowValue(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2868)
inline void Word::DataLabels::PutShowValue ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowValue(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2869)
inline VARIANT_BOOL Word::DataLabels::GetShowPercentage ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowPercentage(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2870)
inline void Word::DataLabels::PutShowPercentage ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowPercentage(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2871)
inline VARIANT_BOOL Word::DataLabels::GetShowBubbleSize ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowBubbleSize(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2872)
inline void Word::DataLabels::PutShowBubbleSize ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowBubbleSize(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2873)
inline _variant_t Word::DataLabels::GetSeparator ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Separator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2874)
inline void Word::DataLabels::PutSeparator ( const _variant_t & prop ) {
    HRESULT _hr = put_Separator(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2875)
inline long Word::DataLabels::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2876)
inline Word::DataLabelPtr Word::DataLabels::Item ( const _variant_t & Index ) {
    struct DataLabel * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DataLabelPtr(_result, false);
}

#pragma implementation_key(2877)
inline IUnknownPtr Word::DataLabels::_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = raw__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(2878)
inline Word::ChartFormatPtr Word::DataLabels::GetFormat ( ) {
    struct ChartFormat * _result = 0;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFormatPtr(_result, false);
}

#pragma implementation_key(2879)
inline IDispatchPtr Word::DataLabels::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2880)
inline long Word::DataLabels::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2881)
inline Word::DataLabelPtr Word::DataLabels::_Default ( const _variant_t & Index ) {
    struct DataLabel * _result = 0;
    HRESULT _hr = raw__Default(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DataLabelPtr(_result, false);
}

//
// interface PlotArea wrapper method implementations
//

#pragma implementation_key(2882)
inline _bstr_t Word::PlotArea::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2883)
inline _variant_t Word::PlotArea::Select ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Select(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2884)
inline IDispatchPtr Word::PlotArea::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2885)
inline Word::ChartBorderPtr Word::PlotArea::GetBorder ( ) {
    struct ChartBorder * _result = 0;
    HRESULT _hr = get_Border(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartBorderPtr(_result, false);
}

#pragma implementation_key(2886)
inline _variant_t Word::PlotArea::ClearFormats ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_ClearFormats(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2887)
inline double Word::PlotArea::GetHeight ( ) {
    double _result = 0;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2888)
inline void Word::PlotArea::PutHeight ( double prop ) {
    HRESULT _hr = put_Height(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2889)
inline Word::InteriorPtr Word::PlotArea::GetInterior ( ) {
    struct Interior * _result = 0;
    HRESULT _hr = get_Interior(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InteriorPtr(_result, false);
}

#pragma implementation_key(2890)
inline Word::ChartFillFormatPtr Word::PlotArea::GetFill ( ) {
    struct ChartFillFormat * _result = 0;
    HRESULT _hr = get_Fill(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFillFormatPtr(_result, false);
}

#pragma implementation_key(2891)
inline double Word::PlotArea::GetLeft ( ) {
    double _result = 0;
    HRESULT _hr = get_Left(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2892)
inline void Word::PlotArea::PutLeft ( double prop ) {
    HRESULT _hr = put_Left(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2893)
inline double Word::PlotArea::GetTop ( ) {
    double _result = 0;
    HRESULT _hr = get_Top(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2894)
inline void Word::PlotArea::PutTop ( double prop ) {
    HRESULT _hr = put_Top(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2895)
inline double Word::PlotArea::GetWidth ( ) {
    double _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2896)
inline void Word::PlotArea::PutWidth ( double prop ) {
    HRESULT _hr = put_Width(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2897)
inline double Word::PlotArea::GetInsideLeft ( ) {
    double _result = 0;
    HRESULT _hr = get_InsideLeft(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2898)
inline void Word::PlotArea::PutInsideLeft ( double prop ) {
    HRESULT _hr = put_InsideLeft(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2899)
inline double Word::PlotArea::GetInsideTop ( ) {
    double _result = 0;
    HRESULT _hr = get_InsideTop(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2900)
inline void Word::PlotArea::PutInsideTop ( double prop ) {
    HRESULT _hr = put_InsideTop(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2901)
inline double Word::PlotArea::GetInsideWidth ( ) {
    double _result = 0;
    HRESULT _hr = get_InsideWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2902)
inline void Word::PlotArea::PutInsideWidth ( double prop ) {
    HRESULT _hr = put_InsideWidth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2903)
inline double Word::PlotArea::GetInsideHeight ( ) {
    double _result = 0;
    HRESULT _hr = get_InsideHeight(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2904)
inline void Word::PlotArea::PutInsideHeight ( double prop ) {
    HRESULT _hr = put_InsideHeight(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2905)
inline enum Word::XlChartElementPosition Word::PlotArea::GetPosition ( ) {
    enum XlChartElementPosition _result;
    HRESULT _hr = get_Position(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2906)
inline void Word::PlotArea::PutPosition ( enum XlChartElementPosition prop ) {
    HRESULT _hr = put_Position(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2907)
inline Word::ChartFormatPtr Word::PlotArea::GetFormat ( ) {
    struct ChartFormat * _result = 0;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFormatPtr(_result, false);
}

#pragma implementation_key(2908)
inline IDispatchPtr Word::PlotArea::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2909)
inline long Word::PlotArea::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface ChartTitle wrapper method implementations
//

#pragma implementation_key(2910)
inline _bstr_t Word::ChartTitle::GetCaption ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Caption(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2911)
inline void Word::ChartTitle::PutCaption ( _bstr_t prop ) {
    HRESULT _hr = put_Caption(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2912)
inline Word::ChartCharactersPtr Word::ChartTitle::GetCharacters ( const _variant_t & Start, const _variant_t & Length ) {
    struct ChartCharacters * _result = 0;
    HRESULT _hr = get_Characters(Start, Length, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartCharactersPtr(_result, false);
}

#pragma implementation_key(2913)
inline Word::ChartFontPtr Word::ChartTitle::GetFont ( ) {
    struct ChartFont * _result = 0;
    HRESULT _hr = get_Font(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFontPtr(_result, false);
}

#pragma implementation_key(2914)
inline _variant_t Word::ChartTitle::GetHorizontalAlignment ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_HorizontalAlignment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2915)
inline void Word::ChartTitle::PutHorizontalAlignment ( const _variant_t & prop ) {
    HRESULT _hr = put_HorizontalAlignment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2916)
inline double Word::ChartTitle::GetLeft ( ) {
    double _result = 0;
    HRESULT _hr = get_Left(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2917)
inline void Word::ChartTitle::PutLeft ( double prop ) {
    HRESULT _hr = put_Left(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2918)
inline _variant_t Word::ChartTitle::GetOrientation ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Orientation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2919)
inline void Word::ChartTitle::PutOrientation ( const _variant_t & prop ) {
    HRESULT _hr = put_Orientation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2920)
inline VARIANT_BOOL Word::ChartTitle::GetShadow ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Shadow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2921)
inline void Word::ChartTitle::PutShadow ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Shadow(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2922)
inline _bstr_t Word::ChartTitle::GetText ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Text(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2923)
inline void Word::ChartTitle::PutText ( _bstr_t prop ) {
    HRESULT _hr = put_Text(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2924)
inline double Word::ChartTitle::GetTop ( ) {
    double _result = 0;
    HRESULT _hr = get_Top(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2925)
inline void Word::ChartTitle::PutTop ( double prop ) {
    HRESULT _hr = put_Top(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2926)
inline _variant_t Word::ChartTitle::GetVerticalAlignment ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_VerticalAlignment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2927)
inline void Word::ChartTitle::PutVerticalAlignment ( const _variant_t & prop ) {
    HRESULT _hr = put_VerticalAlignment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2928)
inline long Word::ChartTitle::GetReadingOrder ( ) {
    long _result = 0;
    HRESULT _hr = get_ReadingOrder(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2929)
inline void Word::ChartTitle::PutReadingOrder ( long prop ) {
    HRESULT _hr = put_ReadingOrder(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2930)
inline _variant_t Word::ChartTitle::GetAutoScaleFont ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_AutoScaleFont(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2931)
inline void Word::ChartTitle::PutAutoScaleFont ( const _variant_t & prop ) {
    HRESULT _hr = put_AutoScaleFont(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2932)
inline Word::InteriorPtr Word::ChartTitle::GetInterior ( ) {
    struct Interior * _result = 0;
    HRESULT _hr = get_Interior(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InteriorPtr(_result, false);
}

#pragma implementation_key(2933)
inline Word::ChartFillFormatPtr Word::ChartTitle::GetFill ( ) {
    struct ChartFillFormat * _result = 0;
    HRESULT _hr = get_Fill(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFillFormatPtr(_result, false);
}

#pragma implementation_key(2934)
inline _variant_t Word::ChartTitle::Delete ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Delete(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2935)
inline Word::ChartBorderPtr Word::ChartTitle::GetBorder ( ) {
    struct ChartBorder * _result = 0;
    HRESULT _hr = get_Border(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartBorderPtr(_result, false);
}

#pragma implementation_key(2936)
inline _bstr_t Word::ChartTitle::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2937)
inline IDispatchPtr Word::ChartTitle::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2938)
inline _variant_t Word::ChartTitle::Select ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Select(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2939)
inline VARIANT_BOOL Word::ChartTitle::GetIncludeInLayout ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IncludeInLayout(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2940)
inline void Word::ChartTitle::PutIncludeInLayout ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_IncludeInLayout(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2941)
inline enum Word::XlChartElementPosition Word::ChartTitle::GetPosition ( ) {
    enum XlChartElementPosition _result;
    HRESULT _hr = get_Position(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2942)
inline void Word::ChartTitle::PutPosition ( enum XlChartElementPosition prop ) {
    HRESULT _hr = put_Position(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2943)
inline Word::ChartFormatPtr Word::ChartTitle::GetFormat ( ) {
    struct ChartFormat * _result = 0;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFormatPtr(_result, false);
}

#pragma implementation_key(2944)
inline IDispatchPtr Word::ChartTitle::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2945)
inline long Word::ChartTitle::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2946)
inline double Word::ChartTitle::GetHeight ( ) {
    double _result = 0;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2947)
inline double Word::ChartTitle::GetWidth ( ) {
    double _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2948)
inline _bstr_t Word::ChartTitle::GetFormula ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Formula(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2949)
inline void Word::ChartTitle::PutFormula ( _bstr_t prop ) {
    HRESULT _hr = put_Formula(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2950)
inline _bstr_t Word::ChartTitle::GetFormulaR1C1 ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_FormulaR1C1(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2951)
inline void Word::ChartTitle::PutFormulaR1C1 ( _bstr_t prop ) {
    HRESULT _hr = put_FormulaR1C1(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2952)
inline _bstr_t Word::ChartTitle::GetFormulaLocal ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_FormulaLocal(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2953)
inline void Word::ChartTitle::PutFormulaLocal ( _bstr_t prop ) {
    HRESULT _hr = put_FormulaLocal(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2954)
inline _bstr_t Word::ChartTitle::GetFormulaR1C1Local ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_FormulaR1C1Local(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(2955)
inline void Word::ChartTitle::PutFormulaR1C1Local ( _bstr_t prop ) {
    HRESULT _hr = put_FormulaR1C1Local(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface Chart wrapper method implementations
//

#pragma implementation_key(2956)
inline IDispatchPtr Word::Chart::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2957)
inline VARIANT_BOOL Word::Chart::GetHasTitle ( long lcid ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HasTitle(lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2958)
inline void Word::Chart::PutHasTitle ( long lcid, VARIANT_BOOL prop ) {
    HRESULT _hr = put_HasTitle(lcid, prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2959)
inline Word::ChartTitlePtr Word::Chart::GetChartTitle ( long lcid ) {
    struct ChartTitle * _result = 0;
    HRESULT _hr = get_ChartTitle(lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartTitlePtr(_result, false);
}

#pragma implementation_key(2960)
inline long Word::Chart::GetDepthPercent ( long lcid ) {
    long _result = 0;
    HRESULT _hr = get_DepthPercent(lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2961)
inline void Word::Chart::PutDepthPercent ( long lcid, long prop ) {
    HRESULT _hr = put_DepthPercent(lcid, prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2962)
inline long Word::Chart::GetElevation ( long lcid ) {
    long _result = 0;
    HRESULT _hr = get_Elevation(lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2963)
inline void Word::Chart::PutElevation ( long lcid, long prop ) {
    HRESULT _hr = put_Elevation(lcid, prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2964)
inline long Word::Chart::GetGapDepth ( long lcid ) {
    long _result = 0;
    HRESULT _hr = get_GapDepth(lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2965)
inline void Word::Chart::PutGapDepth ( long lcid, long prop ) {
    HRESULT _hr = put_GapDepth(lcid, prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2966)
inline long Word::Chart::GetHeightPercent ( long lcid ) {
    long _result = 0;
    HRESULT _hr = get_HeightPercent(lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2967)
inline void Word::Chart::PutHeightPercent ( long lcid, long prop ) {
    HRESULT _hr = put_HeightPercent(lcid, prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2968)
inline long Word::Chart::GetPerspective ( long lcid ) {
    long _result = 0;
    HRESULT _hr = get_Perspective(lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2969)
inline void Word::Chart::PutPerspective ( long lcid, long prop ) {
    HRESULT _hr = put_Perspective(lcid, prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2970)
inline _variant_t Word::Chart::GetRightAngleAxes ( long lcid ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_RightAngleAxes(lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2971)
inline void Word::Chart::PutRightAngleAxes ( long lcid, const _variant_t & prop ) {
    HRESULT _hr = put_RightAngleAxes(lcid, prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2972)
inline _variant_t Word::Chart::GetRotation ( long lcid ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Rotation(lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2973)
inline void Word::Chart::PutRotation ( long lcid, const _variant_t & prop ) {
    HRESULT _hr = put_Rotation(lcid, prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2974)
inline enum Word::XlDisplayBlanksAs Word::Chart::GetDisplayBlanksAs ( long lcid ) {
    enum XlDisplayBlanksAs _result;
    HRESULT _hr = get_DisplayBlanksAs(lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2975)
inline void Word::Chart::PutDisplayBlanksAs ( long lcid, enum XlDisplayBlanksAs prop ) {
    HRESULT _hr = put_DisplayBlanksAs(lcid, prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2976)
inline IDispatchPtr Word::Chart::GetChartGroups ( const _variant_t & Index, long lcid ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_ChartGroups(Index, lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2977)
inline IDispatchPtr Word::Chart::SeriesCollection ( const _variant_t & Index, long lcid ) {
    IDispatch * _result = 0;
    HRESULT _hr = raw_SeriesCollection(Index, lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2978)
inline long Word::Chart::GetSubType ( long lcid ) {
    long _result = 0;
    HRESULT _hr = get_SubType(lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2979)
inline void Word::Chart::PutSubType ( long lcid, long prop ) {
    HRESULT _hr = put_SubType(lcid, prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2980)
inline long Word::Chart::GetType ( long lcid ) {
    long _result = 0;
    HRESULT _hr = get_Type(lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2981)
inline void Word::Chart::PutType ( long lcid, long prop ) {
    HRESULT _hr = put_Type(lcid, prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2982)
inline Word::CornersPtr Word::Chart::GetCorners ( long lcid ) {
    struct Corners * _result = 0;
    HRESULT _hr = get_Corners(lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CornersPtr(_result, false);
}

#pragma implementation_key(2983)
inline HRESULT Word::Chart::ApplyDataLabels ( enum XlDataLabelsType Type, const _variant_t & LegendKey, const _variant_t & AutoText, const _variant_t & HasLeaderLines, const _variant_t & ShowSeriesName, const _variant_t & ShowCategoryName, const _variant_t & ShowValue, const _variant_t & ShowPercentage, const _variant_t & ShowBubbleSize, const _variant_t & Separator, long lcid ) {
    HRESULT _hr = raw_ApplyDataLabels(Type, LegendKey, AutoText, HasLeaderLines, ShowSeriesName, ShowCategoryName, ShowValue, ShowPercentage, ShowBubbleSize, Separator, lcid);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2984)
inline enum Office::XlChartType Word::Chart::GetChartType ( ) {
    enum Office::XlChartType _result;
    HRESULT _hr = get_ChartType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2985)
inline void Word::Chart::PutChartType ( enum Office::XlChartType prop ) {
    HRESULT _hr = put_ChartType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2986)
inline VARIANT_BOOL Word::Chart::GetHasDataTable ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HasDataTable(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2987)
inline void Word::Chart::PutHasDataTable ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HasDataTable(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2988)
inline HRESULT Word::Chart::ApplyCustomType ( enum Office::XlChartType ChartType, const _variant_t & TypeName ) {
    HRESULT _hr = raw_ApplyCustomType(ChartType, TypeName);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2989)
inline HRESULT Word::Chart::GetChartElement ( long x, long y, long * ElementID, long * Arg1, long * Arg2 ) {
    HRESULT _hr = raw_GetChartElement(x, y, ElementID, Arg1, Arg2);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2990)
inline HRESULT Word::Chart::SetSourceData ( _bstr_t Source, const _variant_t & PlotBy ) {
    HRESULT _hr = raw_SetSourceData(Source, PlotBy);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2991)
inline enum Word::XlRowCol Word::Chart::GetPlotBy ( ) {
    enum XlRowCol _result;
    HRESULT _hr = get_PlotBy(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2992)
inline void Word::Chart::PutPlotBy ( enum XlRowCol prop ) {
    HRESULT _hr = put_PlotBy(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2993)
inline VARIANT_BOOL Word::Chart::GetHasLegend ( long lcid ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HasLegend(lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(2994)
inline void Word::Chart::PutHasLegend ( long lcid, VARIANT_BOOL prop ) {
    HRESULT _hr = put_HasLegend(lcid, prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2995)
inline Word::LegendPtr Word::Chart::GetLegend ( long lcid ) {
    struct Legend * _result = 0;
    HRESULT _hr = get_Legend(lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return LegendPtr(_result, false);
}

#pragma implementation_key(2996)
inline IDispatchPtr Word::Chart::Axes ( const _variant_t & Type, enum XlAxisGroup AxisGroup, long lcid ) {
    IDispatch * _result = 0;
    HRESULT _hr = raw_Axes(Type, AxisGroup, lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(2997)
inline _variant_t Word::Chart::GetHasAxis ( const _variant_t & Index1, const _variant_t & Index2, long lcid ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_HasAxis(Index1, Index2, lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(2998)
inline void Word::Chart::PutHasAxis ( const _variant_t & Index1, const _variant_t & Index2, long lcid, const _variant_t & prop ) {
    HRESULT _hr = put_HasAxis(Index1, Index2, lcid, prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(2999)
inline Word::WallsPtr Word::Chart::GetWalls ( long lcid ) {
    struct Walls * _result = 0;
    HRESULT _hr = get_Walls(lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return WallsPtr(_result, false);
}

#pragma implementation_key(3000)
inline Word::FloorPtr Word::Chart::GetFloor ( long lcid ) {
    struct Floor * _result = 0;
    HRESULT _hr = get_Floor(lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FloorPtr(_result, false);
}

#pragma implementation_key(3001)
inline Word::PlotAreaPtr Word::Chart::GetPlotArea ( long lcid ) {
    struct PlotArea * _result = 0;
    HRESULT _hr = get_PlotArea(lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return PlotAreaPtr(_result, false);
}

#pragma implementation_key(3002)
inline VARIANT_BOOL Word::Chart::GetPlotVisibleOnly ( long lcid ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PlotVisibleOnly(lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3003)
inline void Word::Chart::PutPlotVisibleOnly ( long lcid, VARIANT_BOOL prop ) {
    HRESULT _hr = put_PlotVisibleOnly(lcid, prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3004)
inline Word::ChartAreaPtr Word::Chart::GetChartArea ( long lcid ) {
    struct ChartArea * _result = 0;
    HRESULT _hr = get_ChartArea(lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartAreaPtr(_result, false);
}

#pragma implementation_key(3005)
inline HRESULT Word::Chart::AutoFormat ( long Gallery, const _variant_t & Format ) {
    HRESULT _hr = raw_AutoFormat(Gallery, Format);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(3006)
inline VARIANT_BOOL Word::Chart::GetAutoScaling ( long lcid ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoScaling(lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3007)
inline void Word::Chart::PutAutoScaling ( long lcid, VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoScaling(lcid, prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3008)
inline HRESULT Word::Chart::SetBackgroundPicture ( _bstr_t FileName ) {
    HRESULT _hr = raw_SetBackgroundPicture(FileName);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(3009)
inline HRESULT Word::Chart::ChartWizard ( const _variant_t & Source, const _variant_t & Gallery, const _variant_t & Format, const _variant_t & PlotBy, const _variant_t & CategoryLabels, const _variant_t & SeriesLabels, const _variant_t & HasLegend, const _variant_t & Title, const _variant_t & CategoryTitle, const _variant_t & ValueTitle, const _variant_t & ExtraTitle, long lcid ) {
    HRESULT _hr = raw_ChartWizard(Source, Gallery, Format, PlotBy, CategoryLabels, SeriesLabels, HasLegend, Title, CategoryTitle, ValueTitle, ExtraTitle, lcid);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(3010)
inline HRESULT Word::Chart::CopyPicture ( enum XlPictureAppearance Appearance, enum XlCopyPictureFormat Format, enum XlPictureAppearance Size, long lcid ) {
    HRESULT _hr = raw_CopyPicture(Appearance, Format, Size, lcid);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(3011)
inline Word::DataTablePtr Word::Chart::GetDataTable ( ) {
    struct DataTable * _result = 0;
    HRESULT _hr = get_DataTable(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DataTablePtr(_result, false);
}

#pragma implementation_key(3012)
inline HRESULT Word::Chart::Paste ( const _variant_t & Type, long lcid ) {
    HRESULT _hr = raw_Paste(Type, lcid);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(3013)
inline enum Word::XlBarShape Word::Chart::GetBarShape ( ) {
    enum XlBarShape _result;
    HRESULT _hr = get_BarShape(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3014)
inline void Word::Chart::PutBarShape ( enum XlBarShape prop ) {
    HRESULT _hr = put_BarShape(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3015)
inline VARIANT_BOOL Word::Chart::Export ( _bstr_t FileName, const _variant_t & FilterName, const _variant_t & Interactive ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_Export(FileName, FilterName, Interactive, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3016)
inline HRESULT Word::Chart::SetDefaultChart ( const _variant_t & Name ) {
    HRESULT _hr = raw_SetDefaultChart(Name);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(3017)
inline HRESULT Word::Chart::ApplyChartTemplate ( _bstr_t FileName ) {
    HRESULT _hr = raw_ApplyChartTemplate(FileName);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(3018)
inline HRESULT Word::Chart::SaveChartTemplate ( _bstr_t FileName ) {
    HRESULT _hr = raw_SaveChartTemplate(FileName);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(3019)
inline Word::WallsPtr Word::Chart::GetSideWall ( ) {
    struct Walls * _result = 0;
    HRESULT _hr = get_SideWall(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return WallsPtr(_result, false);
}

#pragma implementation_key(3020)
inline Word::WallsPtr Word::Chart::GetBackWall ( ) {
    struct Walls * _result = 0;
    HRESULT _hr = get_BackWall(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return WallsPtr(_result, false);
}

#pragma implementation_key(3021)
inline _variant_t Word::Chart::GetChartStyle ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_ChartStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(3022)
inline void Word::Chart::PutChartStyle ( const _variant_t & prop ) {
    HRESULT _hr = put_ChartStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3023)
inline HRESULT Word::Chart::ClearToMatchStyle ( ) {
    HRESULT _hr = raw_ClearToMatchStyle();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(3024)
inline IDispatchPtr Word::Chart::GetPivotLayout ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_PivotLayout(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(3025)
inline VARIANT_BOOL Word::Chart::GetHasPivotFields ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HasPivotFields(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3026)
inline void Word::Chart::PutHasPivotFields ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HasPivotFields(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3027)
inline VARIANT_BOOL Word::Chart::GetShowDataLabelsOverMaximum ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowDataLabelsOverMaximum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3028)
inline void Word::Chart::PutShowDataLabelsOverMaximum ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowDataLabelsOverMaximum(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3029)
inline HRESULT Word::Chart::ApplyLayout ( long Layout, const _variant_t & ChartType ) {
    HRESULT _hr = raw_ApplyLayout(Layout, ChartType);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(3030)
inline HRESULT Word::Chart::Refresh ( ) {
    HRESULT _hr = raw_Refresh();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(3031)
inline HRESULT Word::Chart::SetElement ( enum Office::MsoChartElementType Element ) {
    HRESULT _hr = raw_SetElement(Element);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(3032)
inline Word::ChartDataPtr Word::Chart::GetChartData ( ) {
    struct ChartData * _result = 0;
    HRESULT _hr = get_ChartData(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartDataPtr(_result, false);
}

#pragma implementation_key(3033)
inline IDispatchPtr Word::Chart::GetShapes ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Shapes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(3034)
inline IDispatchPtr Word::Chart::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(3035)
inline long Word::Chart::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3036)
inline Word::ChartGroupPtr Word::Chart::GetArea3DGroup ( long lcid ) {
    struct ChartGroup * _result = 0;
    HRESULT _hr = get_Area3DGroup(lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartGroupPtr(_result, false);
}

#pragma implementation_key(3037)
inline IDispatchPtr Word::Chart::AreaGroups ( const _variant_t & Index, long lcid ) {
    IDispatch * _result = 0;
    HRESULT _hr = raw_AreaGroups(Index, lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(3038)
inline Word::ChartGroupPtr Word::Chart::GetBar3DGroup ( long lcid ) {
    struct ChartGroup * _result = 0;
    HRESULT _hr = get_Bar3DGroup(lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartGroupPtr(_result, false);
}

#pragma implementation_key(3039)
inline IDispatchPtr Word::Chart::BarGroups ( const _variant_t & Index, long lcid ) {
    IDispatch * _result = 0;
    HRESULT _hr = raw_BarGroups(Index, lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(3040)
inline Word::ChartGroupPtr Word::Chart::GetColumn3DGroup ( long lcid ) {
    struct ChartGroup * _result = 0;
    HRESULT _hr = get_Column3DGroup(lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartGroupPtr(_result, false);
}

#pragma implementation_key(3041)
inline IDispatchPtr Word::Chart::ColumnGroups ( const _variant_t & Index, long lcid ) {
    IDispatch * _result = 0;
    HRESULT _hr = raw_ColumnGroups(Index, lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(3042)
inline Word::ChartGroupPtr Word::Chart::GetLine3DGroup ( long lcid ) {
    struct ChartGroup * _result = 0;
    HRESULT _hr = get_Line3DGroup(lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartGroupPtr(_result, false);
}

#pragma implementation_key(3043)
inline IDispatchPtr Word::Chart::LineGroups ( const _variant_t & Index, long lcid ) {
    IDispatch * _result = 0;
    HRESULT _hr = raw_LineGroups(Index, lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(3044)
inline Word::ChartGroupPtr Word::Chart::GetPie3DGroup ( long lcid ) {
    struct ChartGroup * _result = 0;
    HRESULT _hr = get_Pie3DGroup(lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartGroupPtr(_result, false);
}

#pragma implementation_key(3045)
inline IDispatchPtr Word::Chart::PieGroups ( const _variant_t & Index, long lcid ) {
    IDispatch * _result = 0;
    HRESULT _hr = raw_PieGroups(Index, lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(3046)
inline IDispatchPtr Word::Chart::DoughnutGroups ( const _variant_t & Index, long lcid ) {
    IDispatch * _result = 0;
    HRESULT _hr = raw_DoughnutGroups(Index, lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(3047)
inline IDispatchPtr Word::Chart::RadarGroups ( const _variant_t & Index, long lcid ) {
    IDispatch * _result = 0;
    HRESULT _hr = raw_RadarGroups(Index, lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(3048)
inline Word::ChartGroupPtr Word::Chart::GetSurfaceGroup ( long lcid ) {
    struct ChartGroup * _result = 0;
    HRESULT _hr = get_SurfaceGroup(lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartGroupPtr(_result, false);
}

#pragma implementation_key(3049)
inline IDispatchPtr Word::Chart::XYGroups ( const _variant_t & Index, long lcid ) {
    IDispatch * _result = 0;
    HRESULT _hr = raw_XYGroups(Index, lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(3050)
inline _variant_t Word::Chart::Delete ( long lcid ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Delete(lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(3051)
inline HRESULT Word::Chart::Copy ( const _variant_t & Before, const _variant_t & After, long lcid ) {
    HRESULT _hr = raw_Copy(Before, After, lcid);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(3052)
inline _variant_t Word::Chart::Select ( const _variant_t & Replace, long lcid ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Select(Replace, lcid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(3053)
inline VARIANT_BOOL Word::Chart::GetShowReportFilterFieldButtons ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowReportFilterFieldButtons(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3054)
inline void Word::Chart::PutShowReportFilterFieldButtons ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowReportFilterFieldButtons(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3055)
inline VARIANT_BOOL Word::Chart::GetShowLegendFieldButtons ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowLegendFieldButtons(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3056)
inline void Word::Chart::PutShowLegendFieldButtons ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowLegendFieldButtons(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3057)
inline VARIANT_BOOL Word::Chart::GetShowAxisFieldButtons ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowAxisFieldButtons(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3058)
inline void Word::Chart::PutShowAxisFieldButtons ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowAxisFieldButtons(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3059)
inline VARIANT_BOOL Word::Chart::GetShowValueFieldButtons ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowValueFieldButtons(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3060)
inline void Word::Chart::PutShowValueFieldButtons ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowValueFieldButtons(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3061)
inline VARIANT_BOOL Word::Chart::GetShowAllFieldButtons ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowAllFieldButtons(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3062)
inline void Word::Chart::PutShowAllFieldButtons ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowAllFieldButtons(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface AxisTitle wrapper method implementations
//

#pragma implementation_key(3063)
inline _bstr_t Word::AxisTitle::GetCaption ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Caption(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3064)
inline void Word::AxisTitle::PutCaption ( _bstr_t prop ) {
    HRESULT _hr = put_Caption(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3065)
inline Word::ChartCharactersPtr Word::AxisTitle::GetCharacters ( const _variant_t & Start, const _variant_t & Length ) {
    struct ChartCharacters * _result = 0;
    HRESULT _hr = get_Characters(Start, Length, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartCharactersPtr(_result, false);
}

#pragma implementation_key(3066)
inline Word::ChartFontPtr Word::AxisTitle::GetFont ( ) {
    struct ChartFont * _result = 0;
    HRESULT _hr = get_Font(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFontPtr(_result, false);
}

#pragma implementation_key(3067)
inline _variant_t Word::AxisTitle::GetHorizontalAlignment ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_HorizontalAlignment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(3068)
inline void Word::AxisTitle::PutHorizontalAlignment ( const _variant_t & prop ) {
    HRESULT _hr = put_HorizontalAlignment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3069)
inline double Word::AxisTitle::GetLeft ( ) {
    double _result = 0;
    HRESULT _hr = get_Left(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3070)
inline void Word::AxisTitle::PutLeft ( double prop ) {
    HRESULT _hr = put_Left(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3071)
inline _variant_t Word::AxisTitle::GetOrientation ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Orientation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(3072)
inline void Word::AxisTitle::PutOrientation ( const _variant_t & prop ) {
    HRESULT _hr = put_Orientation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3073)
inline VARIANT_BOOL Word::AxisTitle::GetShadow ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Shadow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3074)
inline void Word::AxisTitle::PutShadow ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Shadow(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3075)
inline _bstr_t Word::AxisTitle::GetText ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Text(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3076)
inline void Word::AxisTitle::PutText ( _bstr_t prop ) {
    HRESULT _hr = put_Text(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3077)
inline double Word::AxisTitle::GetTop ( ) {
    double _result = 0;
    HRESULT _hr = get_Top(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3078)
inline void Word::AxisTitle::PutTop ( double prop ) {
    HRESULT _hr = put_Top(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3079)
inline _variant_t Word::AxisTitle::GetVerticalAlignment ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_VerticalAlignment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(3080)
inline void Word::AxisTitle::PutVerticalAlignment ( const _variant_t & prop ) {
    HRESULT _hr = put_VerticalAlignment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3081)
inline long Word::AxisTitle::GetReadingOrder ( ) {
    long _result = 0;
    HRESULT _hr = get_ReadingOrder(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3082)
inline void Word::AxisTitle::PutReadingOrder ( long prop ) {
    HRESULT _hr = put_ReadingOrder(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3083)
inline _variant_t Word::AxisTitle::GetAutoScaleFont ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_AutoScaleFont(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(3084)
inline void Word::AxisTitle::PutAutoScaleFont ( const _variant_t & prop ) {
    HRESULT _hr = put_AutoScaleFont(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3085)
inline Word::InteriorPtr Word::AxisTitle::GetInterior ( ) {
    struct Interior * _result = 0;
    HRESULT _hr = get_Interior(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InteriorPtr(_result, false);
}

#pragma implementation_key(3086)
inline Word::ChartFillFormatPtr Word::AxisTitle::GetFill ( ) {
    struct ChartFillFormat * _result = 0;
    HRESULT _hr = get_Fill(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFillFormatPtr(_result, false);
}

#pragma implementation_key(3087)
inline _variant_t Word::AxisTitle::Delete ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Delete(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(3088)
inline Word::ChartBorderPtr Word::AxisTitle::GetBorder ( ) {
    struct ChartBorder * _result = 0;
    HRESULT _hr = get_Border(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartBorderPtr(_result, false);
}

#pragma implementation_key(3089)
inline _bstr_t Word::AxisTitle::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3090)
inline IDispatchPtr Word::AxisTitle::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(3091)
inline _variant_t Word::AxisTitle::Select ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Select(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(3092)
inline VARIANT_BOOL Word::AxisTitle::GetIncludeInLayout ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IncludeInLayout(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3093)
inline void Word::AxisTitle::PutIncludeInLayout ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_IncludeInLayout(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3094)
inline enum Word::XlChartElementPosition Word::AxisTitle::GetPosition ( ) {
    enum XlChartElementPosition _result;
    HRESULT _hr = get_Position(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3095)
inline void Word::AxisTitle::PutPosition ( enum XlChartElementPosition prop ) {
    HRESULT _hr = put_Position(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3096)
inline Word::ChartFormatPtr Word::AxisTitle::GetFormat ( ) {
    struct ChartFormat * _result = 0;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFormatPtr(_result, false);
}

#pragma implementation_key(3097)
inline IDispatchPtr Word::AxisTitle::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(3098)
inline long Word::AxisTitle::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3099)
inline double Word::AxisTitle::GetHeight ( ) {
    double _result = 0;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3100)
inline double Word::AxisTitle::GetWidth ( ) {
    double _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3101)
inline _bstr_t Word::AxisTitle::GetFormula ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Formula(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3102)
inline void Word::AxisTitle::PutFormula ( _bstr_t prop ) {
    HRESULT _hr = put_Formula(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3103)
inline _bstr_t Word::AxisTitle::GetFormulaR1C1 ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_FormulaR1C1(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3104)
inline void Word::AxisTitle::PutFormulaR1C1 ( _bstr_t prop ) {
    HRESULT _hr = put_FormulaR1C1(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3105)
inline _bstr_t Word::AxisTitle::GetFormulaLocal ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_FormulaLocal(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3106)
inline void Word::AxisTitle::PutFormulaLocal ( _bstr_t prop ) {
    HRESULT _hr = put_FormulaLocal(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3107)
inline _bstr_t Word::AxisTitle::GetFormulaR1C1Local ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_FormulaR1C1Local(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3108)
inline void Word::AxisTitle::PutFormulaR1C1Local ( _bstr_t prop ) {
    HRESULT _hr = put_FormulaR1C1Local(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface DisplayUnitLabel wrapper method implementations
//

#pragma implementation_key(3109)
inline _bstr_t Word::DisplayUnitLabel::GetCaption ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Caption(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3110)
inline void Word::DisplayUnitLabel::PutCaption ( _bstr_t prop ) {
    HRESULT _hr = put_Caption(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3111)
inline Word::ChartCharactersPtr Word::DisplayUnitLabel::GetCharacters ( const _variant_t & Start, const _variant_t & Length ) {
    struct ChartCharacters * _result = 0;
    HRESULT _hr = get_Characters(Start, Length, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartCharactersPtr(_result, false);
}

#pragma implementation_key(3112)
inline Word::ChartFontPtr Word::DisplayUnitLabel::GetFont ( ) {
    struct ChartFont * _result = 0;
    HRESULT _hr = get_Font(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFontPtr(_result, false);
}

#pragma implementation_key(3113)
inline _variant_t Word::DisplayUnitLabel::GetHorizontalAlignment ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_HorizontalAlignment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(3114)
inline void Word::DisplayUnitLabel::PutHorizontalAlignment ( const _variant_t & prop ) {
    HRESULT _hr = put_HorizontalAlignment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3115)
inline double Word::DisplayUnitLabel::GetLeft ( ) {
    double _result = 0;
    HRESULT _hr = get_Left(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3116)
inline void Word::DisplayUnitLabel::PutLeft ( double prop ) {
    HRESULT _hr = put_Left(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3117)
inline _variant_t Word::DisplayUnitLabel::GetOrientation ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Orientation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(3118)
inline void Word::DisplayUnitLabel::PutOrientation ( const _variant_t & prop ) {
    HRESULT _hr = put_Orientation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3119)
inline VARIANT_BOOL Word::DisplayUnitLabel::GetShadow ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Shadow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3120)
inline void Word::DisplayUnitLabel::PutShadow ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Shadow(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3121)
inline _bstr_t Word::DisplayUnitLabel::GetText ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Text(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3122)
inline void Word::DisplayUnitLabel::PutText ( _bstr_t prop ) {
    HRESULT _hr = put_Text(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3123)
inline double Word::DisplayUnitLabel::GetTop ( ) {
    double _result = 0;
    HRESULT _hr = get_Top(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3124)
inline void Word::DisplayUnitLabel::PutTop ( double prop ) {
    HRESULT _hr = put_Top(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3125)
inline _variant_t Word::DisplayUnitLabel::GetVerticalAlignment ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_VerticalAlignment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(3126)
inline void Word::DisplayUnitLabel::PutVerticalAlignment ( const _variant_t & prop ) {
    HRESULT _hr = put_VerticalAlignment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3127)
inline long Word::DisplayUnitLabel::GetReadingOrder ( ) {
    long _result = 0;
    HRESULT _hr = get_ReadingOrder(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3128)
inline void Word::DisplayUnitLabel::PutReadingOrder ( long prop ) {
    HRESULT _hr = put_ReadingOrder(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3129)
inline _variant_t Word::DisplayUnitLabel::GetAutoScaleFont ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_AutoScaleFont(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(3130)
inline void Word::DisplayUnitLabel::PutAutoScaleFont ( const _variant_t & prop ) {
    HRESULT _hr = put_AutoScaleFont(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3131)
inline Word::InteriorPtr Word::DisplayUnitLabel::GetInterior ( ) {
    struct Interior * _result = 0;
    HRESULT _hr = get_Interior(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InteriorPtr(_result, false);
}

#pragma implementation_key(3132)
inline Word::ChartFillFormatPtr Word::DisplayUnitLabel::GetFill ( ) {
    struct ChartFillFormat * _result = 0;
    HRESULT _hr = get_Fill(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFillFormatPtr(_result, false);
}

#pragma implementation_key(3133)
inline _variant_t Word::DisplayUnitLabel::Delete ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Delete(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(3134)
inline Word::ChartBorderPtr Word::DisplayUnitLabel::GetBorder ( ) {
    struct ChartBorder * _result = 0;
    HRESULT _hr = get_Border(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartBorderPtr(_result, false);
}

#pragma implementation_key(3135)
inline _bstr_t Word::DisplayUnitLabel::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3136)
inline IDispatchPtr Word::DisplayUnitLabel::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(3137)
inline _variant_t Word::DisplayUnitLabel::Select ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Select(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(3138)
inline VARIANT_BOOL Word::DisplayUnitLabel::GetIncludeInLayout ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IncludeInLayout(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3139)
inline void Word::DisplayUnitLabel::PutIncludeInLayout ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_IncludeInLayout(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3140)
inline enum Word::XlChartElementPosition Word::DisplayUnitLabel::GetPosition ( ) {
    enum XlChartElementPosition _result;
    HRESULT _hr = get_Position(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3141)
inline void Word::DisplayUnitLabel::PutPosition ( enum XlChartElementPosition prop ) {
    HRESULT _hr = put_Position(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3142)
inline Word::ChartFormatPtr Word::DisplayUnitLabel::GetFormat ( ) {
    struct ChartFormat * _result = 0;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFormatPtr(_result, false);
}

#pragma implementation_key(3143)
inline IDispatchPtr Word::DisplayUnitLabel::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(3144)
inline long Word::DisplayUnitLabel::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3145)
inline double Word::DisplayUnitLabel::GetHeight ( ) {
    double _result = 0;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3146)
inline double Word::DisplayUnitLabel::GetWidth ( ) {
    double _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3147)
inline _bstr_t Word::DisplayUnitLabel::GetFormula ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Formula(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3148)
inline void Word::DisplayUnitLabel::PutFormula ( _bstr_t prop ) {
    HRESULT _hr = put_Formula(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3149)
inline _bstr_t Word::DisplayUnitLabel::GetFormulaR1C1 ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_FormulaR1C1(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3150)
inline void Word::DisplayUnitLabel::PutFormulaR1C1 ( _bstr_t prop ) {
    HRESULT _hr = put_FormulaR1C1(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3151)
inline _bstr_t Word::DisplayUnitLabel::GetFormulaLocal ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_FormulaLocal(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3152)
inline void Word::DisplayUnitLabel::PutFormulaLocal ( _bstr_t prop ) {
    HRESULT _hr = put_FormulaLocal(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3153)
inline _bstr_t Word::DisplayUnitLabel::GetFormulaR1C1Local ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_FormulaR1C1Local(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3154)
inline void Word::DisplayUnitLabel::PutFormulaR1C1Local ( _bstr_t prop ) {
    HRESULT _hr = put_FormulaR1C1Local(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface Axis wrapper method implementations
//

#pragma implementation_key(3155)
inline VARIANT_BOOL Word::Axis::GetAxisBetweenCategories ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AxisBetweenCategories(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3156)
inline void Word::Axis::PutAxisBetweenCategories ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AxisBetweenCategories(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3157)
inline enum Word::XlAxisGroup Word::Axis::GetAxisGroup ( ) {
    enum XlAxisGroup _result;
    HRESULT _hr = get_AxisGroup(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3158)
inline Word::AxisTitlePtr Word::Axis::GetAxisTitle ( ) {
    struct AxisTitle * _result = 0;
    HRESULT _hr = get_AxisTitle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return AxisTitlePtr(_result, false);
}

#pragma implementation_key(3159)
inline _variant_t Word::Axis::GetCategoryNames ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_CategoryNames(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(3160)
inline void Word::Axis::PutCategoryNames ( const _variant_t & prop ) {
    HRESULT _hr = put_CategoryNames(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3161)
inline enum Word::XlAxisCrosses Word::Axis::GetCrosses ( ) {
    enum XlAxisCrosses _result;
    HRESULT _hr = get_Crosses(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3162)
inline void Word::Axis::PutCrosses ( enum XlAxisCrosses prop ) {
    HRESULT _hr = put_Crosses(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3163)
inline double Word::Axis::GetCrossesAt ( ) {
    double _result = 0;
    HRESULT _hr = get_CrossesAt(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3164)
inline void Word::Axis::PutCrossesAt ( double prop ) {
    HRESULT _hr = put_CrossesAt(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3165)
inline _variant_t Word::Axis::Delete ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Delete(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(3166)
inline VARIANT_BOOL Word::Axis::GetHasMajorGridlines ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HasMajorGridlines(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3167)
inline void Word::Axis::PutHasMajorGridlines ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HasMajorGridlines(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3168)
inline VARIANT_BOOL Word::Axis::GetHasMinorGridlines ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HasMinorGridlines(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3169)
inline void Word::Axis::PutHasMinorGridlines ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HasMinorGridlines(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3170)
inline VARIANT_BOOL Word::Axis::GetHasTitle ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HasTitle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3171)
inline void Word::Axis::PutHasTitle ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HasTitle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3172)
inline Word::GridlinesPtr Word::Axis::GetMajorGridlines ( ) {
    struct Gridlines * _result = 0;
    HRESULT _hr = get_MajorGridlines(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return GridlinesPtr(_result, false);
}

#pragma implementation_key(3173)
inline enum Word::XlTickMark Word::Axis::GetMajorTickMark ( ) {
    enum XlTickMark _result;
    HRESULT _hr = get_MajorTickMark(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3174)
inline void Word::Axis::PutMajorTickMark ( enum XlTickMark prop ) {
    HRESULT _hr = put_MajorTickMark(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3175)
inline double Word::Axis::GetMajorUnit ( ) {
    double _result = 0;
    HRESULT _hr = get_MajorUnit(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3176)
inline void Word::Axis::PutMajorUnit ( double prop ) {
    HRESULT _hr = put_MajorUnit(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3177)
inline double Word::Axis::GetLogBase ( ) {
    double _result = 0;
    HRESULT _hr = get_LogBase(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3178)
inline void Word::Axis::PutLogBase ( double prop ) {
    HRESULT _hr = put_LogBase(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3179)
inline VARIANT_BOOL Word::Axis::GetTickLabelSpacingIsAuto ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_TickLabelSpacingIsAuto(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3180)
inline void Word::Axis::PutTickLabelSpacingIsAuto ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_TickLabelSpacingIsAuto(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3181)
inline VARIANT_BOOL Word::Axis::GetMajorUnitIsAuto ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MajorUnitIsAuto(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3182)
inline void Word::Axis::PutMajorUnitIsAuto ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MajorUnitIsAuto(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3183)
inline double Word::Axis::GetMaximumScale ( ) {
    double _result = 0;
    HRESULT _hr = get_MaximumScale(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3184)
inline void Word::Axis::PutMaximumScale ( double prop ) {
    HRESULT _hr = put_MaximumScale(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3185)
inline VARIANT_BOOL Word::Axis::GetMaximumScaleIsAuto ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MaximumScaleIsAuto(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3186)
inline void Word::Axis::PutMaximumScaleIsAuto ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MaximumScaleIsAuto(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3187)
inline double Word::Axis::GetMinimumScale ( ) {
    double _result = 0;
    HRESULT _hr = get_MinimumScale(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3188)
inline void Word::Axis::PutMinimumScale ( double prop ) {
    HRESULT _hr = put_MinimumScale(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3189)
inline VARIANT_BOOL Word::Axis::GetMinimumScaleIsAuto ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MinimumScaleIsAuto(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3190)
inline void Word::Axis::PutMinimumScaleIsAuto ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MinimumScaleIsAuto(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3191)
inline Word::GridlinesPtr Word::Axis::GetMinorGridlines ( ) {
    struct Gridlines * _result = 0;
    HRESULT _hr = get_MinorGridlines(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return GridlinesPtr(_result, false);
}

#pragma implementation_key(3192)
inline enum Word::XlTickMark Word::Axis::GetMinorTickMark ( ) {
    enum XlTickMark _result;
    HRESULT _hr = get_MinorTickMark(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3193)
inline void Word::Axis::PutMinorTickMark ( enum XlTickMark prop ) {
    HRESULT _hr = put_MinorTickMark(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3194)
inline double Word::Axis::GetMinorUnit ( ) {
    double _result = 0;
    HRESULT _hr = get_MinorUnit(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3195)
inline void Word::Axis::PutMinorUnit ( double prop ) {
    HRESULT _hr = put_MinorUnit(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3196)
inline VARIANT_BOOL Word::Axis::GetMinorUnitIsAuto ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MinorUnitIsAuto(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3197)
inline void Word::Axis::PutMinorUnitIsAuto ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MinorUnitIsAuto(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3198)
inline VARIANT_BOOL Word::Axis::GetReversePlotOrder ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ReversePlotOrder(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3199)
inline void Word::Axis::PutReversePlotOrder ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ReversePlotOrder(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3200)
inline enum Word::XlScaleType Word::Axis::GetScaleType ( ) {
    enum XlScaleType _result;
    HRESULT _hr = get_ScaleType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3201)
inline void Word::Axis::PutScaleType ( enum XlScaleType prop ) {
    HRESULT _hr = put_ScaleType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3202)
inline _variant_t Word::Axis::Select ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Select(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(3203)
inline enum Word::XlTickLabelPosition Word::Axis::GetTickLabelPosition ( ) {
    enum XlTickLabelPosition _result;
    HRESULT _hr = get_TickLabelPosition(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3204)
inline void Word::Axis::PutTickLabelPosition ( enum XlTickLabelPosition prop ) {
    HRESULT _hr = put_TickLabelPosition(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3205)
inline Word::TickLabelsPtr Word::Axis::GetTickLabels ( ) {
    struct TickLabels * _result = 0;
    HRESULT _hr = get_TickLabels(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TickLabelsPtr(_result, false);
}

#pragma implementation_key(3206)
inline long Word::Axis::GetTickLabelSpacing ( ) {
    long _result = 0;
    HRESULT _hr = get_TickLabelSpacing(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3207)
inline void Word::Axis::PutTickLabelSpacing ( long prop ) {
    HRESULT _hr = put_TickLabelSpacing(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3208)
inline long Word::Axis::GetTickMarkSpacing ( ) {
    long _result = 0;
    HRESULT _hr = get_TickMarkSpacing(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3209)
inline void Word::Axis::PutTickMarkSpacing ( long prop ) {
    HRESULT _hr = put_TickMarkSpacing(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3210)
inline enum Word::XlAxisType Word::Axis::GetType ( ) {
    enum XlAxisType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3211)
inline void Word::Axis::PutType ( enum XlAxisType prop ) {
    HRESULT _hr = put_Type(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3212)
inline enum Word::XlTimeUnit Word::Axis::GetBaseUnit ( ) {
    enum XlTimeUnit _result;
    HRESULT _hr = get_BaseUnit(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3213)
inline void Word::Axis::PutBaseUnit ( enum XlTimeUnit prop ) {
    HRESULT _hr = put_BaseUnit(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3214)
inline VARIANT_BOOL Word::Axis::GetBaseUnitIsAuto ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_BaseUnitIsAuto(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3215)
inline void Word::Axis::PutBaseUnitIsAuto ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_BaseUnitIsAuto(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3216)
inline enum Word::XlTimeUnit Word::Axis::GetMajorUnitScale ( ) {
    enum XlTimeUnit _result;
    HRESULT _hr = get_MajorUnitScale(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3217)
inline void Word::Axis::PutMajorUnitScale ( enum XlTimeUnit prop ) {
    HRESULT _hr = put_MajorUnitScale(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3218)
inline enum Word::XlTimeUnit Word::Axis::GetMinorUnitScale ( ) {
    enum XlTimeUnit _result;
    HRESULT _hr = get_MinorUnitScale(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3219)
inline void Word::Axis::PutMinorUnitScale ( enum XlTimeUnit prop ) {
    HRESULT _hr = put_MinorUnitScale(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3220)
inline enum Word::XlCategoryType Word::Axis::GetCategoryType ( ) {
    enum XlCategoryType _result;
    HRESULT _hr = get_CategoryType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3221)
inline void Word::Axis::PutCategoryType ( enum XlCategoryType prop ) {
    HRESULT _hr = put_CategoryType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3222)
inline double Word::Axis::GetLeft ( ) {
    double _result = 0;
    HRESULT _hr = get_Left(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3223)
inline double Word::Axis::GetTop ( ) {
    double _result = 0;
    HRESULT _hr = get_Top(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3224)
inline double Word::Axis::GetWidth ( ) {
    double _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3225)
inline double Word::Axis::GetHeight ( ) {
    double _result = 0;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3226)
inline enum Word::XlDisplayUnit Word::Axis::GetDisplayUnit ( ) {
    enum XlDisplayUnit _result;
    HRESULT _hr = get_DisplayUnit(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3227)
inline void Word::Axis::PutDisplayUnit ( enum XlDisplayUnit prop ) {
    HRESULT _hr = put_DisplayUnit(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3228)
inline double Word::Axis::GetDisplayUnitCustom ( ) {
    double _result = 0;
    HRESULT _hr = get_DisplayUnitCustom(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3229)
inline void Word::Axis::PutDisplayUnitCustom ( double prop ) {
    HRESULT _hr = put_DisplayUnitCustom(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3230)
inline VARIANT_BOOL Word::Axis::GetHasDisplayUnitLabel ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HasDisplayUnitLabel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3231)
inline void Word::Axis::PutHasDisplayUnitLabel ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HasDisplayUnitLabel(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3232)
inline Word::DisplayUnitLabelPtr Word::Axis::GetDisplayUnitLabel ( ) {
    struct DisplayUnitLabel * _result = 0;
    HRESULT _hr = get_DisplayUnitLabel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DisplayUnitLabelPtr(_result, false);
}

#pragma implementation_key(3233)
inline Word::ChartBorderPtr Word::Axis::GetBorder ( ) {
    struct ChartBorder * _result = 0;
    HRESULT _hr = get_Border(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartBorderPtr(_result, false);
}

#pragma implementation_key(3234)
inline Word::ChartFormatPtr Word::Axis::GetFormat ( ) {
    struct ChartFormat * _result = 0;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFormatPtr(_result, false);
}

#pragma implementation_key(3235)
inline IDispatchPtr Word::Axis::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(3236)
inline long Word::Axis::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3237)
inline IDispatchPtr Word::Axis::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

//
// interface Axes wrapper method implementations
//

#pragma implementation_key(3238)
inline long Word::Axes::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3239)
inline Word::AxisPtr Word::Axes::Item ( enum XlAxisType Type, enum XlAxisGroup AxisGroup ) {
    struct Axis * _result = 0;
    HRESULT _hr = raw_Item(Type, AxisGroup, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return AxisPtr(_result, false);
}

#pragma implementation_key(3240)
inline IUnknownPtr Word::Axes::_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = raw__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(3241)
inline IDispatchPtr Word::Axes::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(3242)
inline long Word::Axes::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3243)
inline Word::AxisPtr Word::Axes::_Default ( enum XlAxisType Type, enum XlAxisGroup AxisGroup ) {
    struct Axis * _result = 0;
    HRESULT _hr = raw__Default(Type, AxisGroup, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return AxisPtr(_result, false);
}

#pragma implementation_key(3244)
inline IDispatchPtr Word::Axes::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

//
// interface UndoRecord wrapper method implementations
//

#pragma implementation_key(3245)
inline Word::_ApplicationPtr Word::UndoRecord::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(3246)
inline long Word::UndoRecord::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3247)
inline IDispatchPtr Word::UndoRecord::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(3248)
inline HRESULT Word::UndoRecord::StartCustomRecord ( _bstr_t Name ) {
    HRESULT _hr = raw_StartCustomRecord(Name);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(3249)
inline HRESULT Word::UndoRecord::EndCustomRecord ( ) {
    HRESULT _hr = raw_EndCustomRecord();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(3250)
inline VARIANT_BOOL Word::UndoRecord::GetIsRecordingCustomRecord ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IsRecordingCustomRecord(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3251)
inline _bstr_t Word::UndoRecord::GetCustomRecordName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_CustomRecordName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3252)
inline long Word::UndoRecord::GetCustomRecordLevel ( ) {
    long _result = 0;
    HRESULT _hr = get_CustomRecordLevel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface ProtectedViewWindow wrapper method implementations
//

#pragma implementation_key(3253)
inline Word::_ApplicationPtr Word::ProtectedViewWindow::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(3254)
inline long Word::ProtectedViewWindow::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3255)
inline IDispatchPtr Word::ProtectedViewWindow::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(3256)
inline _bstr_t Word::ProtectedViewWindow::GetCaption ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Caption(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3257)
inline void Word::ProtectedViewWindow::PutCaption ( _bstr_t prop ) {
    HRESULT _hr = put_Caption(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3258)
inline Word::_DocumentPtr Word::ProtectedViewWindow::GetDocument ( ) {
    struct _Document * _result = 0;
    HRESULT _hr = get_Document(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _DocumentPtr(_result, false);
}

#pragma implementation_key(3259)
inline long Word::ProtectedViewWindow::GetLeft ( ) {
    long _result = 0;
    HRESULT _hr = get_Left(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3260)
inline void Word::ProtectedViewWindow::PutLeft ( long prop ) {
    HRESULT _hr = put_Left(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3261)
inline long Word::ProtectedViewWindow::GetTop ( ) {
    long _result = 0;
    HRESULT _hr = get_Top(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3262)
inline void Word::ProtectedViewWindow::PutTop ( long prop ) {
    HRESULT _hr = put_Top(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3263)
inline long Word::ProtectedViewWindow::GetWidth ( ) {
    long _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3264)
inline void Word::ProtectedViewWindow::PutWidth ( long prop ) {
    HRESULT _hr = put_Width(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3265)
inline long Word::ProtectedViewWindow::GetHeight ( ) {
    long _result = 0;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3266)
inline void Word::ProtectedViewWindow::PutHeight ( long prop ) {
    HRESULT _hr = put_Height(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3267)
inline enum Word::WdWindowState Word::ProtectedViewWindow::GetWindowState ( ) {
    enum WdWindowState _result;
    HRESULT _hr = get_WindowState(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3268)
inline void Word::ProtectedViewWindow::PutWindowState ( enum WdWindowState prop ) {
    HRESULT _hr = put_WindowState(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3269)
inline VARIANT_BOOL Word::ProtectedViewWindow::GetActive ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Active(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3270)
inline long Word::ProtectedViewWindow::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3271)
inline VARIANT_BOOL Word::ProtectedViewWindow::GetVisible ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Visible(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3272)
inline void Word::ProtectedViewWindow::PutVisible ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Visible(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3273)
inline _bstr_t Word::ProtectedViewWindow::GetSourceName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_SourceName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3274)
inline _bstr_t Word::ProtectedViewWindow::GetSourcePath ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_SourcePath(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3275)
inline HRESULT Word::ProtectedViewWindow::Activate ( ) {
    HRESULT _hr = raw_Activate();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(3276)
inline Word::_DocumentPtr Word::ProtectedViewWindow::Edit ( VARIANT * PasswordTemplate, VARIANT * WritePasswordDocument, VARIANT * WritePasswordTemplate ) {
    struct _Document * _result = 0;
    HRESULT _hr = raw_Edit(PasswordTemplate, WritePasswordDocument, WritePasswordTemplate, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _DocumentPtr(_result, false);
}

#pragma implementation_key(3277)
inline HRESULT Word::ProtectedViewWindow::Close ( ) {
    HRESULT _hr = raw_Close();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(3278)
inline HRESULT Word::ProtectedViewWindow::ToggleRibbon ( ) {
    HRESULT _hr = raw_ToggleRibbon();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface ProtectedViewWindows wrapper method implementations
//

#pragma implementation_key(3279)
inline Word::_ApplicationPtr Word::ProtectedViewWindows::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(3280)
inline long Word::ProtectedViewWindows::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3281)
inline IDispatchPtr Word::ProtectedViewWindows::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(3282)
inline IUnknownPtr Word::ProtectedViewWindows::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(3283)
inline long Word::ProtectedViewWindows::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3284)
inline Word::ProtectedViewWindowPtr Word::ProtectedViewWindows::Item ( VARIANT * Index ) {
    struct ProtectedViewWindow * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ProtectedViewWindowPtr(_result, false);
}

#pragma implementation_key(3285)
inline Word::ProtectedViewWindowPtr Word::ProtectedViewWindows::Open ( VARIANT * FileName, VARIANT * AddToRecentFiles, VARIANT * PasswordDocument, VARIANT * Visible, VARIANT * OpenAndRepair ) {
    struct ProtectedViewWindow * _result = 0;
    HRESULT _hr = raw_Open(FileName, AddToRecentFiles, PasswordDocument, Visible, OpenAndRepair, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ProtectedViewWindowPtr(_result, false);
}

//
// interface _Font wrapper method implementations
//

#pragma implementation_key(3286)
inline Word::_ApplicationPtr Word::_Font::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(3287)
inline long Word::_Font::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3288)
inline IDispatchPtr Word::_Font::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(3289)
inline Word::_FontPtr Word::_Font::GetDuplicate ( ) {
    struct _Font * _result = 0;
    HRESULT _hr = get_Duplicate(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _FontPtr(_result, false);
}

#pragma implementation_key(3290)
inline long Word::_Font::GetBold ( ) {
    long _result = 0;
    HRESULT _hr = get_Bold(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3291)
inline void Word::_Font::PutBold ( long prop ) {
    HRESULT _hr = put_Bold(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3292)
inline long Word::_Font::GetItalic ( ) {
    long _result = 0;
    HRESULT _hr = get_Italic(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3293)
inline void Word::_Font::PutItalic ( long prop ) {
    HRESULT _hr = put_Italic(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3294)
inline long Word::_Font::GetHidden ( ) {
    long _result = 0;
    HRESULT _hr = get_Hidden(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3295)
inline void Word::_Font::PutHidden ( long prop ) {
    HRESULT _hr = put_Hidden(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3296)
inline long Word::_Font::GetSmallCaps ( ) {
    long _result = 0;
    HRESULT _hr = get_SmallCaps(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3297)
inline void Word::_Font::PutSmallCaps ( long prop ) {
    HRESULT _hr = put_SmallCaps(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3298)
inline long Word::_Font::GetAllCaps ( ) {
    long _result = 0;
    HRESULT _hr = get_AllCaps(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3299)
inline void Word::_Font::PutAllCaps ( long prop ) {
    HRESULT _hr = put_AllCaps(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3300)
inline long Word::_Font::GetStrikeThrough ( ) {
    long _result = 0;
    HRESULT _hr = get_StrikeThrough(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3301)
inline void Word::_Font::PutStrikeThrough ( long prop ) {
    HRESULT _hr = put_StrikeThrough(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3302)
inline long Word::_Font::GetDoubleStrikeThrough ( ) {
    long _result = 0;
    HRESULT _hr = get_DoubleStrikeThrough(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3303)
inline void Word::_Font::PutDoubleStrikeThrough ( long prop ) {
    HRESULT _hr = put_DoubleStrikeThrough(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3304)
inline enum Word::WdColorIndex Word::_Font::GetColorIndex ( ) {
    enum WdColorIndex _result;
    HRESULT _hr = get_ColorIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3305)
inline void Word::_Font::PutColorIndex ( enum WdColorIndex prop ) {
    HRESULT _hr = put_ColorIndex(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3306)
inline long Word::_Font::GetSubscript ( ) {
    long _result = 0;
    HRESULT _hr = get_Subscript(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3307)
inline void Word::_Font::PutSubscript ( long prop ) {
    HRESULT _hr = put_Subscript(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3308)
inline long Word::_Font::GetSuperscript ( ) {
    long _result = 0;
    HRESULT _hr = get_Superscript(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3309)
inline void Word::_Font::PutSuperscript ( long prop ) {
    HRESULT _hr = put_Superscript(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3310)
inline enum Word::WdUnderline Word::_Font::GetUnderline ( ) {
    enum WdUnderline _result;
    HRESULT _hr = get_Underline(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3311)
inline void Word::_Font::PutUnderline ( enum WdUnderline prop ) {
    HRESULT _hr = put_Underline(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3312)
inline float Word::_Font::GetSize ( ) {
    float _result = 0;
    HRESULT _hr = get_Size(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3313)
inline void Word::_Font::PutSize ( float prop ) {
    HRESULT _hr = put_Size(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3314)
inline _bstr_t Word::_Font::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3315)
inline void Word::_Font::PutName ( _bstr_t prop ) {
    HRESULT _hr = put_Name(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3316)
inline long Word::_Font::GetPosition ( ) {
    long _result = 0;
    HRESULT _hr = get_Position(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3317)
inline void Word::_Font::PutPosition ( long prop ) {
    HRESULT _hr = put_Position(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3318)
inline float Word::_Font::GetSpacing ( ) {
    float _result = 0;
    HRESULT _hr = get_Spacing(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3319)
inline void Word::_Font::PutSpacing ( float prop ) {
    HRESULT _hr = put_Spacing(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3320)
inline long Word::_Font::GetScaling ( ) {
    long _result = 0;
    HRESULT _hr = get_Scaling(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3321)
inline void Word::_Font::PutScaling ( long prop ) {
    HRESULT _hr = put_Scaling(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3322)
inline long Word::_Font::GetShadow ( ) {
    long _result = 0;
    HRESULT _hr = get_Shadow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3323)
inline void Word::_Font::PutShadow ( long prop ) {
    HRESULT _hr = put_Shadow(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3324)
inline long Word::_Font::GetOutline ( ) {
    long _result = 0;
    HRESULT _hr = get_Outline(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3325)
inline void Word::_Font::PutOutline ( long prop ) {
    HRESULT _hr = put_Outline(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3326)
inline long Word::_Font::GetEmboss ( ) {
    long _result = 0;
    HRESULT _hr = get_Emboss(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3327)
inline void Word::_Font::PutEmboss ( long prop ) {
    HRESULT _hr = put_Emboss(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3328)
inline float Word::_Font::GetKerning ( ) {
    float _result = 0;
    HRESULT _hr = get_Kerning(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3329)
inline void Word::_Font::PutKerning ( float prop ) {
    HRESULT _hr = put_Kerning(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3330)
inline long Word::_Font::GetEngrave ( ) {
    long _result = 0;
    HRESULT _hr = get_Engrave(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3331)
inline void Word::_Font::PutEngrave ( long prop ) {
    HRESULT _hr = put_Engrave(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3332)
inline enum Word::WdAnimation Word::_Font::GetAnimation ( ) {
    enum WdAnimation _result;
    HRESULT _hr = get_Animation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3333)
inline void Word::_Font::PutAnimation ( enum WdAnimation prop ) {
    HRESULT _hr = put_Animation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3334)
inline Word::BordersPtr Word::_Font::GetBorders ( ) {
    struct Borders * _result = 0;
    HRESULT _hr = get_Borders(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BordersPtr(_result, false);
}

#pragma implementation_key(3335)
inline void Word::_Font::PutBorders ( struct Borders * prop ) {
    HRESULT _hr = put_Borders(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3336)
inline Word::ShadingPtr Word::_Font::GetShading ( ) {
    struct Shading * _result = 0;
    HRESULT _hr = get_Shading(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShadingPtr(_result, false);
}

#pragma implementation_key(3337)
inline enum Word::WdEmphasisMark Word::_Font::GetEmphasisMark ( ) {
    enum WdEmphasisMark _result;
    HRESULT _hr = get_EmphasisMark(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3338)
inline void Word::_Font::PutEmphasisMark ( enum WdEmphasisMark prop ) {
    HRESULT _hr = put_EmphasisMark(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3339)
inline VARIANT_BOOL Word::_Font::GetDisableCharacterSpaceGrid ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DisableCharacterSpaceGrid(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3340)
inline void Word::_Font::PutDisableCharacterSpaceGrid ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DisableCharacterSpaceGrid(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3341)
inline _bstr_t Word::_Font::GetNameFarEast ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_NameFarEast(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3342)
inline void Word::_Font::PutNameFarEast ( _bstr_t prop ) {
    HRESULT _hr = put_NameFarEast(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3343)
inline _bstr_t Word::_Font::GetNameAscii ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_NameAscii(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3344)
inline void Word::_Font::PutNameAscii ( _bstr_t prop ) {
    HRESULT _hr = put_NameAscii(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3345)
inline _bstr_t Word::_Font::GetNameOther ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_NameOther(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3346)
inline void Word::_Font::PutNameOther ( _bstr_t prop ) {
    HRESULT _hr = put_NameOther(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3347)
inline HRESULT Word::_Font::Grow ( ) {
    HRESULT _hr = raw_Grow();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(3348)
inline HRESULT Word::_Font::Shrink ( ) {
    HRESULT _hr = raw_Shrink();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(3349)
inline HRESULT Word::_Font::Reset ( ) {
    HRESULT _hr = raw_Reset();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(3350)
inline HRESULT Word::_Font::SetAsTemplateDefault ( ) {
    HRESULT _hr = raw_SetAsTemplateDefault();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(3351)
inline enum Word::WdColor Word::_Font::GetColor ( ) {
    enum WdColor _result;
    HRESULT _hr = get_Color(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3352)
inline void Word::_Font::PutColor ( enum WdColor prop ) {
    HRESULT _hr = put_Color(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3353)
inline long Word::_Font::GetBoldBi ( ) {
    long _result = 0;
    HRESULT _hr = get_BoldBi(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3354)
inline void Word::_Font::PutBoldBi ( long prop ) {
    HRESULT _hr = put_BoldBi(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3355)
inline long Word::_Font::GetItalicBi ( ) {
    long _result = 0;
    HRESULT _hr = get_ItalicBi(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3356)
inline void Word::_Font::PutItalicBi ( long prop ) {
    HRESULT _hr = put_ItalicBi(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3357)
inline float Word::_Font::GetSizeBi ( ) {
    float _result = 0;
    HRESULT _hr = get_SizeBi(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3358)
inline void Word::_Font::PutSizeBi ( float prop ) {
    HRESULT _hr = put_SizeBi(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3359)
inline _bstr_t Word::_Font::GetNameBi ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_NameBi(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3360)
inline void Word::_Font::PutNameBi ( _bstr_t prop ) {
    HRESULT _hr = put_NameBi(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3361)
inline enum Word::WdColorIndex Word::_Font::GetColorIndexBi ( ) {
    enum WdColorIndex _result;
    HRESULT _hr = get_ColorIndexBi(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3362)
inline void Word::_Font::PutColorIndexBi ( enum WdColorIndex prop ) {
    HRESULT _hr = put_ColorIndexBi(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3363)
inline enum Word::WdColor Word::_Font::GetDiacriticColor ( ) {
    enum WdColor _result;
    HRESULT _hr = get_DiacriticColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3364)
inline void Word::_Font::PutDiacriticColor ( enum WdColor prop ) {
    HRESULT _hr = put_DiacriticColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3365)
inline enum Word::WdColor Word::_Font::GetUnderlineColor ( ) {
    enum WdColor _result;
    HRESULT _hr = get_UnderlineColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3366)
inline void Word::_Font::PutUnderlineColor ( enum WdColor prop ) {
    HRESULT _hr = put_UnderlineColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3367)
inline Word::GlowFormatPtr Word::_Font::GetGlow ( ) {
    struct GlowFormat * _result = 0;
    HRESULT _hr = get_Glow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return GlowFormatPtr(_result, false);
}

#pragma implementation_key(3368)
inline void Word::_Font::PutGlow ( struct GlowFormat * prop ) {
    HRESULT _hr = put_Glow(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3369)
inline Word::ReflectionFormatPtr Word::_Font::GetReflection ( ) {
    struct ReflectionFormat * _result = 0;
    HRESULT _hr = get_Reflection(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ReflectionFormatPtr(_result, false);
}

#pragma implementation_key(3370)
inline void Word::_Font::PutReflection ( struct ReflectionFormat * prop ) {
    HRESULT _hr = put_Reflection(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3371)
inline Word::ShadowFormatPtr Word::_Font::GetTextShadow ( ) {
    struct ShadowFormat * _result = 0;
    HRESULT _hr = get_TextShadow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShadowFormatPtr(_result, false);
}

#pragma implementation_key(3372)
inline void Word::_Font::PutTextShadow ( struct ShadowFormat * prop ) {
    HRESULT _hr = put_TextShadow(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3373)
inline Word::FillFormatPtr Word::_Font::GetFill ( ) {
    struct FillFormat * _result = 0;
    HRESULT _hr = get_Fill(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FillFormatPtr(_result, false);
}

#pragma implementation_key(3374)
inline void Word::_Font::PutFill ( struct FillFormat * prop ) {
    HRESULT _hr = put_Fill(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3375)
inline Word::LineFormatPtr Word::_Font::GetLine ( ) {
    struct LineFormat * _result = 0;
    HRESULT _hr = get_Line(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return LineFormatPtr(_result, false);
}

#pragma implementation_key(3376)
inline void Word::_Font::PutLine ( struct LineFormat * prop ) {
    HRESULT _hr = put_Line(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3377)
inline Word::ThreeDFormatPtr Word::_Font::GetThreeD ( ) {
    struct ThreeDFormat * _result = 0;
    HRESULT _hr = get_ThreeD(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ThreeDFormatPtr(_result, false);
}

#pragma implementation_key(3378)
inline void Word::_Font::PutThreeD ( struct ThreeDFormat * prop ) {
    HRESULT _hr = put_ThreeD(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3379)
inline Word::ColorFormatPtr Word::_Font::GetTextColor ( ) {
    struct ColorFormat * _result = 0;
    HRESULT _hr = get_TextColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ColorFormatPtr(_result, false);
}

#pragma implementation_key(3380)
inline enum Word::WdLigatures Word::_Font::GetLigatures ( ) {
    enum WdLigatures _result;
    HRESULT _hr = get_Ligatures(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3381)
inline void Word::_Font::PutLigatures ( enum WdLigatures prop ) {
    HRESULT _hr = put_Ligatures(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3382)
inline enum Word::WdNumberForm Word::_Font::GetNumberForm ( ) {
    enum WdNumberForm _result;
    HRESULT _hr = get_NumberForm(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3383)
inline void Word::_Font::PutNumberForm ( enum WdNumberForm prop ) {
    HRESULT _hr = put_NumberForm(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3384)
inline enum Word::WdNumberSpacing Word::_Font::GetNumberSpacing ( ) {
    enum WdNumberSpacing _result;
    HRESULT _hr = get_NumberSpacing(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3385)
inline void Word::_Font::PutNumberSpacing ( enum WdNumberSpacing prop ) {
    HRESULT _hr = put_NumberSpacing(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3386)
inline long Word::_Font::GetContextualAlternates ( ) {
    long _result = 0;
    HRESULT _hr = get_ContextualAlternates(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3387)
inline void Word::_Font::PutContextualAlternates ( long prop ) {
    HRESULT _hr = put_ContextualAlternates(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3388)
inline enum Word::WdStylisticSet Word::_Font::GetStylisticSet ( ) {
    enum WdStylisticSet _result;
    HRESULT _hr = get_StylisticSet(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3389)
inline void Word::_Font::PutStylisticSet ( enum WdStylisticSet prop ) {
    HRESULT _hr = put_StylisticSet(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface Point wrapper method implementations
//

#pragma implementation_key(3390)
inline IDispatchPtr Word::Point::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(3391)
inline Word::ChartBorderPtr Word::Point::GetBorder ( ) {
    struct ChartBorder * _result = 0;
    HRESULT _hr = get_Border(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartBorderPtr(_result, false);
}

#pragma implementation_key(3392)
inline _variant_t Word::Point::ClearFormats ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_ClearFormats(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(3393)
inline _variant_t Word::Point::Copy ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Copy(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(3394)
inline Word::DataLabelPtr Word::Point::GetDataLabel ( ) {
    struct DataLabel * _result = 0;
    HRESULT _hr = get_DataLabel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DataLabelPtr(_result, false);
}

#pragma implementation_key(3395)
inline _variant_t Word::Point::Delete ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Delete(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(3396)
inline long Word::Point::GetExplosion ( ) {
    long _result = 0;
    HRESULT _hr = get_Explosion(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3397)
inline void Word::Point::PutExplosion ( long prop ) {
    HRESULT _hr = put_Explosion(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3398)
inline VARIANT_BOOL Word::Point::GetHasDataLabel ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HasDataLabel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3399)
inline void Word::Point::PutHasDataLabel ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HasDataLabel(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3400)
inline Word::InteriorPtr Word::Point::GetInterior ( ) {
    struct Interior * _result = 0;
    HRESULT _hr = get_Interior(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InteriorPtr(_result, false);
}

#pragma implementation_key(3401)
inline VARIANT_BOOL Word::Point::GetInvertIfNegative ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_InvertIfNegative(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3402)
inline void Word::Point::PutInvertIfNegative ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_InvertIfNegative(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3403)
inline long Word::Point::GetMarkerBackgroundColor ( ) {
    long _result = 0;
    HRESULT _hr = get_MarkerBackgroundColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3404)
inline void Word::Point::PutMarkerBackgroundColor ( long prop ) {
    HRESULT _hr = put_MarkerBackgroundColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3405)
inline enum Word::XlColorIndex Word::Point::GetMarkerBackgroundColorIndex ( ) {
    enum XlColorIndex _result;
    HRESULT _hr = get_MarkerBackgroundColorIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3406)
inline void Word::Point::PutMarkerBackgroundColorIndex ( enum XlColorIndex prop ) {
    HRESULT _hr = put_MarkerBackgroundColorIndex(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3407)
inline long Word::Point::GetMarkerForegroundColor ( ) {
    long _result = 0;
    HRESULT _hr = get_MarkerForegroundColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3408)
inline void Word::Point::PutMarkerForegroundColor ( long prop ) {
    HRESULT _hr = put_MarkerForegroundColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3409)
inline enum Word::XlColorIndex Word::Point::GetMarkerForegroundColorIndex ( ) {
    enum XlColorIndex _result;
    HRESULT _hr = get_MarkerForegroundColorIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3410)
inline void Word::Point::PutMarkerForegroundColorIndex ( enum XlColorIndex prop ) {
    HRESULT _hr = put_MarkerForegroundColorIndex(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3411)
inline long Word::Point::GetMarkerSize ( ) {
    long _result = 0;
    HRESULT _hr = get_MarkerSize(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3412)
inline void Word::Point::PutMarkerSize ( long prop ) {
    HRESULT _hr = put_MarkerSize(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3413)
inline enum Word::XlMarkerStyle Word::Point::GetMarkerStyle ( ) {
    enum XlMarkerStyle _result;
    HRESULT _hr = get_MarkerStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3414)
inline void Word::Point::PutMarkerStyle ( enum XlMarkerStyle prop ) {
    HRESULT _hr = put_MarkerStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3415)
inline _variant_t Word::Point::Paste ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Paste(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(3416)
inline enum Word::XlChartPictureType Word::Point::GetPictureType ( ) {
    enum XlChartPictureType _result;
    HRESULT _hr = get_PictureType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3417)
inline void Word::Point::PutPictureType ( enum XlChartPictureType prop ) {
    HRESULT _hr = put_PictureType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3418)
inline double Word::Point::GetPictureUnit ( ) {
    double _result = 0;
    HRESULT _hr = get_PictureUnit(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3419)
inline void Word::Point::PutPictureUnit ( double prop ) {
    HRESULT _hr = put_PictureUnit(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3420)
inline _variant_t Word::Point::Select ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Select(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(3421)
inline VARIANT_BOOL Word::Point::GetApplyPictToSides ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ApplyPictToSides(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3422)
inline void Word::Point::PutApplyPictToSides ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ApplyPictToSides(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3423)
inline VARIANT_BOOL Word::Point::GetApplyPictToFront ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ApplyPictToFront(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3424)
inline void Word::Point::PutApplyPictToFront ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ApplyPictToFront(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3425)
inline VARIANT_BOOL Word::Point::GetApplyPictToEnd ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ApplyPictToEnd(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3426)
inline void Word::Point::PutApplyPictToEnd ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ApplyPictToEnd(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3427)
inline VARIANT_BOOL Word::Point::GetShadow ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Shadow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3428)
inline void Word::Point::PutShadow ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Shadow(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3429)
inline VARIANT_BOOL Word::Point::GetSecondaryPlot ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SecondaryPlot(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3430)
inline void Word::Point::PutSecondaryPlot ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_SecondaryPlot(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3431)
inline Word::ChartFillFormatPtr Word::Point::GetFill ( ) {
    struct ChartFillFormat * _result = 0;
    HRESULT _hr = get_Fill(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFillFormatPtr(_result, false);
}

#pragma implementation_key(3432)
inline _variant_t Word::Point::ApplyDataLabels ( enum XlDataLabelsType Type, const _variant_t & LegendKey, const _variant_t & AutoText, const _variant_t & HasLeaderLines, const _variant_t & ShowSeriesName, const _variant_t & ShowCategoryName, const _variant_t & ShowValue, const _variant_t & ShowPercentage, const _variant_t & ShowBubbleSize, const _variant_t & Separator ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_ApplyDataLabels(Type, LegendKey, AutoText, HasLeaderLines, ShowSeriesName, ShowCategoryName, ShowValue, ShowPercentage, ShowBubbleSize, Separator, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(3433)
inline VARIANT_BOOL Word::Point::GetHas3DEffect ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Has3DEffect(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3434)
inline void Word::Point::PutHas3DEffect ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Has3DEffect(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3435)
inline Word::ChartFormatPtr Word::Point::GetFormat ( ) {
    struct ChartFormat * _result = 0;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartFormatPtr(_result, false);
}

#pragma implementation_key(3436)
inline IDispatchPtr Word::Point::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(3437)
inline long Word::Point::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3438)
inline double Word::Point::GetPictureUnit2 ( ) {
    double _result = 0;
    HRESULT _hr = get_PictureUnit2(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3439)
inline void Word::Point::PutPictureUnit2 ( double prop ) {
    HRESULT _hr = put_PictureUnit2(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3440)
inline double Word::Point::GetHeight ( ) {
    double _result = 0;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3441)
inline double Word::Point::GetWidth ( ) {
    double _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3442)
inline double Word::Point::GetTop ( ) {
    double _result = 0;
    HRESULT _hr = get_Top(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3443)
inline double Word::Point::GetLeft ( ) {
    double _result = 0;
    HRESULT _hr = get_Left(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3444)
inline _bstr_t Word::Point::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3445)
inline double Word::Point::PieSliceLocation ( enum XlPieSliceLocation loc, enum XlPieSliceIndex Index ) {
    double _result = 0;
    HRESULT _hr = raw_PieSliceLocation(loc, Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface Points wrapper method implementations
//

#pragma implementation_key(3446)
inline IDispatchPtr Word::Points::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(3447)
inline long Word::Points::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3448)
inline Word::PointPtr Word::Points::Item ( long Index ) {
    struct Point * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return PointPtr(_result, false);
}

#pragma implementation_key(3449)
inline IUnknownPtr Word::Points::_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = raw__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

#pragma implementation_key(3450)
inline IDispatchPtr Word::Points::GetApplication ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(3451)
inline long Word::Points::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3452)
inline Word::PointPtr Word::Points::_Default ( long Index ) {
    struct Point * _result = 0;
    HRESULT _hr = raw__Default(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return PointPtr(_result, false);
}

//
// interface Options wrapper method implementations
//

#pragma implementation_key(3453)
inline Word::_ApplicationPtr Word::Options::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(3454)
inline long Word::Options::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3455)
inline IDispatchPtr Word::Options::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(3456)
inline VARIANT_BOOL Word::Options::GetAllowAccentedUppercase ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AllowAccentedUppercase(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3457)
inline void Word::Options::PutAllowAccentedUppercase ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AllowAccentedUppercase(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3458)
inline VARIANT_BOOL Word::Options::GetWPHelp ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_WPHelp(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3459)
inline void Word::Options::PutWPHelp ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_WPHelp(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3460)
inline VARIANT_BOOL Word::Options::GetWPDocNavKeys ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_WPDocNavKeys(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3461)
inline void Word::Options::PutWPDocNavKeys ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_WPDocNavKeys(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3462)
inline VARIANT_BOOL Word::Options::GetPagination ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Pagination(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3463)
inline void Word::Options::PutPagination ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Pagination(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3464)
inline VARIANT_BOOL Word::Options::GetBlueScreen ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_BlueScreen(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3465)
inline void Word::Options::PutBlueScreen ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_BlueScreen(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3466)
inline VARIANT_BOOL Word::Options::GetEnableSound ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_EnableSound(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3467)
inline void Word::Options::PutEnableSound ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_EnableSound(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3468)
inline VARIANT_BOOL Word::Options::GetConfirmConversions ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ConfirmConversions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3469)
inline void Word::Options::PutConfirmConversions ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ConfirmConversions(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3470)
inline VARIANT_BOOL Word::Options::GetUpdateLinksAtOpen ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_UpdateLinksAtOpen(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3471)
inline void Word::Options::PutUpdateLinksAtOpen ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_UpdateLinksAtOpen(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3472)
inline VARIANT_BOOL Word::Options::GetSendMailAttach ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SendMailAttach(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3473)
inline void Word::Options::PutSendMailAttach ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_SendMailAttach(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3474)
inline enum Word::WdMeasurementUnits Word::Options::GetMeasurementUnit ( ) {
    enum WdMeasurementUnits _result;
    HRESULT _hr = get_MeasurementUnit(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3475)
inline void Word::Options::PutMeasurementUnit ( enum WdMeasurementUnits prop ) {
    HRESULT _hr = put_MeasurementUnit(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3476)
inline long Word::Options::GetButtonFieldClicks ( ) {
    long _result = 0;
    HRESULT _hr = get_ButtonFieldClicks(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3477)
inline void Word::Options::PutButtonFieldClicks ( long prop ) {
    HRESULT _hr = put_ButtonFieldClicks(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3478)
inline VARIANT_BOOL Word::Options::GetShortMenuNames ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShortMenuNames(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3479)
inline void Word::Options::PutShortMenuNames ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShortMenuNames(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3480)
inline VARIANT_BOOL Word::Options::GetRTFInClipboard ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_RTFInClipboard(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3481)
inline void Word::Options::PutRTFInClipboard ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_RTFInClipboard(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3482)
inline VARIANT_BOOL Word::Options::GetUpdateFieldsAtPrint ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_UpdateFieldsAtPrint(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3483)
inline void Word::Options::PutUpdateFieldsAtPrint ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_UpdateFieldsAtPrint(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3484)
inline VARIANT_BOOL Word::Options::GetPrintProperties ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PrintProperties(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3485)
inline void Word::Options::PutPrintProperties ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PrintProperties(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3486)
inline VARIANT_BOOL Word::Options::GetPrintFieldCodes ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PrintFieldCodes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3487)
inline void Word::Options::PutPrintFieldCodes ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PrintFieldCodes(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3488)
inline VARIANT_BOOL Word::Options::GetPrintComments ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PrintComments(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3489)
inline void Word::Options::PutPrintComments ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PrintComments(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3490)
inline VARIANT_BOOL Word::Options::GetPrintHiddenText ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PrintHiddenText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3491)
inline void Word::Options::PutPrintHiddenText ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PrintHiddenText(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3492)
inline VARIANT_BOOL Word::Options::GetEnvelopeFeederInstalled ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_EnvelopeFeederInstalled(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3493)
inline VARIANT_BOOL Word::Options::GetUpdateLinksAtPrint ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_UpdateLinksAtPrint(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3494)
inline void Word::Options::PutUpdateLinksAtPrint ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_UpdateLinksAtPrint(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3495)
inline VARIANT_BOOL Word::Options::GetPrintBackground ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PrintBackground(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3496)
inline void Word::Options::PutPrintBackground ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PrintBackground(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3497)
inline VARIANT_BOOL Word::Options::GetPrintDrawingObjects ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PrintDrawingObjects(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3498)
inline void Word::Options::PutPrintDrawingObjects ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PrintDrawingObjects(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3499)
inline _bstr_t Word::Options::GetDefaultTray ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_DefaultTray(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3500)
inline void Word::Options::PutDefaultTray ( _bstr_t prop ) {
    HRESULT _hr = put_DefaultTray(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3501)
inline long Word::Options::GetDefaultTrayID ( ) {
    long _result = 0;
    HRESULT _hr = get_DefaultTrayID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3502)
inline void Word::Options::PutDefaultTrayID ( long prop ) {
    HRESULT _hr = put_DefaultTrayID(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3503)
inline VARIANT_BOOL Word::Options::GetCreateBackup ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_CreateBackup(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3504)
inline void Word::Options::PutCreateBackup ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_CreateBackup(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3505)
inline VARIANT_BOOL Word::Options::GetAllowFastSave ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AllowFastSave(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3506)
inline void Word::Options::PutAllowFastSave ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AllowFastSave(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3507)
inline VARIANT_BOOL Word::Options::GetSavePropertiesPrompt ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SavePropertiesPrompt(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3508)
inline void Word::Options::PutSavePropertiesPrompt ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_SavePropertiesPrompt(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3509)
inline VARIANT_BOOL Word::Options::GetSaveNormalPrompt ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SaveNormalPrompt(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3510)
inline void Word::Options::PutSaveNormalPrompt ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_SaveNormalPrompt(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3511)
inline long Word::Options::GetSaveInterval ( ) {
    long _result = 0;
    HRESULT _hr = get_SaveInterval(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3512)
inline void Word::Options::PutSaveInterval ( long prop ) {
    HRESULT _hr = put_SaveInterval(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3513)
inline VARIANT_BOOL Word::Options::GetBackgroundSave ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_BackgroundSave(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3514)
inline void Word::Options::PutBackgroundSave ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_BackgroundSave(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3515)
inline enum Word::WdInsertedTextMark Word::Options::GetInsertedTextMark ( ) {
    enum WdInsertedTextMark _result;
    HRESULT _hr = get_InsertedTextMark(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3516)
inline void Word::Options::PutInsertedTextMark ( enum WdInsertedTextMark prop ) {
    HRESULT _hr = put_InsertedTextMark(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3517)
inline enum Word::WdDeletedTextMark Word::Options::GetDeletedTextMark ( ) {
    enum WdDeletedTextMark _result;
    HRESULT _hr = get_DeletedTextMark(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3518)
inline void Word::Options::PutDeletedTextMark ( enum WdDeletedTextMark prop ) {
    HRESULT _hr = put_DeletedTextMark(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3519)
inline enum Word::WdRevisedLinesMark Word::Options::GetRevisedLinesMark ( ) {
    enum WdRevisedLinesMark _result;
    HRESULT _hr = get_RevisedLinesMark(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3520)
inline void Word::Options::PutRevisedLinesMark ( enum WdRevisedLinesMark prop ) {
    HRESULT _hr = put_RevisedLinesMark(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3521)
inline enum Word::WdColorIndex Word::Options::GetInsertedTextColor ( ) {
    enum WdColorIndex _result;
    HRESULT _hr = get_InsertedTextColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3522)
inline void Word::Options::PutInsertedTextColor ( enum WdColorIndex prop ) {
    HRESULT _hr = put_InsertedTextColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3523)
inline enum Word::WdColorIndex Word::Options::GetDeletedTextColor ( ) {
    enum WdColorIndex _result;
    HRESULT _hr = get_DeletedTextColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3524)
inline void Word::Options::PutDeletedTextColor ( enum WdColorIndex prop ) {
    HRESULT _hr = put_DeletedTextColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3525)
inline enum Word::WdColorIndex Word::Options::GetRevisedLinesColor ( ) {
    enum WdColorIndex _result;
    HRESULT _hr = get_RevisedLinesColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3526)
inline void Word::Options::PutRevisedLinesColor ( enum WdColorIndex prop ) {
    HRESULT _hr = put_RevisedLinesColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3527)
inline _bstr_t Word::Options::GetDefaultFilePath ( enum WdDefaultFilePath Path ) {
    BSTR _result = 0;
    HRESULT _hr = get_DefaultFilePath(Path, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3528)
inline void Word::Options::PutDefaultFilePath ( enum WdDefaultFilePath Path, _bstr_t prop ) {
    HRESULT _hr = put_DefaultFilePath(Path, prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3529)
inline VARIANT_BOOL Word::Options::GetOvertype ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Overtype(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3530)
inline void Word::Options::PutOvertype ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Overtype(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3531)
inline VARIANT_BOOL Word::Options::GetReplaceSelection ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ReplaceSelection(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3532)
inline void Word::Options::PutReplaceSelection ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ReplaceSelection(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3533)
inline VARIANT_BOOL Word::Options::GetAllowDragAndDrop ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AllowDragAndDrop(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3534)
inline void Word::Options::PutAllowDragAndDrop ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AllowDragAndDrop(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3535)
inline VARIANT_BOOL Word::Options::GetAutoWordSelection ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoWordSelection(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3536)
inline void Word::Options::PutAutoWordSelection ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoWordSelection(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3537)
inline VARIANT_BOOL Word::Options::GetINSKeyForPaste ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_INSKeyForPaste(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3538)
inline void Word::Options::PutINSKeyForPaste ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_INSKeyForPaste(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3539)
inline VARIANT_BOOL Word::Options::GetSmartCutPaste ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SmartCutPaste(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3540)
inline void Word::Options::PutSmartCutPaste ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_SmartCutPaste(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3541)
inline VARIANT_BOOL Word::Options::GetTabIndentKey ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_TabIndentKey(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3542)
inline void Word::Options::PutTabIndentKey ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_TabIndentKey(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3543)
inline _bstr_t Word::Options::GetPictureEditor ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_PictureEditor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3544)
inline void Word::Options::PutPictureEditor ( _bstr_t prop ) {
    HRESULT _hr = put_PictureEditor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3545)
inline VARIANT_BOOL Word::Options::GetAnimateScreenMovements ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AnimateScreenMovements(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3546)
inline void Word::Options::PutAnimateScreenMovements ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AnimateScreenMovements(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3547)
inline VARIANT_BOOL Word::Options::GetVirusProtection ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_VirusProtection(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3548)
inline void Word::Options::PutVirusProtection ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_VirusProtection(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3549)
inline enum Word::WdRevisedPropertiesMark Word::Options::GetRevisedPropertiesMark ( ) {
    enum WdRevisedPropertiesMark _result;
    HRESULT _hr = get_RevisedPropertiesMark(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3550)
inline void Word::Options::PutRevisedPropertiesMark ( enum WdRevisedPropertiesMark prop ) {
    HRESULT _hr = put_RevisedPropertiesMark(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3551)
inline enum Word::WdColorIndex Word::Options::GetRevisedPropertiesColor ( ) {
    enum WdColorIndex _result;
    HRESULT _hr = get_RevisedPropertiesColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3552)
inline void Word::Options::PutRevisedPropertiesColor ( enum WdColorIndex prop ) {
    HRESULT _hr = put_RevisedPropertiesColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3553)
inline VARIANT_BOOL Word::Options::GetSnapToGrid ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SnapToGrid(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3554)
inline void Word::Options::PutSnapToGrid ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_SnapToGrid(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3555)
inline VARIANT_BOOL Word::Options::GetSnapToShapes ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SnapToShapes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3556)
inline void Word::Options::PutSnapToShapes ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_SnapToShapes(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3557)
inline float Word::Options::GetGridDistanceHorizontal ( ) {
    float _result = 0;
    HRESULT _hr = get_GridDistanceHorizontal(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3558)
inline void Word::Options::PutGridDistanceHorizontal ( float prop ) {
    HRESULT _hr = put_GridDistanceHorizontal(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3559)
inline float Word::Options::GetGridDistanceVertical ( ) {
    float _result = 0;
    HRESULT _hr = get_GridDistanceVertical(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3560)
inline void Word::Options::PutGridDistanceVertical ( float prop ) {
    HRESULT _hr = put_GridDistanceVertical(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3561)
inline float Word::Options::GetGridOriginHorizontal ( ) {
    float _result = 0;
    HRESULT _hr = get_GridOriginHorizontal(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3562)
inline void Word::Options::PutGridOriginHorizontal ( float prop ) {
    HRESULT _hr = put_GridOriginHorizontal(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3563)
inline float Word::Options::GetGridOriginVertical ( ) {
    float _result = 0;
    HRESULT _hr = get_GridOriginVertical(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3564)
inline void Word::Options::PutGridOriginVertical ( float prop ) {
    HRESULT _hr = put_GridOriginVertical(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3565)
inline VARIANT_BOOL Word::Options::GetInlineConversion ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_InlineConversion(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3566)
inline void Word::Options::PutInlineConversion ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_InlineConversion(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3567)
inline VARIANT_BOOL Word::Options::GetIMEAutomaticControl ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IMEAutomaticControl(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3568)
inline void Word::Options::PutIMEAutomaticControl ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_IMEAutomaticControl(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3569)
inline VARIANT_BOOL Word::Options::GetAutoFormatApplyHeadings ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatApplyHeadings(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3570)
inline void Word::Options::PutAutoFormatApplyHeadings ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatApplyHeadings(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3571)
inline VARIANT_BOOL Word::Options::GetAutoFormatApplyLists ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatApplyLists(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3572)
inline void Word::Options::PutAutoFormatApplyLists ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatApplyLists(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3573)
inline VARIANT_BOOL Word::Options::GetAutoFormatApplyBulletedLists ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatApplyBulletedLists(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3574)
inline void Word::Options::PutAutoFormatApplyBulletedLists ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatApplyBulletedLists(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3575)
inline VARIANT_BOOL Word::Options::GetAutoFormatApplyOtherParas ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatApplyOtherParas(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3576)
inline void Word::Options::PutAutoFormatApplyOtherParas ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatApplyOtherParas(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3577)
inline VARIANT_BOOL Word::Options::GetAutoFormatReplaceQuotes ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatReplaceQuotes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3578)
inline void Word::Options::PutAutoFormatReplaceQuotes ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatReplaceQuotes(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3579)
inline VARIANT_BOOL Word::Options::GetAutoFormatReplaceSymbols ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatReplaceSymbols(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3580)
inline void Word::Options::PutAutoFormatReplaceSymbols ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatReplaceSymbols(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3581)
inline VARIANT_BOOL Word::Options::GetAutoFormatReplaceOrdinals ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatReplaceOrdinals(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3582)
inline void Word::Options::PutAutoFormatReplaceOrdinals ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatReplaceOrdinals(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3583)
inline VARIANT_BOOL Word::Options::GetAutoFormatReplaceFractions ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatReplaceFractions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3584)
inline void Word::Options::PutAutoFormatReplaceFractions ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatReplaceFractions(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3585)
inline VARIANT_BOOL Word::Options::GetAutoFormatReplacePlainTextEmphasis ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatReplacePlainTextEmphasis(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3586)
inline void Word::Options::PutAutoFormatReplacePlainTextEmphasis ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatReplacePlainTextEmphasis(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3587)
inline VARIANT_BOOL Word::Options::GetAutoFormatPreserveStyles ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatPreserveStyles(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3588)
inline void Word::Options::PutAutoFormatPreserveStyles ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatPreserveStyles(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3589)
inline VARIANT_BOOL Word::Options::GetAutoFormatAsYouTypeApplyHeadings ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeApplyHeadings(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3590)
inline void Word::Options::PutAutoFormatAsYouTypeApplyHeadings ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeApplyHeadings(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3591)
inline VARIANT_BOOL Word::Options::GetAutoFormatAsYouTypeApplyBorders ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeApplyBorders(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3592)
inline void Word::Options::PutAutoFormatAsYouTypeApplyBorders ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeApplyBorders(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3593)
inline VARIANT_BOOL Word::Options::GetAutoFormatAsYouTypeApplyBulletedLists ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeApplyBulletedLists(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3594)
inline void Word::Options::PutAutoFormatAsYouTypeApplyBulletedLists ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeApplyBulletedLists(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3595)
inline VARIANT_BOOL Word::Options::GetAutoFormatAsYouTypeApplyNumberedLists ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeApplyNumberedLists(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3596)
inline void Word::Options::PutAutoFormatAsYouTypeApplyNumberedLists ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeApplyNumberedLists(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3597)
inline VARIANT_BOOL Word::Options::GetAutoFormatAsYouTypeReplaceQuotes ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeReplaceQuotes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3598)
inline void Word::Options::PutAutoFormatAsYouTypeReplaceQuotes ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeReplaceQuotes(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3599)
inline VARIANT_BOOL Word::Options::GetAutoFormatAsYouTypeReplaceSymbols ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeReplaceSymbols(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3600)
inline void Word::Options::PutAutoFormatAsYouTypeReplaceSymbols ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeReplaceSymbols(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3601)
inline VARIANT_BOOL Word::Options::GetAutoFormatAsYouTypeReplaceOrdinals ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeReplaceOrdinals(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3602)
inline void Word::Options::PutAutoFormatAsYouTypeReplaceOrdinals ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeReplaceOrdinals(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3603)
inline VARIANT_BOOL Word::Options::GetAutoFormatAsYouTypeReplaceFractions ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeReplaceFractions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3604)
inline void Word::Options::PutAutoFormatAsYouTypeReplaceFractions ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeReplaceFractions(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3605)
inline VARIANT_BOOL Word::Options::GetAutoFormatAsYouTypeReplacePlainTextEmphasis ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeReplacePlainTextEmphasis(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3606)
inline void Word::Options::PutAutoFormatAsYouTypeReplacePlainTextEmphasis ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeReplacePlainTextEmphasis(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3607)
inline VARIANT_BOOL Word::Options::GetAutoFormatAsYouTypeFormatListItemBeginning ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeFormatListItemBeginning(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3608)
inline void Word::Options::PutAutoFormatAsYouTypeFormatListItemBeginning ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeFormatListItemBeginning(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3609)
inline VARIANT_BOOL Word::Options::GetAutoFormatAsYouTypeDefineStyles ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeDefineStyles(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3610)
inline void Word::Options::PutAutoFormatAsYouTypeDefineStyles ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeDefineStyles(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3611)
inline VARIANT_BOOL Word::Options::GetAutoFormatPlainTextWordMail ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatPlainTextWordMail(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3612)
inline void Word::Options::PutAutoFormatPlainTextWordMail ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatPlainTextWordMail(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3613)
inline VARIANT_BOOL Word::Options::GetAutoFormatAsYouTypeReplaceHyperlinks ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeReplaceHyperlinks(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3614)
inline void Word::Options::PutAutoFormatAsYouTypeReplaceHyperlinks ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeReplaceHyperlinks(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3615)
inline VARIANT_BOOL Word::Options::GetAutoFormatReplaceHyperlinks ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatReplaceHyperlinks(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3616)
inline void Word::Options::PutAutoFormatReplaceHyperlinks ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatReplaceHyperlinks(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3617)
inline enum Word::WdColorIndex Word::Options::GetDefaultHighlightColorIndex ( ) {
    enum WdColorIndex _result;
    HRESULT _hr = get_DefaultHighlightColorIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3618)
inline void Word::Options::PutDefaultHighlightColorIndex ( enum WdColorIndex prop ) {
    HRESULT _hr = put_DefaultHighlightColorIndex(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3619)
inline enum Word::WdLineStyle Word::Options::GetDefaultBorderLineStyle ( ) {
    enum WdLineStyle _result;
    HRESULT _hr = get_DefaultBorderLineStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3620)
inline void Word::Options::PutDefaultBorderLineStyle ( enum WdLineStyle prop ) {
    HRESULT _hr = put_DefaultBorderLineStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3621)
inline VARIANT_BOOL Word::Options::GetCheckSpellingAsYouType ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_CheckSpellingAsYouType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3622)
inline void Word::Options::PutCheckSpellingAsYouType ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_CheckSpellingAsYouType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3623)
inline VARIANT_BOOL Word::Options::GetCheckGrammarAsYouType ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_CheckGrammarAsYouType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3624)
inline void Word::Options::PutCheckGrammarAsYouType ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_CheckGrammarAsYouType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3625)
inline VARIANT_BOOL Word::Options::GetIgnoreInternetAndFileAddresses ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IgnoreInternetAndFileAddresses(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3626)
inline void Word::Options::PutIgnoreInternetAndFileAddresses ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_IgnoreInternetAndFileAddresses(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3627)
inline VARIANT_BOOL Word::Options::GetShowReadabilityStatistics ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowReadabilityStatistics(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3628)
inline void Word::Options::PutShowReadabilityStatistics ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowReadabilityStatistics(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3629)
inline VARIANT_BOOL Word::Options::GetIgnoreUppercase ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IgnoreUppercase(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3630)
inline void Word::Options::PutIgnoreUppercase ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_IgnoreUppercase(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3631)
inline VARIANT_BOOL Word::Options::GetIgnoreMixedDigits ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IgnoreMixedDigits(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3632)
inline void Word::Options::PutIgnoreMixedDigits ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_IgnoreMixedDigits(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3633)
inline VARIANT_BOOL Word::Options::GetSuggestFromMainDictionaryOnly ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SuggestFromMainDictionaryOnly(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3634)
inline void Word::Options::PutSuggestFromMainDictionaryOnly ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_SuggestFromMainDictionaryOnly(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3635)
inline VARIANT_BOOL Word::Options::GetSuggestSpellingCorrections ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SuggestSpellingCorrections(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3636)
inline void Word::Options::PutSuggestSpellingCorrections ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_SuggestSpellingCorrections(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3637)
inline enum Word::WdLineWidth Word::Options::GetDefaultBorderLineWidth ( ) {
    enum WdLineWidth _result;
    HRESULT _hr = get_DefaultBorderLineWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3638)
inline void Word::Options::PutDefaultBorderLineWidth ( enum WdLineWidth prop ) {
    HRESULT _hr = put_DefaultBorderLineWidth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3639)
inline VARIANT_BOOL Word::Options::GetCheckGrammarWithSpelling ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_CheckGrammarWithSpelling(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3640)
inline void Word::Options::PutCheckGrammarWithSpelling ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_CheckGrammarWithSpelling(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3641)
inline enum Word::WdOpenFormat Word::Options::GetDefaultOpenFormat ( ) {
    enum WdOpenFormat _result;
    HRESULT _hr = get_DefaultOpenFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3642)
inline void Word::Options::PutDefaultOpenFormat ( enum WdOpenFormat prop ) {
    HRESULT _hr = put_DefaultOpenFormat(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3643)
inline VARIANT_BOOL Word::Options::GetPrintDraft ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PrintDraft(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3644)
inline void Word::Options::PutPrintDraft ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PrintDraft(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3645)
inline VARIANT_BOOL Word::Options::GetPrintReverse ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PrintReverse(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3646)
inline void Word::Options::PutPrintReverse ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PrintReverse(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3647)
inline VARIANT_BOOL Word::Options::GetMapPaperSize ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MapPaperSize(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3648)
inline void Word::Options::PutMapPaperSize ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MapPaperSize(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3649)
inline VARIANT_BOOL Word::Options::GetAutoFormatAsYouTypeApplyTables ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeApplyTables(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3650)
inline void Word::Options::PutAutoFormatAsYouTypeApplyTables ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeApplyTables(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3651)
inline VARIANT_BOOL Word::Options::GetAutoFormatApplyFirstIndents ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatApplyFirstIndents(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3652)
inline void Word::Options::PutAutoFormatApplyFirstIndents ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatApplyFirstIndents(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3653)
inline VARIANT_BOOL Word::Options::GetAutoFormatMatchParentheses ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatMatchParentheses(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3654)
inline void Word::Options::PutAutoFormatMatchParentheses ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatMatchParentheses(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3655)
inline VARIANT_BOOL Word::Options::GetAutoFormatReplaceFarEastDashes ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatReplaceFarEastDashes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3656)
inline void Word::Options::PutAutoFormatReplaceFarEastDashes ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatReplaceFarEastDashes(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3657)
inline VARIANT_BOOL Word::Options::GetAutoFormatDeleteAutoSpaces ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatDeleteAutoSpaces(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3658)
inline void Word::Options::PutAutoFormatDeleteAutoSpaces ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatDeleteAutoSpaces(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3659)
inline VARIANT_BOOL Word::Options::GetAutoFormatAsYouTypeApplyFirstIndents ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeApplyFirstIndents(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3660)
inline void Word::Options::PutAutoFormatAsYouTypeApplyFirstIndents ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeApplyFirstIndents(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3661)
inline VARIANT_BOOL Word::Options::GetAutoFormatAsYouTypeApplyDates ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeApplyDates(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3662)
inline void Word::Options::PutAutoFormatAsYouTypeApplyDates ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeApplyDates(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3663)
inline VARIANT_BOOL Word::Options::GetAutoFormatAsYouTypeApplyClosings ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeApplyClosings(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3664)
inline void Word::Options::PutAutoFormatAsYouTypeApplyClosings ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeApplyClosings(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3665)
inline VARIANT_BOOL Word::Options::GetAutoFormatAsYouTypeMatchParentheses ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeMatchParentheses(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3666)
inline void Word::Options::PutAutoFormatAsYouTypeMatchParentheses ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeMatchParentheses(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3667)
inline VARIANT_BOOL Word::Options::GetAutoFormatAsYouTypeReplaceFarEastDashes ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeReplaceFarEastDashes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3668)
inline void Word::Options::PutAutoFormatAsYouTypeReplaceFarEastDashes ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeReplaceFarEastDashes(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3669)
inline VARIANT_BOOL Word::Options::GetAutoFormatAsYouTypeDeleteAutoSpaces ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeDeleteAutoSpaces(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3670)
inline void Word::Options::PutAutoFormatAsYouTypeDeleteAutoSpaces ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeDeleteAutoSpaces(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3671)
inline VARIANT_BOOL Word::Options::GetAutoFormatAsYouTypeInsertClosings ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeInsertClosings(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3672)
inline void Word::Options::PutAutoFormatAsYouTypeInsertClosings ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeInsertClosings(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3673)
inline VARIANT_BOOL Word::Options::GetAutoFormatAsYouTypeAutoLetterWizard ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeAutoLetterWizard(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3674)
inline void Word::Options::PutAutoFormatAsYouTypeAutoLetterWizard ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeAutoLetterWizard(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3675)
inline VARIANT_BOOL Word::Options::GetAutoFormatAsYouTypeInsertOvers ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeInsertOvers(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3676)
inline void Word::Options::PutAutoFormatAsYouTypeInsertOvers ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeInsertOvers(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3677)
inline VARIANT_BOOL Word::Options::GetDisplayGridLines ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DisplayGridLines(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3678)
inline void Word::Options::PutDisplayGridLines ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DisplayGridLines(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3679)
inline VARIANT_BOOL Word::Options::GetMatchFuzzyCase ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchFuzzyCase(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3680)
inline void Word::Options::PutMatchFuzzyCase ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchFuzzyCase(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3681)
inline VARIANT_BOOL Word::Options::GetMatchFuzzyByte ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchFuzzyByte(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3682)
inline void Word::Options::PutMatchFuzzyByte ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchFuzzyByte(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3683)
inline VARIANT_BOOL Word::Options::GetMatchFuzzyHiragana ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchFuzzyHiragana(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3684)
inline void Word::Options::PutMatchFuzzyHiragana ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchFuzzyHiragana(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3685)
inline VARIANT_BOOL Word::Options::GetMatchFuzzySmallKana ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchFuzzySmallKana(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3686)
inline void Word::Options::PutMatchFuzzySmallKana ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchFuzzySmallKana(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3687)
inline VARIANT_BOOL Word::Options::GetMatchFuzzyDash ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchFuzzyDash(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3688)
inline void Word::Options::PutMatchFuzzyDash ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchFuzzyDash(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3689)
inline VARIANT_BOOL Word::Options::GetMatchFuzzyIterationMark ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchFuzzyIterationMark(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3690)
inline void Word::Options::PutMatchFuzzyIterationMark ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchFuzzyIterationMark(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3691)
inline VARIANT_BOOL Word::Options::GetMatchFuzzyKanji ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchFuzzyKanji(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3692)
inline void Word::Options::PutMatchFuzzyKanji ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchFuzzyKanji(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3693)
inline VARIANT_BOOL Word::Options::GetMatchFuzzyOldKana ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchFuzzyOldKana(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3694)
inline void Word::Options::PutMatchFuzzyOldKana ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchFuzzyOldKana(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3695)
inline VARIANT_BOOL Word::Options::GetMatchFuzzyProlongedSoundMark ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchFuzzyProlongedSoundMark(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3696)
inline void Word::Options::PutMatchFuzzyProlongedSoundMark ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchFuzzyProlongedSoundMark(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3697)
inline VARIANT_BOOL Word::Options::GetMatchFuzzyDZ ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchFuzzyDZ(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3698)
inline void Word::Options::PutMatchFuzzyDZ ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchFuzzyDZ(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3699)
inline VARIANT_BOOL Word::Options::GetMatchFuzzyBV ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchFuzzyBV(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3700)
inline void Word::Options::PutMatchFuzzyBV ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchFuzzyBV(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3701)
inline VARIANT_BOOL Word::Options::GetMatchFuzzyTC ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchFuzzyTC(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3702)
inline void Word::Options::PutMatchFuzzyTC ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchFuzzyTC(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3703)
inline VARIANT_BOOL Word::Options::GetMatchFuzzyHF ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchFuzzyHF(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3704)
inline void Word::Options::PutMatchFuzzyHF ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchFuzzyHF(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3705)
inline VARIANT_BOOL Word::Options::GetMatchFuzzyZJ ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchFuzzyZJ(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3706)
inline void Word::Options::PutMatchFuzzyZJ ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchFuzzyZJ(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3707)
inline VARIANT_BOOL Word::Options::GetMatchFuzzyAY ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchFuzzyAY(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3708)
inline void Word::Options::PutMatchFuzzyAY ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchFuzzyAY(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3709)
inline VARIANT_BOOL Word::Options::GetMatchFuzzyKiKu ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchFuzzyKiKu(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3710)
inline void Word::Options::PutMatchFuzzyKiKu ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchFuzzyKiKu(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3711)
inline VARIANT_BOOL Word::Options::GetMatchFuzzyPunctuation ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchFuzzyPunctuation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3712)
inline void Word::Options::PutMatchFuzzyPunctuation ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchFuzzyPunctuation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3713)
inline VARIANT_BOOL Word::Options::GetMatchFuzzySpace ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchFuzzySpace(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3714)
inline void Word::Options::PutMatchFuzzySpace ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchFuzzySpace(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3715)
inline VARIANT_BOOL Word::Options::GetApplyFarEastFontsToAscii ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ApplyFarEastFontsToAscii(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3716)
inline void Word::Options::PutApplyFarEastFontsToAscii ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ApplyFarEastFontsToAscii(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3717)
inline VARIANT_BOOL Word::Options::GetConvertHighAnsiToFarEast ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ConvertHighAnsiToFarEast(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3718)
inline void Word::Options::PutConvertHighAnsiToFarEast ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ConvertHighAnsiToFarEast(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3719)
inline VARIANT_BOOL Word::Options::GetPrintOddPagesInAscendingOrder ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PrintOddPagesInAscendingOrder(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3720)
inline void Word::Options::PutPrintOddPagesInAscendingOrder ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PrintOddPagesInAscendingOrder(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3721)
inline VARIANT_BOOL Word::Options::GetPrintEvenPagesInAscendingOrder ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PrintEvenPagesInAscendingOrder(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3722)
inline void Word::Options::PutPrintEvenPagesInAscendingOrder ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PrintEvenPagesInAscendingOrder(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3723)
inline enum Word::WdColorIndex Word::Options::GetDefaultBorderColorIndex ( ) {
    enum WdColorIndex _result;
    HRESULT _hr = get_DefaultBorderColorIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3724)
inline void Word::Options::PutDefaultBorderColorIndex ( enum WdColorIndex prop ) {
    HRESULT _hr = put_DefaultBorderColorIndex(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3725)
inline VARIANT_BOOL Word::Options::GetEnableMisusedWordsDictionary ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_EnableMisusedWordsDictionary(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3726)
inline void Word::Options::PutEnableMisusedWordsDictionary ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_EnableMisusedWordsDictionary(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3727)
inline VARIANT_BOOL Word::Options::GetAllowCombinedAuxiliaryForms ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AllowCombinedAuxiliaryForms(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3728)
inline void Word::Options::PutAllowCombinedAuxiliaryForms ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AllowCombinedAuxiliaryForms(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3729)
inline VARIANT_BOOL Word::Options::GetHangulHanjaFastConversion ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HangulHanjaFastConversion(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3730)
inline void Word::Options::PutHangulHanjaFastConversion ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HangulHanjaFastConversion(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3731)
inline VARIANT_BOOL Word::Options::GetCheckHangulEndings ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_CheckHangulEndings(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3732)
inline void Word::Options::PutCheckHangulEndings ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_CheckHangulEndings(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3733)
inline VARIANT_BOOL Word::Options::GetEnableHangulHanjaRecentOrdering ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_EnableHangulHanjaRecentOrdering(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3734)
inline void Word::Options::PutEnableHangulHanjaRecentOrdering ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_EnableHangulHanjaRecentOrdering(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3735)
inline enum Word::WdMultipleWordConversionsMode Word::Options::GetMultipleWordConversionsMode ( ) {
    enum WdMultipleWordConversionsMode _result;
    HRESULT _hr = get_MultipleWordConversionsMode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3736)
inline void Word::Options::PutMultipleWordConversionsMode ( enum WdMultipleWordConversionsMode prop ) {
    HRESULT _hr = put_MultipleWordConversionsMode(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3737)
inline HRESULT Word::Options::SetWPHelpOptions ( VARIANT * CommandKeyHelp, VARIANT * DocNavigationKeys, VARIANT * MouseSimulation, VARIANT * DemoGuidance, VARIANT * DemoSpeed, VARIANT * HelpType ) {
    HRESULT _hr = raw_SetWPHelpOptions(CommandKeyHelp, DocNavigationKeys, MouseSimulation, DemoGuidance, DemoSpeed, HelpType);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(3738)
inline enum Word::WdColor Word::Options::GetDefaultBorderColor ( ) {
    enum WdColor _result;
    HRESULT _hr = get_DefaultBorderColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3739)
inline void Word::Options::PutDefaultBorderColor ( enum WdColor prop ) {
    HRESULT _hr = put_DefaultBorderColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3740)
inline VARIANT_BOOL Word::Options::GetAllowPixelUnits ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AllowPixelUnits(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3741)
inline void Word::Options::PutAllowPixelUnits ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AllowPixelUnits(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3742)
inline VARIANT_BOOL Word::Options::GetUseCharacterUnit ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_UseCharacterUnit(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3743)
inline void Word::Options::PutUseCharacterUnit ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_UseCharacterUnit(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3744)
inline VARIANT_BOOL Word::Options::GetAllowCompoundNounProcessing ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AllowCompoundNounProcessing(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3745)
inline void Word::Options::PutAllowCompoundNounProcessing ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AllowCompoundNounProcessing(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3746)
inline VARIANT_BOOL Word::Options::GetAutoKeyboardSwitching ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoKeyboardSwitching(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3747)
inline void Word::Options::PutAutoKeyboardSwitching ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoKeyboardSwitching(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3748)
inline enum Word::WdDocumentViewDirection Word::Options::GetDocumentViewDirection ( ) {
    enum WdDocumentViewDirection _result;
    HRESULT _hr = get_DocumentViewDirection(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3749)
inline void Word::Options::PutDocumentViewDirection ( enum WdDocumentViewDirection prop ) {
    HRESULT _hr = put_DocumentViewDirection(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3750)
inline enum Word::WdArabicNumeral Word::Options::GetArabicNumeral ( ) {
    enum WdArabicNumeral _result;
    HRESULT _hr = get_ArabicNumeral(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3751)
inline void Word::Options::PutArabicNumeral ( enum WdArabicNumeral prop ) {
    HRESULT _hr = put_ArabicNumeral(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3752)
inline enum Word::WdMonthNames Word::Options::GetMonthNames ( ) {
    enum WdMonthNames _result;
    HRESULT _hr = get_MonthNames(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3753)
inline void Word::Options::PutMonthNames ( enum WdMonthNames prop ) {
    HRESULT _hr = put_MonthNames(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3754)
inline enum Word::WdCursorMovement Word::Options::GetCursorMovement ( ) {
    enum WdCursorMovement _result;
    HRESULT _hr = get_CursorMovement(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3755)
inline void Word::Options::PutCursorMovement ( enum WdCursorMovement prop ) {
    HRESULT _hr = put_CursorMovement(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3756)
inline enum Word::WdVisualSelection Word::Options::GetVisualSelection ( ) {
    enum WdVisualSelection _result;
    HRESULT _hr = get_VisualSelection(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3757)
inline void Word::Options::PutVisualSelection ( enum WdVisualSelection prop ) {
    HRESULT _hr = put_VisualSelection(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3758)
inline VARIANT_BOOL Word::Options::GetShowDiacritics ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowDiacritics(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3759)
inline void Word::Options::PutShowDiacritics ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowDiacritics(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3760)
inline VARIANT_BOOL Word::Options::GetShowControlCharacters ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowControlCharacters(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3761)
inline void Word::Options::PutShowControlCharacters ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowControlCharacters(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3762)
inline VARIANT_BOOL Word::Options::GetAddControlCharacters ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AddControlCharacters(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3763)
inline void Word::Options::PutAddControlCharacters ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AddControlCharacters(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3764)
inline VARIANT_BOOL Word::Options::GetAddBiDirectionalMarksWhenSavingTextFile ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AddBiDirectionalMarksWhenSavingTextFile(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3765)
inline void Word::Options::PutAddBiDirectionalMarksWhenSavingTextFile ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AddBiDirectionalMarksWhenSavingTextFile(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3766)
inline VARIANT_BOOL Word::Options::GetStrictInitialAlefHamza ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_StrictInitialAlefHamza(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3767)
inline void Word::Options::PutStrictInitialAlefHamza ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_StrictInitialAlefHamza(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3768)
inline VARIANT_BOOL Word::Options::GetStrictFinalYaa ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_StrictFinalYaa(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3769)
inline void Word::Options::PutStrictFinalYaa ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_StrictFinalYaa(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3770)
inline enum Word::WdHebSpellStart Word::Options::GetHebrewMode ( ) {
    enum WdHebSpellStart _result;
    HRESULT _hr = get_HebrewMode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3771)
inline void Word::Options::PutHebrewMode ( enum WdHebSpellStart prop ) {
    HRESULT _hr = put_HebrewMode(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3772)
inline enum Word::WdAraSpeller Word::Options::GetArabicMode ( ) {
    enum WdAraSpeller _result;
    HRESULT _hr = get_ArabicMode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3773)
inline void Word::Options::PutArabicMode ( enum WdAraSpeller prop ) {
    HRESULT _hr = put_ArabicMode(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3774)
inline VARIANT_BOOL Word::Options::GetAllowClickAndTypeMouse ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AllowClickAndTypeMouse(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3775)
inline void Word::Options::PutAllowClickAndTypeMouse ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AllowClickAndTypeMouse(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3776)
inline VARIANT_BOOL Word::Options::GetUseGermanSpellingReform ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_UseGermanSpellingReform(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3777)
inline void Word::Options::PutUseGermanSpellingReform ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_UseGermanSpellingReform(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3778)
inline enum Word::WdHighAnsiText Word::Options::GetInterpretHighAnsi ( ) {
    enum WdHighAnsiText _result;
    HRESULT _hr = get_InterpretHighAnsi(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3779)
inline void Word::Options::PutInterpretHighAnsi ( enum WdHighAnsiText prop ) {
    HRESULT _hr = put_InterpretHighAnsi(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3780)
inline VARIANT_BOOL Word::Options::GetAddHebDoubleQuote ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AddHebDoubleQuote(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3781)
inline void Word::Options::PutAddHebDoubleQuote ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AddHebDoubleQuote(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3782)
inline VARIANT_BOOL Word::Options::GetUseDiffDiacColor ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_UseDiffDiacColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3783)
inline void Word::Options::PutUseDiffDiacColor ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_UseDiffDiacColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3784)
inline enum Word::WdColor Word::Options::GetDiacriticColorVal ( ) {
    enum WdColor _result;
    HRESULT _hr = get_DiacriticColorVal(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3785)
inline void Word::Options::PutDiacriticColorVal ( enum WdColor prop ) {
    HRESULT _hr = put_DiacriticColorVal(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3786)
inline VARIANT_BOOL Word::Options::GetOptimizeForWord97byDefault ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_OptimizeForWord97byDefault(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3787)
inline void Word::Options::PutOptimizeForWord97byDefault ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_OptimizeForWord97byDefault(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3788)
inline VARIANT_BOOL Word::Options::GetLocalNetworkFile ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_LocalNetworkFile(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3789)
inline void Word::Options::PutLocalNetworkFile ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_LocalNetworkFile(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3790)
inline VARIANT_BOOL Word::Options::GetTypeNReplace ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_TypeNReplace(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3791)
inline void Word::Options::PutTypeNReplace ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_TypeNReplace(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3792)
inline VARIANT_BOOL Word::Options::GetSequenceCheck ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SequenceCheck(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3793)
inline void Word::Options::PutSequenceCheck ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_SequenceCheck(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3794)
inline VARIANT_BOOL Word::Options::GetBackgroundOpen ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_BackgroundOpen(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3795)
inline void Word::Options::PutBackgroundOpen ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_BackgroundOpen(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3796)
inline VARIANT_BOOL Word::Options::GetDisableFeaturesbyDefault ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DisableFeaturesbyDefault(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3797)
inline void Word::Options::PutDisableFeaturesbyDefault ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DisableFeaturesbyDefault(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3798)
inline VARIANT_BOOL Word::Options::GetPasteAdjustWordSpacing ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PasteAdjustWordSpacing(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3799)
inline void Word::Options::PutPasteAdjustWordSpacing ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PasteAdjustWordSpacing(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3800)
inline VARIANT_BOOL Word::Options::GetPasteAdjustParagraphSpacing ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PasteAdjustParagraphSpacing(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3801)
inline void Word::Options::PutPasteAdjustParagraphSpacing ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PasteAdjustParagraphSpacing(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3802)
inline VARIANT_BOOL Word::Options::GetPasteAdjustTableFormatting ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PasteAdjustTableFormatting(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3803)
inline void Word::Options::PutPasteAdjustTableFormatting ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PasteAdjustTableFormatting(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3804)
inline VARIANT_BOOL Word::Options::GetPasteSmartStyleBehavior ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PasteSmartStyleBehavior(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3805)
inline void Word::Options::PutPasteSmartStyleBehavior ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PasteSmartStyleBehavior(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3806)
inline VARIANT_BOOL Word::Options::GetPasteMergeFromPPT ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PasteMergeFromPPT(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3807)
inline void Word::Options::PutPasteMergeFromPPT ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PasteMergeFromPPT(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3808)
inline VARIANT_BOOL Word::Options::GetPasteMergeFromXL ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PasteMergeFromXL(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3809)
inline void Word::Options::PutPasteMergeFromXL ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PasteMergeFromXL(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3810)
inline VARIANT_BOOL Word::Options::GetCtrlClickHyperlinkToOpen ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_CtrlClickHyperlinkToOpen(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3811)
inline void Word::Options::PutCtrlClickHyperlinkToOpen ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_CtrlClickHyperlinkToOpen(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3812)
inline enum Word::WdWrapTypeMerged Word::Options::GetPictureWrapType ( ) {
    enum WdWrapTypeMerged _result;
    HRESULT _hr = get_PictureWrapType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3813)
inline void Word::Options::PutPictureWrapType ( enum WdWrapTypeMerged prop ) {
    HRESULT _hr = put_PictureWrapType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3814)
inline enum Word::WdDisableFeaturesIntroducedAfter Word::Options::GetDisableFeaturesIntroducedAfterbyDefault ( ) {
    enum WdDisableFeaturesIntroducedAfter _result;
    HRESULT _hr = get_DisableFeaturesIntroducedAfterbyDefault(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3815)
inline void Word::Options::PutDisableFeaturesIntroducedAfterbyDefault ( enum WdDisableFeaturesIntroducedAfter prop ) {
    HRESULT _hr = put_DisableFeaturesIntroducedAfterbyDefault(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3816)
inline VARIANT_BOOL Word::Options::GetPasteSmartCutPaste ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PasteSmartCutPaste(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3817)
inline void Word::Options::PutPasteSmartCutPaste ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PasteSmartCutPaste(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3818)
inline VARIANT_BOOL Word::Options::GetDisplayPasteOptions ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DisplayPasteOptions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3819)
inline void Word::Options::PutDisplayPasteOptions ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DisplayPasteOptions(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3820)
inline VARIANT_BOOL Word::Options::GetPromptUpdateStyle ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PromptUpdateStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3821)
inline void Word::Options::PutPromptUpdateStyle ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PromptUpdateStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3822)
inline _bstr_t Word::Options::GetDefaultEPostageApp ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_DefaultEPostageApp(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3823)
inline void Word::Options::PutDefaultEPostageApp ( _bstr_t prop ) {
    HRESULT _hr = put_DefaultEPostageApp(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3824)
inline enum Office::MsoEncoding Word::Options::GetDefaultTextEncoding ( ) {
    enum Office::MsoEncoding _result;
    HRESULT _hr = get_DefaultTextEncoding(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3825)
inline void Word::Options::PutDefaultTextEncoding ( enum Office::MsoEncoding prop ) {
    HRESULT _hr = put_DefaultTextEncoding(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3826)
inline VARIANT_BOOL Word::Options::GetLabelSmartTags ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_LabelSmartTags(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3827)
inline void Word::Options::PutLabelSmartTags ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_LabelSmartTags(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3828)
inline VARIANT_BOOL Word::Options::GetDisplaySmartTagButtons ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DisplaySmartTagButtons(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3829)
inline void Word::Options::PutDisplaySmartTagButtons ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DisplaySmartTagButtons(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3830)
inline VARIANT_BOOL Word::Options::GetWarnBeforeSavingPrintingSendingMarkup ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_WarnBeforeSavingPrintingSendingMarkup(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3831)
inline void Word::Options::PutWarnBeforeSavingPrintingSendingMarkup ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_WarnBeforeSavingPrintingSendingMarkup(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3832)
inline VARIANT_BOOL Word::Options::GetStoreRSIDOnSave ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_StoreRSIDOnSave(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3833)
inline void Word::Options::PutStoreRSIDOnSave ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_StoreRSIDOnSave(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3834)
inline VARIANT_BOOL Word::Options::GetShowFormatError ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowFormatError(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3835)
inline void Word::Options::PutShowFormatError ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowFormatError(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3836)
inline VARIANT_BOOL Word::Options::GetFormatScanning ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_FormatScanning(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3837)
inline void Word::Options::PutFormatScanning ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_FormatScanning(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3838)
inline VARIANT_BOOL Word::Options::GetPasteMergeLists ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PasteMergeLists(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3839)
inline void Word::Options::PutPasteMergeLists ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PasteMergeLists(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3840)
inline VARIANT_BOOL Word::Options::GetAutoCreateNewDrawings ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoCreateNewDrawings(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3841)
inline void Word::Options::PutAutoCreateNewDrawings ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoCreateNewDrawings(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3842)
inline VARIANT_BOOL Word::Options::GetSmartParaSelection ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SmartParaSelection(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3843)
inline void Word::Options::PutSmartParaSelection ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_SmartParaSelection(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3844)
inline enum Word::WdRevisionsBalloonPrintOrientation Word::Options::GetRevisionsBalloonPrintOrientation ( ) {
    enum WdRevisionsBalloonPrintOrientation _result;
    HRESULT _hr = get_RevisionsBalloonPrintOrientation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3845)
inline void Word::Options::PutRevisionsBalloonPrintOrientation ( enum WdRevisionsBalloonPrintOrientation prop ) {
    HRESULT _hr = put_RevisionsBalloonPrintOrientation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3846)
inline enum Word::WdColorIndex Word::Options::GetCommentsColor ( ) {
    enum WdColorIndex _result;
    HRESULT _hr = get_CommentsColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3847)
inline void Word::Options::PutCommentsColor ( enum WdColorIndex prop ) {
    HRESULT _hr = put_CommentsColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3848)
inline VARIANT_BOOL Word::Options::GetPrintXMLTag ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PrintXMLTag(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3849)
inline void Word::Options::PutPrintXMLTag ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PrintXMLTag(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3850)
inline VARIANT_BOOL Word::Options::GetPrintBackgrounds ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PrintBackgrounds(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3851)
inline void Word::Options::PutPrintBackgrounds ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PrintBackgrounds(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3852)
inline VARIANT_BOOL Word::Options::GetAllowReadingMode ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AllowReadingMode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3853)
inline void Word::Options::PutAllowReadingMode ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AllowReadingMode(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3854)
inline VARIANT_BOOL Word::Options::GetShowMarkupOpenSave ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowMarkupOpenSave(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3855)
inline void Word::Options::PutShowMarkupOpenSave ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowMarkupOpenSave(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3856)
inline VARIANT_BOOL Word::Options::GetSmartCursoring ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SmartCursoring(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3857)
inline void Word::Options::PutSmartCursoring ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_SmartCursoring(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3858)
inline enum Word::WdMoveToTextMark Word::Options::GetMoveToTextMark ( ) {
    enum WdMoveToTextMark _result;
    HRESULT _hr = get_MoveToTextMark(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3859)
inline void Word::Options::PutMoveToTextMark ( enum WdMoveToTextMark prop ) {
    HRESULT _hr = put_MoveToTextMark(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3860)
inline enum Word::WdMoveFromTextMark Word::Options::GetMoveFromTextMark ( ) {
    enum WdMoveFromTextMark _result;
    HRESULT _hr = get_MoveFromTextMark(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3861)
inline void Word::Options::PutMoveFromTextMark ( enum WdMoveFromTextMark prop ) {
    HRESULT _hr = put_MoveFromTextMark(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3862)
inline _bstr_t Word::Options::GetBibliographyStyle ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_BibliographyStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3863)
inline void Word::Options::PutBibliographyStyle ( _bstr_t prop ) {
    HRESULT _hr = put_BibliographyStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3864)
inline _bstr_t Word::Options::GetBibliographySort ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_BibliographySort(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3865)
inline void Word::Options::PutBibliographySort ( _bstr_t prop ) {
    HRESULT _hr = put_BibliographySort(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3866)
inline enum Word::WdCellColor Word::Options::GetInsertedCellColor ( ) {
    enum WdCellColor _result;
    HRESULT _hr = get_InsertedCellColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3867)
inline void Word::Options::PutInsertedCellColor ( enum WdCellColor prop ) {
    HRESULT _hr = put_InsertedCellColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3868)
inline enum Word::WdCellColor Word::Options::GetDeletedCellColor ( ) {
    enum WdCellColor _result;
    HRESULT _hr = get_DeletedCellColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3869)
inline void Word::Options::PutDeletedCellColor ( enum WdCellColor prop ) {
    HRESULT _hr = put_DeletedCellColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3870)
inline enum Word::WdCellColor Word::Options::GetMergedCellColor ( ) {
    enum WdCellColor _result;
    HRESULT _hr = get_MergedCellColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3871)
inline void Word::Options::PutMergedCellColor ( enum WdCellColor prop ) {
    HRESULT _hr = put_MergedCellColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3872)
inline enum Word::WdCellColor Word::Options::GetSplitCellColor ( ) {
    enum WdCellColor _result;
    HRESULT _hr = get_SplitCellColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3873)
inline void Word::Options::PutSplitCellColor ( enum WdCellColor prop ) {
    HRESULT _hr = put_SplitCellColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3874)
inline VARIANT_BOOL Word::Options::GetShowSelectionFloaties ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowSelectionFloaties(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3875)
inline void Word::Options::PutShowSelectionFloaties ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowSelectionFloaties(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3876)
inline VARIANT_BOOL Word::Options::GetShowMenuFloaties ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowMenuFloaties(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3877)
inline void Word::Options::PutShowMenuFloaties ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowMenuFloaties(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3878)
inline VARIANT_BOOL Word::Options::GetShowDevTools ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowDevTools(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3879)
inline void Word::Options::PutShowDevTools ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowDevTools(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3880)
inline VARIANT_BOOL Word::Options::GetEnableLivePreview ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_EnableLivePreview(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3881)
inline void Word::Options::PutEnableLivePreview ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_EnableLivePreview(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3882)
inline VARIANT_BOOL Word::Options::GetOMathAutoBuildUp ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_OMathAutoBuildUp(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3883)
inline void Word::Options::PutOMathAutoBuildUp ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_OMathAutoBuildUp(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3884)
inline VARIANT_BOOL Word::Options::GetAlwaysUseClearType ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AlwaysUseClearType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3885)
inline void Word::Options::PutAlwaysUseClearType ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AlwaysUseClearType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3886)
inline enum Word::WdPasteOptions Word::Options::GetPasteFormatWithinDocument ( ) {
    enum WdPasteOptions _result;
    HRESULT _hr = get_PasteFormatWithinDocument(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3887)
inline void Word::Options::PutPasteFormatWithinDocument ( enum WdPasteOptions prop ) {
    HRESULT _hr = put_PasteFormatWithinDocument(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3888)
inline enum Word::WdPasteOptions Word::Options::GetPasteFormatBetweenDocuments ( ) {
    enum WdPasteOptions _result;
    HRESULT _hr = get_PasteFormatBetweenDocuments(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3889)
inline void Word::Options::PutPasteFormatBetweenDocuments ( enum WdPasteOptions prop ) {
    HRESULT _hr = put_PasteFormatBetweenDocuments(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3890)
inline enum Word::WdPasteOptions Word::Options::GetPasteFormatBetweenStyledDocuments ( ) {
    enum WdPasteOptions _result;
    HRESULT _hr = get_PasteFormatBetweenStyledDocuments(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3891)
inline void Word::Options::PutPasteFormatBetweenStyledDocuments ( enum WdPasteOptions prop ) {
    HRESULT _hr = put_PasteFormatBetweenStyledDocuments(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3892)
inline enum Word::WdPasteOptions Word::Options::GetPasteFormatFromExternalSource ( ) {
    enum WdPasteOptions _result;
    HRESULT _hr = get_PasteFormatFromExternalSource(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3893)
inline void Word::Options::PutPasteFormatFromExternalSource ( enum WdPasteOptions prop ) {
    HRESULT _hr = put_PasteFormatFromExternalSource(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3894)
inline VARIANT_BOOL Word::Options::GetPasteOptionKeepBulletsAndNumbers ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PasteOptionKeepBulletsAndNumbers(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3895)
inline void Word::Options::PutPasteOptionKeepBulletsAndNumbers ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PasteOptionKeepBulletsAndNumbers(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3896)
inline VARIANT_BOOL Word::Options::GetINSKeyForOvertype ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_INSKeyForOvertype(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3897)
inline void Word::Options::PutINSKeyForOvertype ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_INSKeyForOvertype(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3898)
inline VARIANT_BOOL Word::Options::GetRepeatWord ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_RepeatWord(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3899)
inline void Word::Options::PutRepeatWord ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_RepeatWord(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3900)
inline enum Word::WdFrenchSpeller Word::Options::GetFrenchReform ( ) {
    enum WdFrenchSpeller _result;
    HRESULT _hr = get_FrenchReform(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3901)
inline void Word::Options::PutFrenchReform ( enum WdFrenchSpeller prop ) {
    HRESULT _hr = put_FrenchReform(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3902)
inline VARIANT_BOOL Word::Options::GetContextualSpeller ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ContextualSpeller(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3903)
inline void Word::Options::PutContextualSpeller ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ContextualSpeller(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3904)
inline enum Word::WdColorIndex Word::Options::GetMoveToTextColor ( ) {
    enum WdColorIndex _result;
    HRESULT _hr = get_MoveToTextColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3905)
inline void Word::Options::PutMoveToTextColor ( enum WdColorIndex prop ) {
    HRESULT _hr = put_MoveToTextColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3906)
inline enum Word::WdColorIndex Word::Options::GetMoveFromTextColor ( ) {
    enum WdColorIndex _result;
    HRESULT _hr = get_MoveFromTextColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3907)
inline void Word::Options::PutMoveFromTextColor ( enum WdColorIndex prop ) {
    HRESULT _hr = put_MoveFromTextColor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3908)
inline VARIANT_BOOL Word::Options::GetOMathCopyLF ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_OMathCopyLF(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3909)
inline void Word::Options::PutOMathCopyLF ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_OMathCopyLF(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3910)
inline VARIANT_BOOL Word::Options::GetUseNormalStyleForList ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_UseNormalStyleForList(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3911)
inline void Word::Options::PutUseNormalStyleForList ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_UseNormalStyleForList(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3912)
inline VARIANT_BOOL Word::Options::GetAllowOpenInDraftView ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AllowOpenInDraftView(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3913)
inline void Word::Options::PutAllowOpenInDraftView ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AllowOpenInDraftView(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3914)
inline VARIANT_BOOL Word::Options::GetEnableLegacyIMEMode ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_EnableLegacyIMEMode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3915)
inline void Word::Options::PutEnableLegacyIMEMode ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_EnableLegacyIMEMode(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3916)
inline VARIANT_BOOL Word::Options::GetDoNotPromptForConvert ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DoNotPromptForConvert(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3917)
inline void Word::Options::PutDoNotPromptForConvert ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DoNotPromptForConvert(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3918)
inline VARIANT_BOOL Word::Options::GetPrecisePositioning ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PrecisePositioning(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3919)
inline void Word::Options::PutPrecisePositioning ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PrecisePositioning(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3920)
inline enum Word::WdUpdateStyleListBehavior Word::Options::GetUpdateStyleListBehavior ( ) {
    enum WdUpdateStyleListBehavior _result;
    HRESULT _hr = get_UpdateStyleListBehavior(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3921)
inline void Word::Options::PutUpdateStyleListBehavior ( enum WdUpdateStyleListBehavior prop ) {
    HRESULT _hr = put_UpdateStyleListBehavior(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3922)
inline VARIANT_BOOL Word::Options::GetStrictTaaMarboota ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_StrictTaaMarboota(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3923)
inline void Word::Options::PutStrictTaaMarboota ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_StrictTaaMarboota(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3924)
inline VARIANT_BOOL Word::Options::GetStrictRussianE ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_StrictRussianE(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3925)
inline void Word::Options::PutStrictRussianE ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_StrictRussianE(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3926)
inline enum Word::WdSpanishSpeller Word::Options::GetSpanishMode ( ) {
    enum WdSpanishSpeller _result;
    HRESULT _hr = get_SpanishMode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3927)
inline void Word::Options::PutSpanishMode ( enum WdSpanishSpeller prop ) {
    HRESULT _hr = put_SpanishMode(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3928)
inline enum Word::WdPortugueseReform Word::Options::GetPortugalReform ( ) {
    enum WdPortugueseReform _result;
    HRESULT _hr = get_PortugalReform(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3929)
inline void Word::Options::PutPortugalReform ( enum WdPortugueseReform prop ) {
    HRESULT _hr = put_PortugalReform(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3930)
inline enum Word::WdPortugueseReform Word::Options::GetBrazilReform ( ) {
    enum WdPortugueseReform _result;
    HRESULT _hr = get_BrazilReform(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3931)
inline void Word::Options::PutBrazilReform ( enum WdPortugueseReform prop ) {
    HRESULT _hr = put_BrazilReform(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3932)
inline VARIANT_BOOL Word::Options::GetUpdateFieldsWithTrackedChangesAtPrint ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_UpdateFieldsWithTrackedChangesAtPrint(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3933)
inline void Word::Options::PutUpdateFieldsWithTrackedChangesAtPrint ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_UpdateFieldsWithTrackedChangesAtPrint(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface _Application wrapper method implementations
//

#pragma implementation_key(3934)
inline Word::_ApplicationPtr Word::_Application::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

#pragma implementation_key(3935)
inline long Word::_Application::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3936)
inline IDispatchPtr Word::_Application::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(3937)
inline _bstr_t Word::_Application::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3938)
inline Word::DocumentsPtr Word::_Application::GetDocuments ( ) {
    struct Documents * _result = 0;
    HRESULT _hr = get_Documents(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DocumentsPtr(_result, false);
}

#pragma implementation_key(3939)
inline Word::WindowsPtr Word::_Application::GetWindows ( ) {
    struct Windows * _result = 0;
    HRESULT _hr = get_Windows(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return WindowsPtr(_result, false);
}

#pragma implementation_key(3940)
inline Word::_DocumentPtr Word::_Application::GetActiveDocument ( ) {
    struct _Document * _result = 0;
    HRESULT _hr = get_ActiveDocument(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _DocumentPtr(_result, false);
}

#pragma implementation_key(3941)
inline Word::WindowPtr Word::_Application::GetActiveWindow ( ) {
    struct Window * _result = 0;
    HRESULT _hr = get_ActiveWindow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return WindowPtr(_result, false);
}

#pragma implementation_key(3942)
inline Word::SelectionPtr Word::_Application::GetSelection ( ) {
    struct Selection * _result = 0;
    HRESULT _hr = get_Selection(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SelectionPtr(_result, false);
}

#pragma implementation_key(3943)
inline IDispatchPtr Word::_Application::GetWordBasic ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_WordBasic(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(3944)
inline Word::RecentFilesPtr Word::_Application::GetRecentFiles ( ) {
    struct RecentFiles * _result = 0;
    HRESULT _hr = get_RecentFiles(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RecentFilesPtr(_result, false);
}

#pragma implementation_key(3945)
inline Word::TemplatePtr Word::_Application::GetNormalTemplate ( ) {
    struct Template * _result = 0;
    HRESULT _hr = get_NormalTemplate(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TemplatePtr(_result, false);
}

#pragma implementation_key(3946)
inline Word::SystemPtr Word::_Application::GetSystem ( ) {
    struct System * _result = 0;
    HRESULT _hr = get_System(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SystemPtr(_result, false);
}

#pragma implementation_key(3947)
inline Word::AutoCorrectPtr Word::_Application::GetAutoCorrect ( ) {
    struct AutoCorrect * _result = 0;
    HRESULT _hr = get_AutoCorrect(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return AutoCorrectPtr(_result, false);
}

#pragma implementation_key(3948)
inline Word::FontNamesPtr Word::_Application::GetFontNames ( ) {
    struct FontNames * _result = 0;
    HRESULT _hr = get_FontNames(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FontNamesPtr(_result, false);
}

#pragma implementation_key(3949)
inline Word::FontNamesPtr Word::_Application::GetLandscapeFontNames ( ) {
    struct FontNames * _result = 0;
    HRESULT _hr = get_LandscapeFontNames(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FontNamesPtr(_result, false);
}

#pragma implementation_key(3950)
inline Word::FontNamesPtr Word::_Application::GetPortraitFontNames ( ) {
    struct FontNames * _result = 0;
    HRESULT _hr = get_PortraitFontNames(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FontNamesPtr(_result, false);
}

#pragma implementation_key(3951)
inline Word::LanguagesPtr Word::_Application::GetLanguages ( ) {
    struct Languages * _result = 0;
    HRESULT _hr = get_Languages(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return LanguagesPtr(_result, false);
}

#pragma implementation_key(3952)
inline Office::AssistantPtr Word::_Application::GetAssistant ( ) {
    struct Office::Assistant * _result = 0;
    HRESULT _hr = get_Assistant(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::AssistantPtr(_result, false);
}

#pragma implementation_key(3953)
inline Word::BrowserPtr Word::_Application::GetBrowser ( ) {
    struct Browser * _result = 0;
    HRESULT _hr = get_Browser(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BrowserPtr(_result, false);
}

#pragma implementation_key(3954)
inline Word::FileConvertersPtr Word::_Application::GetFileConverters ( ) {
    struct FileConverters * _result = 0;
    HRESULT _hr = get_FileConverters(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FileConvertersPtr(_result, false);
}

#pragma implementation_key(3955)
inline Word::MailingLabelPtr Word::_Application::GetMailingLabel ( ) {
    struct MailingLabel * _result = 0;
    HRESULT _hr = get_MailingLabel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return MailingLabelPtr(_result, false);
}

#pragma implementation_key(3956)
inline Word::DialogsPtr Word::_Application::GetDialogs ( ) {
    struct Dialogs * _result = 0;
    HRESULT _hr = get_Dialogs(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DialogsPtr(_result, false);
}

#pragma implementation_key(3957)
inline Word::CaptionLabelsPtr Word::_Application::GetCaptionLabels ( ) {
    struct CaptionLabels * _result = 0;
    HRESULT _hr = get_CaptionLabels(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CaptionLabelsPtr(_result, false);
}

#pragma implementation_key(3958)
inline Word::AutoCaptionsPtr Word::_Application::GetAutoCaptions ( ) {
    struct AutoCaptions * _result = 0;
    HRESULT _hr = get_AutoCaptions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return AutoCaptionsPtr(_result, false);
}

#pragma implementation_key(3959)
inline Word::AddInsPtr Word::_Application::GetAddIns ( ) {
    struct AddIns * _result = 0;
    HRESULT _hr = get_AddIns(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return AddInsPtr(_result, false);
}

#pragma implementation_key(3960)
inline VARIANT_BOOL Word::_Application::GetVisible ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Visible(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3961)
inline void Word::_Application::PutVisible ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Visible(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3962)
inline _bstr_t Word::_Application::GetVersion ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Version(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3963)
inline VARIANT_BOOL Word::_Application::GetScreenUpdating ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ScreenUpdating(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3964)
inline void Word::_Application::PutScreenUpdating ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ScreenUpdating(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3965)
inline VARIANT_BOOL Word::_Application::GetPrintPreview ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PrintPreview(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3966)
inline void Word::_Application::PutPrintPreview ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PrintPreview(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3967)
inline Word::TasksPtr Word::_Application::GetTasks ( ) {
    struct Tasks * _result = 0;
    HRESULT _hr = get_Tasks(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TasksPtr(_result, false);
}

#pragma implementation_key(3968)
inline VARIANT_BOOL Word::_Application::GetDisplayStatusBar ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DisplayStatusBar(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3969)
inline void Word::_Application::PutDisplayStatusBar ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DisplayStatusBar(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3970)
inline VARIANT_BOOL Word::_Application::GetSpecialMode ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SpecialMode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3971)
inline long Word::_Application::GetUsableWidth ( ) {
    long _result = 0;
    HRESULT _hr = get_UsableWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3972)
inline long Word::_Application::GetUsableHeight ( ) {
    long _result = 0;
    HRESULT _hr = get_UsableHeight(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3973)
inline VARIANT_BOOL Word::_Application::GetMathCoprocessorAvailable ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MathCoprocessorAvailable(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3974)
inline VARIANT_BOOL Word::_Application::GetMouseAvailable ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MouseAvailable(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3975)
inline _variant_t Word::_Application::GetInternational ( enum WdInternationalIndex Index ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_International(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(3976)
inline _bstr_t Word::_Application::GetBuild ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Build(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3977)
inline VARIANT_BOOL Word::_Application::GetCapsLock ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_CapsLock(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3978)
inline VARIANT_BOOL Word::_Application::GetNumLock ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_NumLock(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3979)
inline _bstr_t Word::_Application::GetUserName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_UserName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3980)
inline void Word::_Application::PutUserName ( _bstr_t prop ) {
    HRESULT _hr = put_UserName(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3981)
inline _bstr_t Word::_Application::GetUserInitials ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_UserInitials(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3982)
inline void Word::_Application::PutUserInitials ( _bstr_t prop ) {
    HRESULT _hr = put_UserInitials(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3983)
inline _bstr_t Word::_Application::GetUserAddress ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_UserAddress(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(3984)
inline void Word::_Application::PutUserAddress ( _bstr_t prop ) {
    HRESULT _hr = put_UserAddress(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3985)
inline IDispatchPtr Word::_Application::GetMacroContainer ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_MacroContainer(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

#pragma implementation_key(3986)
inline VARIANT_BOOL Word::_Application::GetDisplayRecentFiles ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DisplayRecentFiles(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(3987)
inline void Word::_Application::PutDisplayRecentFiles ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DisplayRecentFiles(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(3988)
inline Office::_CommandBarsPtr Word::_Application::GetCommandBars ( ) {
    struct Office::_CommandBars * _result = 0;
    HRESULT _hr = get_CommandBars(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::_CommandBarsPtr(_result, false);
}

#pragma implementation_key(3989)
inline Word::SynonymInfoPtr Word::_Application::GetSynonymInfo ( _bstr_t Word, VARIANT * LanguageID ) {
    struct SynonymInfo * _result = 0;
    HRESULT _hr = get_SynonymInfo(Word, LanguageID, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SynonymInfoPtr(_result, false);
}

inline VBIDE::VBEPtr _Application::GetVBE ( ) {
    struct VBIDE::VBE * _result = 0;
    HRESULT _hr = get_VBE(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return VBIDE::VBEPtr(_result, false);
}

inline _bstr_t _Application::GetDefaultSaveFormat ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_DefaultSaveFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void _Application::PutDefaultSaveFormat ( _bstr_t prop ) {
    HRESULT _hr = put_DefaultSaveFormat(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline ListGalleriesPtr _Application::GetListGalleries ( ) {
    struct ListGalleries * _result = 0;
    HRESULT _hr = get_ListGalleries(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ListGalleriesPtr(_result, false);
}

inline _bstr_t _Application::GetActivePrinter ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_ActivePrinter(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void _Application::PutActivePrinter ( _bstr_t prop ) {
    HRESULT _hr = put_ActivePrinter(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline TemplatesPtr _Application::GetTemplates ( ) {
    struct Templates * _result = 0;
    HRESULT _hr = get_Templates(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TemplatesPtr(_result, false);
}

inline IDispatchPtr _Application::GetCustomizationContext ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_CustomizationContext(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline void _Application::PutCustomizationContext ( IDispatch * prop ) {
    HRESULT _hr = put_CustomizationContext(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline KeyBindingsPtr _Application::GetKeyBindings ( ) {
    struct KeyBindings * _result = 0;
    HRESULT _hr = get_KeyBindings(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return KeyBindingsPtr(_result, false);
}

inline KeysBoundToPtr _Application::GetKeysBoundTo ( enum WdKeyCategory KeyCategory, _bstr_t Command, VARIANT * CommandParameter ) {
    struct KeysBoundTo * _result = 0;
    HRESULT _hr = get_KeysBoundTo(KeyCategory, Command, CommandParameter, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return KeysBoundToPtr(_result, false);
}

inline KeyBindingPtr _Application::GetFindKey ( long KeyCode, VARIANT * KeyCode2 ) {
    struct KeyBinding * _result = 0;
    HRESULT _hr = get_FindKey(KeyCode, KeyCode2, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return KeyBindingPtr(_result, false);
}

inline _bstr_t _Application::GetCaption ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Caption(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void _Application::PutCaption ( _bstr_t prop ) {
    HRESULT _hr = put_Caption(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t _Application::GetPath ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Path(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline VARIANT_BOOL _Application::GetDisplayScrollBars ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DisplayScrollBars(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Application::PutDisplayScrollBars ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DisplayScrollBars(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t _Application::GetStartupPath ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_StartupPath(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void _Application::PutStartupPath ( _bstr_t prop ) {
    HRESULT _hr = put_StartupPath(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long _Application::GetBackgroundSavingStatus ( ) {
    long _result = 0;
    HRESULT _hr = get_BackgroundSavingStatus(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long _Application::GetBackgroundPrintingStatus ( ) {
    long _result = 0;
    HRESULT _hr = get_BackgroundPrintingStatus(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long _Application::GetLeft ( ) {
    long _result = 0;
    HRESULT _hr = get_Left(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Application::PutLeft ( long prop ) {
    HRESULT _hr = put_Left(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long _Application::GetTop ( ) {
    long _result = 0;
    HRESULT _hr = get_Top(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Application::PutTop ( long prop ) {
    HRESULT _hr = put_Top(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long _Application::GetWidth ( ) {
    long _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Application::PutWidth ( long prop ) {
    HRESULT _hr = put_Width(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long _Application::GetHeight ( ) {
    long _result = 0;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Application::PutHeight ( long prop ) {
    HRESULT _hr = put_Height(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdWindowState _Application::GetWindowState ( ) {
    enum WdWindowState _result;
    HRESULT _hr = get_WindowState(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Application::PutWindowState ( enum WdWindowState prop ) {
    HRESULT _hr = put_WindowState(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Application::GetDisplayAutoCompleteTips ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DisplayAutoCompleteTips(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Application::PutDisplayAutoCompleteTips ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DisplayAutoCompleteTips(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline OptionsPtr _Application::GetOptions ( ) {
    struct Options * _result = 0;
    HRESULT _hr = get_Options(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OptionsPtr(_result, false);
}

inline enum WdAlertLevel _Application::GetDisplayAlerts ( ) {
    enum WdAlertLevel _result;
    HRESULT _hr = get_DisplayAlerts(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Application::PutDisplayAlerts ( enum WdAlertLevel prop ) {
    HRESULT _hr = put_DisplayAlerts(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline DictionariesPtr _Application::GetCustomDictionaries ( ) {
    struct Dictionaries * _result = 0;
    HRESULT _hr = get_CustomDictionaries(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DictionariesPtr(_result, false);
}

inline _bstr_t _Application::GetPathSeparator ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_PathSeparator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void _Application::PutStatusBar ( _bstr_t _arg1 ) {
    HRESULT _hr = put_StatusBar(_arg1);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Application::GetMAPIAvailable ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MAPIAvailable(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL _Application::GetDisplayScreenTips ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DisplayScreenTips(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Application::PutDisplayScreenTips ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DisplayScreenTips(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdEnableCancelKey _Application::GetEnableCancelKey ( ) {
    enum WdEnableCancelKey _result;
    HRESULT _hr = get_EnableCancelKey(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Application::PutEnableCancelKey ( enum WdEnableCancelKey prop ) {
    HRESULT _hr = put_EnableCancelKey(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Application::GetUserControl ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_UserControl(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline Office::FileSearchPtr _Application::GetFileSearch ( ) {
    struct Office::FileSearch * _result = 0;
    HRESULT _hr = get_FileSearch(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::FileSearchPtr(_result, false);
}

inline enum WdMailSystem _Application::GetMailSystem ( ) {
    enum WdMailSystem _result;
    HRESULT _hr = get_MailSystem(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _bstr_t _Application::GetDefaultTableSeparator ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_DefaultTableSeparator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void _Application::PutDefaultTableSeparator ( _bstr_t prop ) {
    HRESULT _hr = put_DefaultTableSeparator(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Application::GetShowVisualBasicEditor ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowVisualBasicEditor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Application::PutShowVisualBasicEditor ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowVisualBasicEditor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t _Application::GetBrowseExtraFileTypes ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_BrowseExtraFileTypes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void _Application::PutBrowseExtraFileTypes ( _bstr_t prop ) {
    HRESULT _hr = put_BrowseExtraFileTypes(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Application::GetIsObjectValid ( IDispatch * Object ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IsObjectValid(Object, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HangulHanjaConversionDictionariesPtr _Application::GetHangulHanjaDictionaries ( ) {
    struct HangulHanjaConversionDictionaries * _result = 0;
    HRESULT _hr = get_HangulHanjaDictionaries(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HangulHanjaConversionDictionariesPtr(_result, false);
}

inline MailMessagePtr _Application::GetMailMessage ( ) {
    struct MailMessage * _result = 0;
    HRESULT _hr = get_MailMessage(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return MailMessagePtr(_result, false);
}

inline VARIANT_BOOL _Application::GetFocusInMailHeader ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_FocusInMailHeader(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT _Application::Quit ( VARIANT * SaveChanges, VARIANT * OriginalFormat, VARIANT * RouteDocument ) {
    HRESULT _hr = raw_Quit(SaveChanges, OriginalFormat, RouteDocument);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Application::ScreenRefresh ( ) {
    HRESULT _hr = raw_ScreenRefresh();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Application::PrintOutOld ( VARIANT * Background, VARIANT * Append, VARIANT * Range, VARIANT * OutputFileName, VARIANT * From, VARIANT * To, VARIANT * Item, VARIANT * Copies, VARIANT * Pages, VARIANT * PageType, VARIANT * PrintToFile, VARIANT * Collate, VARIANT * FileName, VARIANT * ActivePrinterMacGX, VARIANT * ManualDuplexPrint ) {
    HRESULT _hr = raw_PrintOutOld(Background, Append, Range, OutputFileName, From, To, Item, Copies, Pages, PageType, PrintToFile, Collate, FileName, ActivePrinterMacGX, ManualDuplexPrint);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Application::LookupNameProperties ( _bstr_t Name ) {
    HRESULT _hr = raw_LookupNameProperties(Name);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Application::SubstituteFont ( _bstr_t UnavailableFont, _bstr_t SubstituteFont ) {
    HRESULT _hr = raw_SubstituteFont(UnavailableFont, SubstituteFont);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL _Application::Repeat ( VARIANT * Times ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_Repeat(Times, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT _Application::DDEExecute ( long Channel, _bstr_t Command ) {
    HRESULT _hr = raw_DDEExecute(Channel, Command);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long _Application::DDEInitiate ( _bstr_t App, _bstr_t Topic ) {
    long _result = 0;
    HRESULT _hr = raw_DDEInitiate(App, Topic, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT _Application::DDEPoke ( long Channel, _bstr_t Item, _bstr_t Data ) {
    HRESULT _hr = raw_DDEPoke(Channel, Item, Data);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _bstr_t _Application::DDERequest ( long Channel, _bstr_t Item ) {
    BSTR _result = 0;
    HRESULT _hr = raw_DDERequest(Channel, Item, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline HRESULT _Application::DDETerminate ( long Channel ) {
    HRESULT _hr = raw_DDETerminate(Channel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Application::DDETerminateAll ( ) {
    HRESULT _hr = raw_DDETerminateAll();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long _Application::BuildKeyCode ( enum WdKey Arg1, VARIANT * Arg2, VARIANT * Arg3, VARIANT * Arg4 ) {
    long _result = 0;
    HRESULT _hr = raw_BuildKeyCode(Arg1, Arg2, Arg3, Arg4, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _bstr_t _Application::KeyString ( long KeyCode, VARIANT * KeyCode2 ) {
    BSTR _result = 0;
    HRESULT _hr = raw_KeyString(KeyCode, KeyCode2, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline HRESULT _Application::OrganizerCopy ( _bstr_t Source, _bstr_t Destination, _bstr_t Name, enum WdOrganizerObject Object ) {
    HRESULT _hr = raw_OrganizerCopy(Source, Destination, Name, Object);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Application::OrganizerDelete ( _bstr_t Source, _bstr_t Name, enum WdOrganizerObject Object ) {
    HRESULT _hr = raw_OrganizerDelete(Source, Name, Object);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Application::OrganizerRename ( _bstr_t Source, _bstr_t Name, _bstr_t NewName, enum WdOrganizerObject Object ) {
    HRESULT _hr = raw_OrganizerRename(Source, Name, NewName, Object);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Application::AddAddress ( SAFEARRAY * * TagID, SAFEARRAY * * Value ) {
    HRESULT _hr = raw_AddAddress(TagID, Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _bstr_t _Application::GetAddress ( VARIANT * Name, VARIANT * AddressProperties, VARIANT * UseAutoText, VARIANT * DisplaySelectDialog, VARIANT * SelectDialog, VARIANT * CheckNamesDialog, VARIANT * RecentAddressesChoice, VARIANT * UpdateRecentAddresses ) {
    BSTR _result = 0;
    HRESULT _hr = raw_GetAddress(Name, AddressProperties, UseAutoText, DisplaySelectDialog, SelectDialog, CheckNamesDialog, RecentAddressesChoice, UpdateRecentAddresses, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline VARIANT_BOOL _Application::CheckGrammar ( _bstr_t String ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_CheckGrammar(String, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL _Application::CheckSpelling ( _bstr_t Word, VARIANT * CustomDictionary, VARIANT * IgnoreUppercase, VARIANT * MainDictionary, VARIANT * CustomDictionary2, VARIANT * CustomDictionary3, VARIANT * CustomDictionary4, VARIANT * CustomDictionary5, VARIANT * CustomDictionary6, VARIANT * CustomDictionary7, VARIANT * CustomDictionary8, VARIANT * CustomDictionary9, VARIANT * CustomDictionary10 ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_CheckSpelling(Word, CustomDictionary, IgnoreUppercase, MainDictionary, CustomDictionary2, CustomDictionary3, CustomDictionary4, CustomDictionary5, CustomDictionary6, CustomDictionary7, CustomDictionary8, CustomDictionary9, CustomDictionary10, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT _Application::ResetIgnoreAll ( ) {
    HRESULT _hr = raw_ResetIgnoreAll();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline SpellingSuggestionsPtr _Application::GetSpellingSuggestions ( _bstr_t Word, VARIANT * CustomDictionary, VARIANT * IgnoreUppercase, VARIANT * MainDictionary, VARIANT * SuggestionMode, VARIANT * CustomDictionary2, VARIANT * CustomDictionary3, VARIANT * CustomDictionary4, VARIANT * CustomDictionary5, VARIANT * CustomDictionary6, VARIANT * CustomDictionary7, VARIANT * CustomDictionary8, VARIANT * CustomDictionary9, VARIANT * CustomDictionary10 ) {
    struct SpellingSuggestions * _result = 0;
    HRESULT _hr = raw_GetSpellingSuggestions(Word, CustomDictionary, IgnoreUppercase, MainDictionary, SuggestionMode, CustomDictionary2, CustomDictionary3, CustomDictionary4, CustomDictionary5, CustomDictionary6, CustomDictionary7, CustomDictionary8, CustomDictionary9, CustomDictionary10, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SpellingSuggestionsPtr(_result, false);
}

inline HRESULT _Application::GoBack ( ) {
    HRESULT _hr = raw_GoBack();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Application::Help ( VARIANT * HelpType ) {
    HRESULT _hr = raw_Help(HelpType);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Application::AutomaticChange ( ) {
    HRESULT _hr = raw_AutomaticChange();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Application::ShowMe ( ) {
    HRESULT _hr = raw_ShowMe();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Application::HelpTool ( ) {
    HRESULT _hr = raw_HelpTool();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline WindowPtr _Application::NewWindow ( ) {
    struct Window * _result = 0;
    HRESULT _hr = raw_NewWindow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return WindowPtr(_result, false);
}

inline HRESULT _Application::ListCommands ( VARIANT_BOOL ListAllCommands ) {
    HRESULT _hr = raw_ListCommands(ListAllCommands);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Application::ShowClipboard ( ) {
    HRESULT _hr = raw_ShowClipboard();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Application::OnTime ( VARIANT * When, _bstr_t Name, VARIANT * Tolerance ) {
    HRESULT _hr = raw_OnTime(When, Name, Tolerance);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Application::NextLetter ( ) {
    HRESULT _hr = raw_NextLetter();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline short _Application::MountVolume ( _bstr_t Zone, _bstr_t Server, _bstr_t Volume, VARIANT * User, VARIANT * UserPassword, VARIANT * VolumePassword ) {
    short _result = 0;
    HRESULT _hr = raw_MountVolume(Zone, Server, Volume, User, UserPassword, VolumePassword, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _bstr_t _Application::CleanString ( _bstr_t String ) {
    BSTR _result = 0;
    HRESULT _hr = raw_CleanString(String, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline HRESULT _Application::SendFax ( ) {
    HRESULT _hr = raw_SendFax();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Application::ChangeFileOpenDirectory ( _bstr_t Path ) {
    HRESULT _hr = raw_ChangeFileOpenDirectory(Path);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Application::RunOld ( _bstr_t MacroName ) {
    HRESULT _hr = raw_RunOld(MacroName);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Application::GoForward ( ) {
    HRESULT _hr = raw_GoForward();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Application::Move ( long Left, long Top ) {
    HRESULT _hr = raw_Move(Left, Top);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Application::Resize ( long Width, long Height ) {
    HRESULT _hr = raw_Resize(Width, Height);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline float _Application::InchesToPoints ( float Inches ) {
    float _result = 0;
    HRESULT _hr = raw_InchesToPoints(Inches, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline float _Application::CentimetersToPoints ( float Centimeters ) {
    float _result = 0;
    HRESULT _hr = raw_CentimetersToPoints(Centimeters, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline float _Application::MillimetersToPoints ( float Millimeters ) {
    float _result = 0;
    HRESULT _hr = raw_MillimetersToPoints(Millimeters, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline float _Application::PicasToPoints ( float Picas ) {
    float _result = 0;
    HRESULT _hr = raw_PicasToPoints(Picas, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline float _Application::LinesToPoints ( float Lines ) {
    float _result = 0;
    HRESULT _hr = raw_LinesToPoints(Lines, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline float _Application::PointsToInches ( float Points ) {
    float _result = 0;
    HRESULT _hr = raw_PointsToInches(Points, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline float _Application::PointsToCentimeters ( float Points ) {
    float _result = 0;
    HRESULT _hr = raw_PointsToCentimeters(Points, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline float _Application::PointsToMillimeters ( float Points ) {
    float _result = 0;
    HRESULT _hr = raw_PointsToMillimeters(Points, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline float _Application::PointsToPicas ( float Points ) {
    float _result = 0;
    HRESULT _hr = raw_PointsToPicas(Points, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline float _Application::PointsToLines ( float Points ) {
    float _result = 0;
    HRESULT _hr = raw_PointsToLines(Points, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT _Application::Activate ( ) {
    HRESULT _hr = raw_Activate();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline float _Application::PointsToPixels ( float Points, VARIANT * fVertical ) {
    float _result = 0;
    HRESULT _hr = raw_PointsToPixels(Points, fVertical, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline float _Application::PixelsToPoints ( float Pixels, VARIANT * fVertical ) {
    float _result = 0;
    HRESULT _hr = raw_PixelsToPoints(Pixels, fVertical, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT _Application::KeyboardLatin ( ) {
    HRESULT _hr = raw_KeyboardLatin();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Application::KeyboardBidi ( ) {
    HRESULT _hr = raw_KeyboardBidi();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Application::ToggleKeyboard ( ) {
    HRESULT _hr = raw_ToggleKeyboard();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long _Application::Keyboard ( long LangId ) {
    long _result = 0;
    HRESULT _hr = raw_Keyboard(LangId, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _bstr_t _Application::ProductCode ( ) {
    BSTR _result = 0;
    HRESULT _hr = raw_ProductCode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline DefaultWebOptionsPtr _Application::DefaultWebOptions ( ) {
    struct DefaultWebOptions * _result = 0;
    HRESULT _hr = raw_DefaultWebOptions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DefaultWebOptionsPtr(_result, false);
}

inline HRESULT _Application::DiscussionSupport ( VARIANT * Range, VARIANT * cid, VARIANT * piCSE ) {
    HRESULT _hr = raw_DiscussionSupport(Range, cid, piCSE);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Application::SetDefaultTheme ( _bstr_t Name, enum WdDocumentMedium DocumentType ) {
    HRESULT _hr = raw_SetDefaultTheme(Name, DocumentType);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _bstr_t _Application::GetDefaultTheme ( enum WdDocumentMedium DocumentType ) {
    BSTR _result = 0;
    HRESULT _hr = raw_GetDefaultTheme(DocumentType, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline EmailOptionsPtr _Application::GetEmailOptions ( ) {
    struct EmailOptions * _result = 0;
    HRESULT _hr = get_EmailOptions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return EmailOptionsPtr(_result, false);
}

inline enum Office::MsoLanguageID _Application::GetLanguage ( ) {
    enum Office::MsoLanguageID _result;
    HRESULT _hr = get_Language(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline Office::COMAddInsPtr _Application::GetCOMAddIns ( ) {
    struct Office::COMAddIns * _result = 0;
    HRESULT _hr = get_COMAddIns(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::COMAddInsPtr(_result, false);
}

inline VARIANT_BOOL _Application::GetCheckLanguage ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_CheckLanguage(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Application::PutCheckLanguage ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_CheckLanguage(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline Office::LanguageSettingsPtr _Application::GetLanguageSettings ( ) {
    struct Office::LanguageSettings * _result = 0;
    HRESULT _hr = get_LanguageSettings(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::LanguageSettingsPtr(_result, false);
}

inline VARIANT_BOOL _Application::GetDummy1 ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Dummy1(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline Office::AnswerWizardPtr _Application::GetAnswerWizard ( ) {
    struct Office::AnswerWizard * _result = 0;
    HRESULT _hr = get_AnswerWizard(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::AnswerWizardPtr(_result, false);
}

inline enum Office::MsoFeatureInstall _Application::GetFeatureInstall ( ) {
    enum Office::MsoFeatureInstall _result;
    HRESULT _hr = get_FeatureInstall(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Application::PutFeatureInstall ( enum Office::MsoFeatureInstall prop ) {
    HRESULT _hr = put_FeatureInstall(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT _Application::PrintOut2000 ( VARIANT * Background, VARIANT * Append, VARIANT * Range, VARIANT * OutputFileName, VARIANT * From, VARIANT * To, VARIANT * Item, VARIANT * Copies, VARIANT * Pages, VARIANT * PageType, VARIANT * PrintToFile, VARIANT * Collate, VARIANT * FileName, VARIANT * ActivePrinterMacGX, VARIANT * ManualDuplexPrint, VARIANT * PrintZoomColumn, VARIANT * PrintZoomRow, VARIANT * PrintZoomPaperWidth, VARIANT * PrintZoomPaperHeight ) {
    HRESULT _hr = raw_PrintOut2000(Background, Append, Range, OutputFileName, From, To, Item, Copies, Pages, PageType, PrintToFile, Collate, FileName, ActivePrinterMacGX, ManualDuplexPrint, PrintZoomColumn, PrintZoomRow, PrintZoomPaperWidth, PrintZoomPaperHeight);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _variant_t _Application::Run ( _bstr_t MacroName, VARIANT * varg1, VARIANT * varg2, VARIANT * varg3, VARIANT * varg4, VARIANT * varg5, VARIANT * varg6, VARIANT * varg7, VARIANT * varg8, VARIANT * varg9, VARIANT * varg10, VARIANT * varg11, VARIANT * varg12, VARIANT * varg13, VARIANT * varg14, VARIANT * varg15, VARIANT * varg16, VARIANT * varg17, VARIANT * varg18, VARIANT * varg19, VARIANT * varg20, VARIANT * varg21, VARIANT * varg22, VARIANT * varg23, VARIANT * varg24, VARIANT * varg25, VARIANT * varg26, VARIANT * varg27, VARIANT * varg28, VARIANT * varg29, VARIANT * varg30 ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Run(MacroName, varg1, varg2, varg3, varg4, varg5, varg6, varg7, varg8, varg9, varg10, varg11, varg12, varg13, varg14, varg15, varg16, varg17, varg18, varg19, varg20, varg21, varg22, varg23, varg24, varg25, varg26, varg27, varg28, varg29, varg30, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline HRESULT _Application::PrintOut ( VARIANT * Background, VARIANT * Append, VARIANT * Range, VARIANT * OutputFileName, VARIANT * From, VARIANT * To, VARIANT * Item, VARIANT * Copies, VARIANT * Pages, VARIANT * PageType, VARIANT * PrintToFile, VARIANT * Collate, VARIANT * FileName, VARIANT * ActivePrinterMacGX, VARIANT * ManualDuplexPrint, VARIANT * PrintZoomColumn, VARIANT * PrintZoomRow, VARIANT * PrintZoomPaperWidth, VARIANT * PrintZoomPaperHeight ) {
    HRESULT _hr = raw_PrintOut(Background, Append, Range, OutputFileName, From, To, Item, Copies, Pages, PageType, PrintToFile, Collate, FileName, ActivePrinterMacGX, ManualDuplexPrint, PrintZoomColumn, PrintZoomRow, PrintZoomPaperWidth, PrintZoomPaperHeight);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline enum Office::MsoAutomationSecurity _Application::GetAutomationSecurity ( ) {
    enum Office::MsoAutomationSecurity _result;
    HRESULT _hr = get_AutomationSecurity(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Application::PutAutomationSecurity ( enum Office::MsoAutomationSecurity prop ) {
    HRESULT _hr = put_AutomationSecurity(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline Office::FileDialogPtr _Application::GetFileDialog ( enum Office::MsoFileDialogType FileDialogType ) {
    struct Office::FileDialog * _result = 0;
    HRESULT _hr = get_FileDialog(FileDialogType, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::FileDialogPtr(_result, false);
}

inline _bstr_t _Application::GetEmailTemplate ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_EmailTemplate(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void _Application::PutEmailTemplate ( _bstr_t prop ) {
    HRESULT _hr = put_EmailTemplate(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Application::GetShowWindowsInTaskbar ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowWindowsInTaskbar(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Application::PutShowWindowsInTaskbar ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowWindowsInTaskbar(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline Office::NewFilePtr _Application::GetNewDocument ( ) {
    struct Office::NewFile * _result = 0;
    HRESULT _hr = get_NewDocument(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::NewFilePtr(_result, false);
}

inline VARIANT_BOOL _Application::GetShowStartupDialog ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowStartupDialog(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Application::PutShowStartupDialog ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowStartupDialog(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline AutoCorrectPtr _Application::GetAutoCorrectEmail ( ) {
    struct AutoCorrect * _result = 0;
    HRESULT _hr = get_AutoCorrectEmail(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return AutoCorrectPtr(_result, false);
}

inline TaskPanesPtr _Application::GetTaskPanes ( ) {
    struct TaskPanes * _result = 0;
    HRESULT _hr = get_TaskPanes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TaskPanesPtr(_result, false);
}

inline VARIANT_BOOL _Application::GetDefaultLegalBlackline ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DefaultLegalBlackline(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Application::PutDefaultLegalBlackline ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DefaultLegalBlackline(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Application::Dummy2 ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_Dummy2(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline SmartTagRecognizersPtr _Application::GetSmartTagRecognizers ( ) {
    struct SmartTagRecognizers * _result = 0;
    HRESULT _hr = get_SmartTagRecognizers(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SmartTagRecognizersPtr(_result, false);
}

inline SmartTagTypesPtr _Application::GetSmartTagTypes ( ) {
    struct SmartTagTypes * _result = 0;
    HRESULT _hr = get_SmartTagTypes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SmartTagTypesPtr(_result, false);
}

inline XMLNamespacesPtr _Application::GetXMLNamespaces ( ) {
    struct XMLNamespaces * _result = 0;
    HRESULT _hr = get_XMLNamespaces(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLNamespacesPtr(_result, false);
}

inline HRESULT _Application::PutFocusInMailHeader ( ) {
    HRESULT _hr = raw_PutFocusInMailHeader();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL _Application::GetArbitraryXMLSupportAvailable ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ArbitraryXMLSupportAvailable(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _bstr_t _Application::GetBuildFull ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_BuildFull(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _bstr_t _Application::GetBuildFeatureCrew ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_BuildFeatureCrew(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline HRESULT _Application::LoadMasterList ( _bstr_t FileName ) {
    HRESULT _hr = raw_LoadMasterList(FileName);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _DocumentPtr _Application::CompareDocuments ( struct _Document * OriginalDocument, struct _Document * RevisedDocument, enum WdCompareDestination Destination, enum WdGranularity Granularity, VARIANT_BOOL CompareFormatting, VARIANT_BOOL CompareCaseChanges, VARIANT_BOOL CompareWhitespace, VARIANT_BOOL CompareTables, VARIANT_BOOL CompareHeaders, VARIANT_BOOL CompareFootnotes, VARIANT_BOOL CompareTextboxes, VARIANT_BOOL CompareFields, VARIANT_BOOL CompareComments, VARIANT_BOOL CompareMoves, _bstr_t RevisedAuthor, VARIANT_BOOL IgnoreAllComparisonWarnings ) {
    struct _Document * _result = 0;
    HRESULT _hr = raw_CompareDocuments(OriginalDocument, RevisedDocument, Destination, Granularity, CompareFormatting, CompareCaseChanges, CompareWhitespace, CompareTables, CompareHeaders, CompareFootnotes, CompareTextboxes, CompareFields, CompareComments, CompareMoves, RevisedAuthor, IgnoreAllComparisonWarnings, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _DocumentPtr(_result, false);
}

inline _DocumentPtr _Application::MergeDocuments ( struct _Document * OriginalDocument, struct _Document * RevisedDocument, enum WdCompareDestination Destination, enum WdGranularity Granularity, VARIANT_BOOL CompareFormatting, VARIANT_BOOL CompareCaseChanges, VARIANT_BOOL CompareWhitespace, VARIANT_BOOL CompareTables, VARIANT_BOOL CompareHeaders, VARIANT_BOOL CompareFootnotes, VARIANT_BOOL CompareTextboxes, VARIANT_BOOL CompareFields, VARIANT_BOOL CompareComments, VARIANT_BOOL CompareMoves, _bstr_t OriginalAuthor, _bstr_t RevisedAuthor, enum WdMergeFormatFrom FormatFrom ) {
    struct _Document * _result = 0;
    HRESULT _hr = raw_MergeDocuments(OriginalDocument, RevisedDocument, Destination, Granularity, CompareFormatting, CompareCaseChanges, CompareWhitespace, CompareTables, CompareHeaders, CompareFootnotes, CompareTextboxes, CompareFields, CompareComments, CompareMoves, OriginalAuthor, RevisedAuthor, FormatFrom, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _DocumentPtr(_result, false);
}

inline BibliographyPtr _Application::GetBibliography ( ) {
    struct Bibliography * _result = 0;
    HRESULT _hr = get_Bibliography(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BibliographyPtr(_result, false);
}

inline VARIANT_BOOL _Application::GetShowStylePreviews ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowStylePreviews(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Application::PutShowStylePreviews ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowStylePreviews(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Application::GetRestrictLinkedStyles ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_RestrictLinkedStyles(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Application::PutRestrictLinkedStyles ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_RestrictLinkedStyles(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline OMathAutoCorrectPtr _Application::GetOMathAutoCorrect ( ) {
    struct OMathAutoCorrect * _result = 0;
    HRESULT _hr = get_OMathAutoCorrect(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathAutoCorrectPtr(_result, false);
}

inline VARIANT_BOOL _Application::GetDisplayDocumentInformationPanel ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DisplayDocumentInformationPanel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Application::PutDisplayDocumentInformationPanel ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DisplayDocumentInformationPanel(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline Office::IAssistancePtr _Application::GetAssistance ( ) {
    struct Office::IAssistance * _result = 0;
    HRESULT _hr = get_Assistance(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::IAssistancePtr(_result, false);
}

inline VARIANT_BOOL _Application::GetOpenAttachmentsInFullScreen ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_OpenAttachmentsInFullScreen(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Application::PutOpenAttachmentsInFullScreen ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_OpenAttachmentsInFullScreen(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long _Application::GetActiveEncryptionSession ( ) {
    long _result = 0;
    HRESULT _hr = get_ActiveEncryptionSession(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL _Application::GetDontResetInsertionPointProperties ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DontResetInsertionPointProperties(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Application::PutDontResetInsertionPointProperties ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DontResetInsertionPointProperties(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline Office::SmartArtLayoutsPtr _Application::GetSmartArtLayouts ( ) {
    struct Office::SmartArtLayouts * _result = 0;
    HRESULT _hr = get_SmartArtLayouts(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::SmartArtLayoutsPtr(_result, false);
}

inline Office::SmartArtQuickStylesPtr _Application::GetSmartArtQuickStyles ( ) {
    struct Office::SmartArtQuickStyles * _result = 0;
    HRESULT _hr = get_SmartArtQuickStyles(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::SmartArtQuickStylesPtr(_result, false);
}

inline Office::SmartArtColorsPtr _Application::GetSmartArtColors ( ) {
    struct Office::SmartArtColors * _result = 0;
    HRESULT _hr = get_SmartArtColors(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::SmartArtColorsPtr(_result, false);
}

inline HRESULT _Application::ThreeWayMerge ( struct _Document * LocalDocument, struct _Document * ServerDocument, struct _Document * BaseDocument, VARIANT_BOOL FavorSource ) {
    HRESULT _hr = raw_ThreeWayMerge(LocalDocument, ServerDocument, BaseDocument, FavorSource);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Application::Dummy4 ( ) {
    HRESULT _hr = raw_Dummy4();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline UndoRecordPtr _Application::GetUndoRecord ( ) {
    struct UndoRecord * _result = 0;
    HRESULT _hr = get_UndoRecord(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return UndoRecordPtr(_result, false);
}

inline Office::PickerDialogPtr _Application::GetPickerDialog ( ) {
    struct Office::PickerDialog * _result = 0;
    HRESULT _hr = get_PickerDialog(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::PickerDialogPtr(_result, false);
}

inline ProtectedViewWindowsPtr _Application::GetProtectedViewWindows ( ) {
    struct ProtectedViewWindows * _result = 0;
    HRESULT _hr = get_ProtectedViewWindows(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ProtectedViewWindowsPtr(_result, false);
}

inline ProtectedViewWindowPtr _Application::GetActiveProtectedViewWindow ( ) {
    struct ProtectedViewWindow * _result = 0;
    HRESULT _hr = get_ActiveProtectedViewWindow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ProtectedViewWindowPtr(_result, false);
}

inline VARIANT_BOOL _Application::GetIsSandboxed ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IsSandboxed(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum Office::MsoFileValidationMode _Application::GetFileValidation ( ) {
    enum Office::MsoFileValidationMode _result;
    HRESULT _hr = get_FileValidation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Application::PutFileValidation ( enum Office::MsoFileValidationMode prop ) {
    HRESULT _hr = put_FileValidation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface _Global wrapper method implementations
//

inline _ApplicationPtr _Global::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long _Global::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr _Global::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline _bstr_t _Global::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline DocumentsPtr _Global::GetDocuments ( ) {
    struct Documents * _result = 0;
    HRESULT _hr = get_Documents(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DocumentsPtr(_result, false);
}

inline WindowsPtr _Global::GetWindows ( ) {
    struct Windows * _result = 0;
    HRESULT _hr = get_Windows(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return WindowsPtr(_result, false);
}

inline _DocumentPtr _Global::GetActiveDocument ( ) {
    struct _Document * _result = 0;
    HRESULT _hr = get_ActiveDocument(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _DocumentPtr(_result, false);
}

inline WindowPtr _Global::GetActiveWindow ( ) {
    struct Window * _result = 0;
    HRESULT _hr = get_ActiveWindow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return WindowPtr(_result, false);
}

inline SelectionPtr _Global::GetSelection ( ) {
    struct Selection * _result = 0;
    HRESULT _hr = get_Selection(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SelectionPtr(_result, false);
}

inline IDispatchPtr _Global::GetWordBasic ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_WordBasic(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline VARIANT_BOOL _Global::GetPrintPreview ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PrintPreview(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Global::PutPrintPreview ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PrintPreview(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline RecentFilesPtr _Global::GetRecentFiles ( ) {
    struct RecentFiles * _result = 0;
    HRESULT _hr = get_RecentFiles(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RecentFilesPtr(_result, false);
}

inline TemplatePtr _Global::GetNormalTemplate ( ) {
    struct Template * _result = 0;
    HRESULT _hr = get_NormalTemplate(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TemplatePtr(_result, false);
}

inline SystemPtr _Global::GetSystem ( ) {
    struct System * _result = 0;
    HRESULT _hr = get_System(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SystemPtr(_result, false);
}

inline AutoCorrectPtr _Global::GetAutoCorrect ( ) {
    struct AutoCorrect * _result = 0;
    HRESULT _hr = get_AutoCorrect(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return AutoCorrectPtr(_result, false);
}

inline FontNamesPtr _Global::GetFontNames ( ) {
    struct FontNames * _result = 0;
    HRESULT _hr = get_FontNames(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FontNamesPtr(_result, false);
}

inline FontNamesPtr _Global::GetLandscapeFontNames ( ) {
    struct FontNames * _result = 0;
    HRESULT _hr = get_LandscapeFontNames(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FontNamesPtr(_result, false);
}

inline FontNamesPtr _Global::GetPortraitFontNames ( ) {
    struct FontNames * _result = 0;
    HRESULT _hr = get_PortraitFontNames(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FontNamesPtr(_result, false);
}

inline LanguagesPtr _Global::GetLanguages ( ) {
    struct Languages * _result = 0;
    HRESULT _hr = get_Languages(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return LanguagesPtr(_result, false);
}

inline Office::AssistantPtr _Global::GetAssistant ( ) {
    struct Office::Assistant * _result = 0;
    HRESULT _hr = get_Assistant(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::AssistantPtr(_result, false);
}

inline FileConvertersPtr _Global::GetFileConverters ( ) {
    struct FileConverters * _result = 0;
    HRESULT _hr = get_FileConverters(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FileConvertersPtr(_result, false);
}

inline DialogsPtr _Global::GetDialogs ( ) {
    struct Dialogs * _result = 0;
    HRESULT _hr = get_Dialogs(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DialogsPtr(_result, false);
}

inline CaptionLabelsPtr _Global::GetCaptionLabels ( ) {
    struct CaptionLabels * _result = 0;
    HRESULT _hr = get_CaptionLabels(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CaptionLabelsPtr(_result, false);
}

inline AutoCaptionsPtr _Global::GetAutoCaptions ( ) {
    struct AutoCaptions * _result = 0;
    HRESULT _hr = get_AutoCaptions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return AutoCaptionsPtr(_result, false);
}

inline AddInsPtr _Global::GetAddIns ( ) {
    struct AddIns * _result = 0;
    HRESULT _hr = get_AddIns(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return AddInsPtr(_result, false);
}

inline TasksPtr _Global::GetTasks ( ) {
    struct Tasks * _result = 0;
    HRESULT _hr = get_Tasks(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TasksPtr(_result, false);
}

inline IDispatchPtr _Global::GetMacroContainer ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_MacroContainer(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline Office::_CommandBarsPtr _Global::GetCommandBars ( ) {
    struct Office::_CommandBars * _result = 0;
    HRESULT _hr = get_CommandBars(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::_CommandBarsPtr(_result, false);
}

inline SynonymInfoPtr _Global::GetSynonymInfo ( _bstr_t Word, VARIANT * LanguageID ) {
    struct SynonymInfo * _result = 0;
    HRESULT _hr = get_SynonymInfo(Word, LanguageID, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SynonymInfoPtr(_result, false);
}

inline VBIDE::VBEPtr _Global::GetVBE ( ) {
    struct VBIDE::VBE * _result = 0;
    HRESULT _hr = get_VBE(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return VBIDE::VBEPtr(_result, false);
}

inline ListGalleriesPtr _Global::GetListGalleries ( ) {
    struct ListGalleries * _result = 0;
    HRESULT _hr = get_ListGalleries(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ListGalleriesPtr(_result, false);
}

inline _bstr_t _Global::GetActivePrinter ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_ActivePrinter(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void _Global::PutActivePrinter ( _bstr_t prop ) {
    HRESULT _hr = put_ActivePrinter(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline TemplatesPtr _Global::GetTemplates ( ) {
    struct Templates * _result = 0;
    HRESULT _hr = get_Templates(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TemplatesPtr(_result, false);
}

inline IDispatchPtr _Global::GetCustomizationContext ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_CustomizationContext(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline void _Global::PutCustomizationContext ( IDispatch * prop ) {
    HRESULT _hr = put_CustomizationContext(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline KeyBindingsPtr _Global::GetKeyBindings ( ) {
    struct KeyBindings * _result = 0;
    HRESULT _hr = get_KeyBindings(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return KeyBindingsPtr(_result, false);
}

inline KeysBoundToPtr _Global::GetKeysBoundTo ( enum WdKeyCategory KeyCategory, _bstr_t Command, VARIANT * CommandParameter ) {
    struct KeysBoundTo * _result = 0;
    HRESULT _hr = get_KeysBoundTo(KeyCategory, Command, CommandParameter, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return KeysBoundToPtr(_result, false);
}

inline KeyBindingPtr _Global::GetFindKey ( long KeyCode, VARIANT * KeyCode2 ) {
    struct KeyBinding * _result = 0;
    HRESULT _hr = get_FindKey(KeyCode, KeyCode2, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return KeyBindingPtr(_result, false);
}

inline OptionsPtr _Global::GetOptions ( ) {
    struct Options * _result = 0;
    HRESULT _hr = get_Options(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OptionsPtr(_result, false);
}

inline DictionariesPtr _Global::GetCustomDictionaries ( ) {
    struct Dictionaries * _result = 0;
    HRESULT _hr = get_CustomDictionaries(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DictionariesPtr(_result, false);
}

inline void _Global::PutStatusBar ( _bstr_t _arg1 ) {
    HRESULT _hr = put_StatusBar(_arg1);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Global::GetShowVisualBasicEditor ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowVisualBasicEditor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Global::PutShowVisualBasicEditor ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowVisualBasicEditor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Global::GetIsObjectValid ( IDispatch * Object ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IsObjectValid(Object, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HangulHanjaConversionDictionariesPtr _Global::GetHangulHanjaDictionaries ( ) {
    struct HangulHanjaConversionDictionaries * _result = 0;
    HRESULT _hr = get_HangulHanjaDictionaries(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HangulHanjaConversionDictionariesPtr(_result, false);
}

inline VARIANT_BOOL _Global::Repeat ( VARIANT * Times ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_Repeat(Times, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT _Global::DDEExecute ( long Channel, _bstr_t Command ) {
    HRESULT _hr = raw_DDEExecute(Channel, Command);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long _Global::DDEInitiate ( _bstr_t App, _bstr_t Topic ) {
    long _result = 0;
    HRESULT _hr = raw_DDEInitiate(App, Topic, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT _Global::DDEPoke ( long Channel, _bstr_t Item, _bstr_t Data ) {
    HRESULT _hr = raw_DDEPoke(Channel, Item, Data);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _bstr_t _Global::DDERequest ( long Channel, _bstr_t Item ) {
    BSTR _result = 0;
    HRESULT _hr = raw_DDERequest(Channel, Item, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline HRESULT _Global::DDETerminate ( long Channel ) {
    HRESULT _hr = raw_DDETerminate(Channel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Global::DDETerminateAll ( ) {
    HRESULT _hr = raw_DDETerminateAll();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long _Global::BuildKeyCode ( enum WdKey Arg1, VARIANT * Arg2, VARIANT * Arg3, VARIANT * Arg4 ) {
    long _result = 0;
    HRESULT _hr = raw_BuildKeyCode(Arg1, Arg2, Arg3, Arg4, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _bstr_t _Global::KeyString ( long KeyCode, VARIANT * KeyCode2 ) {
    BSTR _result = 0;
    HRESULT _hr = raw_KeyString(KeyCode, KeyCode2, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline VARIANT_BOOL _Global::CheckSpelling ( _bstr_t Word, VARIANT * CustomDictionary, VARIANT * IgnoreUppercase, VARIANT * MainDictionary, VARIANT * CustomDictionary2, VARIANT * CustomDictionary3, VARIANT * CustomDictionary4, VARIANT * CustomDictionary5, VARIANT * CustomDictionary6, VARIANT * CustomDictionary7, VARIANT * CustomDictionary8, VARIANT * CustomDictionary9, VARIANT * CustomDictionary10 ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_CheckSpelling(Word, CustomDictionary, IgnoreUppercase, MainDictionary, CustomDictionary2, CustomDictionary3, CustomDictionary4, CustomDictionary5, CustomDictionary6, CustomDictionary7, CustomDictionary8, CustomDictionary9, CustomDictionary10, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline SpellingSuggestionsPtr _Global::GetSpellingSuggestions ( _bstr_t Word, VARIANT * CustomDictionary, VARIANT * IgnoreUppercase, VARIANT * MainDictionary, VARIANT * SuggestionMode, VARIANT * CustomDictionary2, VARIANT * CustomDictionary3, VARIANT * CustomDictionary4, VARIANT * CustomDictionary5, VARIANT * CustomDictionary6, VARIANT * CustomDictionary7, VARIANT * CustomDictionary8, VARIANT * CustomDictionary9, VARIANT * CustomDictionary10 ) {
    struct SpellingSuggestions * _result = 0;
    HRESULT _hr = raw_GetSpellingSuggestions(Word, CustomDictionary, IgnoreUppercase, MainDictionary, SuggestionMode, CustomDictionary2, CustomDictionary3, CustomDictionary4, CustomDictionary5, CustomDictionary6, CustomDictionary7, CustomDictionary8, CustomDictionary9, CustomDictionary10, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SpellingSuggestionsPtr(_result, false);
}

inline HRESULT _Global::Help ( VARIANT * HelpType ) {
    HRESULT _hr = raw_Help(HelpType);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline WindowPtr _Global::NewWindow ( ) {
    struct Window * _result = 0;
    HRESULT _hr = raw_NewWindow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return WindowPtr(_result, false);
}

inline _bstr_t _Global::CleanString ( _bstr_t String ) {
    BSTR _result = 0;
    HRESULT _hr = raw_CleanString(String, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline HRESULT _Global::ChangeFileOpenDirectory ( _bstr_t Path ) {
    HRESULT _hr = raw_ChangeFileOpenDirectory(Path);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline float _Global::InchesToPoints ( float Inches ) {
    float _result = 0;
    HRESULT _hr = raw_InchesToPoints(Inches, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline float _Global::CentimetersToPoints ( float Centimeters ) {
    float _result = 0;
    HRESULT _hr = raw_CentimetersToPoints(Centimeters, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline float _Global::MillimetersToPoints ( float Millimeters ) {
    float _result = 0;
    HRESULT _hr = raw_MillimetersToPoints(Millimeters, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline float _Global::PicasToPoints ( float Picas ) {
    float _result = 0;
    HRESULT _hr = raw_PicasToPoints(Picas, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline float _Global::LinesToPoints ( float Lines ) {
    float _result = 0;
    HRESULT _hr = raw_LinesToPoints(Lines, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline float _Global::PointsToInches ( float Points ) {
    float _result = 0;
    HRESULT _hr = raw_PointsToInches(Points, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline float _Global::PointsToCentimeters ( float Points ) {
    float _result = 0;
    HRESULT _hr = raw_PointsToCentimeters(Points, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline float _Global::PointsToMillimeters ( float Points ) {
    float _result = 0;
    HRESULT _hr = raw_PointsToMillimeters(Points, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline float _Global::PointsToPicas ( float Points ) {
    float _result = 0;
    HRESULT _hr = raw_PointsToPicas(Points, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline float _Global::PointsToLines ( float Points ) {
    float _result = 0;
    HRESULT _hr = raw_PointsToLines(Points, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline float _Global::PointsToPixels ( float Points, VARIANT * fVertical ) {
    float _result = 0;
    HRESULT _hr = raw_PointsToPixels(Points, fVertical, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline float _Global::PixelsToPoints ( float Pixels, VARIANT * fVertical ) {
    float _result = 0;
    HRESULT _hr = raw_PixelsToPoints(Pixels, fVertical, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline Office::LanguageSettingsPtr _Global::GetLanguageSettings ( ) {
    struct Office::LanguageSettings * _result = 0;
    HRESULT _hr = get_LanguageSettings(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::LanguageSettingsPtr(_result, false);
}

inline Office::AnswerWizardPtr _Global::GetAnswerWizard ( ) {
    struct Office::AnswerWizard * _result = 0;
    HRESULT _hr = get_AnswerWizard(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::AnswerWizardPtr(_result, false);
}

inline AutoCorrectPtr _Global::GetAutoCorrectEmail ( ) {
    struct AutoCorrect * _result = 0;
    HRESULT _hr = get_AutoCorrectEmail(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return AutoCorrectPtr(_result, false);
}

inline ProtectedViewWindowsPtr _Global::GetProtectedViewWindows ( ) {
    struct ProtectedViewWindows * _result = 0;
    HRESULT _hr = get_ProtectedViewWindows(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ProtectedViewWindowsPtr(_result, false);
}

inline ProtectedViewWindowPtr _Global::GetActiveProtectedViewWindow ( ) {
    struct ProtectedViewWindow * _result = 0;
    HRESULT _hr = get_ActiveProtectedViewWindow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ProtectedViewWindowPtr(_result, false);
}

inline VARIANT_BOOL _Global::GetIsSandboxed ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IsSandboxed(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface _Document wrapper method implementations
//

inline _bstr_t _Document::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _ApplicationPtr _Document::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long _Document::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr _Document::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline IDispatchPtr _Document::GetBuiltInDocumentProperties ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_BuiltInDocumentProperties(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline IDispatchPtr _Document::GetCustomDocumentProperties ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_CustomDocumentProperties(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline _bstr_t _Document::GetPath ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Path(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline BookmarksPtr _Document::GetBookmarks ( ) {
    struct Bookmarks * _result = 0;
    HRESULT _hr = get_Bookmarks(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BookmarksPtr(_result, false);
}

inline TablesPtr _Document::GetTables ( ) {
    struct Tables * _result = 0;
    HRESULT _hr = get_Tables(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TablesPtr(_result, false);
}

inline FootnotesPtr _Document::GetFootnotes ( ) {
    struct Footnotes * _result = 0;
    HRESULT _hr = get_Footnotes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FootnotesPtr(_result, false);
}

inline EndnotesPtr _Document::GetEndnotes ( ) {
    struct Endnotes * _result = 0;
    HRESULT _hr = get_Endnotes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return EndnotesPtr(_result, false);
}

inline CommentsPtr _Document::GetComments ( ) {
    struct Comments * _result = 0;
    HRESULT _hr = get_Comments(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CommentsPtr(_result, false);
}

inline enum WdDocumentType _Document::GetType ( ) {
    enum WdDocumentType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL _Document::GetAutoHyphenation ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoHyphenation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutAutoHyphenation ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoHyphenation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetHyphenateCaps ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HyphenateCaps(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutHyphenateCaps ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HyphenateCaps(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long _Document::GetHyphenationZone ( ) {
    long _result = 0;
    HRESULT _hr = get_HyphenationZone(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutHyphenationZone ( long prop ) {
    HRESULT _hr = put_HyphenationZone(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long _Document::GetConsecutiveHyphensLimit ( ) {
    long _result = 0;
    HRESULT _hr = get_ConsecutiveHyphensLimit(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutConsecutiveHyphensLimit ( long prop ) {
    HRESULT _hr = put_ConsecutiveHyphensLimit(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline SectionsPtr _Document::GetSections ( ) {
    struct Sections * _result = 0;
    HRESULT _hr = get_Sections(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SectionsPtr(_result, false);
}

inline ParagraphsPtr _Document::GetParagraphs ( ) {
    struct Paragraphs * _result = 0;
    HRESULT _hr = get_Paragraphs(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ParagraphsPtr(_result, false);
}

inline WordsPtr _Document::GetWords ( ) {
    struct Words * _result = 0;
    HRESULT _hr = get_Words(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return WordsPtr(_result, false);
}

inline SentencesPtr _Document::GetSentences ( ) {
    struct Sentences * _result = 0;
    HRESULT _hr = get_Sentences(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SentencesPtr(_result, false);
}

inline CharactersPtr _Document::GetCharacters ( ) {
    struct Characters * _result = 0;
    HRESULT _hr = get_Characters(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CharactersPtr(_result, false);
}

inline FieldsPtr _Document::GetFields ( ) {
    struct Fields * _result = 0;
    HRESULT _hr = get_Fields(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FieldsPtr(_result, false);
}

inline FormFieldsPtr _Document::GetFormFields ( ) {
    struct FormFields * _result = 0;
    HRESULT _hr = get_FormFields(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FormFieldsPtr(_result, false);
}

inline StylesPtr _Document::GetStyles ( ) {
    struct Styles * _result = 0;
    HRESULT _hr = get_Styles(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return StylesPtr(_result, false);
}

inline FramesPtr _Document::GetFrames ( ) {
    struct Frames * _result = 0;
    HRESULT _hr = get_Frames(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FramesPtr(_result, false);
}

inline TablesOfFiguresPtr _Document::GetTablesOfFigures ( ) {
    struct TablesOfFigures * _result = 0;
    HRESULT _hr = get_TablesOfFigures(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TablesOfFiguresPtr(_result, false);
}

inline VariablesPtr _Document::GetVariables ( ) {
    struct Variables * _result = 0;
    HRESULT _hr = get_Variables(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return VariablesPtr(_result, false);
}

inline MailMergePtr _Document::GetMailMerge ( ) {
    struct MailMerge * _result = 0;
    HRESULT _hr = get_MailMerge(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return MailMergePtr(_result, false);
}

inline EnvelopePtr _Document::GetEnvelope ( ) {
    struct Envelope * _result = 0;
    HRESULT _hr = get_Envelope(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return EnvelopePtr(_result, false);
}

inline _bstr_t _Document::GetFullName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_FullName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline RevisionsPtr _Document::GetRevisions ( ) {
    struct Revisions * _result = 0;
    HRESULT _hr = get_Revisions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RevisionsPtr(_result, false);
}

inline TablesOfContentsPtr _Document::GetTablesOfContents ( ) {
    struct TablesOfContents * _result = 0;
    HRESULT _hr = get_TablesOfContents(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TablesOfContentsPtr(_result, false);
}

inline TablesOfAuthoritiesPtr _Document::GetTablesOfAuthorities ( ) {
    struct TablesOfAuthorities * _result = 0;
    HRESULT _hr = get_TablesOfAuthorities(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TablesOfAuthoritiesPtr(_result, false);
}

inline PageSetupPtr _Document::GetPageSetup ( ) {
    struct PageSetup * _result = 0;
    HRESULT _hr = get_PageSetup(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return PageSetupPtr(_result, false);
}

inline void _Document::PutPageSetup ( struct PageSetup * prop ) {
    HRESULT _hr = put_PageSetup(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline WindowsPtr _Document::GetWindows ( ) {
    struct Windows * _result = 0;
    HRESULT _hr = get_Windows(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return WindowsPtr(_result, false);
}

inline VARIANT_BOOL _Document::GetHasRoutingSlip ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HasRoutingSlip(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutHasRoutingSlip ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HasRoutingSlip(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline RoutingSlipPtr _Document::GetRoutingSlip ( ) {
    struct RoutingSlip * _result = 0;
    HRESULT _hr = get_RoutingSlip(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RoutingSlipPtr(_result, false);
}

inline VARIANT_BOOL _Document::GetRouted ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Routed(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline TablesOfAuthoritiesCategoriesPtr _Document::GetTablesOfAuthoritiesCategories ( ) {
    struct TablesOfAuthoritiesCategories * _result = 0;
    HRESULT _hr = get_TablesOfAuthoritiesCategories(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TablesOfAuthoritiesCategoriesPtr(_result, false);
}

inline IndexesPtr _Document::GetIndexes ( ) {
    struct Indexes * _result = 0;
    HRESULT _hr = get_Indexes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IndexesPtr(_result, false);
}

inline VARIANT_BOOL _Document::GetSaved ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Saved(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutSaved ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Saved(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline RangePtr _Document::GetContent ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Content(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline WindowPtr _Document::GetActiveWindow ( ) {
    struct Window * _result = 0;
    HRESULT _hr = get_ActiveWindow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return WindowPtr(_result, false);
}

inline enum WdDocumentKind _Document::GetKind ( ) {
    enum WdDocumentKind _result;
    HRESULT _hr = get_Kind(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutKind ( enum WdDocumentKind prop ) {
    HRESULT _hr = put_Kind(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetReadOnly ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ReadOnly(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline SubdocumentsPtr _Document::GetSubdocuments ( ) {
    struct Subdocuments * _result = 0;
    HRESULT _hr = get_Subdocuments(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SubdocumentsPtr(_result, false);
}

inline VARIANT_BOOL _Document::GetIsMasterDocument ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IsMasterDocument(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline float _Document::GetDefaultTabStop ( ) {
    float _result = 0;
    HRESULT _hr = get_DefaultTabStop(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutDefaultTabStop ( float prop ) {
    HRESULT _hr = put_DefaultTabStop(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetEmbedTrueTypeFonts ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_EmbedTrueTypeFonts(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutEmbedTrueTypeFonts ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_EmbedTrueTypeFonts(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetSaveFormsData ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SaveFormsData(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutSaveFormsData ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_SaveFormsData(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetReadOnlyRecommended ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ReadOnlyRecommended(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutReadOnlyRecommended ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ReadOnlyRecommended(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetSaveSubsetFonts ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SaveSubsetFonts(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutSaveSubsetFonts ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_SaveSubsetFonts(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetCompatibility ( enum WdCompatibility Type ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Compatibility(Type, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutCompatibility ( enum WdCompatibility Type, VARIANT_BOOL prop ) {
    HRESULT _hr = put_Compatibility(Type, prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline StoryRangesPtr _Document::GetStoryRanges ( ) {
    struct StoryRanges * _result = 0;
    HRESULT _hr = get_StoryRanges(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return StoryRangesPtr(_result, false);
}

inline Office::_CommandBarsPtr _Document::GetCommandBars ( ) {
    struct Office::_CommandBars * _result = 0;
    HRESULT _hr = get_CommandBars(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::_CommandBarsPtr(_result, false);
}

inline VARIANT_BOOL _Document::GetIsSubdocument ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IsSubdocument(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long _Document::GetSaveFormat ( ) {
    long _result = 0;
    HRESULT _hr = get_SaveFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum WdProtectionType _Document::GetProtectionType ( ) {
    enum WdProtectionType _result;
    HRESULT _hr = get_ProtectionType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HyperlinksPtr _Document::GetHyperlinks ( ) {
    struct Hyperlinks * _result = 0;
    HRESULT _hr = get_Hyperlinks(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HyperlinksPtr(_result, false);
}

inline ShapesPtr _Document::GetShapes ( ) {
    struct Shapes * _result = 0;
    HRESULT _hr = get_Shapes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapesPtr(_result, false);
}

inline ListTemplatesPtr _Document::GetListTemplates ( ) {
    struct ListTemplates * _result = 0;
    HRESULT _hr = get_ListTemplates(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ListTemplatesPtr(_result, false);
}

inline ListsPtr _Document::GetLists ( ) {
    struct Lists * _result = 0;
    HRESULT _hr = get_Lists(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ListsPtr(_result, false);
}

inline VARIANT_BOOL _Document::GetUpdateStylesOnOpen ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_UpdateStylesOnOpen(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutUpdateStylesOnOpen ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_UpdateStylesOnOpen(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _variant_t _Document::GetAttachedTemplate ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_AttachedTemplate(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline void _Document::PutAttachedTemplate ( VARIANT * prop ) {
    HRESULT _hr = put_AttachedTemplate(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline InlineShapesPtr _Document::GetInlineShapes ( ) {
    struct InlineShapes * _result = 0;
    HRESULT _hr = get_InlineShapes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InlineShapesPtr(_result, false);
}

inline ShapePtr _Document::GetBackground ( ) {
    struct Shape * _result = 0;
    HRESULT _hr = get_Background(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline void _Document::PutBackground ( struct Shape * prop ) {
    HRESULT _hr = put_Background(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetGrammarChecked ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_GrammarChecked(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutGrammarChecked ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_GrammarChecked(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetSpellingChecked ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SpellingChecked(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutSpellingChecked ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_SpellingChecked(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetShowGrammaticalErrors ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowGrammaticalErrors(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutShowGrammaticalErrors ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowGrammaticalErrors(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetShowSpellingErrors ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowSpellingErrors(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutShowSpellingErrors ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowSpellingErrors(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VersionsPtr _Document::GetVersions ( ) {
    struct Versions * _result = 0;
    HRESULT _hr = get_Versions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return VersionsPtr(_result, false);
}

inline VARIANT_BOOL _Document::GetShowSummary ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowSummary(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutShowSummary ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowSummary(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdSummaryMode _Document::GetSummaryViewMode ( ) {
    enum WdSummaryMode _result;
    HRESULT _hr = get_SummaryViewMode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutSummaryViewMode ( enum WdSummaryMode prop ) {
    HRESULT _hr = put_SummaryViewMode(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long _Document::GetSummaryLength ( ) {
    long _result = 0;
    HRESULT _hr = get_SummaryLength(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutSummaryLength ( long prop ) {
    HRESULT _hr = put_SummaryLength(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetPrintFractionalWidths ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PrintFractionalWidths(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutPrintFractionalWidths ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PrintFractionalWidths(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetPrintPostScriptOverText ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PrintPostScriptOverText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutPrintPostScriptOverText ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PrintPostScriptOverText(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline IDispatchPtr _Document::GetContainer ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Container(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline VARIANT_BOOL _Document::GetPrintFormsData ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PrintFormsData(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutPrintFormsData ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PrintFormsData(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline ListParagraphsPtr _Document::GetListParagraphs ( ) {
    struct ListParagraphs * _result = 0;
    HRESULT _hr = get_ListParagraphs(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ListParagraphsPtr(_result, false);
}

inline void _Document::PutPassword ( _bstr_t _arg1 ) {
    HRESULT _hr = put_Password(_arg1);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline void _Document::PutWritePassword ( _bstr_t _arg1 ) {
    HRESULT _hr = put_WritePassword(_arg1);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetHasPassword ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HasPassword(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL _Document::GetWriteReserved ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_WriteReserved(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _bstr_t _Document::GetActiveWritingStyle ( VARIANT * LanguageID ) {
    BSTR _result = 0;
    HRESULT _hr = get_ActiveWritingStyle(LanguageID, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void _Document::PutActiveWritingStyle ( VARIANT * LanguageID, _bstr_t prop ) {
    HRESULT _hr = put_ActiveWritingStyle(LanguageID, prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetUserControl ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_UserControl(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutUserControl ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_UserControl(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetHasMailer ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HasMailer(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutHasMailer ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HasMailer(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline MailerPtr _Document::GetMailer ( ) {
    struct Mailer * _result = 0;
    HRESULT _hr = get_Mailer(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return MailerPtr(_result, false);
}

inline ReadabilityStatisticsPtr _Document::GetReadabilityStatistics ( ) {
    struct ReadabilityStatistics * _result = 0;
    HRESULT _hr = get_ReadabilityStatistics(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ReadabilityStatisticsPtr(_result, false);
}

inline ProofreadingErrorsPtr _Document::GetGrammaticalErrors ( ) {
    struct ProofreadingErrors * _result = 0;
    HRESULT _hr = get_GrammaticalErrors(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ProofreadingErrorsPtr(_result, false);
}

inline ProofreadingErrorsPtr _Document::GetSpellingErrors ( ) {
    struct ProofreadingErrors * _result = 0;
    HRESULT _hr = get_SpellingErrors(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ProofreadingErrorsPtr(_result, false);
}

inline VBIDE::_VBProjectPtr _Document::GetVBProject ( ) {
    struct VBIDE::_VBProject * _result = 0;
    HRESULT _hr = get_VBProject(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return VBIDE::_VBProjectPtr(_result, false);
}

inline VARIANT_BOOL _Document::GetFormsDesign ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_FormsDesign(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _bstr_t _Document::Get_CodeName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get__CodeName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void _Document::Put_CodeName ( _bstr_t prop ) {
    HRESULT _hr = put__CodeName(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t _Document::GetCodeName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_CodeName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline VARIANT_BOOL _Document::GetSnapToGrid ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SnapToGrid(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutSnapToGrid ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_SnapToGrid(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetSnapToShapes ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SnapToShapes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutSnapToShapes ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_SnapToShapes(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float _Document::GetGridDistanceHorizontal ( ) {
    float _result = 0;
    HRESULT _hr = get_GridDistanceHorizontal(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutGridDistanceHorizontal ( float prop ) {
    HRESULT _hr = put_GridDistanceHorizontal(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float _Document::GetGridDistanceVertical ( ) {
    float _result = 0;
    HRESULT _hr = get_GridDistanceVertical(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutGridDistanceVertical ( float prop ) {
    HRESULT _hr = put_GridDistanceVertical(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float _Document::GetGridOriginHorizontal ( ) {
    float _result = 0;
    HRESULT _hr = get_GridOriginHorizontal(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutGridOriginHorizontal ( float prop ) {
    HRESULT _hr = put_GridOriginHorizontal(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float _Document::GetGridOriginVertical ( ) {
    float _result = 0;
    HRESULT _hr = get_GridOriginVertical(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutGridOriginVertical ( float prop ) {
    HRESULT _hr = put_GridOriginVertical(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long _Document::GetGridSpaceBetweenHorizontalLines ( ) {
    long _result = 0;
    HRESULT _hr = get_GridSpaceBetweenHorizontalLines(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutGridSpaceBetweenHorizontalLines ( long prop ) {
    HRESULT _hr = put_GridSpaceBetweenHorizontalLines(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long _Document::GetGridSpaceBetweenVerticalLines ( ) {
    long _result = 0;
    HRESULT _hr = get_GridSpaceBetweenVerticalLines(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutGridSpaceBetweenVerticalLines ( long prop ) {
    HRESULT _hr = put_GridSpaceBetweenVerticalLines(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetGridOriginFromMargin ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_GridOriginFromMargin(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutGridOriginFromMargin ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_GridOriginFromMargin(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetKerningByAlgorithm ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_KerningByAlgorithm(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutKerningByAlgorithm ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_KerningByAlgorithm(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdJustificationMode _Document::GetJustificationMode ( ) {
    enum WdJustificationMode _result;
    HRESULT _hr = get_JustificationMode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutJustificationMode ( enum WdJustificationMode prop ) {
    HRESULT _hr = put_JustificationMode(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdFarEastLineBreakLevel _Document::GetFarEastLineBreakLevel ( ) {
    enum WdFarEastLineBreakLevel _result;
    HRESULT _hr = get_FarEastLineBreakLevel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutFarEastLineBreakLevel ( enum WdFarEastLineBreakLevel prop ) {
    HRESULT _hr = put_FarEastLineBreakLevel(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t _Document::GetNoLineBreakBefore ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_NoLineBreakBefore(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void _Document::PutNoLineBreakBefore ( _bstr_t prop ) {
    HRESULT _hr = put_NoLineBreakBefore(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t _Document::GetNoLineBreakAfter ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_NoLineBreakAfter(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void _Document::PutNoLineBreakAfter ( _bstr_t prop ) {
    HRESULT _hr = put_NoLineBreakAfter(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetTrackRevisions ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_TrackRevisions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutTrackRevisions ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_TrackRevisions(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetPrintRevisions ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PrintRevisions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutPrintRevisions ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PrintRevisions(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetShowRevisions ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowRevisions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutShowRevisions ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowRevisions(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT _Document::Close ( VARIANT * SaveChanges, VARIANT * OriginalFormat, VARIANT * RouteDocument ) {
    HRESULT _hr = raw_Close(SaveChanges, OriginalFormat, RouteDocument);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::SaveAs2000 ( VARIANT * FileName, VARIANT * FileFormat, VARIANT * LockComments, VARIANT * Password, VARIANT * AddToRecentFiles, VARIANT * WritePassword, VARIANT * ReadOnlyRecommended, VARIANT * EmbedTrueTypeFonts, VARIANT * SaveNativePictureFormat, VARIANT * SaveFormsData, VARIANT * SaveAsAOCELetter ) {
    HRESULT _hr = raw_SaveAs2000(FileName, FileFormat, LockComments, Password, AddToRecentFiles, WritePassword, ReadOnlyRecommended, EmbedTrueTypeFonts, SaveNativePictureFormat, SaveFormsData, SaveAsAOCELetter);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::Repaginate ( ) {
    HRESULT _hr = raw_Repaginate();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::FitToPages ( ) {
    HRESULT _hr = raw_FitToPages();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::ManualHyphenation ( ) {
    HRESULT _hr = raw_ManualHyphenation();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::Select ( ) {
    HRESULT _hr = raw_Select();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::DataForm ( ) {
    HRESULT _hr = raw_DataForm();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::Route ( ) {
    HRESULT _hr = raw_Route();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::Save ( ) {
    HRESULT _hr = raw_Save();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::PrintOutOld ( VARIANT * Background, VARIANT * Append, VARIANT * Range, VARIANT * OutputFileName, VARIANT * From, VARIANT * To, VARIANT * Item, VARIANT * Copies, VARIANT * Pages, VARIANT * PageType, VARIANT * PrintToFile, VARIANT * Collate, VARIANT * ActivePrinterMacGX, VARIANT * ManualDuplexPrint ) {
    HRESULT _hr = raw_PrintOutOld(Background, Append, Range, OutputFileName, From, To, Item, Copies, Pages, PageType, PrintToFile, Collate, ActivePrinterMacGX, ManualDuplexPrint);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::SendMail ( ) {
    HRESULT _hr = raw_SendMail();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline RangePtr _Document::Range ( VARIANT * Start, VARIANT * End ) {
    struct Range * _result = 0;
    HRESULT _hr = raw_Range(Start, End, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline HRESULT _Document::RunAutoMacro ( enum WdAutoMacros Which ) {
    HRESULT _hr = raw_RunAutoMacro(Which);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::Activate ( ) {
    HRESULT _hr = raw_Activate();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::PrintPreview ( ) {
    HRESULT _hr = raw_PrintPreview();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline RangePtr _Document::GoTo ( VARIANT * What, VARIANT * Which, VARIANT * Count, VARIANT * Name ) {
    struct Range * _result = 0;
    HRESULT _hr = raw_GoTo(What, Which, Count, Name, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline VARIANT_BOOL _Document::Undo ( VARIANT * Times ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_Undo(Times, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL _Document::Redo ( VARIANT * Times ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_Redo(Times, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long _Document::ComputeStatistics ( enum WdStatistic Statistic, VARIANT * IncludeFootnotesAndEndnotes ) {
    long _result = 0;
    HRESULT _hr = raw_ComputeStatistics(Statistic, IncludeFootnotesAndEndnotes, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT _Document::MakeCompatibilityDefault ( ) {
    HRESULT _hr = raw_MakeCompatibilityDefault();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::Protect2002 ( enum WdProtectionType Type, VARIANT * NoReset, VARIANT * Password ) {
    HRESULT _hr = raw_Protect2002(Type, NoReset, Password);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::Unprotect ( VARIANT * Password ) {
    HRESULT _hr = raw_Unprotect(Password);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::EditionOptions ( enum WdEditionType Type, enum WdEditionOption Option, _bstr_t Name, VARIANT * Format ) {
    HRESULT _hr = raw_EditionOptions(Type, Option, Name, Format);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::RunLetterWizard ( VARIANT * LetterContent, VARIANT * WizardMode ) {
    HRESULT _hr = raw_RunLetterWizard(LetterContent, WizardMode);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _LetterContentPtr _Document::GetLetterContent ( ) {
    struct _LetterContent * _result = 0;
    HRESULT _hr = raw_GetLetterContent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _LetterContentPtr(_result, false);
}

inline HRESULT _Document::SetLetterContent ( VARIANT * LetterContent ) {
    HRESULT _hr = raw_SetLetterContent(LetterContent);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::CopyStylesFromTemplate ( _bstr_t Template ) {
    HRESULT _hr = raw_CopyStylesFromTemplate(Template);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::UpdateStyles ( ) {
    HRESULT _hr = raw_UpdateStyles();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::CheckGrammar ( ) {
    HRESULT _hr = raw_CheckGrammar();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::CheckSpelling ( VARIANT * CustomDictionary, VARIANT * IgnoreUppercase, VARIANT * AlwaysSuggest, VARIANT * CustomDictionary2, VARIANT * CustomDictionary3, VARIANT * CustomDictionary4, VARIANT * CustomDictionary5, VARIANT * CustomDictionary6, VARIANT * CustomDictionary7, VARIANT * CustomDictionary8, VARIANT * CustomDictionary9, VARIANT * CustomDictionary10 ) {
    HRESULT _hr = raw_CheckSpelling(CustomDictionary, IgnoreUppercase, AlwaysSuggest, CustomDictionary2, CustomDictionary3, CustomDictionary4, CustomDictionary5, CustomDictionary6, CustomDictionary7, CustomDictionary8, CustomDictionary9, CustomDictionary10);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::FollowHyperlink ( VARIANT * Address, VARIANT * SubAddress, VARIANT * NewWindow, VARIANT * AddHistory, VARIANT * ExtraInfo, VARIANT * Method, VARIANT * HeaderInfo ) {
    HRESULT _hr = raw_FollowHyperlink(Address, SubAddress, NewWindow, AddHistory, ExtraInfo, Method, HeaderInfo);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::AddToFavorites ( ) {
    HRESULT _hr = raw_AddToFavorites();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::Reload ( ) {
    HRESULT _hr = raw_Reload();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline RangePtr _Document::AutoSummarize ( VARIANT * Length, VARIANT * Mode, VARIANT * UpdateProperties ) {
    struct Range * _result = 0;
    HRESULT _hr = raw_AutoSummarize(Length, Mode, UpdateProperties, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline HRESULT _Document::RemoveNumbers ( VARIANT * NumberType ) {
    HRESULT _hr = raw_RemoveNumbers(NumberType);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::ConvertNumbersToText ( VARIANT * NumberType ) {
    HRESULT _hr = raw_ConvertNumbersToText(NumberType);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long _Document::CountNumberedItems ( VARIANT * NumberType, VARIANT * Level ) {
    long _result = 0;
    HRESULT _hr = raw_CountNumberedItems(NumberType, Level, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT _Document::Post ( ) {
    HRESULT _hr = raw_Post();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::ToggleFormsDesign ( ) {
    HRESULT _hr = raw_ToggleFormsDesign();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::Compare2000 ( _bstr_t Name ) {
    HRESULT _hr = raw_Compare2000(Name);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::UpdateSummaryProperties ( ) {
    HRESULT _hr = raw_UpdateSummaryProperties();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _variant_t _Document::GetCrossReferenceItems ( VARIANT * ReferenceType ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_GetCrossReferenceItems(ReferenceType, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline HRESULT _Document::AutoFormat ( ) {
    HRESULT _hr = raw_AutoFormat();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::ViewCode ( ) {
    HRESULT _hr = raw_ViewCode();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::ViewPropertyBrowser ( ) {
    HRESULT _hr = raw_ViewPropertyBrowser();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::ForwardMailer ( ) {
    HRESULT _hr = raw_ForwardMailer();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::Reply ( ) {
    HRESULT _hr = raw_Reply();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::ReplyAll ( ) {
    HRESULT _hr = raw_ReplyAll();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::SendMailer ( VARIANT * FileFormat, VARIANT * Priority ) {
    HRESULT _hr = raw_SendMailer(FileFormat, Priority);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::UndoClear ( ) {
    HRESULT _hr = raw_UndoClear();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::PresentIt ( ) {
    HRESULT _hr = raw_PresentIt();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::SendFax ( _bstr_t Address, VARIANT * Subject ) {
    HRESULT _hr = raw_SendFax(Address, Subject);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::Merge2000 ( _bstr_t FileName ) {
    HRESULT _hr = raw_Merge2000(FileName);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::ClosePrintPreview ( ) {
    HRESULT _hr = raw_ClosePrintPreview();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::CheckConsistency ( ) {
    HRESULT _hr = raw_CheckConsistency();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _LetterContentPtr _Document::CreateLetterContent ( _bstr_t DateFormat, VARIANT_BOOL IncludeHeaderFooter, _bstr_t PageDesign, enum WdLetterStyle LetterStyle, VARIANT_BOOL Letterhead, enum WdLetterheadLocation LetterheadLocation, float LetterheadSize, _bstr_t RecipientName, _bstr_t RecipientAddress, _bstr_t Salutation, enum WdSalutationType SalutationType, _bstr_t RecipientReference, _bstr_t MailingInstructions, _bstr_t AttentionLine, _bstr_t Subject, _bstr_t CCList, _bstr_t ReturnAddress, _bstr_t SenderName, _bstr_t Closing, _bstr_t SenderCompany, _bstr_t SenderJobTitle, _bstr_t SenderInitials, long EnclosureNumber, VARIANT * InfoBlock, VARIANT * RecipientCode, VARIANT * RecipientGender, VARIANT * ReturnAddressShortForm, VARIANT * SenderCity, VARIANT * SenderCode, VARIANT * SenderGender, VARIANT * SenderReference ) {
    struct _LetterContent * _result = 0;
    HRESULT _hr = raw_CreateLetterContent(DateFormat, IncludeHeaderFooter, PageDesign, LetterStyle, Letterhead, LetterheadLocation, LetterheadSize, RecipientName, RecipientAddress, Salutation, SalutationType, RecipientReference, MailingInstructions, AttentionLine, Subject, CCList, ReturnAddress, SenderName, Closing, SenderCompany, SenderJobTitle, SenderInitials, EnclosureNumber, InfoBlock, RecipientCode, RecipientGender, ReturnAddressShortForm, SenderCity, SenderCode, SenderGender, SenderReference, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _LetterContentPtr(_result, false);
}

inline HRESULT _Document::AcceptAllRevisions ( ) {
    HRESULT _hr = raw_AcceptAllRevisions();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::RejectAllRevisions ( ) {
    HRESULT _hr = raw_RejectAllRevisions();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::DetectLanguage ( ) {
    HRESULT _hr = raw_DetectLanguage();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::ApplyTheme ( _bstr_t Name ) {
    HRESULT _hr = raw_ApplyTheme(Name);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::RemoveTheme ( ) {
    HRESULT _hr = raw_RemoveTheme();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::WebPagePreview ( ) {
    HRESULT _hr = raw_WebPagePreview();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::ReloadAs ( enum Office::MsoEncoding Encoding ) {
    HRESULT _hr = raw_ReloadAs(Encoding);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _bstr_t _Document::GetActiveTheme ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_ActiveTheme(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _bstr_t _Document::GetActiveThemeDisplayName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_ActiveThemeDisplayName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline EmailPtr _Document::GetEmail ( ) {
    struct Email * _result = 0;
    HRESULT _hr = get_Email(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return EmailPtr(_result, false);
}

inline Office::ScriptsPtr _Document::GetScripts ( ) {
    struct Office::Scripts * _result = 0;
    HRESULT _hr = get_Scripts(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::ScriptsPtr(_result, false);
}

inline VARIANT_BOOL _Document::GetLanguageDetected ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_LanguageDetected(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutLanguageDetected ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_LanguageDetected(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdFarEastLineBreakLanguageID _Document::GetFarEastLineBreakLanguage ( ) {
    enum WdFarEastLineBreakLanguageID _result;
    HRESULT _hr = get_FarEastLineBreakLanguage(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutFarEastLineBreakLanguage ( enum WdFarEastLineBreakLanguageID prop ) {
    HRESULT _hr = put_FarEastLineBreakLanguage(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline FramesetPtr _Document::GetFrameset ( ) {
    struct Frameset * _result = 0;
    HRESULT _hr = get_Frameset(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FramesetPtr(_result, false);
}

inline _variant_t _Document::GetClickAndTypeParagraphStyle ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_ClickAndTypeParagraphStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline void _Document::PutClickAndTypeParagraphStyle ( VARIANT * prop ) {
    HRESULT _hr = put_ClickAndTypeParagraphStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline Office::HTMLProjectPtr _Document::GetHTMLProject ( ) {
    struct Office::HTMLProject * _result = 0;
    HRESULT _hr = get_HTMLProject(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::HTMLProjectPtr(_result, false);
}

inline WebOptionsPtr _Document::GetWebOptions ( ) {
    struct WebOptions * _result = 0;
    HRESULT _hr = get_WebOptions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return WebOptionsPtr(_result, false);
}

inline enum Office::MsoEncoding _Document::GetOpenEncoding ( ) {
    enum Office::MsoEncoding _result;
    HRESULT _hr = get_OpenEncoding(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum Office::MsoEncoding _Document::GetSaveEncoding ( ) {
    enum Office::MsoEncoding _result;
    HRESULT _hr = get_SaveEncoding(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutSaveEncoding ( enum Office::MsoEncoding prop ) {
    HRESULT _hr = put_SaveEncoding(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetOptimizeForWord97 ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_OptimizeForWord97(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutOptimizeForWord97 ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_OptimizeForWord97(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetVBASigned ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_VBASigned(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT _Document::PrintOut2000 ( VARIANT * Background, VARIANT * Append, VARIANT * Range, VARIANT * OutputFileName, VARIANT * From, VARIANT * To, VARIANT * Item, VARIANT * Copies, VARIANT * Pages, VARIANT * PageType, VARIANT * PrintToFile, VARIANT * Collate, VARIANT * ActivePrinterMacGX, VARIANT * ManualDuplexPrint, VARIANT * PrintZoomColumn, VARIANT * PrintZoomRow, VARIANT * PrintZoomPaperWidth, VARIANT * PrintZoomPaperHeight ) {
    HRESULT _hr = raw_PrintOut2000(Background, Append, Range, OutputFileName, From, To, Item, Copies, Pages, PageType, PrintToFile, Collate, ActivePrinterMacGX, ManualDuplexPrint, PrintZoomColumn, PrintZoomRow, PrintZoomPaperWidth, PrintZoomPaperHeight);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::sblt ( _bstr_t s ) {
    HRESULT _hr = raw_sblt(s);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::ConvertVietDoc ( long CodePageOrigin ) {
    HRESULT _hr = raw_ConvertVietDoc(CodePageOrigin);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::PrintOut ( VARIANT * Background, VARIANT * Append, VARIANT * Range, VARIANT * OutputFileName, VARIANT * From, VARIANT * To, VARIANT * Item, VARIANT * Copies, VARIANT * Pages, VARIANT * PageType, VARIANT * PrintToFile, VARIANT * Collate, VARIANT * ActivePrinterMacGX, VARIANT * ManualDuplexPrint, VARIANT * PrintZoomColumn, VARIANT * PrintZoomRow, VARIANT * PrintZoomPaperWidth, VARIANT * PrintZoomPaperHeight ) {
    HRESULT _hr = raw_PrintOut(Background, Append, Range, OutputFileName, From, To, Item, Copies, Pages, PageType, PrintToFile, Collate, ActivePrinterMacGX, ManualDuplexPrint, PrintZoomColumn, PrintZoomRow, PrintZoomPaperWidth, PrintZoomPaperHeight);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline Office::IMsoEnvelopeVBPtr _Document::GetMailEnvelope ( ) {
    struct Office::IMsoEnvelopeVB * _result = 0;
    HRESULT _hr = get_MailEnvelope(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::IMsoEnvelopeVBPtr(_result, false);
}

inline VARIANT_BOOL _Document::GetDisableFeatures ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DisableFeatures(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutDisableFeatures ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DisableFeatures(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetDoNotEmbedSystemFonts ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DoNotEmbedSystemFonts(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutDoNotEmbedSystemFonts ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DoNotEmbedSystemFonts(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline Office::SignatureSetPtr _Document::GetSignatures ( ) {
    struct Office::SignatureSet * _result = 0;
    HRESULT _hr = get_Signatures(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::SignatureSetPtr(_result, false);
}

inline _bstr_t _Document::GetDefaultTargetFrame ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_DefaultTargetFrame(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void _Document::PutDefaultTargetFrame ( _bstr_t prop ) {
    HRESULT _hr = put_DefaultTargetFrame(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HTMLDivisionsPtr _Document::GetHTMLDivisions ( ) {
    struct HTMLDivisions * _result = 0;
    HRESULT _hr = get_HTMLDivisions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HTMLDivisionsPtr(_result, false);
}

inline enum WdDisableFeaturesIntroducedAfter _Document::GetDisableFeaturesIntroducedAfter ( ) {
    enum WdDisableFeaturesIntroducedAfter _result;
    HRESULT _hr = get_DisableFeaturesIntroducedAfter(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutDisableFeaturesIntroducedAfter ( enum WdDisableFeaturesIntroducedAfter prop ) {
    HRESULT _hr = put_DisableFeaturesIntroducedAfter(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetRemovePersonalInformation ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_RemovePersonalInformation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutRemovePersonalInformation ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_RemovePersonalInformation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline SmartTagsPtr _Document::GetSmartTags ( ) {
    struct SmartTags * _result = 0;
    HRESULT _hr = get_SmartTags(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SmartTagsPtr(_result, false);
}

inline HRESULT _Document::Compare2002 ( _bstr_t Name, VARIANT * AuthorName, VARIANT * CompareTarget, VARIANT * DetectFormatChanges, VARIANT * IgnoreAllComparisonWarnings, VARIANT * AddToRecentFiles ) {
    HRESULT _hr = raw_Compare2002(Name, AuthorName, CompareTarget, DetectFormatChanges, IgnoreAllComparisonWarnings, AddToRecentFiles);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::CheckIn ( VARIANT_BOOL SaveChanges, VARIANT * Comments, VARIANT_BOOL MakePublic ) {
    HRESULT _hr = raw_CheckIn(SaveChanges, Comments, MakePublic);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL _Document::CanCheckin ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_CanCheckin(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT _Document::Merge ( _bstr_t FileName, VARIANT * MergeTarget, VARIANT * DetectFormatChanges, VARIANT * UseFormattingFrom, VARIANT * AddToRecentFiles ) {
    HRESULT _hr = raw_Merge(FileName, MergeTarget, DetectFormatChanges, UseFormattingFrom, AddToRecentFiles);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL _Document::GetEmbedSmartTags ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_EmbedSmartTags(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutEmbedSmartTags ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_EmbedSmartTags(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetSmartTagsAsXMLProps ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SmartTagsAsXMLProps(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutSmartTagsAsXMLProps ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_SmartTagsAsXMLProps(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum Office::MsoEncoding _Document::GetTextEncoding ( ) {
    enum Office::MsoEncoding _result;
    HRESULT _hr = get_TextEncoding(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutTextEncoding ( enum Office::MsoEncoding prop ) {
    HRESULT _hr = put_TextEncoding(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdLineEndingType _Document::GetTextLineEnding ( ) {
    enum WdLineEndingType _result;
    HRESULT _hr = get_TextLineEnding(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutTextLineEnding ( enum WdLineEndingType prop ) {
    HRESULT _hr = put_TextLineEnding(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT _Document::SendForReview ( VARIANT * Recipients, VARIANT * Subject, VARIANT * ShowMessage, VARIANT * IncludeAttachment ) {
    HRESULT _hr = raw_SendForReview(Recipients, Subject, ShowMessage, IncludeAttachment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::ReplyWithChanges ( VARIANT * ShowMessage ) {
    HRESULT _hr = raw_ReplyWithChanges(ShowMessage);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::EndReview ( ) {
    HRESULT _hr = raw_EndReview();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline StyleSheetsPtr _Document::GetStyleSheets ( ) {
    struct StyleSheets * _result = 0;
    HRESULT _hr = get_StyleSheets(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return StyleSheetsPtr(_result, false);
}

inline _variant_t _Document::GetDefaultTableStyle ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_DefaultTableStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline _bstr_t _Document::GetPasswordEncryptionProvider ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_PasswordEncryptionProvider(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _bstr_t _Document::GetPasswordEncryptionAlgorithm ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_PasswordEncryptionAlgorithm(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline long _Document::GetPasswordEncryptionKeyLength ( ) {
    long _result = 0;
    HRESULT _hr = get_PasswordEncryptionKeyLength(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL _Document::GetPasswordEncryptionFileProperties ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PasswordEncryptionFileProperties(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT _Document::SetPasswordEncryptionOptions ( _bstr_t PasswordEncryptionProvider, _bstr_t PasswordEncryptionAlgorithm, long PasswordEncryptionKeyLength, VARIANT * PasswordEncryptionFileProperties ) {
    HRESULT _hr = raw_SetPasswordEncryptionOptions(PasswordEncryptionProvider, PasswordEncryptionAlgorithm, PasswordEncryptionKeyLength, PasswordEncryptionFileProperties);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::RecheckSmartTags ( ) {
    HRESULT _hr = raw_RecheckSmartTags();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::RemoveSmartTags ( ) {
    HRESULT _hr = raw_RemoveSmartTags();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::SetDefaultTableStyle ( VARIANT * Style, VARIANT_BOOL SetInTemplate ) {
    HRESULT _hr = raw_SetDefaultTableStyle(Style, SetInTemplate);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::DeleteAllComments ( ) {
    HRESULT _hr = raw_DeleteAllComments();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::AcceptAllRevisionsShown ( ) {
    HRESULT _hr = raw_AcceptAllRevisionsShown();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::RejectAllRevisionsShown ( ) {
    HRESULT _hr = raw_RejectAllRevisionsShown();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::DeleteAllCommentsShown ( ) {
    HRESULT _hr = raw_DeleteAllCommentsShown();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::ResetFormFields ( ) {
    HRESULT _hr = raw_ResetFormFields();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::SaveAs ( VARIANT * FileName, VARIANT * FileFormat, VARIANT * LockComments, VARIANT * Password, VARIANT * AddToRecentFiles, VARIANT * WritePassword, VARIANT * ReadOnlyRecommended, VARIANT * EmbedTrueTypeFonts, VARIANT * SaveNativePictureFormat, VARIANT * SaveFormsData, VARIANT * SaveAsAOCELetter, VARIANT * Encoding, VARIANT * InsertLineBreaks, VARIANT * AllowSubstitutions, VARIANT * LineEnding, VARIANT * AddBiDiMarks ) {
    HRESULT _hr = raw_SaveAs(FileName, FileFormat, LockComments, Password, AddToRecentFiles, WritePassword, ReadOnlyRecommended, EmbedTrueTypeFonts, SaveNativePictureFormat, SaveFormsData, SaveAsAOCELetter, Encoding, InsertLineBreaks, AllowSubstitutions, LineEnding, AddBiDiMarks);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL _Document::GetEmbedLinguisticData ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_EmbedLinguisticData(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutEmbedLinguisticData ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_EmbedLinguisticData(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetFormattingShowFont ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_FormattingShowFont(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutFormattingShowFont ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_FormattingShowFont(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetFormattingShowClear ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_FormattingShowClear(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutFormattingShowClear ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_FormattingShowClear(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetFormattingShowParagraph ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_FormattingShowParagraph(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutFormattingShowParagraph ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_FormattingShowParagraph(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetFormattingShowNumbering ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_FormattingShowNumbering(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutFormattingShowNumbering ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_FormattingShowNumbering(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdShowFilter _Document::GetFormattingShowFilter ( ) {
    enum WdShowFilter _result;
    HRESULT _hr = get_FormattingShowFilter(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutFormattingShowFilter ( enum WdShowFilter prop ) {
    HRESULT _hr = put_FormattingShowFilter(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT _Document::CheckNewSmartTags ( ) {
    HRESULT _hr = raw_CheckNewSmartTags();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline Office::PermissionPtr _Document::GetPermission ( ) {
    struct Office::Permission * _result = 0;
    HRESULT _hr = get_Permission(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::PermissionPtr(_result, false);
}

inline XMLNodesPtr _Document::GetXMLNodes ( ) {
    struct XMLNodes * _result = 0;
    HRESULT _hr = get_XMLNodes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLNodesPtr(_result, false);
}

inline XMLSchemaReferencesPtr _Document::GetXMLSchemaReferences ( ) {
    struct XMLSchemaReferences * _result = 0;
    HRESULT _hr = get_XMLSchemaReferences(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLSchemaReferencesPtr(_result, false);
}

inline Office::SmartDocumentPtr _Document::GetSmartDocument ( ) {
    struct Office::SmartDocument * _result = 0;
    HRESULT _hr = get_SmartDocument(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::SmartDocumentPtr(_result, false);
}

inline Office::SharedWorkspacePtr _Document::GetSharedWorkspace ( ) {
    struct Office::SharedWorkspace * _result = 0;
    HRESULT _hr = get_SharedWorkspace(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::SharedWorkspacePtr(_result, false);
}

inline Office::SyncPtr _Document::GetSync ( ) {
    struct Office::Sync * _result = 0;
    HRESULT _hr = get_Sync(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::SyncPtr(_result, false);
}

inline VARIANT_BOOL _Document::GetEnforceStyle ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_EnforceStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutEnforceStyle ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_EnforceStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetAutoFormatOverride ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatOverride(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutAutoFormatOverride ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatOverride(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetXMLSaveDataOnly ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_XMLSaveDataOnly(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutXMLSaveDataOnly ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_XMLSaveDataOnly(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetXMLHideNamespaces ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_XMLHideNamespaces(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutXMLHideNamespaces ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_XMLHideNamespaces(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetXMLShowAdvancedErrors ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_XMLShowAdvancedErrors(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutXMLShowAdvancedErrors ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_XMLShowAdvancedErrors(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetXMLUseXSLTWhenSaving ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_XMLUseXSLTWhenSaving(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutXMLUseXSLTWhenSaving ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_XMLUseXSLTWhenSaving(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t _Document::GetXMLSaveThroughXSLT ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_XMLSaveThroughXSLT(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void _Document::PutXMLSaveThroughXSLT ( _bstr_t prop ) {
    HRESULT _hr = put_XMLSaveThroughXSLT(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline Office::DocumentLibraryVersionsPtr _Document::GetDocumentLibraryVersions ( ) {
    struct Office::DocumentLibraryVersions * _result = 0;
    HRESULT _hr = get_DocumentLibraryVersions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::DocumentLibraryVersionsPtr(_result, false);
}

inline VARIANT_BOOL _Document::GetReadingModeLayoutFrozen ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ReadingModeLayoutFrozen(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutReadingModeLayoutFrozen ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ReadingModeLayoutFrozen(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetRemoveDateAndTime ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_RemoveDateAndTime(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutRemoveDateAndTime ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_RemoveDateAndTime(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT _Document::SendFaxOverInternet ( VARIANT * Recipients, VARIANT * Subject, VARIANT * ShowMessage ) {
    HRESULT _hr = raw_SendFaxOverInternet(Recipients, Subject, ShowMessage);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::TransformDocument ( _bstr_t Path, VARIANT_BOOL DataOnly ) {
    HRESULT _hr = raw_TransformDocument(Path, DataOnly);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::Protect ( enum WdProtectionType Type, VARIANT * NoReset, VARIANT * Password, VARIANT * UseIRM, VARIANT * EnforceStyleLock ) {
    HRESULT _hr = raw_Protect(Type, NoReset, Password, UseIRM, EnforceStyleLock);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::SelectAllEditableRanges ( VARIANT * EditorID ) {
    HRESULT _hr = raw_SelectAllEditableRanges(EditorID);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::DeleteAllEditableRanges ( VARIANT * EditorID ) {
    HRESULT _hr = raw_DeleteAllEditableRanges(EditorID);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::DeleteAllInkAnnotations ( ) {
    HRESULT _hr = raw_DeleteAllInkAnnotations();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::AddDocumentWorkspaceHeader ( VARIANT_BOOL RichFormat, _bstr_t Url, _bstr_t Title, _bstr_t Description, _bstr_t ID ) {
    HRESULT _hr = raw_AddDocumentWorkspaceHeader(RichFormat, Url, Title, Description, ID);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::RemoveDocumentWorkspaceHeader ( _bstr_t ID ) {
    HRESULT _hr = raw_RemoveDocumentWorkspaceHeader(ID);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::Compare ( _bstr_t Name, VARIANT * AuthorName, VARIANT * CompareTarget, VARIANT * DetectFormatChanges, VARIANT * IgnoreAllComparisonWarnings, VARIANT * AddToRecentFiles, VARIANT * RemovePersonalInformation, VARIANT * RemoveDateAndTime ) {
    HRESULT _hr = raw_Compare(Name, AuthorName, CompareTarget, DetectFormatChanges, IgnoreAllComparisonWarnings, AddToRecentFiles, RemovePersonalInformation, RemoveDateAndTime);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::RemoveLockedStyles ( ) {
    HRESULT _hr = raw_RemoveLockedStyles();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline XMLChildNodeSuggestionsPtr _Document::GetChildNodeSuggestions ( ) {
    struct XMLChildNodeSuggestions * _result = 0;
    HRESULT _hr = get_ChildNodeSuggestions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLChildNodeSuggestionsPtr(_result, false);
}

inline XMLNodePtr _Document::SelectSingleNode ( _bstr_t XPath, _bstr_t PrefixMapping, VARIANT_BOOL FastSearchSkippingTextNodes ) {
    struct XMLNode * _result = 0;
    HRESULT _hr = raw_SelectSingleNode(XPath, PrefixMapping, FastSearchSkippingTextNodes, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLNodePtr(_result, false);
}

inline XMLNodesPtr _Document::SelectNodes ( _bstr_t XPath, _bstr_t PrefixMapping, VARIANT_BOOL FastSearchSkippingTextNodes ) {
    struct XMLNodes * _result = 0;
    HRESULT _hr = raw_SelectNodes(XPath, PrefixMapping, FastSearchSkippingTextNodes, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLNodesPtr(_result, false);
}

inline XMLNodesPtr _Document::GetXMLSchemaViolations ( ) {
    struct XMLNodes * _result = 0;
    HRESULT _hr = get_XMLSchemaViolations(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLNodesPtr(_result, false);
}

inline long _Document::GetReadingLayoutSizeX ( ) {
    long _result = 0;
    HRESULT _hr = get_ReadingLayoutSizeX(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutReadingLayoutSizeX ( long prop ) {
    HRESULT _hr = put_ReadingLayoutSizeX(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long _Document::GetReadingLayoutSizeY ( ) {
    long _result = 0;
    HRESULT _hr = get_ReadingLayoutSizeY(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutReadingLayoutSizeY ( long prop ) {
    HRESULT _hr = put_ReadingLayoutSizeY(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdStyleSort _Document::GetStyleSortMethod ( ) {
    enum WdStyleSort _result;
    HRESULT _hr = get_StyleSortMethod(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutStyleSortMethod ( enum WdStyleSort prop ) {
    HRESULT _hr = put_StyleSortMethod(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline Office::MetaPropertiesPtr _Document::GetContentTypeProperties ( ) {
    struct Office::MetaProperties * _result = 0;
    HRESULT _hr = get_ContentTypeProperties(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::MetaPropertiesPtr(_result, false);
}

inline VARIANT_BOOL _Document::GetTrackMoves ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_TrackMoves(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutTrackMoves ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_TrackMoves(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetTrackFormatting ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_TrackFormatting(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutTrackFormatting ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_TrackFormatting(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline void _Document::GetDummy1 ( ) {
    HRESULT _hr = get_Dummy1();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline OMathsPtr _Document::GetOMaths ( ) {
    struct OMaths * _result = 0;
    HRESULT _hr = get_OMaths(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathsPtr(_result, false);
}

inline HRESULT _Document::RemoveDocumentInformation ( enum WdRemoveDocInfoType RemoveDocInfoType ) {
    HRESULT _hr = raw_RemoveDocumentInformation(RemoveDocInfoType);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::CheckInWithVersion ( VARIANT_BOOL SaveChanges, VARIANT * Comments, VARIANT_BOOL MakePublic, VARIANT * VersionType ) {
    HRESULT _hr = raw_CheckInWithVersion(SaveChanges, Comments, MakePublic, VersionType);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::Dummy2 ( ) {
    HRESULT _hr = raw_Dummy2();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline void _Document::GetDummy3 ( ) {
    HRESULT _hr = get_Dummy3();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline Office::ServerPolicyPtr _Document::GetServerPolicy ( ) {
    struct Office::ServerPolicy * _result = 0;
    HRESULT _hr = get_ServerPolicy(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::ServerPolicyPtr(_result, false);
}

inline ContentControlsPtr _Document::GetContentControls ( ) {
    struct ContentControls * _result = 0;
    HRESULT _hr = get_ContentControls(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ContentControlsPtr(_result, false);
}

inline Office::DocumentInspectorsPtr _Document::GetDocumentInspectors ( ) {
    struct Office::DocumentInspectors * _result = 0;
    HRESULT _hr = get_DocumentInspectors(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::DocumentInspectorsPtr(_result, false);
}

inline HRESULT _Document::LockServerFile ( ) {
    HRESULT _hr = raw_LockServerFile();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline Office::WorkflowTasksPtr _Document::GetWorkflowTasks ( ) {
    struct Office::WorkflowTasks * _result = 0;
    HRESULT _hr = raw_GetWorkflowTasks(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::WorkflowTasksPtr(_result, false);
}

inline Office::WorkflowTemplatesPtr _Document::GetWorkflowTemplates ( ) {
    struct Office::WorkflowTemplates * _result = 0;
    HRESULT _hr = raw_GetWorkflowTemplates(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::WorkflowTemplatesPtr(_result, false);
}

inline HRESULT _Document::Dummy4 ( ) {
    HRESULT _hr = raw_Dummy4();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::AddMeetingWorkspaceHeader ( VARIANT_BOOL SkipIfAbsent, _bstr_t Url, _bstr_t Title, _bstr_t Description, _bstr_t ID ) {
    HRESULT _hr = raw_AddMeetingWorkspaceHeader(SkipIfAbsent, Url, Title, Description, ID);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline BibliographyPtr _Document::GetBibliography ( ) {
    struct Bibliography * _result = 0;
    HRESULT _hr = get_Bibliography(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BibliographyPtr(_result, false);
}

inline VARIANT_BOOL _Document::GetLockTheme ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_LockTheme(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutLockTheme ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_LockTheme(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetLockQuickStyleSet ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_LockQuickStyleSet(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutLockQuickStyleSet ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_LockQuickStyleSet(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t _Document::GetOriginalDocumentTitle ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_OriginalDocumentTitle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _bstr_t _Document::GetRevisedDocumentTitle ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_RevisedDocumentTitle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline Office::_CustomXMLPartsPtr _Document::GetCustomXMLParts ( ) {
    struct Office::_CustomXMLParts * _result = 0;
    HRESULT _hr = get_CustomXMLParts(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::_CustomXMLPartsPtr(_result, false);
}

inline VARIANT_BOOL _Document::GetFormattingShowNextLevel ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_FormattingShowNextLevel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutFormattingShowNextLevel ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_FormattingShowNextLevel(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetFormattingShowUserStyleName ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_FormattingShowUserStyleName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutFormattingShowUserStyleName ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_FormattingShowUserStyleName(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT _Document::SaveAsQuickStyleSet ( _bstr_t FileName ) {
    HRESULT _hr = raw_SaveAsQuickStyleSet(FileName);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::ApplyQuickStyleSet ( _bstr_t Name ) {
    HRESULT _hr = raw_ApplyQuickStyleSet(Name);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline ResearchPtr _Document::GetResearch ( ) {
    struct Research * _result = 0;
    HRESULT _hr = get_Research(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ResearchPtr(_result, false);
}

inline VARIANT_BOOL _Document::GetFinal ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Final(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutFinal ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Final(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdOMathBreakBin _Document::GetOMathBreakBin ( ) {
    enum WdOMathBreakBin _result;
    HRESULT _hr = get_OMathBreakBin(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutOMathBreakBin ( enum WdOMathBreakBin prop ) {
    HRESULT _hr = put_OMathBreakBin(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdOMathBreakSub _Document::GetOMathBreakSub ( ) {
    enum WdOMathBreakSub _result;
    HRESULT _hr = get_OMathBreakSub(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutOMathBreakSub ( enum WdOMathBreakSub prop ) {
    HRESULT _hr = put_OMathBreakSub(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdOMathJc _Document::GetOMathJc ( ) {
    enum WdOMathJc _result;
    HRESULT _hr = get_OMathJc(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutOMathJc ( enum WdOMathJc prop ) {
    HRESULT _hr = put_OMathJc(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float _Document::GetOMathLeftMargin ( ) {
    float _result = 0;
    HRESULT _hr = get_OMathLeftMargin(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutOMathLeftMargin ( float prop ) {
    HRESULT _hr = put_OMathLeftMargin(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float _Document::GetOMathRightMargin ( ) {
    float _result = 0;
    HRESULT _hr = get_OMathRightMargin(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutOMathRightMargin ( float prop ) {
    HRESULT _hr = put_OMathRightMargin(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float _Document::GetOMathWrap ( ) {
    float _result = 0;
    HRESULT _hr = get_OMathWrap(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutOMathWrap ( float prop ) {
    HRESULT _hr = put_OMathWrap(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetOMathIntSubSupLim ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_OMathIntSubSupLim(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutOMathIntSubSupLim ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_OMathIntSubSupLim(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetOMathNarySupSubLim ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_OMathNarySupSubLim(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutOMathNarySupSubLim ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_OMathNarySupSubLim(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetOMathSmallFrac ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_OMathSmallFrac(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutOMathSmallFrac ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_OMathSmallFrac(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t _Document::GetWordOpenXML ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_WordOpenXML(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline Office::OfficeThemePtr _Document::GetDocumentTheme ( ) {
    struct Office::OfficeTheme * _result = 0;
    HRESULT _hr = get_DocumentTheme(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::OfficeThemePtr(_result, false);
}

inline HRESULT _Document::ApplyDocumentTheme ( _bstr_t FileName ) {
    HRESULT _hr = raw_ApplyDocumentTheme(FileName);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL _Document::GetHasVBProject ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HasVBProject(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline ContentControlsPtr _Document::SelectLinkedControls ( struct Office::CustomXMLNode * Node ) {
    struct ContentControls * _result = 0;
    HRESULT _hr = raw_SelectLinkedControls(Node, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ContentControlsPtr(_result, false);
}

inline ContentControlsPtr _Document::SelectUnlinkedControls ( struct Office::_CustomXMLPart * Stream ) {
    struct ContentControls * _result = 0;
    HRESULT _hr = raw_SelectUnlinkedControls(Stream, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ContentControlsPtr(_result, false);
}

inline ContentControlsPtr _Document::SelectContentControlsByTitle ( _bstr_t Title ) {
    struct ContentControls * _result = 0;
    HRESULT _hr = raw_SelectContentControlsByTitle(Title, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ContentControlsPtr(_result, false);
}

inline HRESULT _Document::ExportAsFixedFormat ( _bstr_t OutputFileName, enum WdExportFormat ExportFormat, VARIANT_BOOL OpenAfterExport, enum WdExportOptimizeFor OptimizeFor, enum WdExportRange Range, long From, long To, enum WdExportItem Item, VARIANT_BOOL IncludeDocProps, VARIANT_BOOL KeepIRM, enum WdExportCreateBookmarks CreateBookmarks, VARIANT_BOOL DocStructureTags, VARIANT_BOOL BitmapMissingFonts, VARIANT_BOOL UseISO19005_1, VARIANT * FixedFormatExtClassPtr ) {
    HRESULT _hr = raw_ExportAsFixedFormat(OutputFileName, ExportFormat, OpenAfterExport, OptimizeFor, Range, From, To, Item, IncludeDocProps, KeepIRM, CreateBookmarks, DocStructureTags, BitmapMissingFonts, UseISO19005_1, FixedFormatExtClassPtr);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::FreezeLayout ( ) {
    HRESULT _hr = raw_FreezeLayout();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT _Document::UnfreezeLayout ( ) {
    HRESULT _hr = raw_UnfreezeLayout();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _bstr_t _Document::GetOMathFontName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_OMathFontName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void _Document::PutOMathFontName ( _bstr_t prop ) {
    HRESULT _hr = put_OMathFontName(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT _Document::DowngradeDocument ( ) {
    HRESULT _hr = raw_DowngradeDocument();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _bstr_t _Document::GetEncryptionProvider ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_EncryptionProvider(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void _Document::PutEncryptionProvider ( _bstr_t prop ) {
    HRESULT _hr = put_EncryptionProvider(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL _Document::GetUseMathDefaults ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_UseMathDefaults(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void _Document::PutUseMathDefaults ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_UseMathDefaults(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long _Document::GetCurrentRsid ( ) {
    long _result = 0;
    HRESULT _hr = get_CurrentRsid(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT _Document::Convert ( ) {
    HRESULT _hr = raw_Convert();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline ContentControlsPtr _Document::SelectContentControlsByTag ( _bstr_t Tag ) {
    struct ContentControls * _result = 0;
    HRESULT _hr = raw_SelectContentControlsByTag(Tag, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ContentControlsPtr(_result, false);
}

inline HRESULT _Document::ConvertAutoHyphens ( ) {
    HRESULT _hr = raw_ConvertAutoHyphens();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long _Document::GetDocID ( ) {
    long _result = 0;
    HRESULT _hr = get_DocID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT _Document::ApplyQuickStyleSet2 ( VARIANT * Style ) {
    HRESULT _hr = raw_ApplyQuickStyleSet2(Style);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long _Document::GetCompatibilityMode ( ) {
    long _result = 0;
    HRESULT _hr = get_CompatibilityMode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT _Document::SaveAs2 ( VARIANT * FileName, VARIANT * FileFormat, VARIANT * LockComments, VARIANT * Password, VARIANT * AddToRecentFiles, VARIANT * WritePassword, VARIANT * ReadOnlyRecommended, VARIANT * EmbedTrueTypeFonts, VARIANT * SaveNativePictureFormat, VARIANT * SaveFormsData, VARIANT * SaveAsAOCELetter, VARIANT * Encoding, VARIANT * InsertLineBreaks, VARIANT * AllowSubstitutions, VARIANT * LineEnding, VARIANT * AddBiDiMarks, VARIANT * CompatibilityMode ) {
    HRESULT _hr = raw_SaveAs2(FileName, FileFormat, LockComments, Password, AddToRecentFiles, WritePassword, ReadOnlyRecommended, EmbedTrueTypeFonts, SaveNativePictureFormat, SaveFormsData, SaveAsAOCELetter, Encoding, InsertLineBreaks, AllowSubstitutions, LineEnding, AddBiDiMarks, CompatibilityMode);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline CoAuthoringPtr _Document::GetCoAuthoring ( ) {
    struct CoAuthoring * _result = 0;
    HRESULT _hr = get_CoAuthoring(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CoAuthoringPtr(_result, false);
}

inline HRESULT _Document::SetCompatibilityMode ( long Mode ) {
    HRESULT _hr = raw_SetCompatibilityMode(Mode);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Template wrapper method implementations
//

inline _bstr_t Template::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _ApplicationPtr Template::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Template::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Template::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline _bstr_t Template::GetPath ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Path(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline AutoTextEntriesPtr Template::GetAutoTextEntries ( ) {
    struct AutoTextEntries * _result = 0;
    HRESULT _hr = get_AutoTextEntries(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return AutoTextEntriesPtr(_result, false);
}

inline enum WdLanguageID Template::GetLanguageID ( ) {
    enum WdLanguageID _result;
    HRESULT _hr = get_LanguageID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Template::PutLanguageID ( enum WdLanguageID prop ) {
    HRESULT _hr = put_LanguageID(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Template::GetSaved ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Saved(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Template::PutSaved ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Saved(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdTemplateType Template::GetType ( ) {
    enum WdTemplateType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _bstr_t Template::GetFullName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_FullName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline IDispatchPtr Template::GetBuiltInDocumentProperties ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_BuiltInDocumentProperties(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline IDispatchPtr Template::GetCustomDocumentProperties ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_CustomDocumentProperties(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline ListTemplatesPtr Template::GetListTemplates ( ) {
    struct ListTemplates * _result = 0;
    HRESULT _hr = get_ListTemplates(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ListTemplatesPtr(_result, false);
}

inline enum WdLanguageID Template::GetLanguageIDFarEast ( ) {
    enum WdLanguageID _result;
    HRESULT _hr = get_LanguageIDFarEast(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Template::PutLanguageIDFarEast ( enum WdLanguageID prop ) {
    HRESULT _hr = put_LanguageIDFarEast(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VBIDE::_VBProjectPtr Template::GetVBProject ( ) {
    struct VBIDE::_VBProject * _result = 0;
    HRESULT _hr = get_VBProject(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return VBIDE::_VBProjectPtr(_result, false);
}

inline VARIANT_BOOL Template::GetKerningByAlgorithm ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_KerningByAlgorithm(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Template::PutKerningByAlgorithm ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_KerningByAlgorithm(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdJustificationMode Template::GetJustificationMode ( ) {
    enum WdJustificationMode _result;
    HRESULT _hr = get_JustificationMode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Template::PutJustificationMode ( enum WdJustificationMode prop ) {
    HRESULT _hr = put_JustificationMode(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdFarEastLineBreakLevel Template::GetFarEastLineBreakLevel ( ) {
    enum WdFarEastLineBreakLevel _result;
    HRESULT _hr = get_FarEastLineBreakLevel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Template::PutFarEastLineBreakLevel ( enum WdFarEastLineBreakLevel prop ) {
    HRESULT _hr = put_FarEastLineBreakLevel(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t Template::GetNoLineBreakBefore ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_NoLineBreakBefore(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void Template::PutNoLineBreakBefore ( _bstr_t prop ) {
    HRESULT _hr = put_NoLineBreakBefore(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t Template::GetNoLineBreakAfter ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_NoLineBreakAfter(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void Template::PutNoLineBreakAfter ( _bstr_t prop ) {
    HRESULT _hr = put_NoLineBreakAfter(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _DocumentPtr Template::OpenAsDocument ( ) {
    struct _Document * _result = 0;
    HRESULT _hr = raw_OpenAsDocument(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _DocumentPtr(_result, false);
}

inline HRESULT Template::Save ( ) {
    HRESULT _hr = raw_Save();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long Template::GetNoProofing ( ) {
    long _result = 0;
    HRESULT _hr = get_NoProofing(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Template::PutNoProofing ( long prop ) {
    HRESULT _hr = put_NoProofing(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdFarEastLineBreakLanguageID Template::GetFarEastLineBreakLanguage ( ) {
    enum WdFarEastLineBreakLanguageID _result;
    HRESULT _hr = get_FarEastLineBreakLanguage(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Template::PutFarEastLineBreakLanguage ( enum WdFarEastLineBreakLanguageID prop ) {
    HRESULT _hr = put_FarEastLineBreakLanguage(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline BuildingBlockEntriesPtr Template::GetBuildingBlockEntries ( ) {
    struct BuildingBlockEntries * _result = 0;
    HRESULT _hr = get_BuildingBlockEntries(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BuildingBlockEntriesPtr(_result, false);
}

inline BuildingBlockTypesPtr Template::GetBuildingBlockTypes ( ) {
    struct BuildingBlockTypes * _result = 0;
    HRESULT _hr = get_BuildingBlockTypes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BuildingBlockTypesPtr(_result, false);
}

//
// interface Templates wrapper method implementations
//

inline _ApplicationPtr Templates::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Templates::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Templates::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long Templates::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IUnknownPtr Templates::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline TemplatePtr Templates::Item ( VARIANT * Index ) {
    struct Template * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TemplatePtr(_result, false);
}

inline HRESULT Templates::LoadBuildingBlocks ( ) {
    HRESULT _hr = raw_LoadBuildingBlocks();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Bookmark wrapper method implementations
//

inline _bstr_t Bookmark::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline RangePtr Bookmark::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline VARIANT_BOOL Bookmark::GetEmpty ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Empty(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Bookmark::GetStart ( ) {
    long _result = 0;
    HRESULT _hr = get_Start(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Bookmark::PutStart ( long prop ) {
    HRESULT _hr = put_Start(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Bookmark::GetEnd ( ) {
    long _result = 0;
    HRESULT _hr = get_End(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Bookmark::PutEnd ( long prop ) {
    HRESULT _hr = put_End(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Bookmark::GetColumn ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Column(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum WdStoryType Bookmark::GetStoryType ( ) {
    enum WdStoryType _result;
    HRESULT _hr = get_StoryType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _ApplicationPtr Bookmark::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Bookmark::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Bookmark::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline HRESULT Bookmark::Select ( ) {
    HRESULT _hr = raw_Select();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Bookmark::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline BookmarkPtr Bookmark::Copy ( _bstr_t Name ) {
    struct Bookmark * _result = 0;
    HRESULT _hr = raw_Copy(Name, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BookmarkPtr(_result, false);
}

//
// interface Bookmarks wrapper method implementations
//

inline IUnknownPtr Bookmarks::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long Bookmarks::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum WdBookmarkSortBy Bookmarks::GetDefaultSorting ( ) {
    enum WdBookmarkSortBy _result;
    HRESULT _hr = get_DefaultSorting(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Bookmarks::PutDefaultSorting ( enum WdBookmarkSortBy prop ) {
    HRESULT _hr = put_DefaultSorting(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Bookmarks::GetShowHidden ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowHidden(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Bookmarks::PutShowHidden ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowHidden(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _ApplicationPtr Bookmarks::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Bookmarks::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Bookmarks::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline BookmarkPtr Bookmarks::Item ( VARIANT * Index ) {
    struct Bookmark * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BookmarkPtr(_result, false);
}

inline BookmarkPtr Bookmarks::Add ( _bstr_t Name, VARIANT * Range ) {
    struct Bookmark * _result = 0;
    HRESULT _hr = raw_Add(Name, Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BookmarkPtr(_result, false);
}

inline VARIANT_BOOL Bookmarks::Exists ( _bstr_t Name ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_Exists(Name, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface Window wrapper method implementations
//

inline _ApplicationPtr Window::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Window::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Window::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline PanePtr Window::GetActivePane ( ) {
    struct Pane * _result = 0;
    HRESULT _hr = get_ActivePane(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return PanePtr(_result, false);
}

inline _DocumentPtr Window::GetDocument ( ) {
    struct _Document * _result = 0;
    HRESULT _hr = get_Document(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _DocumentPtr(_result, false);
}

inline PanesPtr Window::GetPanes ( ) {
    struct Panes * _result = 0;
    HRESULT _hr = get_Panes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return PanesPtr(_result, false);
}

inline SelectionPtr Window::GetSelection ( ) {
    struct Selection * _result = 0;
    HRESULT _hr = get_Selection(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SelectionPtr(_result, false);
}

inline long Window::GetLeft ( ) {
    long _result = 0;
    HRESULT _hr = get_Left(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Window::PutLeft ( long prop ) {
    HRESULT _hr = put_Left(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Window::GetTop ( ) {
    long _result = 0;
    HRESULT _hr = get_Top(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Window::PutTop ( long prop ) {
    HRESULT _hr = put_Top(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Window::GetWidth ( ) {
    long _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Window::PutWidth ( long prop ) {
    HRESULT _hr = put_Width(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Window::GetHeight ( ) {
    long _result = 0;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Window::PutHeight ( long prop ) {
    HRESULT _hr = put_Height(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Window::GetSplit ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Split(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Window::PutSplit ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Split(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Window::GetSplitVertical ( ) {
    long _result = 0;
    HRESULT _hr = get_SplitVertical(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Window::PutSplitVertical ( long prop ) {
    HRESULT _hr = put_SplitVertical(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t Window::GetCaption ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Caption(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void Window::PutCaption ( _bstr_t prop ) {
    HRESULT _hr = put_Caption(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdWindowState Window::GetWindowState ( ) {
    enum WdWindowState _result;
    HRESULT _hr = get_WindowState(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Window::PutWindowState ( enum WdWindowState prop ) {
    HRESULT _hr = put_WindowState(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Window::GetDisplayRulers ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DisplayRulers(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Window::PutDisplayRulers ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DisplayRulers(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Window::GetDisplayVerticalRuler ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DisplayVerticalRuler(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Window::PutDisplayVerticalRuler ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DisplayVerticalRuler(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline ViewPtr Window::GetView ( ) {
    struct View * _result = 0;
    HRESULT _hr = get_View(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ViewPtr(_result, false);
}

inline enum WdWindowType Window::GetType ( ) {
    enum WdWindowType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline WindowPtr Window::GetNext ( ) {
    struct Window * _result = 0;
    HRESULT _hr = get_Next(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return WindowPtr(_result, false);
}

inline WindowPtr Window::GetPrevious ( ) {
    struct Window * _result = 0;
    HRESULT _hr = get_Previous(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return WindowPtr(_result, false);
}

inline long Window::GetWindowNumber ( ) {
    long _result = 0;
    HRESULT _hr = get_WindowNumber(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL Window::GetDisplayVerticalScrollBar ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DisplayVerticalScrollBar(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Window::PutDisplayVerticalScrollBar ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DisplayVerticalScrollBar(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Window::GetDisplayHorizontalScrollBar ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DisplayHorizontalScrollBar(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Window::PutDisplayHorizontalScrollBar ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DisplayHorizontalScrollBar(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Window::GetStyleAreaWidth ( ) {
    float _result = 0;
    HRESULT _hr = get_StyleAreaWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Window::PutStyleAreaWidth ( float prop ) {
    HRESULT _hr = put_StyleAreaWidth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Window::GetDisplayScreenTips ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DisplayScreenTips(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Window::PutDisplayScreenTips ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DisplayScreenTips(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Window::GetHorizontalPercentScrolled ( ) {
    long _result = 0;
    HRESULT _hr = get_HorizontalPercentScrolled(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Window::PutHorizontalPercentScrolled ( long prop ) {
    HRESULT _hr = put_HorizontalPercentScrolled(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Window::GetVerticalPercentScrolled ( ) {
    long _result = 0;
    HRESULT _hr = get_VerticalPercentScrolled(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Window::PutVerticalPercentScrolled ( long prop ) {
    HRESULT _hr = put_VerticalPercentScrolled(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Window::GetDocumentMap ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DocumentMap(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Window::PutDocumentMap ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DocumentMap(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Window::GetActive ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Active(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Window::GetDocumentMapPercentWidth ( ) {
    long _result = 0;
    HRESULT _hr = get_DocumentMapPercentWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Window::PutDocumentMapPercentWidth ( long prop ) {
    HRESULT _hr = put_DocumentMapPercentWidth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Window::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum WdIMEMode Window::GetIMEMode ( ) {
    enum WdIMEMode _result;
    HRESULT _hr = get_IMEMode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Window::PutIMEMode ( enum WdIMEMode prop ) {
    HRESULT _hr = put_IMEMode(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT Window::Activate ( ) {
    HRESULT _hr = raw_Activate();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Window::Close ( VARIANT * SaveChanges, VARIANT * RouteDocument ) {
    HRESULT _hr = raw_Close(SaveChanges, RouteDocument);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Window::LargeScroll ( VARIANT * Down, VARIANT * Up, VARIANT * ToRight, VARIANT * ToLeft ) {
    HRESULT _hr = raw_LargeScroll(Down, Up, ToRight, ToLeft);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Window::SmallScroll ( VARIANT * Down, VARIANT * Up, VARIANT * ToRight, VARIANT * ToLeft ) {
    HRESULT _hr = raw_SmallScroll(Down, Up, ToRight, ToLeft);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline WindowPtr Window::NewWindow ( ) {
    struct Window * _result = 0;
    HRESULT _hr = raw_NewWindow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return WindowPtr(_result, false);
}

inline HRESULT Window::PrintOutOld ( VARIANT * Background, VARIANT * Append, VARIANT * Range, VARIANT * OutputFileName, VARIANT * From, VARIANT * To, VARIANT * Item, VARIANT * Copies, VARIANT * Pages, VARIANT * PageType, VARIANT * PrintToFile, VARIANT * Collate, VARIANT * ActivePrinterMacGX, VARIANT * ManualDuplexPrint ) {
    HRESULT _hr = raw_PrintOutOld(Background, Append, Range, OutputFileName, From, To, Item, Copies, Pages, PageType, PrintToFile, Collate, ActivePrinterMacGX, ManualDuplexPrint);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Window::PageScroll ( VARIANT * Down, VARIANT * Up ) {
    HRESULT _hr = raw_PageScroll(Down, Up);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Window::SetFocus ( ) {
    HRESULT _hr = raw_SetFocus();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline IDispatchPtr Window::RangeFromPoint ( long x, long y ) {
    IDispatch * _result = 0;
    HRESULT _hr = raw_RangeFromPoint(x, y, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline HRESULT Window::ScrollIntoView ( IDispatch * obj, VARIANT * Start ) {
    HRESULT _hr = raw_ScrollIntoView(obj, Start);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Window::GetPoint ( long * ScreenPixelsLeft, long * ScreenPixelsTop, long * ScreenPixelsWidth, long * ScreenPixelsHeight, IDispatch * obj ) {
    HRESULT _hr = raw_GetPoint(ScreenPixelsLeft, ScreenPixelsTop, ScreenPixelsWidth, ScreenPixelsHeight, obj);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Window::PrintOut2000 ( VARIANT * Background, VARIANT * Append, VARIANT * Range, VARIANT * OutputFileName, VARIANT * From, VARIANT * To, VARIANT * Item, VARIANT * Copies, VARIANT * Pages, VARIANT * PageType, VARIANT * PrintToFile, VARIANT * Collate, VARIANT * ActivePrinterMacGX, VARIANT * ManualDuplexPrint, VARIANT * PrintZoomColumn, VARIANT * PrintZoomRow, VARIANT * PrintZoomPaperWidth, VARIANT * PrintZoomPaperHeight ) {
    HRESULT _hr = raw_PrintOut2000(Background, Append, Range, OutputFileName, From, To, Item, Copies, Pages, PageType, PrintToFile, Collate, ActivePrinterMacGX, ManualDuplexPrint, PrintZoomColumn, PrintZoomRow, PrintZoomPaperWidth, PrintZoomPaperHeight);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long Window::GetUsableWidth ( ) {
    long _result = 0;
    HRESULT _hr = get_UsableWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Window::GetUsableHeight ( ) {
    long _result = 0;
    HRESULT _hr = get_UsableHeight(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL Window::GetEnvelopeVisible ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_EnvelopeVisible(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Window::PutEnvelopeVisible ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_EnvelopeVisible(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Window::GetDisplayRightRuler ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DisplayRightRuler(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Window::PutDisplayRightRuler ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DisplayRightRuler(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Window::GetDisplayLeftScrollBar ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DisplayLeftScrollBar(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Window::PutDisplayLeftScrollBar ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DisplayLeftScrollBar(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Window::GetVisible ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Visible(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Window::PutVisible ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Visible(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT Window::PrintOut ( VARIANT * Background, VARIANT * Append, VARIANT * Range, VARIANT * OutputFileName, VARIANT * From, VARIANT * To, VARIANT * Item, VARIANT * Copies, VARIANT * Pages, VARIANT * PageType, VARIANT * PrintToFile, VARIANT * Collate, VARIANT * ActivePrinterMacGX, VARIANT * ManualDuplexPrint, VARIANT * PrintZoomColumn, VARIANT * PrintZoomRow, VARIANT * PrintZoomPaperWidth, VARIANT * PrintZoomPaperHeight ) {
    HRESULT _hr = raw_PrintOut(Background, Append, Range, OutputFileName, From, To, Item, Copies, Pages, PageType, PrintToFile, Collate, ActivePrinterMacGX, ManualDuplexPrint, PrintZoomColumn, PrintZoomRow, PrintZoomPaperWidth, PrintZoomPaperHeight);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Window::ToggleShowAllReviewers ( ) {
    HRESULT _hr = raw_ToggleShowAllReviewers();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL Window::GetThumbnails ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Thumbnails(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Window::PutThumbnails ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Thumbnails(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdShowSourceDocuments Window::GetShowSourceDocuments ( ) {
    enum WdShowSourceDocuments _result;
    HRESULT _hr = get_ShowSourceDocuments(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Window::PutShowSourceDocuments ( enum WdShowSourceDocuments prop ) {
    HRESULT _hr = put_ShowSourceDocuments(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT Window::ToggleRibbon ( ) {
    HRESULT _hr = raw_ToggleRibbon();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Windows wrapper method implementations
//

inline IUnknownPtr Windows::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long Windows::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _ApplicationPtr Windows::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Windows::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Windows::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline WindowPtr Windows::Item ( VARIANT * Index ) {
    struct Window * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return WindowPtr(_result, false);
}

inline WindowPtr Windows::Add ( VARIANT * Window ) {
    struct Window * _result = 0;
    HRESULT _hr = raw_Add(Window, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return WindowPtr(_result, false);
}

inline HRESULT Windows::Arrange ( VARIANT * ArrangeStyle ) {
    HRESULT _hr = raw_Arrange(ArrangeStyle);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL Windows::CompareSideBySideWith ( VARIANT * Document ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_CompareSideBySideWith(Document, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL Windows::BreakSideBySide ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_BreakSideBySide(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT Windows::ResetPositionsSideBySide ( ) {
    HRESULT _hr = raw_ResetPositionsSideBySide();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL Windows::GetSyncScrollingSideBySide ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SyncScrollingSideBySide(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Windows::PutSyncScrollingSideBySide ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_SyncScrollingSideBySide(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface Pane wrapper method implementations
//

inline _ApplicationPtr Pane::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Pane::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Pane::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline _DocumentPtr Pane::GetDocument ( ) {
    struct _Document * _result = 0;
    HRESULT _hr = get_Document(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _DocumentPtr(_result, false);
}

inline SelectionPtr Pane::GetSelection ( ) {
    struct Selection * _result = 0;
    HRESULT _hr = get_Selection(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SelectionPtr(_result, false);
}

inline VARIANT_BOOL Pane::GetDisplayRulers ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DisplayRulers(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Pane::PutDisplayRulers ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DisplayRulers(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Pane::GetDisplayVerticalRuler ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DisplayVerticalRuler(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Pane::PutDisplayVerticalRuler ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DisplayVerticalRuler(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline ZoomsPtr Pane::GetZooms ( ) {
    struct Zooms * _result = 0;
    HRESULT _hr = get_Zooms(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ZoomsPtr(_result, false);
}

inline long Pane::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline ViewPtr Pane::GetView ( ) {
    struct View * _result = 0;
    HRESULT _hr = get_View(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ViewPtr(_result, false);
}

inline PanePtr Pane::GetNext ( ) {
    struct Pane * _result = 0;
    HRESULT _hr = get_Next(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return PanePtr(_result, false);
}

inline PanePtr Pane::GetPrevious ( ) {
    struct Pane * _result = 0;
    HRESULT _hr = get_Previous(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return PanePtr(_result, false);
}

inline long Pane::GetHorizontalPercentScrolled ( ) {
    long _result = 0;
    HRESULT _hr = get_HorizontalPercentScrolled(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Pane::PutHorizontalPercentScrolled ( long prop ) {
    HRESULT _hr = put_HorizontalPercentScrolled(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Pane::GetVerticalPercentScrolled ( ) {
    long _result = 0;
    HRESULT _hr = get_VerticalPercentScrolled(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Pane::PutVerticalPercentScrolled ( long prop ) {
    HRESULT _hr = put_VerticalPercentScrolled(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Pane::GetMinimumFontSize ( ) {
    long _result = 0;
    HRESULT _hr = get_MinimumFontSize(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Pane::PutMinimumFontSize ( long prop ) {
    HRESULT _hr = put_MinimumFontSize(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Pane::GetBrowseToWindow ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_BrowseToWindow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Pane::PutBrowseToWindow ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_BrowseToWindow(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Pane::GetBrowseWidth ( ) {
    long _result = 0;
    HRESULT _hr = get_BrowseWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT Pane::Activate ( ) {
    HRESULT _hr = raw_Activate();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Pane::Close ( ) {
    HRESULT _hr = raw_Close();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Pane::LargeScroll ( VARIANT * Down, VARIANT * Up, VARIANT * ToRight, VARIANT * ToLeft ) {
    HRESULT _hr = raw_LargeScroll(Down, Up, ToRight, ToLeft);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Pane::SmallScroll ( VARIANT * Down, VARIANT * Up, VARIANT * ToRight, VARIANT * ToLeft ) {
    HRESULT _hr = raw_SmallScroll(Down, Up, ToRight, ToLeft);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Pane::AutoScroll ( long Velocity ) {
    HRESULT _hr = raw_AutoScroll(Velocity);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Pane::PageScroll ( VARIANT * Down, VARIANT * Up ) {
    HRESULT _hr = raw_PageScroll(Down, Up);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Pane::NewFrameset ( ) {
    HRESULT _hr = raw_NewFrameset();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Pane::TOCInFrameset ( ) {
    HRESULT _hr = raw_TOCInFrameset();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline FramesetPtr Pane::GetFrameset ( ) {
    struct Frameset * _result = 0;
    HRESULT _hr = get_Frameset(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FramesetPtr(_result, false);
}

inline PagesPtr Pane::GetPages ( ) {
    struct Pages * _result = 0;
    HRESULT _hr = get_Pages(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return PagesPtr(_result, false);
}

//
// interface Panes wrapper method implementations
//

inline IUnknownPtr Panes::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long Panes::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _ApplicationPtr Panes::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Panes::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Panes::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline PanePtr Panes::Item ( long Index ) {
    struct Pane * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return PanePtr(_result, false);
}

inline PanePtr Panes::Add ( VARIANT * SplitVertical ) {
    struct Pane * _result = 0;
    HRESULT _hr = raw_Add(SplitVertical, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return PanePtr(_result, false);
}

//
// interface Range wrapper method implementations
//

inline _bstr_t Range::GetText ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Text(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void Range::PutText ( _bstr_t prop ) {
    HRESULT _hr = put_Text(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline RangePtr Range::GetFormattedText ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_FormattedText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline void Range::PutFormattedText ( struct Range * prop ) {
    HRESULT _hr = put_FormattedText(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Range::GetStart ( ) {
    long _result = 0;
    HRESULT _hr = get_Start(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Range::PutStart ( long prop ) {
    HRESULT _hr = put_Start(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Range::GetEnd ( ) {
    long _result = 0;
    HRESULT _hr = get_End(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Range::PutEnd ( long prop ) {
    HRESULT _hr = put_End(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _FontPtr Range::GetFont ( ) {
    struct _Font * _result = 0;
    HRESULT _hr = get_Font(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _FontPtr(_result, false);
}

inline void Range::PutFont ( struct _Font * prop ) {
    HRESULT _hr = put_Font(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline RangePtr Range::GetDuplicate ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Duplicate(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline enum WdStoryType Range::GetStoryType ( ) {
    enum WdStoryType _result;
    HRESULT _hr = get_StoryType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline TablesPtr Range::GetTables ( ) {
    struct Tables * _result = 0;
    HRESULT _hr = get_Tables(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TablesPtr(_result, false);
}

inline WordsPtr Range::GetWords ( ) {
    struct Words * _result = 0;
    HRESULT _hr = get_Words(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return WordsPtr(_result, false);
}

inline SentencesPtr Range::GetSentences ( ) {
    struct Sentences * _result = 0;
    HRESULT _hr = get_Sentences(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SentencesPtr(_result, false);
}

inline CharactersPtr Range::GetCharacters ( ) {
    struct Characters * _result = 0;
    HRESULT _hr = get_Characters(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CharactersPtr(_result, false);
}

inline FootnotesPtr Range::GetFootnotes ( ) {
    struct Footnotes * _result = 0;
    HRESULT _hr = get_Footnotes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FootnotesPtr(_result, false);
}

inline EndnotesPtr Range::GetEndnotes ( ) {
    struct Endnotes * _result = 0;
    HRESULT _hr = get_Endnotes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return EndnotesPtr(_result, false);
}

inline CommentsPtr Range::GetComments ( ) {
    struct Comments * _result = 0;
    HRESULT _hr = get_Comments(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CommentsPtr(_result, false);
}

inline CellsPtr Range::GetCells ( ) {
    struct Cells * _result = 0;
    HRESULT _hr = get_Cells(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CellsPtr(_result, false);
}

inline SectionsPtr Range::GetSections ( ) {
    struct Sections * _result = 0;
    HRESULT _hr = get_Sections(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SectionsPtr(_result, false);
}

inline ParagraphsPtr Range::GetParagraphs ( ) {
    struct Paragraphs * _result = 0;
    HRESULT _hr = get_Paragraphs(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ParagraphsPtr(_result, false);
}

inline BordersPtr Range::GetBorders ( ) {
    struct Borders * _result = 0;
    HRESULT _hr = get_Borders(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BordersPtr(_result, false);
}

inline void Range::PutBorders ( struct Borders * prop ) {
    HRESULT _hr = put_Borders(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline ShadingPtr Range::GetShading ( ) {
    struct Shading * _result = 0;
    HRESULT _hr = get_Shading(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShadingPtr(_result, false);
}

inline TextRetrievalModePtr Range::GetTextRetrievalMode ( ) {
    struct TextRetrievalMode * _result = 0;
    HRESULT _hr = get_TextRetrievalMode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TextRetrievalModePtr(_result, false);
}

inline void Range::PutTextRetrievalMode ( struct TextRetrievalMode * prop ) {
    HRESULT _hr = put_TextRetrievalMode(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline FieldsPtr Range::GetFields ( ) {
    struct Fields * _result = 0;
    HRESULT _hr = get_Fields(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FieldsPtr(_result, false);
}

inline FormFieldsPtr Range::GetFormFields ( ) {
    struct FormFields * _result = 0;
    HRESULT _hr = get_FormFields(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FormFieldsPtr(_result, false);
}

inline FramesPtr Range::GetFrames ( ) {
    struct Frames * _result = 0;
    HRESULT _hr = get_Frames(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FramesPtr(_result, false);
}

inline _ParagraphFormatPtr Range::GetParagraphFormat ( ) {
    struct _ParagraphFormat * _result = 0;
    HRESULT _hr = get_ParagraphFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ParagraphFormatPtr(_result, false);
}

inline void Range::PutParagraphFormat ( struct _ParagraphFormat * prop ) {
    HRESULT _hr = put_ParagraphFormat(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline ListFormatPtr Range::GetListFormat ( ) {
    struct ListFormat * _result = 0;
    HRESULT _hr = get_ListFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ListFormatPtr(_result, false);
}

inline BookmarksPtr Range::GetBookmarks ( ) {
    struct Bookmarks * _result = 0;
    HRESULT _hr = get_Bookmarks(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BookmarksPtr(_result, false);
}

inline _ApplicationPtr Range::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Range::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Range::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long Range::GetBold ( ) {
    long _result = 0;
    HRESULT _hr = get_Bold(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Range::PutBold ( long prop ) {
    HRESULT _hr = put_Bold(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Range::GetItalic ( ) {
    long _result = 0;
    HRESULT _hr = get_Italic(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Range::PutItalic ( long prop ) {
    HRESULT _hr = put_Italic(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdUnderline Range::GetUnderline ( ) {
    enum WdUnderline _result;
    HRESULT _hr = get_Underline(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Range::PutUnderline ( enum WdUnderline prop ) {
    HRESULT _hr = put_Underline(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdEmphasisMark Range::GetEmphasisMark ( ) {
    enum WdEmphasisMark _result;
    HRESULT _hr = get_EmphasisMark(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Range::PutEmphasisMark ( enum WdEmphasisMark prop ) {
    HRESULT _hr = put_EmphasisMark(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Range::GetDisableCharacterSpaceGrid ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DisableCharacterSpaceGrid(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Range::PutDisableCharacterSpaceGrid ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DisableCharacterSpaceGrid(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline RevisionsPtr Range::GetRevisions ( ) {
    struct Revisions * _result = 0;
    HRESULT _hr = get_Revisions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RevisionsPtr(_result, false);
}

inline _variant_t Range::GetStyle ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Style(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline void Range::PutStyle ( VARIANT * prop ) {
    HRESULT _hr = put_Style(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Range::GetStoryLength ( ) {
    long _result = 0;
    HRESULT _hr = get_StoryLength(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum WdLanguageID Range::GetLanguageID ( ) {
    enum WdLanguageID _result;
    HRESULT _hr = get_LanguageID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Range::PutLanguageID ( enum WdLanguageID prop ) {
    HRESULT _hr = put_LanguageID(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline SynonymInfoPtr Range::GetSynonymInfo ( ) {
    struct SynonymInfo * _result = 0;
    HRESULT _hr = get_SynonymInfo(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SynonymInfoPtr(_result, false);
}

inline HyperlinksPtr Range::GetHyperlinks ( ) {
    struct Hyperlinks * _result = 0;
    HRESULT _hr = get_Hyperlinks(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HyperlinksPtr(_result, false);
}

inline ListParagraphsPtr Range::GetListParagraphs ( ) {
    struct ListParagraphs * _result = 0;
    HRESULT _hr = get_ListParagraphs(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ListParagraphsPtr(_result, false);
}

inline SubdocumentsPtr Range::GetSubdocuments ( ) {
    struct Subdocuments * _result = 0;
    HRESULT _hr = get_Subdocuments(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SubdocumentsPtr(_result, false);
}

inline VARIANT_BOOL Range::GetGrammarChecked ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_GrammarChecked(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Range::PutGrammarChecked ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_GrammarChecked(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Range::GetSpellingChecked ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SpellingChecked(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Range::PutSpellingChecked ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_SpellingChecked(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdColorIndex Range::GetHighlightColorIndex ( ) {
    enum WdColorIndex _result;
    HRESULT _hr = get_HighlightColorIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Range::PutHighlightColorIndex ( enum WdColorIndex prop ) {
    HRESULT _hr = put_HighlightColorIndex(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline ColumnsPtr Range::GetColumns ( ) {
    struct Columns * _result = 0;
    HRESULT _hr = get_Columns(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ColumnsPtr(_result, false);
}

inline RowsPtr Range::GetRows ( ) {
    struct Rows * _result = 0;
    HRESULT _hr = get_Rows(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RowsPtr(_result, false);
}

inline long Range::GetCanEdit ( ) {
    long _result = 0;
    HRESULT _hr = get_CanEdit(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Range::GetCanPaste ( ) {
    long _result = 0;
    HRESULT _hr = get_CanPaste(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL Range::GetIsEndOfRowMark ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IsEndOfRowMark(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Range::GetBookmarkID ( ) {
    long _result = 0;
    HRESULT _hr = get_BookmarkID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Range::GetPreviousBookmarkID ( ) {
    long _result = 0;
    HRESULT _hr = get_PreviousBookmarkID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline FindPtr Range::GetFind ( ) {
    struct Find * _result = 0;
    HRESULT _hr = get_Find(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FindPtr(_result, false);
}

inline PageSetupPtr Range::GetPageSetup ( ) {
    struct PageSetup * _result = 0;
    HRESULT _hr = get_PageSetup(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return PageSetupPtr(_result, false);
}

inline void Range::PutPageSetup ( struct PageSetup * prop ) {
    HRESULT _hr = put_PageSetup(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline ShapeRangePtr Range::GetShapeRange ( ) {
    struct ShapeRange * _result = 0;
    HRESULT _hr = get_ShapeRange(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapeRangePtr(_result, false);
}

inline enum WdCharacterCase Range::GetCase ( ) {
    enum WdCharacterCase _result;
    HRESULT _hr = get_Case(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Range::PutCase ( enum WdCharacterCase prop ) {
    HRESULT _hr = put_Case(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _variant_t Range::GetInformation ( enum WdInformation Type ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Information(Type, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline ReadabilityStatisticsPtr Range::GetReadabilityStatistics ( ) {
    struct ReadabilityStatistics * _result = 0;
    HRESULT _hr = get_ReadabilityStatistics(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ReadabilityStatisticsPtr(_result, false);
}

inline ProofreadingErrorsPtr Range::GetGrammaticalErrors ( ) {
    struct ProofreadingErrors * _result = 0;
    HRESULT _hr = get_GrammaticalErrors(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ProofreadingErrorsPtr(_result, false);
}

inline ProofreadingErrorsPtr Range::GetSpellingErrors ( ) {
    struct ProofreadingErrors * _result = 0;
    HRESULT _hr = get_SpellingErrors(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ProofreadingErrorsPtr(_result, false);
}

inline enum WdTextOrientation Range::GetOrientation ( ) {
    enum WdTextOrientation _result;
    HRESULT _hr = get_Orientation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Range::PutOrientation ( enum WdTextOrientation prop ) {
    HRESULT _hr = put_Orientation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline InlineShapesPtr Range::GetInlineShapes ( ) {
    struct InlineShapes * _result = 0;
    HRESULT _hr = get_InlineShapes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InlineShapesPtr(_result, false);
}

inline RangePtr Range::GetNextStoryRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_NextStoryRange(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline enum WdLanguageID Range::GetLanguageIDFarEast ( ) {
    enum WdLanguageID _result;
    HRESULT _hr = get_LanguageIDFarEast(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Range::PutLanguageIDFarEast ( enum WdLanguageID prop ) {
    HRESULT _hr = put_LanguageIDFarEast(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdLanguageID Range::GetLanguageIDOther ( ) {
    enum WdLanguageID _result;
    HRESULT _hr = get_LanguageIDOther(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Range::PutLanguageIDOther ( enum WdLanguageID prop ) {
    HRESULT _hr = put_LanguageIDOther(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT Range::Select ( ) {
    HRESULT _hr = raw_Select();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::SetRange ( long Start, long End ) {
    HRESULT _hr = raw_SetRange(Start, End);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::Collapse ( VARIANT * Direction ) {
    HRESULT _hr = raw_Collapse(Direction);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::InsertBefore ( _bstr_t Text ) {
    HRESULT _hr = raw_InsertBefore(Text);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::InsertAfter ( _bstr_t Text ) {
    HRESULT _hr = raw_InsertAfter(Text);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline RangePtr Range::Next ( VARIANT * Unit, VARIANT * Count ) {
    struct Range * _result = 0;
    HRESULT _hr = raw_Next(Unit, Count, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline RangePtr Range::Previous ( VARIANT * Unit, VARIANT * Count ) {
    struct Range * _result = 0;
    HRESULT _hr = raw_Previous(Unit, Count, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline long Range::StartOf ( VARIANT * Unit, VARIANT * Extend ) {
    long _result = 0;
    HRESULT _hr = raw_StartOf(Unit, Extend, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Range::EndOf ( VARIANT * Unit, VARIANT * Extend ) {
    long _result = 0;
    HRESULT _hr = raw_EndOf(Unit, Extend, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Range::Move ( VARIANT * Unit, VARIANT * Count ) {
    long _result = 0;
    HRESULT _hr = raw_Move(Unit, Count, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Range::MoveStart ( VARIANT * Unit, VARIANT * Count ) {
    long _result = 0;
    HRESULT _hr = raw_MoveStart(Unit, Count, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Range::MoveEnd ( VARIANT * Unit, VARIANT * Count ) {
    long _result = 0;
    HRESULT _hr = raw_MoveEnd(Unit, Count, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Range::MoveWhile ( VARIANT * Cset, VARIANT * Count ) {
    long _result = 0;
    HRESULT _hr = raw_MoveWhile(Cset, Count, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Range::MoveStartWhile ( VARIANT * Cset, VARIANT * Count ) {
    long _result = 0;
    HRESULT _hr = raw_MoveStartWhile(Cset, Count, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Range::MoveEndWhile ( VARIANT * Cset, VARIANT * Count ) {
    long _result = 0;
    HRESULT _hr = raw_MoveEndWhile(Cset, Count, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Range::MoveUntil ( VARIANT * Cset, VARIANT * Count ) {
    long _result = 0;
    HRESULT _hr = raw_MoveUntil(Cset, Count, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Range::MoveStartUntil ( VARIANT * Cset, VARIANT * Count ) {
    long _result = 0;
    HRESULT _hr = raw_MoveStartUntil(Cset, Count, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Range::MoveEndUntil ( VARIANT * Cset, VARIANT * Count ) {
    long _result = 0;
    HRESULT _hr = raw_MoveEndUntil(Cset, Count, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT Range::Cut ( ) {
    HRESULT _hr = raw_Cut();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::Copy ( ) {
    HRESULT _hr = raw_Copy();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::Paste ( ) {
    HRESULT _hr = raw_Paste();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::InsertBreak ( VARIANT * Type ) {
    HRESULT _hr = raw_InsertBreak(Type);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::InsertFile ( _bstr_t FileName, VARIANT * Range, VARIANT * ConfirmConversions, VARIANT * Link, VARIANT * Attachment ) {
    HRESULT _hr = raw_InsertFile(FileName, Range, ConfirmConversions, Link, Attachment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL Range::InStory ( struct Range * Range ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_InStory(Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL Range::InRange ( struct Range * Range ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_InRange(Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Range::Delete ( VARIANT * Unit, VARIANT * Count ) {
    long _result = 0;
    HRESULT _hr = raw_Delete(Unit, Count, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT Range::WholeStory ( ) {
    HRESULT _hr = raw_WholeStory();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long Range::Expand ( VARIANT * Unit ) {
    long _result = 0;
    HRESULT _hr = raw_Expand(Unit, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT Range::InsertParagraph ( ) {
    HRESULT _hr = raw_InsertParagraph();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::InsertParagraphAfter ( ) {
    HRESULT _hr = raw_InsertParagraphAfter();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline TablePtr Range::ConvertToTableOld ( VARIANT * Separator, VARIANT * NumRows, VARIANT * NumColumns, VARIANT * InitialColumnWidth, VARIANT * Format, VARIANT * ApplyBorders, VARIANT * ApplyShading, VARIANT * ApplyFont, VARIANT * ApplyColor, VARIANT * ApplyHeadingRows, VARIANT * ApplyLastRow, VARIANT * ApplyFirstColumn, VARIANT * ApplyLastColumn, VARIANT * AutoFit ) {
    struct Table * _result = 0;
    HRESULT _hr = raw_ConvertToTableOld(Separator, NumRows, NumColumns, InitialColumnWidth, Format, ApplyBorders, ApplyShading, ApplyFont, ApplyColor, ApplyHeadingRows, ApplyLastRow, ApplyFirstColumn, ApplyLastColumn, AutoFit, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TablePtr(_result, false);
}

inline HRESULT Range::InsertDateTimeOld ( VARIANT * DateTimeFormat, VARIANT * InsertAsField, VARIANT * InsertAsFullWidth ) {
    HRESULT _hr = raw_InsertDateTimeOld(DateTimeFormat, InsertAsField, InsertAsFullWidth);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::InsertSymbol ( long CharacterNumber, VARIANT * Font, VARIANT * Unicode, VARIANT * Bias ) {
    HRESULT _hr = raw_InsertSymbol(CharacterNumber, Font, Unicode, Bias);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::InsertCrossReference_2002 ( VARIANT * ReferenceType, enum WdReferenceKind ReferenceKind, VARIANT * ReferenceItem, VARIANT * InsertAsHyperlink, VARIANT * IncludePosition ) {
    HRESULT _hr = raw_InsertCrossReference_2002(ReferenceType, ReferenceKind, ReferenceItem, InsertAsHyperlink, IncludePosition);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::InsertCaptionXP ( VARIANT * Label, VARIANT * Title, VARIANT * TitleAutoText, VARIANT * Position ) {
    HRESULT _hr = raw_InsertCaptionXP(Label, Title, TitleAutoText, Position);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::CopyAsPicture ( ) {
    HRESULT _hr = raw_CopyAsPicture();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::SortOld ( VARIANT * ExcludeHeader, VARIANT * FieldNumber, VARIANT * SortFieldType, VARIANT * SortOrder, VARIANT * FieldNumber2, VARIANT * SortFieldType2, VARIANT * SortOrder2, VARIANT * FieldNumber3, VARIANT * SortFieldType3, VARIANT * SortOrder3, VARIANT * SortColumn, VARIANT * Separator, VARIANT * CaseSensitive, VARIANT * LanguageID ) {
    HRESULT _hr = raw_SortOld(ExcludeHeader, FieldNumber, SortFieldType, SortOrder, FieldNumber2, SortFieldType2, SortOrder2, FieldNumber3, SortFieldType3, SortOrder3, SortColumn, Separator, CaseSensitive, LanguageID);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::SortAscending ( ) {
    HRESULT _hr = raw_SortAscending();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::SortDescending ( ) {
    HRESULT _hr = raw_SortDescending();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL Range::IsEqual ( struct Range * Range ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_IsEqual(Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline float Range::Calculate ( ) {
    float _result = 0;
    HRESULT _hr = raw_Calculate(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline RangePtr Range::GoTo ( VARIANT * What, VARIANT * Which, VARIANT * Count, VARIANT * Name ) {
    struct Range * _result = 0;
    HRESULT _hr = raw_GoTo(What, Which, Count, Name, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline RangePtr Range::GoToNext ( enum WdGoToItem What ) {
    struct Range * _result = 0;
    HRESULT _hr = raw_GoToNext(What, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline RangePtr Range::GoToPrevious ( enum WdGoToItem What ) {
    struct Range * _result = 0;
    HRESULT _hr = raw_GoToPrevious(What, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline HRESULT Range::PasteSpecial ( VARIANT * IconIndex, VARIANT * Link, VARIANT * Placement, VARIANT * DisplayAsIcon, VARIANT * DataType, VARIANT * IconFileName, VARIANT * IconLabel ) {
    HRESULT _hr = raw_PasteSpecial(IconIndex, Link, Placement, DisplayAsIcon, DataType, IconFileName, IconLabel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::LookupNameProperties ( ) {
    HRESULT _hr = raw_LookupNameProperties();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long Range::ComputeStatistics ( enum WdStatistic Statistic ) {
    long _result = 0;
    HRESULT _hr = raw_ComputeStatistics(Statistic, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT Range::Relocate ( long Direction ) {
    HRESULT _hr = raw_Relocate(Direction);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::CheckSynonyms ( ) {
    HRESULT _hr = raw_CheckSynonyms();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::SubscribeTo ( _bstr_t Edition, VARIANT * Format ) {
    HRESULT _hr = raw_SubscribeTo(Edition, Format);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::CreatePublisher ( VARIANT * Edition, VARIANT * ContainsPICT, VARIANT * ContainsRTF, VARIANT * ContainsText ) {
    HRESULT _hr = raw_CreatePublisher(Edition, ContainsPICT, ContainsRTF, ContainsText);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::InsertAutoText ( ) {
    HRESULT _hr = raw_InsertAutoText();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::InsertDatabase ( VARIANT * Format, VARIANT * Style, VARIANT * LinkToSource, VARIANT * Connection, VARIANT * SQLStatement, VARIANT * SQLStatement1, VARIANT * PasswordDocument, VARIANT * PasswordTemplate, VARIANT * WritePasswordDocument, VARIANT * WritePasswordTemplate, VARIANT * DataSource, VARIANT * From, VARIANT * To, VARIANT * IncludeFields ) {
    HRESULT _hr = raw_InsertDatabase(Format, Style, LinkToSource, Connection, SQLStatement, SQLStatement1, PasswordDocument, PasswordTemplate, WritePasswordDocument, WritePasswordTemplate, DataSource, From, To, IncludeFields);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::AutoFormat ( ) {
    HRESULT _hr = raw_AutoFormat();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::CheckGrammar ( ) {
    HRESULT _hr = raw_CheckGrammar();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::CheckSpelling ( VARIANT * CustomDictionary, VARIANT * IgnoreUppercase, VARIANT * AlwaysSuggest, VARIANT * CustomDictionary2, VARIANT * CustomDictionary3, VARIANT * CustomDictionary4, VARIANT * CustomDictionary5, VARIANT * CustomDictionary6, VARIANT * CustomDictionary7, VARIANT * CustomDictionary8, VARIANT * CustomDictionary9, VARIANT * CustomDictionary10 ) {
    HRESULT _hr = raw_CheckSpelling(CustomDictionary, IgnoreUppercase, AlwaysSuggest, CustomDictionary2, CustomDictionary3, CustomDictionary4, CustomDictionary5, CustomDictionary6, CustomDictionary7, CustomDictionary8, CustomDictionary9, CustomDictionary10);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline SpellingSuggestionsPtr Range::GetSpellingSuggestions ( VARIANT * CustomDictionary, VARIANT * IgnoreUppercase, VARIANT * MainDictionary, VARIANT * SuggestionMode, VARIANT * CustomDictionary2, VARIANT * CustomDictionary3, VARIANT * CustomDictionary4, VARIANT * CustomDictionary5, VARIANT * CustomDictionary6, VARIANT * CustomDictionary7, VARIANT * CustomDictionary8, VARIANT * CustomDictionary9, VARIANT * CustomDictionary10 ) {
    struct SpellingSuggestions * _result = 0;
    HRESULT _hr = raw_GetSpellingSuggestions(CustomDictionary, IgnoreUppercase, MainDictionary, SuggestionMode, CustomDictionary2, CustomDictionary3, CustomDictionary4, CustomDictionary5, CustomDictionary6, CustomDictionary7, CustomDictionary8, CustomDictionary9, CustomDictionary10, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SpellingSuggestionsPtr(_result, false);
}

inline HRESULT Range::InsertParagraphBefore ( ) {
    HRESULT _hr = raw_InsertParagraphBefore();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::NextSubdocument ( ) {
    HRESULT _hr = raw_NextSubdocument();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::PreviousSubdocument ( ) {
    HRESULT _hr = raw_PreviousSubdocument();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::ConvertHangulAndHanja ( VARIANT * ConversionsMode, VARIANT * FastConversion, VARIANT * CheckHangulEnding, VARIANT * EnableRecentOrdering, VARIANT * CustomDictionary ) {
    HRESULT _hr = raw_ConvertHangulAndHanja(ConversionsMode, FastConversion, CheckHangulEnding, EnableRecentOrdering, CustomDictionary);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::PasteAsNestedTable ( ) {
    HRESULT _hr = raw_PasteAsNestedTable();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::ModifyEnclosure ( VARIANT * Style, VARIANT * Symbol, VARIANT * EnclosedText ) {
    HRESULT _hr = raw_ModifyEnclosure(Style, Symbol, EnclosedText);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::PhoneticGuide ( _bstr_t Text, enum WdPhoneticGuideAlignmentType Alignment, long Raise, long FontSize, _bstr_t FontName ) {
    HRESULT _hr = raw_PhoneticGuide(Text, Alignment, Raise, FontSize, FontName);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::InsertDateTime ( VARIANT * DateTimeFormat, VARIANT * InsertAsField, VARIANT * InsertAsFullWidth, VARIANT * DateLanguage, VARIANT * CalendarType ) {
    HRESULT _hr = raw_InsertDateTime(DateTimeFormat, InsertAsField, InsertAsFullWidth, DateLanguage, CalendarType);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::Sort ( VARIANT * ExcludeHeader, VARIANT * FieldNumber, VARIANT * SortFieldType, VARIANT * SortOrder, VARIANT * FieldNumber2, VARIANT * SortFieldType2, VARIANT * SortOrder2, VARIANT * FieldNumber3, VARIANT * SortFieldType3, VARIANT * SortOrder3, VARIANT * SortColumn, VARIANT * Separator, VARIANT * CaseSensitive, VARIANT * BidiSort, VARIANT * IgnoreThe, VARIANT * IgnoreKashida, VARIANT * IgnoreDiacritics, VARIANT * IgnoreHe, VARIANT * LanguageID ) {
    HRESULT _hr = raw_Sort(ExcludeHeader, FieldNumber, SortFieldType, SortOrder, FieldNumber2, SortFieldType2, SortOrder2, FieldNumber3, SortFieldType3, SortOrder3, SortColumn, Separator, CaseSensitive, BidiSort, IgnoreThe, IgnoreKashida, IgnoreDiacritics, IgnoreHe, LanguageID);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::DetectLanguage ( ) {
    HRESULT _hr = raw_DetectLanguage();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline TablePtr Range::ConvertToTable ( VARIANT * Separator, VARIANT * NumRows, VARIANT * NumColumns, VARIANT * InitialColumnWidth, VARIANT * Format, VARIANT * ApplyBorders, VARIANT * ApplyShading, VARIANT * ApplyFont, VARIANT * ApplyColor, VARIANT * ApplyHeadingRows, VARIANT * ApplyLastRow, VARIANT * ApplyFirstColumn, VARIANT * ApplyLastColumn, VARIANT * AutoFit, VARIANT * AutoFitBehavior, VARIANT * DefaultTableBehavior ) {
    struct Table * _result = 0;
    HRESULT _hr = raw_ConvertToTable(Separator, NumRows, NumColumns, InitialColumnWidth, Format, ApplyBorders, ApplyShading, ApplyFont, ApplyColor, ApplyHeadingRows, ApplyLastRow, ApplyFirstColumn, ApplyLastColumn, AutoFit, AutoFitBehavior, DefaultTableBehavior, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TablePtr(_result, false);
}

inline HRESULT Range::TCSCConverter ( enum WdTCSCConverterDirection WdTCSCConverterDirection, VARIANT_BOOL CommonTerms, VARIANT_BOOL UseVariants ) {
    HRESULT _hr = raw_TCSCConverter(WdTCSCConverterDirection, CommonTerms, UseVariants);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL Range::GetLanguageDetected ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_LanguageDetected(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Range::PutLanguageDetected ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_LanguageDetected(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Range::GetFitTextWidth ( ) {
    float _result = 0;
    HRESULT _hr = get_FitTextWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Range::PutFitTextWidth ( float prop ) {
    HRESULT _hr = put_FitTextWidth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdHorizontalInVerticalType Range::GetHorizontalInVertical ( ) {
    enum WdHorizontalInVerticalType _result;
    HRESULT _hr = get_HorizontalInVertical(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Range::PutHorizontalInVertical ( enum WdHorizontalInVerticalType prop ) {
    HRESULT _hr = put_HorizontalInVertical(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdTwoLinesInOneType Range::GetTwoLinesInOne ( ) {
    enum WdTwoLinesInOneType _result;
    HRESULT _hr = get_TwoLinesInOne(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Range::PutTwoLinesInOne ( enum WdTwoLinesInOneType prop ) {
    HRESULT _hr = put_TwoLinesInOne(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Range::GetCombineCharacters ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_CombineCharacters(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Range::PutCombineCharacters ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_CombineCharacters(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Range::GetNoProofing ( ) {
    long _result = 0;
    HRESULT _hr = get_NoProofing(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Range::PutNoProofing ( long prop ) {
    HRESULT _hr = put_NoProofing(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline TablesPtr Range::GetTopLevelTables ( ) {
    struct Tables * _result = 0;
    HRESULT _hr = get_TopLevelTables(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TablesPtr(_result, false);
}

inline Office::ScriptsPtr Range::GetScripts ( ) {
    struct Office::Scripts * _result = 0;
    HRESULT _hr = get_Scripts(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::ScriptsPtr(_result, false);
}

inline enum WdCharacterWidth Range::GetCharacterWidth ( ) {
    enum WdCharacterWidth _result;
    HRESULT _hr = get_CharacterWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Range::PutCharacterWidth ( enum WdCharacterWidth prop ) {
    HRESULT _hr = put_CharacterWidth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdKana Range::GetKana ( ) {
    enum WdKana _result;
    HRESULT _hr = get_Kana(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Range::PutKana ( enum WdKana prop ) {
    HRESULT _hr = put_Kana(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Range::GetBoldBi ( ) {
    long _result = 0;
    HRESULT _hr = get_BoldBi(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Range::PutBoldBi ( long prop ) {
    HRESULT _hr = put_BoldBi(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Range::GetItalicBi ( ) {
    long _result = 0;
    HRESULT _hr = get_ItalicBi(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Range::PutItalicBi ( long prop ) {
    HRESULT _hr = put_ItalicBi(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t Range::GetID ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_ID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void Range::PutID ( _bstr_t prop ) {
    HRESULT _hr = put_ID(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HTMLDivisionsPtr Range::GetHTMLDivisions ( ) {
    struct HTMLDivisions * _result = 0;
    HRESULT _hr = get_HTMLDivisions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HTMLDivisionsPtr(_result, false);
}

inline SmartTagsPtr Range::GetSmartTags ( ) {
    struct SmartTags * _result = 0;
    HRESULT _hr = get_SmartTags(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SmartTagsPtr(_result, false);
}

inline VARIANT_BOOL Range::GetShowAll ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowAll(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Range::PutShowAll ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowAll(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _DocumentPtr Range::GetDocument ( ) {
    struct _Document * _result = 0;
    HRESULT _hr = get_Document(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _DocumentPtr(_result, false);
}

inline FootnoteOptionsPtr Range::GetFootnoteOptions ( ) {
    struct FootnoteOptions * _result = 0;
    HRESULT _hr = get_FootnoteOptions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FootnoteOptionsPtr(_result, false);
}

inline EndnoteOptionsPtr Range::GetEndnoteOptions ( ) {
    struct EndnoteOptions * _result = 0;
    HRESULT _hr = get_EndnoteOptions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return EndnoteOptionsPtr(_result, false);
}

inline HRESULT Range::PasteAndFormat ( enum WdRecoveryType Type ) {
    HRESULT _hr = raw_PasteAndFormat(Type);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::PasteExcelTable ( VARIANT_BOOL LinkedToExcel, VARIANT_BOOL WordFormatting, VARIANT_BOOL RTF ) {
    HRESULT _hr = raw_PasteExcelTable(LinkedToExcel, WordFormatting, RTF);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::PasteAppendTable ( ) {
    HRESULT _hr = raw_PasteAppendTable();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline XMLNodesPtr Range::GetXMLNodes ( ) {
    struct XMLNodes * _result = 0;
    HRESULT _hr = get_XMLNodes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLNodesPtr(_result, false);
}

inline XMLNodePtr Range::GetXMLParentNode ( ) {
    struct XMLNode * _result = 0;
    HRESULT _hr = get_XMLParentNode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLNodePtr(_result, false);
}

inline EditorsPtr Range::GetEditors ( ) {
    struct Editors * _result = 0;
    HRESULT _hr = get_Editors(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return EditorsPtr(_result, false);
}

inline _bstr_t Range::GetXML ( VARIANT_BOOL DataOnly ) {
    BSTR _result = 0;
    HRESULT _hr = get_XML(DataOnly, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _variant_t Range::GetEnhMetaFileBits ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_EnhMetaFileBits(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline RangePtr Range::GoToEditableRange ( VARIANT * EditorID ) {
    struct Range * _result = 0;
    HRESULT _hr = raw_GoToEditableRange(EditorID, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline HRESULT Range::InsertXML ( _bstr_t XML, VARIANT * Transform ) {
    HRESULT _hr = raw_InsertXML(XML, Transform);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::InsertCaption ( VARIANT * Label, VARIANT * Title, VARIANT * TitleAutoText, VARIANT * Position, VARIANT * ExcludeLabel ) {
    HRESULT _hr = raw_InsertCaption(Label, Title, TitleAutoText, Position, ExcludeLabel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::InsertCrossReference ( VARIANT * ReferenceType, enum WdReferenceKind ReferenceKind, VARIANT * ReferenceItem, VARIANT * InsertAsHyperlink, VARIANT * IncludePosition, VARIANT * SeparateNumbers, VARIANT * SeparatorString ) {
    HRESULT _hr = raw_InsertCrossReference(ReferenceType, ReferenceKind, ReferenceItem, InsertAsHyperlink, IncludePosition, SeparateNumbers, SeparatorString);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline OMathsPtr Range::GetOMaths ( ) {
    struct OMaths * _result = 0;
    HRESULT _hr = get_OMaths(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathsPtr(_result, false);
}

inline _variant_t Range::GetCharacterStyle ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_CharacterStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline _variant_t Range::GetParagraphStyle ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_ParagraphStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline _variant_t Range::GetListStyle ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_ListStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline _variant_t Range::GetTableStyle ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_TableStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline ContentControlsPtr Range::GetContentControls ( ) {
    struct ContentControls * _result = 0;
    HRESULT _hr = get_ContentControls(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ContentControlsPtr(_result, false);
}

inline HRESULT Range::ExportFragment ( _bstr_t FileName, enum WdSaveFormat Format ) {
    HRESULT _hr = raw_ExportFragment(FileName, Format);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _bstr_t Range::GetWordOpenXML ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_WordOpenXML(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline HRESULT Range::SetListLevel ( short Level ) {
    HRESULT _hr = raw_SetListLevel(Level);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::InsertAlignmentTab ( long Alignment, long RelativeTo ) {
    HRESULT _hr = raw_InsertAlignmentTab(Alignment, RelativeTo);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline ContentControlPtr Range::GetParentContentControl ( ) {
    struct ContentControl * _result = 0;
    HRESULT _hr = get_ParentContentControl(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ContentControlPtr(_result, false);
}

inline HRESULT Range::ImportFragment ( _bstr_t FileName, VARIANT_BOOL MatchDestination ) {
    HRESULT _hr = raw_ImportFragment(FileName, MatchDestination);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Range::ExportAsFixedFormat ( _bstr_t OutputFileName, enum WdExportFormat ExportFormat, VARIANT_BOOL OpenAfterExport, enum WdExportOptimizeFor OptimizeFor, VARIANT_BOOL ExportCurrentPage, enum WdExportItem Item, VARIANT_BOOL IncludeDocProps, VARIANT_BOOL KeepIRM, enum WdExportCreateBookmarks CreateBookmarks, VARIANT_BOOL DocStructureTags, VARIANT_BOOL BitmapMissingFonts, VARIANT_BOOL UseISO19005_1, VARIANT * FixedFormatExtClassPtr ) {
    HRESULT _hr = raw_ExportAsFixedFormat(OutputFileName, ExportFormat, OpenAfterExport, OptimizeFor, ExportCurrentPage, Item, IncludeDocProps, KeepIRM, CreateBookmarks, DocStructureTags, BitmapMissingFonts, UseISO19005_1, FixedFormatExtClassPtr);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline CoAuthLocksPtr Range::GetLocks ( ) {
    struct CoAuthLocks * _result = 0;
    HRESULT _hr = get_Locks(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CoAuthLocksPtr(_result, false);
}

inline CoAuthUpdatesPtr Range::GetUpdates ( ) {
    struct CoAuthUpdates * _result = 0;
    HRESULT _hr = get_Updates(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CoAuthUpdatesPtr(_result, false);
}

inline ConflictsPtr Range::GetConflicts ( ) {
    struct Conflicts * _result = 0;
    HRESULT _hr = get_Conflicts(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ConflictsPtr(_result, false);
}

//
// interface Characters wrapper method implementations
//

inline IUnknownPtr Characters::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long Characters::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline RangePtr Characters::GetFirst ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_First(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline RangePtr Characters::GetLast ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Last(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline _ApplicationPtr Characters::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Characters::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Characters::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline RangePtr Characters::Item ( long Index ) {
    struct Range * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

//
// interface Words wrapper method implementations
//

inline IUnknownPtr Words::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long Words::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline RangePtr Words::GetFirst ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_First(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline RangePtr Words::GetLast ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Last(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline _ApplicationPtr Words::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Words::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Words::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline RangePtr Words::Item ( long Index ) {
    struct Range * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

//
// interface Sentences wrapper method implementations
//

inline IUnknownPtr Sentences::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long Sentences::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline RangePtr Sentences::GetFirst ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_First(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline RangePtr Sentences::GetLast ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Last(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline _ApplicationPtr Sentences::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Sentences::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Sentences::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline RangePtr Sentences::Item ( long Index ) {
    struct Range * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

//
// interface Paragraph wrapper method implementations
//

inline RangePtr Paragraph::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline _ApplicationPtr Paragraph::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Paragraph::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Paragraph::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline _ParagraphFormatPtr Paragraph::GetFormat ( ) {
    struct _ParagraphFormat * _result = 0;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ParagraphFormatPtr(_result, false);
}

inline void Paragraph::PutFormat ( struct _ParagraphFormat * prop ) {
    HRESULT _hr = put_Format(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline TabStopsPtr Paragraph::GetTabStops ( ) {
    struct TabStops * _result = 0;
    HRESULT _hr = get_TabStops(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TabStopsPtr(_result, false);
}

inline void Paragraph::PutTabStops ( struct TabStops * prop ) {
    HRESULT _hr = put_TabStops(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline BordersPtr Paragraph::GetBorders ( ) {
    struct Borders * _result = 0;
    HRESULT _hr = get_Borders(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BordersPtr(_result, false);
}

inline void Paragraph::PutBorders ( struct Borders * prop ) {
    HRESULT _hr = put_Borders(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline DropCapPtr Paragraph::GetDropCap ( ) {
    struct DropCap * _result = 0;
    HRESULT _hr = get_DropCap(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DropCapPtr(_result, false);
}

inline _variant_t Paragraph::GetStyle ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Style(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline void Paragraph::PutStyle ( VARIANT * prop ) {
    HRESULT _hr = put_Style(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdParagraphAlignment Paragraph::GetAlignment ( ) {
    enum WdParagraphAlignment _result;
    HRESULT _hr = get_Alignment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutAlignment ( enum WdParagraphAlignment prop ) {
    HRESULT _hr = put_Alignment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Paragraph::GetKeepTogether ( ) {
    long _result = 0;
    HRESULT _hr = get_KeepTogether(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutKeepTogether ( long prop ) {
    HRESULT _hr = put_KeepTogether(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Paragraph::GetKeepWithNext ( ) {
    long _result = 0;
    HRESULT _hr = get_KeepWithNext(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutKeepWithNext ( long prop ) {
    HRESULT _hr = put_KeepWithNext(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Paragraph::GetPageBreakBefore ( ) {
    long _result = 0;
    HRESULT _hr = get_PageBreakBefore(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutPageBreakBefore ( long prop ) {
    HRESULT _hr = put_PageBreakBefore(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Paragraph::GetNoLineNumber ( ) {
    long _result = 0;
    HRESULT _hr = get_NoLineNumber(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutNoLineNumber ( long prop ) {
    HRESULT _hr = put_NoLineNumber(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Paragraph::GetRightIndent ( ) {
    float _result = 0;
    HRESULT _hr = get_RightIndent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutRightIndent ( float prop ) {
    HRESULT _hr = put_RightIndent(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Paragraph::GetLeftIndent ( ) {
    float _result = 0;
    HRESULT _hr = get_LeftIndent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutLeftIndent ( float prop ) {
    HRESULT _hr = put_LeftIndent(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Paragraph::GetFirstLineIndent ( ) {
    float _result = 0;
    HRESULT _hr = get_FirstLineIndent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutFirstLineIndent ( float prop ) {
    HRESULT _hr = put_FirstLineIndent(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Paragraph::GetLineSpacing ( ) {
    float _result = 0;
    HRESULT _hr = get_LineSpacing(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutLineSpacing ( float prop ) {
    HRESULT _hr = put_LineSpacing(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdLineSpacing Paragraph::GetLineSpacingRule ( ) {
    enum WdLineSpacing _result;
    HRESULT _hr = get_LineSpacingRule(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutLineSpacingRule ( enum WdLineSpacing prop ) {
    HRESULT _hr = put_LineSpacingRule(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Paragraph::GetSpaceBefore ( ) {
    float _result = 0;
    HRESULT _hr = get_SpaceBefore(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutSpaceBefore ( float prop ) {
    HRESULT _hr = put_SpaceBefore(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Paragraph::GetSpaceAfter ( ) {
    float _result = 0;
    HRESULT _hr = get_SpaceAfter(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutSpaceAfter ( float prop ) {
    HRESULT _hr = put_SpaceAfter(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Paragraph::GetHyphenation ( ) {
    long _result = 0;
    HRESULT _hr = get_Hyphenation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutHyphenation ( long prop ) {
    HRESULT _hr = put_Hyphenation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Paragraph::GetWidowControl ( ) {
    long _result = 0;
    HRESULT _hr = get_WidowControl(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutWidowControl ( long prop ) {
    HRESULT _hr = put_WidowControl(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline ShadingPtr Paragraph::GetShading ( ) {
    struct Shading * _result = 0;
    HRESULT _hr = get_Shading(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShadingPtr(_result, false);
}

inline long Paragraph::GetFarEastLineBreakControl ( ) {
    long _result = 0;
    HRESULT _hr = get_FarEastLineBreakControl(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutFarEastLineBreakControl ( long prop ) {
    HRESULT _hr = put_FarEastLineBreakControl(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Paragraph::GetWordWrap ( ) {
    long _result = 0;
    HRESULT _hr = get_WordWrap(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutWordWrap ( long prop ) {
    HRESULT _hr = put_WordWrap(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Paragraph::GetHangingPunctuation ( ) {
    long _result = 0;
    HRESULT _hr = get_HangingPunctuation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutHangingPunctuation ( long prop ) {
    HRESULT _hr = put_HangingPunctuation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Paragraph::GetHalfWidthPunctuationOnTopOfLine ( ) {
    long _result = 0;
    HRESULT _hr = get_HalfWidthPunctuationOnTopOfLine(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutHalfWidthPunctuationOnTopOfLine ( long prop ) {
    HRESULT _hr = put_HalfWidthPunctuationOnTopOfLine(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Paragraph::GetAddSpaceBetweenFarEastAndAlpha ( ) {
    long _result = 0;
    HRESULT _hr = get_AddSpaceBetweenFarEastAndAlpha(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutAddSpaceBetweenFarEastAndAlpha ( long prop ) {
    HRESULT _hr = put_AddSpaceBetweenFarEastAndAlpha(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Paragraph::GetAddSpaceBetweenFarEastAndDigit ( ) {
    long _result = 0;
    HRESULT _hr = get_AddSpaceBetweenFarEastAndDigit(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutAddSpaceBetweenFarEastAndDigit ( long prop ) {
    HRESULT _hr = put_AddSpaceBetweenFarEastAndDigit(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdBaselineAlignment Paragraph::GetBaseLineAlignment ( ) {
    enum WdBaselineAlignment _result;
    HRESULT _hr = get_BaseLineAlignment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutBaseLineAlignment ( enum WdBaselineAlignment prop ) {
    HRESULT _hr = put_BaseLineAlignment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Paragraph::GetAutoAdjustRightIndent ( ) {
    long _result = 0;
    HRESULT _hr = get_AutoAdjustRightIndent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutAutoAdjustRightIndent ( long prop ) {
    HRESULT _hr = put_AutoAdjustRightIndent(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Paragraph::GetDisableLineHeightGrid ( ) {
    long _result = 0;
    HRESULT _hr = get_DisableLineHeightGrid(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutDisableLineHeightGrid ( long prop ) {
    HRESULT _hr = put_DisableLineHeightGrid(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdOutlineLevel Paragraph::GetOutlineLevel ( ) {
    enum WdOutlineLevel _result;
    HRESULT _hr = get_OutlineLevel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutOutlineLevel ( enum WdOutlineLevel prop ) {
    HRESULT _hr = put_OutlineLevel(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT Paragraph::CloseUp ( ) {
    HRESULT _hr = raw_CloseUp();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraph::OpenUp ( ) {
    HRESULT _hr = raw_OpenUp();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraph::OpenOrCloseUp ( ) {
    HRESULT _hr = raw_OpenOrCloseUp();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraph::TabHangingIndent ( short Count ) {
    HRESULT _hr = raw_TabHangingIndent(Count);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraph::TabIndent ( short Count ) {
    HRESULT _hr = raw_TabIndent(Count);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraph::Reset ( ) {
    HRESULT _hr = raw_Reset();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraph::Space1 ( ) {
    HRESULT _hr = raw_Space1();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraph::Space15 ( ) {
    HRESULT _hr = raw_Space15();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraph::Space2 ( ) {
    HRESULT _hr = raw_Space2();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraph::IndentCharWidth ( short Count ) {
    HRESULT _hr = raw_IndentCharWidth(Count);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraph::IndentFirstLineCharWidth ( short Count ) {
    HRESULT _hr = raw_IndentFirstLineCharWidth(Count);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline ParagraphPtr Paragraph::Next ( VARIANT * Count ) {
    struct Paragraph * _result = 0;
    HRESULT _hr = raw_Next(Count, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ParagraphPtr(_result, false);
}

inline ParagraphPtr Paragraph::Previous ( VARIANT * Count ) {
    struct Paragraph * _result = 0;
    HRESULT _hr = raw_Previous(Count, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ParagraphPtr(_result, false);
}

inline HRESULT Paragraph::OutlinePromote ( ) {
    HRESULT _hr = raw_OutlinePromote();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraph::OutlineDemote ( ) {
    HRESULT _hr = raw_OutlineDemote();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraph::OutlineDemoteToBody ( ) {
    HRESULT _hr = raw_OutlineDemoteToBody();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraph::Indent ( ) {
    HRESULT _hr = raw_Indent();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraph::Outdent ( ) {
    HRESULT _hr = raw_Outdent();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline float Paragraph::GetCharacterUnitRightIndent ( ) {
    float _result = 0;
    HRESULT _hr = get_CharacterUnitRightIndent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutCharacterUnitRightIndent ( float prop ) {
    HRESULT _hr = put_CharacterUnitRightIndent(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Paragraph::GetCharacterUnitLeftIndent ( ) {
    float _result = 0;
    HRESULT _hr = get_CharacterUnitLeftIndent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutCharacterUnitLeftIndent ( float prop ) {
    HRESULT _hr = put_CharacterUnitLeftIndent(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Paragraph::GetCharacterUnitFirstLineIndent ( ) {
    float _result = 0;
    HRESULT _hr = get_CharacterUnitFirstLineIndent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutCharacterUnitFirstLineIndent ( float prop ) {
    HRESULT _hr = put_CharacterUnitFirstLineIndent(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Paragraph::GetLineUnitBefore ( ) {
    float _result = 0;
    HRESULT _hr = get_LineUnitBefore(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutLineUnitBefore ( float prop ) {
    HRESULT _hr = put_LineUnitBefore(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Paragraph::GetLineUnitAfter ( ) {
    float _result = 0;
    HRESULT _hr = get_LineUnitAfter(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutLineUnitAfter ( float prop ) {
    HRESULT _hr = put_LineUnitAfter(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdReadingOrder Paragraph::GetReadingOrder ( ) {
    enum WdReadingOrder _result;
    HRESULT _hr = get_ReadingOrder(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutReadingOrder ( enum WdReadingOrder prop ) {
    HRESULT _hr = put_ReadingOrder(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t Paragraph::GetID ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_ID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void Paragraph::PutID ( _bstr_t prop ) {
    HRESULT _hr = put_ID(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Paragraph::GetSpaceBeforeAuto ( ) {
    long _result = 0;
    HRESULT _hr = get_SpaceBeforeAuto(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutSpaceBeforeAuto ( long prop ) {
    HRESULT _hr = put_SpaceBeforeAuto(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Paragraph::GetSpaceAfterAuto ( ) {
    long _result = 0;
    HRESULT _hr = get_SpaceAfterAuto(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutSpaceAfterAuto ( long prop ) {
    HRESULT _hr = put_SpaceAfterAuto(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Paragraph::GetIsStyleSeparator ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IsStyleSeparator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT Paragraph::SelectNumber ( ) {
    HRESULT _hr = raw_SelectNumber();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraph::ListAdvanceTo ( short Level1, short Level2, short Level3, short Level4, short Level5, short Level6, short Level7, short Level8, short Level9 ) {
    HRESULT _hr = raw_ListAdvanceTo(Level1, Level2, Level3, Level4, Level5, Level6, Level7, Level8, Level9);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraph::ResetAdvanceTo ( ) {
    HRESULT _hr = raw_ResetAdvanceTo();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraph::SeparateList ( ) {
    HRESULT _hr = raw_SeparateList();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraph::JoinList ( ) {
    HRESULT _hr = raw_JoinList();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long Paragraph::GetMirrorIndents ( ) {
    long _result = 0;
    HRESULT _hr = get_MirrorIndents(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutMirrorIndents ( long prop ) {
    HRESULT _hr = put_MirrorIndents(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdTextboxTightWrap Paragraph::GetTextboxTightWrap ( ) {
    enum WdTextboxTightWrap _result;
    HRESULT _hr = get_TextboxTightWrap(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraph::PutTextboxTightWrap ( enum WdTextboxTightWrap prop ) {
    HRESULT _hr = put_TextboxTightWrap(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline short Paragraph::GetListNumberOriginal ( short Level ) {
    short _result = 0;
    HRESULT _hr = get_ListNumberOriginal(Level, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Paragraph::GetParaID ( ) {
    long _result = 0;
    HRESULT _hr = get_ParaID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Paragraph::GetTextID ( ) {
    long _result = 0;
    HRESULT _hr = get_TextID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface Paragraphs wrapper method implementations
//

inline IUnknownPtr Paragraphs::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long Paragraphs::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline ParagraphPtr Paragraphs::GetFirst ( ) {
    struct Paragraph * _result = 0;
    HRESULT _hr = get_First(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ParagraphPtr(_result, false);
}

inline ParagraphPtr Paragraphs::GetLast ( ) {
    struct Paragraph * _result = 0;
    HRESULT _hr = get_Last(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ParagraphPtr(_result, false);
}

inline _ApplicationPtr Paragraphs::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Paragraphs::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Paragraphs::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline _ParagraphFormatPtr Paragraphs::GetFormat ( ) {
    struct _ParagraphFormat * _result = 0;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ParagraphFormatPtr(_result, false);
}

inline void Paragraphs::PutFormat ( struct _ParagraphFormat * prop ) {
    HRESULT _hr = put_Format(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline TabStopsPtr Paragraphs::GetTabStops ( ) {
    struct TabStops * _result = 0;
    HRESULT _hr = get_TabStops(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TabStopsPtr(_result, false);
}

inline void Paragraphs::PutTabStops ( struct TabStops * prop ) {
    HRESULT _hr = put_TabStops(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline BordersPtr Paragraphs::GetBorders ( ) {
    struct Borders * _result = 0;
    HRESULT _hr = get_Borders(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BordersPtr(_result, false);
}

inline void Paragraphs::PutBorders ( struct Borders * prop ) {
    HRESULT _hr = put_Borders(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _variant_t Paragraphs::GetStyle ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Style(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline void Paragraphs::PutStyle ( VARIANT * prop ) {
    HRESULT _hr = put_Style(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdParagraphAlignment Paragraphs::GetAlignment ( ) {
    enum WdParagraphAlignment _result;
    HRESULT _hr = get_Alignment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutAlignment ( enum WdParagraphAlignment prop ) {
    HRESULT _hr = put_Alignment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Paragraphs::GetKeepTogether ( ) {
    long _result = 0;
    HRESULT _hr = get_KeepTogether(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutKeepTogether ( long prop ) {
    HRESULT _hr = put_KeepTogether(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Paragraphs::GetKeepWithNext ( ) {
    long _result = 0;
    HRESULT _hr = get_KeepWithNext(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutKeepWithNext ( long prop ) {
    HRESULT _hr = put_KeepWithNext(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Paragraphs::GetPageBreakBefore ( ) {
    long _result = 0;
    HRESULT _hr = get_PageBreakBefore(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutPageBreakBefore ( long prop ) {
    HRESULT _hr = put_PageBreakBefore(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Paragraphs::GetNoLineNumber ( ) {
    long _result = 0;
    HRESULT _hr = get_NoLineNumber(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutNoLineNumber ( long prop ) {
    HRESULT _hr = put_NoLineNumber(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Paragraphs::GetRightIndent ( ) {
    float _result = 0;
    HRESULT _hr = get_RightIndent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutRightIndent ( float prop ) {
    HRESULT _hr = put_RightIndent(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Paragraphs::GetLeftIndent ( ) {
    float _result = 0;
    HRESULT _hr = get_LeftIndent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutLeftIndent ( float prop ) {
    HRESULT _hr = put_LeftIndent(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Paragraphs::GetFirstLineIndent ( ) {
    float _result = 0;
    HRESULT _hr = get_FirstLineIndent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutFirstLineIndent ( float prop ) {
    HRESULT _hr = put_FirstLineIndent(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Paragraphs::GetLineSpacing ( ) {
    float _result = 0;
    HRESULT _hr = get_LineSpacing(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutLineSpacing ( float prop ) {
    HRESULT _hr = put_LineSpacing(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdLineSpacing Paragraphs::GetLineSpacingRule ( ) {
    enum WdLineSpacing _result;
    HRESULT _hr = get_LineSpacingRule(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutLineSpacingRule ( enum WdLineSpacing prop ) {
    HRESULT _hr = put_LineSpacingRule(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Paragraphs::GetSpaceBefore ( ) {
    float _result = 0;
    HRESULT _hr = get_SpaceBefore(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutSpaceBefore ( float prop ) {
    HRESULT _hr = put_SpaceBefore(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Paragraphs::GetSpaceAfter ( ) {
    float _result = 0;
    HRESULT _hr = get_SpaceAfter(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutSpaceAfter ( float prop ) {
    HRESULT _hr = put_SpaceAfter(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Paragraphs::GetHyphenation ( ) {
    long _result = 0;
    HRESULT _hr = get_Hyphenation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutHyphenation ( long prop ) {
    HRESULT _hr = put_Hyphenation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Paragraphs::GetWidowControl ( ) {
    long _result = 0;
    HRESULT _hr = get_WidowControl(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutWidowControl ( long prop ) {
    HRESULT _hr = put_WidowControl(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline ShadingPtr Paragraphs::GetShading ( ) {
    struct Shading * _result = 0;
    HRESULT _hr = get_Shading(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShadingPtr(_result, false);
}

inline long Paragraphs::GetFarEastLineBreakControl ( ) {
    long _result = 0;
    HRESULT _hr = get_FarEastLineBreakControl(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutFarEastLineBreakControl ( long prop ) {
    HRESULT _hr = put_FarEastLineBreakControl(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Paragraphs::GetWordWrap ( ) {
    long _result = 0;
    HRESULT _hr = get_WordWrap(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutWordWrap ( long prop ) {
    HRESULT _hr = put_WordWrap(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Paragraphs::GetHangingPunctuation ( ) {
    long _result = 0;
    HRESULT _hr = get_HangingPunctuation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutHangingPunctuation ( long prop ) {
    HRESULT _hr = put_HangingPunctuation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Paragraphs::GetHalfWidthPunctuationOnTopOfLine ( ) {
    long _result = 0;
    HRESULT _hr = get_HalfWidthPunctuationOnTopOfLine(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutHalfWidthPunctuationOnTopOfLine ( long prop ) {
    HRESULT _hr = put_HalfWidthPunctuationOnTopOfLine(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Paragraphs::GetAddSpaceBetweenFarEastAndAlpha ( ) {
    long _result = 0;
    HRESULT _hr = get_AddSpaceBetweenFarEastAndAlpha(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutAddSpaceBetweenFarEastAndAlpha ( long prop ) {
    HRESULT _hr = put_AddSpaceBetweenFarEastAndAlpha(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Paragraphs::GetAddSpaceBetweenFarEastAndDigit ( ) {
    long _result = 0;
    HRESULT _hr = get_AddSpaceBetweenFarEastAndDigit(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutAddSpaceBetweenFarEastAndDigit ( long prop ) {
    HRESULT _hr = put_AddSpaceBetweenFarEastAndDigit(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdBaselineAlignment Paragraphs::GetBaseLineAlignment ( ) {
    enum WdBaselineAlignment _result;
    HRESULT _hr = get_BaseLineAlignment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutBaseLineAlignment ( enum WdBaselineAlignment prop ) {
    HRESULT _hr = put_BaseLineAlignment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Paragraphs::GetAutoAdjustRightIndent ( ) {
    long _result = 0;
    HRESULT _hr = get_AutoAdjustRightIndent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutAutoAdjustRightIndent ( long prop ) {
    HRESULT _hr = put_AutoAdjustRightIndent(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Paragraphs::GetDisableLineHeightGrid ( ) {
    long _result = 0;
    HRESULT _hr = get_DisableLineHeightGrid(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutDisableLineHeightGrid ( long prop ) {
    HRESULT _hr = put_DisableLineHeightGrid(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdOutlineLevel Paragraphs::GetOutlineLevel ( ) {
    enum WdOutlineLevel _result;
    HRESULT _hr = get_OutlineLevel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutOutlineLevel ( enum WdOutlineLevel prop ) {
    HRESULT _hr = put_OutlineLevel(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline ParagraphPtr Paragraphs::Item ( long Index ) {
    struct Paragraph * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ParagraphPtr(_result, false);
}

inline ParagraphPtr Paragraphs::Add ( VARIANT * Range ) {
    struct Paragraph * _result = 0;
    HRESULT _hr = raw_Add(Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ParagraphPtr(_result, false);
}

inline HRESULT Paragraphs::CloseUp ( ) {
    HRESULT _hr = raw_CloseUp();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraphs::OpenUp ( ) {
    HRESULT _hr = raw_OpenUp();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraphs::OpenOrCloseUp ( ) {
    HRESULT _hr = raw_OpenOrCloseUp();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraphs::TabHangingIndent ( short Count ) {
    HRESULT _hr = raw_TabHangingIndent(Count);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraphs::TabIndent ( short Count ) {
    HRESULT _hr = raw_TabIndent(Count);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraphs::Reset ( ) {
    HRESULT _hr = raw_Reset();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraphs::Space1 ( ) {
    HRESULT _hr = raw_Space1();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraphs::Space15 ( ) {
    HRESULT _hr = raw_Space15();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraphs::Space2 ( ) {
    HRESULT _hr = raw_Space2();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraphs::IndentCharWidth ( short Count ) {
    HRESULT _hr = raw_IndentCharWidth(Count);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraphs::IndentFirstLineCharWidth ( short Count ) {
    HRESULT _hr = raw_IndentFirstLineCharWidth(Count);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraphs::OutlinePromote ( ) {
    HRESULT _hr = raw_OutlinePromote();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraphs::OutlineDemote ( ) {
    HRESULT _hr = raw_OutlineDemote();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraphs::OutlineDemoteToBody ( ) {
    HRESULT _hr = raw_OutlineDemoteToBody();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraphs::Indent ( ) {
    HRESULT _hr = raw_Indent();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraphs::Outdent ( ) {
    HRESULT _hr = raw_Outdent();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline float Paragraphs::GetCharacterUnitRightIndent ( ) {
    float _result = 0;
    HRESULT _hr = get_CharacterUnitRightIndent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutCharacterUnitRightIndent ( float prop ) {
    HRESULT _hr = put_CharacterUnitRightIndent(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Paragraphs::GetCharacterUnitLeftIndent ( ) {
    float _result = 0;
    HRESULT _hr = get_CharacterUnitLeftIndent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutCharacterUnitLeftIndent ( float prop ) {
    HRESULT _hr = put_CharacterUnitLeftIndent(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Paragraphs::GetCharacterUnitFirstLineIndent ( ) {
    float _result = 0;
    HRESULT _hr = get_CharacterUnitFirstLineIndent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutCharacterUnitFirstLineIndent ( float prop ) {
    HRESULT _hr = put_CharacterUnitFirstLineIndent(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Paragraphs::GetLineUnitBefore ( ) {
    float _result = 0;
    HRESULT _hr = get_LineUnitBefore(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutLineUnitBefore ( float prop ) {
    HRESULT _hr = put_LineUnitBefore(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Paragraphs::GetLineUnitAfter ( ) {
    float _result = 0;
    HRESULT _hr = get_LineUnitAfter(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutLineUnitAfter ( float prop ) {
    HRESULT _hr = put_LineUnitAfter(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdReadingOrder Paragraphs::GetReadingOrder ( ) {
    enum WdReadingOrder _result;
    HRESULT _hr = get_ReadingOrder(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutReadingOrder ( enum WdReadingOrder prop ) {
    HRESULT _hr = put_ReadingOrder(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Paragraphs::GetSpaceBeforeAuto ( ) {
    long _result = 0;
    HRESULT _hr = get_SpaceBeforeAuto(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutSpaceBeforeAuto ( long prop ) {
    HRESULT _hr = put_SpaceBeforeAuto(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Paragraphs::GetSpaceAfterAuto ( ) {
    long _result = 0;
    HRESULT _hr = get_SpaceAfterAuto(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Paragraphs::PutSpaceAfterAuto ( long prop ) {
    HRESULT _hr = put_SpaceAfterAuto(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT Paragraphs::IncreaseSpacing ( ) {
    HRESULT _hr = raw_IncreaseSpacing();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Paragraphs::DecreaseSpacing ( ) {
    HRESULT _hr = raw_DecreaseSpacing();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface AutoCorrectEntry wrapper method implementations
//

inline _ApplicationPtr AutoCorrectEntry::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long AutoCorrectEntry::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr AutoCorrectEntry::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long AutoCorrectEntry::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _bstr_t AutoCorrectEntry::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void AutoCorrectEntry::PutName ( _bstr_t prop ) {
    HRESULT _hr = put_Name(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t AutoCorrectEntry::GetValue ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Value(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void AutoCorrectEntry::PutValue ( _bstr_t prop ) {
    HRESULT _hr = put_Value(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL AutoCorrectEntry::GetRichText ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_RichText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT AutoCorrectEntry::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT AutoCorrectEntry::Apply ( struct Range * Range ) {
    HRESULT _hr = raw_Apply(Range);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface AutoCorrectEntries wrapper method implementations
//

inline _ApplicationPtr AutoCorrectEntries::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long AutoCorrectEntries::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr AutoCorrectEntries::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline IUnknownPtr AutoCorrectEntries::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long AutoCorrectEntries::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline AutoCorrectEntryPtr AutoCorrectEntries::Item ( VARIANT * Index ) {
    struct AutoCorrectEntry * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return AutoCorrectEntryPtr(_result, false);
}

inline AutoCorrectEntryPtr AutoCorrectEntries::Add ( _bstr_t Name, _bstr_t Value ) {
    struct AutoCorrectEntry * _result = 0;
    HRESULT _hr = raw_Add(Name, Value, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return AutoCorrectEntryPtr(_result, false);
}

inline AutoCorrectEntryPtr AutoCorrectEntries::AddRichText ( _bstr_t Name, struct Range * Range ) {
    struct AutoCorrectEntry * _result = 0;
    HRESULT _hr = raw_AddRichText(Name, Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return AutoCorrectEntryPtr(_result, false);
}

//
// interface AutoCorrect wrapper method implementations
//

inline _ApplicationPtr AutoCorrect::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long AutoCorrect::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr AutoCorrect::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline VARIANT_BOOL AutoCorrect::GetCorrectDays ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_CorrectDays(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void AutoCorrect::PutCorrectDays ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_CorrectDays(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL AutoCorrect::GetCorrectInitialCaps ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_CorrectInitialCaps(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void AutoCorrect::PutCorrectInitialCaps ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_CorrectInitialCaps(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL AutoCorrect::GetCorrectSentenceCaps ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_CorrectSentenceCaps(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void AutoCorrect::PutCorrectSentenceCaps ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_CorrectSentenceCaps(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL AutoCorrect::Get__ReplaceText ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get___ReplaceText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void AutoCorrect::Put__ReplaceText ( VARIANT_BOOL prop ) {
    HRESULT _hr = put___ReplaceText(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline AutoCorrectEntriesPtr AutoCorrect::GetEntries ( ) {
    struct AutoCorrectEntries * _result = 0;
    HRESULT _hr = get_Entries(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return AutoCorrectEntriesPtr(_result, false);
}

inline FirstLetterExceptionsPtr AutoCorrect::GetFirstLetterExceptions ( ) {
    struct FirstLetterExceptions * _result = 0;
    HRESULT _hr = get_FirstLetterExceptions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FirstLetterExceptionsPtr(_result, false);
}

inline VARIANT_BOOL AutoCorrect::GetFirstLetterAutoAdd ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_FirstLetterAutoAdd(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void AutoCorrect::PutFirstLetterAutoAdd ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_FirstLetterAutoAdd(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline TwoInitialCapsExceptionsPtr AutoCorrect::GetTwoInitialCapsExceptions ( ) {
    struct TwoInitialCapsExceptions * _result = 0;
    HRESULT _hr = get_TwoInitialCapsExceptions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TwoInitialCapsExceptionsPtr(_result, false);
}

inline VARIANT_BOOL AutoCorrect::GetTwoInitialCapsAutoAdd ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_TwoInitialCapsAutoAdd(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void AutoCorrect::PutTwoInitialCapsAutoAdd ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_TwoInitialCapsAutoAdd(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL AutoCorrect::GetCorrectCapsLock ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_CorrectCapsLock(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void AutoCorrect::PutCorrectCapsLock ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_CorrectCapsLock(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL AutoCorrect::GetCorrectHangulAndAlphabet ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_CorrectHangulAndAlphabet(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void AutoCorrect::PutCorrectHangulAndAlphabet ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_CorrectHangulAndAlphabet(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HangulAndAlphabetExceptionsPtr AutoCorrect::GetHangulAndAlphabetExceptions ( ) {
    struct HangulAndAlphabetExceptions * _result = 0;
    HRESULT _hr = get_HangulAndAlphabetExceptions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HangulAndAlphabetExceptionsPtr(_result, false);
}

inline VARIANT_BOOL AutoCorrect::GetHangulAndAlphabetAutoAdd ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HangulAndAlphabetAutoAdd(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void AutoCorrect::PutHangulAndAlphabetAutoAdd ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HangulAndAlphabetAutoAdd(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL AutoCorrect::GetReplaceTextFromSpellingChecker ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ReplaceTextFromSpellingChecker(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void AutoCorrect::PutReplaceTextFromSpellingChecker ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ReplaceTextFromSpellingChecker(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL AutoCorrect::GetOtherCorrectionsAutoAdd ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_OtherCorrectionsAutoAdd(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void AutoCorrect::PutOtherCorrectionsAutoAdd ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_OtherCorrectionsAutoAdd(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline OtherCorrectionsExceptionsPtr AutoCorrect::GetOtherCorrectionsExceptions ( ) {
    struct OtherCorrectionsExceptions * _result = 0;
    HRESULT _hr = get_OtherCorrectionsExceptions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OtherCorrectionsExceptionsPtr(_result, false);
}

inline VARIANT_BOOL AutoCorrect::GetCorrectKeyboardSetting ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_CorrectKeyboardSetting(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void AutoCorrect::PutCorrectKeyboardSetting ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_CorrectKeyboardSetting(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL AutoCorrect::GetCorrectTableCells ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_CorrectTableCells(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void AutoCorrect::PutCorrectTableCells ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_CorrectTableCells(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL AutoCorrect::GetDisplayAutoCorrectOptions ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DisplayAutoCorrectOptions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void AutoCorrect::PutDisplayAutoCorrectOptions ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DisplayAutoCorrectOptions(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface Footnote wrapper method implementations
//

inline _ApplicationPtr Footnote::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Footnote::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Footnote::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline RangePtr Footnote::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline RangePtr Footnote::GetReference ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Reference(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline long Footnote::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT Footnote::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Footnotes wrapper method implementations
//

inline IUnknownPtr Footnotes::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long Footnotes::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _ApplicationPtr Footnotes::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Footnotes::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Footnotes::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline enum WdFootnoteLocation Footnotes::GetLocation ( ) {
    enum WdFootnoteLocation _result;
    HRESULT _hr = get_Location(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Footnotes::PutLocation ( enum WdFootnoteLocation prop ) {
    HRESULT _hr = put_Location(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdNoteNumberStyle Footnotes::GetNumberStyle ( ) {
    enum WdNoteNumberStyle _result;
    HRESULT _hr = get_NumberStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Footnotes::PutNumberStyle ( enum WdNoteNumberStyle prop ) {
    HRESULT _hr = put_NumberStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Footnotes::GetStartingNumber ( ) {
    long _result = 0;
    HRESULT _hr = get_StartingNumber(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Footnotes::PutStartingNumber ( long prop ) {
    HRESULT _hr = put_StartingNumber(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdNumberingRule Footnotes::GetNumberingRule ( ) {
    enum WdNumberingRule _result;
    HRESULT _hr = get_NumberingRule(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Footnotes::PutNumberingRule ( enum WdNumberingRule prop ) {
    HRESULT _hr = put_NumberingRule(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline RangePtr Footnotes::GetSeparator ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Separator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline RangePtr Footnotes::GetContinuationSeparator ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_ContinuationSeparator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline RangePtr Footnotes::GetContinuationNotice ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_ContinuationNotice(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline FootnotePtr Footnotes::Item ( long Index ) {
    struct Footnote * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FootnotePtr(_result, false);
}

inline FootnotePtr Footnotes::Add ( struct Range * Range, VARIANT * Reference, VARIANT * Text ) {
    struct Footnote * _result = 0;
    HRESULT _hr = raw_Add(Range, Reference, Text, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FootnotePtr(_result, false);
}

inline HRESULT Footnotes::Convert ( ) {
    HRESULT _hr = raw_Convert();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Footnotes::SwapWithEndnotes ( ) {
    HRESULT _hr = raw_SwapWithEndnotes();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Footnotes::ResetSeparator ( ) {
    HRESULT _hr = raw_ResetSeparator();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Footnotes::ResetContinuationSeparator ( ) {
    HRESULT _hr = raw_ResetContinuationSeparator();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Footnotes::ResetContinuationNotice ( ) {
    HRESULT _hr = raw_ResetContinuationNotice();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Endnote wrapper method implementations
//

inline _ApplicationPtr Endnote::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Endnote::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Endnote::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline RangePtr Endnote::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline RangePtr Endnote::GetReference ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Reference(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline long Endnote::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT Endnote::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Endnotes wrapper method implementations
//

inline IUnknownPtr Endnotes::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long Endnotes::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _ApplicationPtr Endnotes::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Endnotes::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Endnotes::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline enum WdEndnoteLocation Endnotes::GetLocation ( ) {
    enum WdEndnoteLocation _result;
    HRESULT _hr = get_Location(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Endnotes::PutLocation ( enum WdEndnoteLocation prop ) {
    HRESULT _hr = put_Location(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdNoteNumberStyle Endnotes::GetNumberStyle ( ) {
    enum WdNoteNumberStyle _result;
    HRESULT _hr = get_NumberStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Endnotes::PutNumberStyle ( enum WdNoteNumberStyle prop ) {
    HRESULT _hr = put_NumberStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Endnotes::GetStartingNumber ( ) {
    long _result = 0;
    HRESULT _hr = get_StartingNumber(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Endnotes::PutStartingNumber ( long prop ) {
    HRESULT _hr = put_StartingNumber(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdNumberingRule Endnotes::GetNumberingRule ( ) {
    enum WdNumberingRule _result;
    HRESULT _hr = get_NumberingRule(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Endnotes::PutNumberingRule ( enum WdNumberingRule prop ) {
    HRESULT _hr = put_NumberingRule(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline RangePtr Endnotes::GetSeparator ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Separator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline RangePtr Endnotes::GetContinuationSeparator ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_ContinuationSeparator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline RangePtr Endnotes::GetContinuationNotice ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_ContinuationNotice(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline EndnotePtr Endnotes::Item ( long Index ) {
    struct Endnote * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return EndnotePtr(_result, false);
}

inline EndnotePtr Endnotes::Add ( struct Range * Range, VARIANT * Reference, VARIANT * Text ) {
    struct Endnote * _result = 0;
    HRESULT _hr = raw_Add(Range, Reference, Text, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return EndnotePtr(_result, false);
}

inline HRESULT Endnotes::Convert ( ) {
    HRESULT _hr = raw_Convert();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Endnotes::SwapWithFootnotes ( ) {
    HRESULT _hr = raw_SwapWithFootnotes();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Endnotes::ResetSeparator ( ) {
    HRESULT _hr = raw_ResetSeparator();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Endnotes::ResetContinuationSeparator ( ) {
    HRESULT _hr = raw_ResetContinuationSeparator();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Endnotes::ResetContinuationNotice ( ) {
    HRESULT _hr = raw_ResetContinuationNotice();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Comment wrapper method implementations
//

inline _ApplicationPtr Comment::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Comment::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Comment::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline RangePtr Comment::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline RangePtr Comment::GetReference ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Reference(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline RangePtr Comment::GetScope ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Scope(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline long Comment::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _bstr_t Comment::GetAuthor ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Author(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void Comment::PutAuthor ( _bstr_t prop ) {
    HRESULT _hr = put_Author(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t Comment::GetInitial ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Initial(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void Comment::PutInitial ( _bstr_t prop ) {
    HRESULT _hr = put_Initial(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Comment::GetShowTip ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowTip(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Comment::PutShowTip ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowTip(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT Comment::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Comment::Edit ( ) {
    HRESULT _hr = raw_Edit();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline DATE Comment::GetDate ( ) {
    DATE _result = 0;
    HRESULT _hr = get_Date(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL Comment::GetIsInk ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IsInk(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface Comments wrapper method implementations
//

inline IUnknownPtr Comments::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long Comments::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _ApplicationPtr Comments::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Comments::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Comments::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline _bstr_t Comments::GetShowBy ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_ShowBy(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void Comments::PutShowBy ( _bstr_t prop ) {
    HRESULT _hr = put_ShowBy(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline CommentPtr Comments::Item ( long Index ) {
    struct Comment * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CommentPtr(_result, false);
}

inline CommentPtr Comments::Add ( struct Range * Range, VARIANT * Text ) {
    struct Comment * _result = 0;
    HRESULT _hr = raw_Add(Range, Text, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CommentPtr(_result, false);
}

//
// interface AutoTextEntry wrapper method implementations
//

inline _ApplicationPtr AutoTextEntry::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long AutoTextEntry::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr AutoTextEntry::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long AutoTextEntry::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _bstr_t AutoTextEntry::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void AutoTextEntry::PutName ( _bstr_t prop ) {
    HRESULT _hr = put_Name(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t AutoTextEntry::GetStyleName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_StyleName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _bstr_t AutoTextEntry::GetValue ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Value(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void AutoTextEntry::PutValue ( _bstr_t prop ) {
    HRESULT _hr = put_Value(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT AutoTextEntry::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline RangePtr AutoTextEntry::Insert ( struct Range * Where, VARIANT * RichText ) {
    struct Range * _result = 0;
    HRESULT _hr = raw_Insert(Where, RichText, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

//
// interface AutoTextEntries wrapper method implementations
//

inline _ApplicationPtr AutoTextEntries::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long AutoTextEntries::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr AutoTextEntries::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline IUnknownPtr AutoTextEntries::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long AutoTextEntries::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline AutoTextEntryPtr AutoTextEntries::Item ( VARIANT * Index ) {
    struct AutoTextEntry * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return AutoTextEntryPtr(_result, false);
}

inline AutoTextEntryPtr AutoTextEntries::Add ( _bstr_t Name, struct Range * Range ) {
    struct AutoTextEntry * _result = 0;
    HRESULT _hr = raw_Add(Name, Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return AutoTextEntryPtr(_result, false);
}

inline AutoTextEntryPtr AutoTextEntries::AppendToSpike ( struct Range * Range ) {
    struct AutoTextEntry * _result = 0;
    HRESULT _hr = raw_AppendToSpike(Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return AutoTextEntryPtr(_result, false);
}

//
// interface Frame wrapper method implementations
//

inline _ApplicationPtr Frame::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Frame::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Frame::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline enum WdFrameSizeRule Frame::GetHeightRule ( ) {
    enum WdFrameSizeRule _result;
    HRESULT _hr = get_HeightRule(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Frame::PutHeightRule ( enum WdFrameSizeRule prop ) {
    HRESULT _hr = put_HeightRule(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdFrameSizeRule Frame::GetWidthRule ( ) {
    enum WdFrameSizeRule _result;
    HRESULT _hr = get_WidthRule(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Frame::PutWidthRule ( enum WdFrameSizeRule prop ) {
    HRESULT _hr = put_WidthRule(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Frame::GetHorizontalDistanceFromText ( ) {
    float _result = 0;
    HRESULT _hr = get_HorizontalDistanceFromText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Frame::PutHorizontalDistanceFromText ( float prop ) {
    HRESULT _hr = put_HorizontalDistanceFromText(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Frame::GetHeight ( ) {
    float _result = 0;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Frame::PutHeight ( float prop ) {
    HRESULT _hr = put_Height(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Frame::GetHorizontalPosition ( ) {
    float _result = 0;
    HRESULT _hr = get_HorizontalPosition(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Frame::PutHorizontalPosition ( float prop ) {
    HRESULT _hr = put_HorizontalPosition(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Frame::GetLockAnchor ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_LockAnchor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Frame::PutLockAnchor ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_LockAnchor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdRelativeHorizontalPosition Frame::GetRelativeHorizontalPosition ( ) {
    enum WdRelativeHorizontalPosition _result;
    HRESULT _hr = get_RelativeHorizontalPosition(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Frame::PutRelativeHorizontalPosition ( enum WdRelativeHorizontalPosition prop ) {
    HRESULT _hr = put_RelativeHorizontalPosition(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdRelativeVerticalPosition Frame::GetRelativeVerticalPosition ( ) {
    enum WdRelativeVerticalPosition _result;
    HRESULT _hr = get_RelativeVerticalPosition(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Frame::PutRelativeVerticalPosition ( enum WdRelativeVerticalPosition prop ) {
    HRESULT _hr = put_RelativeVerticalPosition(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Frame::GetVerticalDistanceFromText ( ) {
    float _result = 0;
    HRESULT _hr = get_VerticalDistanceFromText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Frame::PutVerticalDistanceFromText ( float prop ) {
    HRESULT _hr = put_VerticalDistanceFromText(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Frame::GetVerticalPosition ( ) {
    float _result = 0;
    HRESULT _hr = get_VerticalPosition(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Frame::PutVerticalPosition ( float prop ) {
    HRESULT _hr = put_VerticalPosition(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Frame::GetWidth ( ) {
    float _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Frame::PutWidth ( float prop ) {
    HRESULT _hr = put_Width(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Frame::GetTextWrap ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_TextWrap(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Frame::PutTextWrap ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_TextWrap(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline ShadingPtr Frame::GetShading ( ) {
    struct Shading * _result = 0;
    HRESULT _hr = get_Shading(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShadingPtr(_result, false);
}

inline BordersPtr Frame::GetBorders ( ) {
    struct Borders * _result = 0;
    HRESULT _hr = get_Borders(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BordersPtr(_result, false);
}

inline void Frame::PutBorders ( struct Borders * prop ) {
    HRESULT _hr = put_Borders(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline RangePtr Frame::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline HRESULT Frame::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Frame::Select ( ) {
    HRESULT _hr = raw_Select();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Frame::Copy ( ) {
    HRESULT _hr = raw_Copy();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Frame::Cut ( ) {
    HRESULT _hr = raw_Cut();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Replacement wrapper method implementations
//

inline _ApplicationPtr Replacement::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Replacement::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Replacement::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline _FontPtr Replacement::GetFont ( ) {
    struct _Font * _result = 0;
    HRESULT _hr = get_Font(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _FontPtr(_result, false);
}

inline void Replacement::PutFont ( struct _Font * prop ) {
    HRESULT _hr = put_Font(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _ParagraphFormatPtr Replacement::GetParagraphFormat ( ) {
    struct _ParagraphFormat * _result = 0;
    HRESULT _hr = get_ParagraphFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ParagraphFormatPtr(_result, false);
}

inline void Replacement::PutParagraphFormat ( struct _ParagraphFormat * prop ) {
    HRESULT _hr = put_ParagraphFormat(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _variant_t Replacement::GetStyle ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Style(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline void Replacement::PutStyle ( VARIANT * prop ) {
    HRESULT _hr = put_Style(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t Replacement::GetText ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Text(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void Replacement::PutText ( _bstr_t prop ) {
    HRESULT _hr = put_Text(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdLanguageID Replacement::GetLanguageID ( ) {
    enum WdLanguageID _result;
    HRESULT _hr = get_LanguageID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Replacement::PutLanguageID ( enum WdLanguageID prop ) {
    HRESULT _hr = put_LanguageID(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Replacement::GetHighlight ( ) {
    long _result = 0;
    HRESULT _hr = get_Highlight(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Replacement::PutHighlight ( long prop ) {
    HRESULT _hr = put_Highlight(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline FramePtr Replacement::GetFrame ( ) {
    struct Frame * _result = 0;
    HRESULT _hr = get_Frame(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FramePtr(_result, false);
}

inline enum WdLanguageID Replacement::GetLanguageIDFarEast ( ) {
    enum WdLanguageID _result;
    HRESULT _hr = get_LanguageIDFarEast(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Replacement::PutLanguageIDFarEast ( enum WdLanguageID prop ) {
    HRESULT _hr = put_LanguageIDFarEast(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT Replacement::ClearFormatting ( ) {
    HRESULT _hr = raw_ClearFormatting();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long Replacement::GetNoProofing ( ) {
    long _result = 0;
    HRESULT _hr = get_NoProofing(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Replacement::PutNoProofing ( long prop ) {
    HRESULT _hr = put_NoProofing(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface Find wrapper method implementations
//

inline _ApplicationPtr Find::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Find::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Find::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline VARIANT_BOOL Find::GetForward ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Forward(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Find::PutForward ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Forward(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _FontPtr Find::GetFont ( ) {
    struct _Font * _result = 0;
    HRESULT _hr = get_Font(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _FontPtr(_result, false);
}

inline void Find::PutFont ( struct _Font * prop ) {
    HRESULT _hr = put_Font(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Find::GetFound ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Found(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL Find::GetMatchAllWordForms ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchAllWordForms(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Find::PutMatchAllWordForms ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchAllWordForms(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Find::GetMatchCase ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchCase(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Find::PutMatchCase ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchCase(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Find::GetMatchWildcards ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchWildcards(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Find::PutMatchWildcards ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchWildcards(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Find::GetMatchSoundsLike ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchSoundsLike(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Find::PutMatchSoundsLike ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchSoundsLike(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Find::GetMatchWholeWord ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchWholeWord(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Find::PutMatchWholeWord ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchWholeWord(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Find::GetMatchFuzzy ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchFuzzy(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Find::PutMatchFuzzy ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchFuzzy(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Find::GetMatchByte ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchByte(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Find::PutMatchByte ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchByte(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _ParagraphFormatPtr Find::GetParagraphFormat ( ) {
    struct _ParagraphFormat * _result = 0;
    HRESULT _hr = get_ParagraphFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ParagraphFormatPtr(_result, false);
}

inline void Find::PutParagraphFormat ( struct _ParagraphFormat * prop ) {
    HRESULT _hr = put_ParagraphFormat(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _variant_t Find::GetStyle ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Style(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline void Find::PutStyle ( VARIANT * prop ) {
    HRESULT _hr = put_Style(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t Find::GetText ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Text(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void Find::PutText ( _bstr_t prop ) {
    HRESULT _hr = put_Text(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdLanguageID Find::GetLanguageID ( ) {
    enum WdLanguageID _result;
    HRESULT _hr = get_LanguageID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Find::PutLanguageID ( enum WdLanguageID prop ) {
    HRESULT _hr = put_LanguageID(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Find::GetHighlight ( ) {
    long _result = 0;
    HRESULT _hr = get_Highlight(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Find::PutHighlight ( long prop ) {
    HRESULT _hr = put_Highlight(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline ReplacementPtr Find::GetReplacement ( ) {
    struct Replacement * _result = 0;
    HRESULT _hr = get_Replacement(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ReplacementPtr(_result, false);
}

inline FramePtr Find::GetFrame ( ) {
    struct Frame * _result = 0;
    HRESULT _hr = get_Frame(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FramePtr(_result, false);
}

inline enum WdFindWrap Find::GetWrap ( ) {
    enum WdFindWrap _result;
    HRESULT _hr = get_Wrap(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Find::PutWrap ( enum WdFindWrap prop ) {
    HRESULT _hr = put_Wrap(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Find::GetFormat ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Find::PutFormat ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Format(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdLanguageID Find::GetLanguageIDFarEast ( ) {
    enum WdLanguageID _result;
    HRESULT _hr = get_LanguageIDFarEast(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Find::PutLanguageIDFarEast ( enum WdLanguageID prop ) {
    HRESULT _hr = put_LanguageIDFarEast(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdLanguageID Find::GetLanguageIDOther ( ) {
    enum WdLanguageID _result;
    HRESULT _hr = get_LanguageIDOther(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Find::PutLanguageIDOther ( enum WdLanguageID prop ) {
    HRESULT _hr = put_LanguageIDOther(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Find::GetCorrectHangulEndings ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_CorrectHangulEndings(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Find::PutCorrectHangulEndings ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_CorrectHangulEndings(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Find::ExecuteOld ( VARIANT * __FindText, VARIANT * MatchCase, VARIANT * MatchWholeWord, VARIANT * MatchWildcards, VARIANT * MatchSoundsLike, VARIANT * MatchAllWordForms, VARIANT * Forward, VARIANT * Wrap, VARIANT * Format, VARIANT * ReplaceWith, VARIANT * Replace ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_ExecuteOld(__FindText, MatchCase, MatchWholeWord, MatchWildcards, MatchSoundsLike, MatchAllWordForms, Forward, Wrap, Format, ReplaceWith, Replace, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT Find::ClearFormatting ( ) {
    HRESULT _hr = raw_ClearFormatting();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Find::SetAllFuzzyOptions ( ) {
    HRESULT _hr = raw_SetAllFuzzyOptions();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Find::ClearAllFuzzyOptions ( ) {
    HRESULT _hr = raw_ClearAllFuzzyOptions();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL Find::Execute ( VARIANT * __FindText, VARIANT * MatchCase, VARIANT * MatchWholeWord, VARIANT * MatchWildcards, VARIANT * MatchSoundsLike, VARIANT * MatchAllWordForms, VARIANT * Forward, VARIANT * Wrap, VARIANT * Format, VARIANT * ReplaceWith, VARIANT * Replace, VARIANT * MatchKashida, VARIANT * MatchDiacritics, VARIANT * MatchAlefHamza, VARIANT * MatchControl ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_Execute(__FindText, MatchCase, MatchWholeWord, MatchWildcards, MatchSoundsLike, MatchAllWordForms, Forward, Wrap, Format, ReplaceWith, Replace, MatchKashida, MatchDiacritics, MatchAlefHamza, MatchControl, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Find::GetNoProofing ( ) {
    long _result = 0;
    HRESULT _hr = get_NoProofing(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Find::PutNoProofing ( long prop ) {
    HRESULT _hr = put_NoProofing(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Find::GetMatchKashida ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchKashida(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Find::PutMatchKashida ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchKashida(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Find::GetMatchDiacritics ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchDiacritics(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Find::PutMatchDiacritics ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchDiacritics(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Find::GetMatchAlefHamza ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchAlefHamza(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Find::PutMatchAlefHamza ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchAlefHamza(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Find::GetMatchControl ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchControl(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Find::PutMatchControl ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchControl(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Find::GetMatchPhrase ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchPhrase(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Find::PutMatchPhrase ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchPhrase(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Find::GetMatchPrefix ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchPrefix(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Find::PutMatchPrefix ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchPrefix(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Find::GetMatchSuffix ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MatchSuffix(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Find::PutMatchSuffix ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MatchSuffix(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Find::GetIgnoreSpace ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IgnoreSpace(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Find::PutIgnoreSpace ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_IgnoreSpace(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Find::GetIgnorePunct ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IgnorePunct(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Find::PutIgnorePunct ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_IgnorePunct(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Find::HitHighlight ( VARIANT * __FindText, VARIANT * HighlightColor, VARIANT * TextColor, VARIANT * MatchCase, VARIANT * MatchWholeWord, VARIANT * MatchPrefix, VARIANT * MatchSuffix, VARIANT * MatchPhrase, VARIANT * MatchWildcards, VARIANT * MatchSoundsLike, VARIANT * MatchAllWordForms, VARIANT * MatchByte, VARIANT * MatchFuzzy, VARIANT * MatchKashida, VARIANT * MatchDiacritics, VARIANT * MatchAlefHamza, VARIANT * MatchControl, VARIANT * IgnoreSpace, VARIANT * IgnorePunct, VARIANT * HanjaPhoneticHangul ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_HitHighlight(__FindText, HighlightColor, TextColor, MatchCase, MatchWholeWord, MatchPrefix, MatchSuffix, MatchPhrase, MatchWildcards, MatchSoundsLike, MatchAllWordForms, MatchByte, MatchFuzzy, MatchKashida, MatchDiacritics, MatchAlefHamza, MatchControl, IgnoreSpace, IgnorePunct, HanjaPhoneticHangul, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL Find::ClearHitHighlight ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_ClearHitHighlight(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL Find::Execute2007 ( VARIANT * __FindText, VARIANT * MatchCase, VARIANT * MatchWholeWord, VARIANT * MatchWildcards, VARIANT * MatchSoundsLike, VARIANT * MatchAllWordForms, VARIANT * Forward, VARIANT * Wrap, VARIANT * Format, VARIANT * ReplaceWith, VARIANT * Replace, VARIANT * MatchKashida, VARIANT * MatchDiacritics, VARIANT * MatchAlefHamza, VARIANT * MatchControl, VARIANT * MatchPrefix, VARIANT * MatchSuffix, VARIANT * MatchPhrase, VARIANT * IgnoreSpace, VARIANT * IgnorePunct ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_Execute2007(__FindText, MatchCase, MatchWholeWord, MatchWildcards, MatchSoundsLike, MatchAllWordForms, Forward, Wrap, Format, ReplaceWith, Replace, MatchKashida, MatchDiacritics, MatchAlefHamza, MatchControl, MatchPrefix, MatchSuffix, MatchPhrase, IgnoreSpace, IgnorePunct, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL Find::GetHanjaPhoneticHangul ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HanjaPhoneticHangul(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Find::PutHanjaPhoneticHangul ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HanjaPhoneticHangul(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface Frames wrapper method implementations
//

inline _ApplicationPtr Frames::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Frames::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Frames::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline IUnknownPtr Frames::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long Frames::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline FramePtr Frames::Item ( long Index ) {
    struct Frame * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FramePtr(_result, false);
}

inline FramePtr Frames::Add ( struct Range * Range ) {
    struct Frame * _result = 0;
    HRESULT _hr = raw_Add(Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FramePtr(_result, false);
}

inline HRESULT Frames::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface FormField wrapper method implementations
//

inline _ApplicationPtr FormField::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long FormField::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr FormField::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline enum WdFieldType FormField::GetType ( ) {
    enum WdFieldType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _bstr_t FormField::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void FormField::PutName ( _bstr_t prop ) {
    HRESULT _hr = put_Name(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t FormField::GetEntryMacro ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_EntryMacro(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void FormField::PutEntryMacro ( _bstr_t prop ) {
    HRESULT _hr = put_EntryMacro(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t FormField::GetExitMacro ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_ExitMacro(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void FormField::PutExitMacro ( _bstr_t prop ) {
    HRESULT _hr = put_ExitMacro(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL FormField::GetOwnHelp ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_OwnHelp(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void FormField::PutOwnHelp ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_OwnHelp(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL FormField::GetOwnStatus ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_OwnStatus(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void FormField::PutOwnStatus ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_OwnStatus(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t FormField::GetHelpText ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_HelpText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void FormField::PutHelpText ( _bstr_t prop ) {
    HRESULT _hr = put_HelpText(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t FormField::GetStatusText ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_StatusText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void FormField::PutStatusText ( _bstr_t prop ) {
    HRESULT _hr = put_StatusText(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL FormField::GetEnabled ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Enabled(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void FormField::PutEnabled ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Enabled(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t FormField::GetResult ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Result(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void FormField::PutResult ( _bstr_t prop ) {
    HRESULT _hr = put_Result(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline TextInputPtr FormField::GetTextInput ( ) {
    struct TextInput * _result = 0;
    HRESULT _hr = get_TextInput(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TextInputPtr(_result, false);
}

inline CheckBoxPtr FormField::GetCheckBox ( ) {
    struct CheckBox * _result = 0;
    HRESULT _hr = get_CheckBox(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CheckBoxPtr(_result, false);
}

inline DropDownPtr FormField::GetDropDown ( ) {
    struct DropDown * _result = 0;
    HRESULT _hr = get_DropDown(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DropDownPtr(_result, false);
}

inline FormFieldPtr FormField::GetNext ( ) {
    struct FormField * _result = 0;
    HRESULT _hr = get_Next(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FormFieldPtr(_result, false);
}

inline FormFieldPtr FormField::GetPrevious ( ) {
    struct FormField * _result = 0;
    HRESULT _hr = get_Previous(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FormFieldPtr(_result, false);
}

inline VARIANT_BOOL FormField::GetCalculateOnExit ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_CalculateOnExit(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void FormField::PutCalculateOnExit ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_CalculateOnExit(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline RangePtr FormField::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline HRESULT FormField::Select ( ) {
    HRESULT _hr = raw_Select();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT FormField::Copy ( ) {
    HRESULT _hr = raw_Copy();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT FormField::Cut ( ) {
    HRESULT _hr = raw_Cut();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT FormField::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface FormFields wrapper method implementations
//

inline _ApplicationPtr FormFields::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long FormFields::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr FormFields::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long FormFields::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL FormFields::GetShaded ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Shaded(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void FormFields::PutShaded ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Shaded(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline IUnknownPtr FormFields::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline FormFieldPtr FormFields::Item ( VARIANT * Index ) {
    struct FormField * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FormFieldPtr(_result, false);
}

inline FormFieldPtr FormFields::Add ( struct Range * Range, enum WdFieldType Type ) {
    struct FormField * _result = 0;
    HRESULT _hr = raw_Add(Range, Type, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FormFieldPtr(_result, false);
}

//
// interface TableOfFigures wrapper method implementations
//

inline _ApplicationPtr TableOfFigures::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long TableOfFigures::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr TableOfFigures::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline _bstr_t TableOfFigures::GetCaption ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Caption(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void TableOfFigures::PutCaption ( _bstr_t prop ) {
    HRESULT _hr = put_Caption(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL TableOfFigures::GetIncludeLabel ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IncludeLabel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TableOfFigures::PutIncludeLabel ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_IncludeLabel(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL TableOfFigures::GetRightAlignPageNumbers ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_RightAlignPageNumbers(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TableOfFigures::PutRightAlignPageNumbers ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_RightAlignPageNumbers(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL TableOfFigures::GetUseHeadingStyles ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_UseHeadingStyles(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TableOfFigures::PutUseHeadingStyles ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_UseHeadingStyles(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long TableOfFigures::GetLowerHeadingLevel ( ) {
    long _result = 0;
    HRESULT _hr = get_LowerHeadingLevel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TableOfFigures::PutLowerHeadingLevel ( long prop ) {
    HRESULT _hr = put_LowerHeadingLevel(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long TableOfFigures::GetUpperHeadingLevel ( ) {
    long _result = 0;
    HRESULT _hr = get_UpperHeadingLevel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TableOfFigures::PutUpperHeadingLevel ( long prop ) {
    HRESULT _hr = put_UpperHeadingLevel(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL TableOfFigures::GetIncludePageNumbers ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IncludePageNumbers(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TableOfFigures::PutIncludePageNumbers ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_IncludePageNumbers(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline RangePtr TableOfFigures::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline VARIANT_BOOL TableOfFigures::GetUseFields ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_UseFields(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TableOfFigures::PutUseFields ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_UseFields(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t TableOfFigures::GetTableID ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_TableID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void TableOfFigures::PutTableID ( _bstr_t prop ) {
    HRESULT _hr = put_TableID(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HeadingStylesPtr TableOfFigures::GetHeadingStyles ( ) {
    struct HeadingStyles * _result = 0;
    HRESULT _hr = get_HeadingStyles(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HeadingStylesPtr(_result, false);
}

inline enum WdTabLeader TableOfFigures::GetTabLeader ( ) {
    enum WdTabLeader _result;
    HRESULT _hr = get_TabLeader(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TableOfFigures::PutTabLeader ( enum WdTabLeader prop ) {
    HRESULT _hr = put_TabLeader(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT TableOfFigures::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT TableOfFigures::UpdatePageNumbers ( ) {
    HRESULT _hr = raw_UpdatePageNumbers();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT TableOfFigures::Update ( ) {
    HRESULT _hr = raw_Update();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL TableOfFigures::GetUseHyperlinks ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_UseHyperlinks(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TableOfFigures::PutUseHyperlinks ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_UseHyperlinks(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL TableOfFigures::GetHidePageNumbersInWeb ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HidePageNumbersInWeb(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TableOfFigures::PutHidePageNumbersInWeb ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HidePageNumbersInWeb(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface MailMergeField wrapper method implementations
//

inline _ApplicationPtr MailMergeField::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long MailMergeField::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr MailMergeField::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline enum WdFieldType MailMergeField::GetType ( ) {
    enum WdFieldType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL MailMergeField::GetLocked ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Locked(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void MailMergeField::PutLocked ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Locked(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline RangePtr MailMergeField::GetCode ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Code(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline void MailMergeField::PutCode ( struct Range * prop ) {
    HRESULT _hr = put_Code(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline MailMergeFieldPtr MailMergeField::GetNext ( ) {
    struct MailMergeField * _result = 0;
    HRESULT _hr = get_Next(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return MailMergeFieldPtr(_result, false);
}

inline MailMergeFieldPtr MailMergeField::GetPrevious ( ) {
    struct MailMergeField * _result = 0;
    HRESULT _hr = get_Previous(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return MailMergeFieldPtr(_result, false);
}

inline HRESULT MailMergeField::Select ( ) {
    HRESULT _hr = raw_Select();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT MailMergeField::Copy ( ) {
    HRESULT _hr = raw_Copy();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT MailMergeField::Cut ( ) {
    HRESULT _hr = raw_Cut();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT MailMergeField::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface MailMergeFields wrapper method implementations
//

inline _ApplicationPtr MailMergeFields::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long MailMergeFields::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr MailMergeFields::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline IUnknownPtr MailMergeFields::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long MailMergeFields::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline MailMergeFieldPtr MailMergeFields::Item ( long Index ) {
    struct MailMergeField * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return MailMergeFieldPtr(_result, false);
}

inline MailMergeFieldPtr MailMergeFields::Add ( struct Range * Range, _bstr_t Name ) {
    struct MailMergeField * _result = 0;
    HRESULT _hr = raw_Add(Range, Name, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return MailMergeFieldPtr(_result, false);
}

inline MailMergeFieldPtr MailMergeFields::AddAsk ( struct Range * Range, _bstr_t Name, VARIANT * Prompt, VARIANT * DefaultAskText, VARIANT * AskOnce ) {
    struct MailMergeField * _result = 0;
    HRESULT _hr = raw_AddAsk(Range, Name, Prompt, DefaultAskText, AskOnce, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return MailMergeFieldPtr(_result, false);
}

inline MailMergeFieldPtr MailMergeFields::AddFillIn ( struct Range * Range, VARIANT * Prompt, VARIANT * DefaultFillInText, VARIANT * AskOnce ) {
    struct MailMergeField * _result = 0;
    HRESULT _hr = raw_AddFillIn(Range, Prompt, DefaultFillInText, AskOnce, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return MailMergeFieldPtr(_result, false);
}

inline MailMergeFieldPtr MailMergeFields::AddIf ( struct Range * Range, _bstr_t MergeField, enum WdMailMergeComparison Comparison, VARIANT * CompareTo, VARIANT * TrueAutoText, VARIANT * TrueText, VARIANT * FalseAutoText, VARIANT * FalseText ) {
    struct MailMergeField * _result = 0;
    HRESULT _hr = raw_AddIf(Range, MergeField, Comparison, CompareTo, TrueAutoText, TrueText, FalseAutoText, FalseText, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return MailMergeFieldPtr(_result, false);
}

inline MailMergeFieldPtr MailMergeFields::AddMergeRec ( struct Range * Range ) {
    struct MailMergeField * _result = 0;
    HRESULT _hr = raw_AddMergeRec(Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return MailMergeFieldPtr(_result, false);
}

inline MailMergeFieldPtr MailMergeFields::AddMergeSeq ( struct Range * Range ) {
    struct MailMergeField * _result = 0;
    HRESULT _hr = raw_AddMergeSeq(Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return MailMergeFieldPtr(_result, false);
}

inline MailMergeFieldPtr MailMergeFields::AddNext ( struct Range * Range ) {
    struct MailMergeField * _result = 0;
    HRESULT _hr = raw_AddNext(Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return MailMergeFieldPtr(_result, false);
}

inline MailMergeFieldPtr MailMergeFields::AddNextIf ( struct Range * Range, _bstr_t MergeField, enum WdMailMergeComparison Comparison, VARIANT * CompareTo ) {
    struct MailMergeField * _result = 0;
    HRESULT _hr = raw_AddNextIf(Range, MergeField, Comparison, CompareTo, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return MailMergeFieldPtr(_result, false);
}

inline MailMergeFieldPtr MailMergeFields::AddSet ( struct Range * Range, _bstr_t Name, VARIANT * ValueText, VARIANT * ValueAutoText ) {
    struct MailMergeField * _result = 0;
    HRESULT _hr = raw_AddSet(Range, Name, ValueText, ValueAutoText, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return MailMergeFieldPtr(_result, false);
}

inline MailMergeFieldPtr MailMergeFields::AddSkipIf ( struct Range * Range, _bstr_t MergeField, enum WdMailMergeComparison Comparison, VARIANT * CompareTo ) {
    struct MailMergeField * _result = 0;
    HRESULT _hr = raw_AddSkipIf(Range, MergeField, Comparison, CompareTo, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return MailMergeFieldPtr(_result, false);
}

//
// interface MailMerge wrapper method implementations
//

inline _ApplicationPtr MailMerge::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long MailMerge::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr MailMerge::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline enum WdMailMergeMainDocType MailMerge::GetMainDocumentType ( ) {
    enum WdMailMergeMainDocType _result;
    HRESULT _hr = get_MainDocumentType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void MailMerge::PutMainDocumentType ( enum WdMailMergeMainDocType prop ) {
    HRESULT _hr = put_MainDocumentType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdMailMergeState MailMerge::GetState ( ) {
    enum WdMailMergeState _result;
    HRESULT _hr = get_State(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum WdMailMergeDestination MailMerge::GetDestination ( ) {
    enum WdMailMergeDestination _result;
    HRESULT _hr = get_Destination(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void MailMerge::PutDestination ( enum WdMailMergeDestination prop ) {
    HRESULT _hr = put_Destination(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline MailMergeDataSourcePtr MailMerge::GetDataSource ( ) {
    struct MailMergeDataSource * _result = 0;
    HRESULT _hr = get_DataSource(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return MailMergeDataSourcePtr(_result, false);
}

inline MailMergeFieldsPtr MailMerge::GetFields ( ) {
    struct MailMergeFields * _result = 0;
    HRESULT _hr = get_Fields(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return MailMergeFieldsPtr(_result, false);
}

inline long MailMerge::GetViewMailMergeFieldCodes ( ) {
    long _result = 0;
    HRESULT _hr = get_ViewMailMergeFieldCodes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void MailMerge::PutViewMailMergeFieldCodes ( long prop ) {
    HRESULT _hr = put_ViewMailMergeFieldCodes(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL MailMerge::GetSuppressBlankLines ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SuppressBlankLines(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void MailMerge::PutSuppressBlankLines ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_SuppressBlankLines(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL MailMerge::GetMailAsAttachment ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MailAsAttachment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void MailMerge::PutMailAsAttachment ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MailAsAttachment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t MailMerge::GetMailAddressFieldName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_MailAddressFieldName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void MailMerge::PutMailAddressFieldName ( _bstr_t prop ) {
    HRESULT _hr = put_MailAddressFieldName(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t MailMerge::GetMailSubject ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_MailSubject(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void MailMerge::PutMailSubject ( _bstr_t prop ) {
    HRESULT _hr = put_MailSubject(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT MailMerge::CreateDataSource ( VARIANT * Name, VARIANT * PasswordDocument, VARIANT * WritePasswordDocument, VARIANT * HeaderRecord, VARIANT * MSQuery, VARIANT * SQLStatement, VARIANT * SQLStatement1, VARIANT * Connection, VARIANT * LinkToSource ) {
    HRESULT _hr = raw_CreateDataSource(Name, PasswordDocument, WritePasswordDocument, HeaderRecord, MSQuery, SQLStatement, SQLStatement1, Connection, LinkToSource);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT MailMerge::CreateHeaderSource ( _bstr_t Name, VARIANT * PasswordDocument, VARIANT * WritePasswordDocument, VARIANT * HeaderRecord ) {
    HRESULT _hr = raw_CreateHeaderSource(Name, PasswordDocument, WritePasswordDocument, HeaderRecord);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT MailMerge::OpenDataSource2000 ( _bstr_t Name, VARIANT * Format, VARIANT * ConfirmConversions, VARIANT * ReadOnly, VARIANT * LinkToSource, VARIANT * AddToRecentFiles, VARIANT * PasswordDocument, VARIANT * PasswordTemplate, VARIANT * Revert, VARIANT * WritePasswordDocument, VARIANT * WritePasswordTemplate, VARIANT * Connection, VARIANT * SQLStatement, VARIANT * SQLStatement1 ) {
    HRESULT _hr = raw_OpenDataSource2000(Name, Format, ConfirmConversions, ReadOnly, LinkToSource, AddToRecentFiles, PasswordDocument, PasswordTemplate, Revert, WritePasswordDocument, WritePasswordTemplate, Connection, SQLStatement, SQLStatement1);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT MailMerge::OpenHeaderSource2000 ( _bstr_t Name, VARIANT * Format, VARIANT * ConfirmConversions, VARIANT * ReadOnly, VARIANT * AddToRecentFiles, VARIANT * PasswordDocument, VARIANT * PasswordTemplate, VARIANT * Revert, VARIANT * WritePasswordDocument, VARIANT * WritePasswordTemplate ) {
    HRESULT _hr = raw_OpenHeaderSource2000(Name, Format, ConfirmConversions, ReadOnly, AddToRecentFiles, PasswordDocument, PasswordTemplate, Revert, WritePasswordDocument, WritePasswordTemplate);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT MailMerge::Execute ( VARIANT * Pause ) {
    HRESULT _hr = raw_Execute(Pause);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT MailMerge::Check ( ) {
    HRESULT _hr = raw_Check();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT MailMerge::EditDataSource ( ) {
    HRESULT _hr = raw_EditDataSource();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT MailMerge::EditHeaderSource ( ) {
    HRESULT _hr = raw_EditHeaderSource();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT MailMerge::EditMainDocument ( ) {
    HRESULT _hr = raw_EditMainDocument();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT MailMerge::UseAddressBook ( _bstr_t Type ) {
    HRESULT _hr = raw_UseAddressBook(Type);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL MailMerge::GetHighlightMergeFields ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HighlightMergeFields(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void MailMerge::PutHighlightMergeFields ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HighlightMergeFields(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdMailMergeMailFormat MailMerge::GetMailFormat ( ) {
    enum WdMailMergeMailFormat _result;
    HRESULT _hr = get_MailFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void MailMerge::PutMailFormat ( enum WdMailMergeMailFormat prop ) {
    HRESULT _hr = put_MailFormat(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t MailMerge::GetShowSendToCustom ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_ShowSendToCustom(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void MailMerge::PutShowSendToCustom ( _bstr_t prop ) {
    HRESULT _hr = put_ShowSendToCustom(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long MailMerge::GetWizardState ( ) {
    long _result = 0;
    HRESULT _hr = get_WizardState(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void MailMerge::PutWizardState ( long prop ) {
    HRESULT _hr = put_WizardState(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT MailMerge::OpenDataSource ( _bstr_t Name, VARIANT * Format, VARIANT * ConfirmConversions, VARIANT * ReadOnly, VARIANT * LinkToSource, VARIANT * AddToRecentFiles, VARIANT * PasswordDocument, VARIANT * PasswordTemplate, VARIANT * Revert, VARIANT * WritePasswordDocument, VARIANT * WritePasswordTemplate, VARIANT * Connection, VARIANT * SQLStatement, VARIANT * SQLStatement1, VARIANT * OpenExclusive, VARIANT * SubType ) {
    HRESULT _hr = raw_OpenDataSource(Name, Format, ConfirmConversions, ReadOnly, LinkToSource, AddToRecentFiles, PasswordDocument, PasswordTemplate, Revert, WritePasswordDocument, WritePasswordTemplate, Connection, SQLStatement, SQLStatement1, OpenExclusive, SubType);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT MailMerge::OpenHeaderSource ( _bstr_t Name, VARIANT * Format, VARIANT * ConfirmConversions, VARIANT * ReadOnly, VARIANT * AddToRecentFiles, VARIANT * PasswordDocument, VARIANT * PasswordTemplate, VARIANT * Revert, VARIANT * WritePasswordDocument, VARIANT * WritePasswordTemplate, VARIANT * OpenExclusive ) {
    HRESULT _hr = raw_OpenHeaderSource(Name, Format, ConfirmConversions, ReadOnly, AddToRecentFiles, PasswordDocument, PasswordTemplate, Revert, WritePasswordDocument, WritePasswordTemplate, OpenExclusive);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT MailMerge::ShowWizard ( VARIANT * InitialState, VARIANT * ShowDocumentStep, VARIANT * ShowTemplateStep, VARIANT * ShowDataStep, VARIANT * ShowWriteStep, VARIANT * ShowPreviewStep, VARIANT * ShowMergeStep ) {
    HRESULT _hr = raw_ShowWizard(InitialState, ShowDocumentStep, ShowTemplateStep, ShowDataStep, ShowWriteStep, ShowPreviewStep, ShowMergeStep);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface TableOfContents wrapper method implementations
//

inline _ApplicationPtr TableOfContents::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long TableOfContents::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr TableOfContents::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline VARIANT_BOOL TableOfContents::GetUseHeadingStyles ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_UseHeadingStyles(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TableOfContents::PutUseHeadingStyles ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_UseHeadingStyles(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL TableOfContents::GetUseFields ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_UseFields(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TableOfContents::PutUseFields ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_UseFields(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long TableOfContents::GetUpperHeadingLevel ( ) {
    long _result = 0;
    HRESULT _hr = get_UpperHeadingLevel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TableOfContents::PutUpperHeadingLevel ( long prop ) {
    HRESULT _hr = put_UpperHeadingLevel(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long TableOfContents::GetLowerHeadingLevel ( ) {
    long _result = 0;
    HRESULT _hr = get_LowerHeadingLevel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TableOfContents::PutLowerHeadingLevel ( long prop ) {
    HRESULT _hr = put_LowerHeadingLevel(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t TableOfContents::GetTableID ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_TableID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void TableOfContents::PutTableID ( _bstr_t prop ) {
    HRESULT _hr = put_TableID(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HeadingStylesPtr TableOfContents::GetHeadingStyles ( ) {
    struct HeadingStyles * _result = 0;
    HRESULT _hr = get_HeadingStyles(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HeadingStylesPtr(_result, false);
}

inline VARIANT_BOOL TableOfContents::GetRightAlignPageNumbers ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_RightAlignPageNumbers(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TableOfContents::PutRightAlignPageNumbers ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_RightAlignPageNumbers(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL TableOfContents::GetIncludePageNumbers ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IncludePageNumbers(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TableOfContents::PutIncludePageNumbers ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_IncludePageNumbers(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline RangePtr TableOfContents::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline enum WdTabLeader TableOfContents::GetTabLeader ( ) {
    enum WdTabLeader _result;
    HRESULT _hr = get_TabLeader(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TableOfContents::PutTabLeader ( enum WdTabLeader prop ) {
    HRESULT _hr = put_TabLeader(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT TableOfContents::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT TableOfContents::UpdatePageNumbers ( ) {
    HRESULT _hr = raw_UpdatePageNumbers();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT TableOfContents::Update ( ) {
    HRESULT _hr = raw_Update();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL TableOfContents::GetUseHyperlinks ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_UseHyperlinks(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TableOfContents::PutUseHyperlinks ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_UseHyperlinks(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL TableOfContents::GetHidePageNumbersInWeb ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HidePageNumbersInWeb(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TableOfContents::PutHidePageNumbersInWeb ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HidePageNumbersInWeb(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface TableOfAuthorities wrapper method implementations
//

inline _ApplicationPtr TableOfAuthorities::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long TableOfAuthorities::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr TableOfAuthorities::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline VARIANT_BOOL TableOfAuthorities::GetPassim ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Passim(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TableOfAuthorities::PutPassim ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Passim(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL TableOfAuthorities::GetKeepEntryFormatting ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_KeepEntryFormatting(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TableOfAuthorities::PutKeepEntryFormatting ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_KeepEntryFormatting(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long TableOfAuthorities::GetCategory ( ) {
    long _result = 0;
    HRESULT _hr = get_Category(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TableOfAuthorities::PutCategory ( long prop ) {
    HRESULT _hr = put_Category(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t TableOfAuthorities::GetBookmark ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Bookmark(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void TableOfAuthorities::PutBookmark ( _bstr_t prop ) {
    HRESULT _hr = put_Bookmark(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t TableOfAuthorities::GetSeparator ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Separator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void TableOfAuthorities::PutSeparator ( _bstr_t prop ) {
    HRESULT _hr = put_Separator(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t TableOfAuthorities::GetIncludeSequenceName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_IncludeSequenceName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void TableOfAuthorities::PutIncludeSequenceName ( _bstr_t prop ) {
    HRESULT _hr = put_IncludeSequenceName(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t TableOfAuthorities::GetEntrySeparator ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_EntrySeparator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void TableOfAuthorities::PutEntrySeparator ( _bstr_t prop ) {
    HRESULT _hr = put_EntrySeparator(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t TableOfAuthorities::GetPageRangeSeparator ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_PageRangeSeparator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void TableOfAuthorities::PutPageRangeSeparator ( _bstr_t prop ) {
    HRESULT _hr = put_PageRangeSeparator(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL TableOfAuthorities::GetIncludeCategoryHeader ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IncludeCategoryHeader(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TableOfAuthorities::PutIncludeCategoryHeader ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_IncludeCategoryHeader(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t TableOfAuthorities::GetPageNumberSeparator ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_PageNumberSeparator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void TableOfAuthorities::PutPageNumberSeparator ( _bstr_t prop ) {
    HRESULT _hr = put_PageNumberSeparator(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline RangePtr TableOfAuthorities::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline enum WdTabLeader TableOfAuthorities::GetTabLeader ( ) {
    enum WdTabLeader _result;
    HRESULT _hr = get_TabLeader(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TableOfAuthorities::PutTabLeader ( enum WdTabLeader prop ) {
    HRESULT _hr = put_TabLeader(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT TableOfAuthorities::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT TableOfAuthorities::Update ( ) {
    HRESULT _hr = raw_Update();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Index wrapper method implementations
//

inline _ApplicationPtr Index::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Index::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Index::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline enum WdHeadingSeparator Index::GetHeadingSeparator ( ) {
    enum WdHeadingSeparator _result;
    HRESULT _hr = get_HeadingSeparator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Index::PutHeadingSeparator ( enum WdHeadingSeparator prop ) {
    HRESULT _hr = put_HeadingSeparator(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Index::GetRightAlignPageNumbers ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_RightAlignPageNumbers(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Index::PutRightAlignPageNumbers ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_RightAlignPageNumbers(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdIndexType Index::GetType ( ) {
    enum WdIndexType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Index::PutType ( enum WdIndexType prop ) {
    HRESULT _hr = put_Type(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Index::GetNumberOfColumns ( ) {
    long _result = 0;
    HRESULT _hr = get_NumberOfColumns(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Index::PutNumberOfColumns ( long prop ) {
    HRESULT _hr = put_NumberOfColumns(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline RangePtr Index::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline enum WdTabLeader Index::GetTabLeader ( ) {
    enum WdTabLeader _result;
    HRESULT _hr = get_TabLeader(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Index::PutTabLeader ( enum WdTabLeader prop ) {
    HRESULT _hr = put_TabLeader(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Index::GetAccentedLetters ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AccentedLetters(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Index::PutAccentedLetters ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AccentedLetters(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdIndexSortBy Index::GetSortBy ( ) {
    enum WdIndexSortBy _result;
    HRESULT _hr = get_SortBy(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Index::PutSortBy ( enum WdIndexSortBy prop ) {
    HRESULT _hr = put_SortBy(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdIndexFilter Index::GetFilter ( ) {
    enum WdIndexFilter _result;
    HRESULT _hr = get_Filter(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Index::PutFilter ( enum WdIndexFilter prop ) {
    HRESULT _hr = put_Filter(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT Index::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Index::Update ( ) {
    HRESULT _hr = raw_Update();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline enum WdLanguageID Index::GetIndexLanguage ( ) {
    enum WdLanguageID _result;
    HRESULT _hr = get_IndexLanguage(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Index::PutIndexLanguage ( enum WdLanguageID prop ) {
    HRESULT _hr = put_IndexLanguage(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface Subdocument wrapper method implementations
//

inline _ApplicationPtr Subdocument::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Subdocument::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Subdocument::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline VARIANT_BOOL Subdocument::GetLocked ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Locked(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Subdocument::PutLocked ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Locked(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline RangePtr Subdocument::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline _bstr_t Subdocument::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _bstr_t Subdocument::GetPath ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Path(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline VARIANT_BOOL Subdocument::GetHasFile ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HasFile(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Subdocument::GetLevel ( ) {
    long _result = 0;
    HRESULT _hr = get_Level(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT Subdocument::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Subdocument::Split ( struct Range * Range ) {
    HRESULT _hr = raw_Split(Range);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _DocumentPtr Subdocument::Open ( ) {
    struct _Document * _result = 0;
    HRESULT _hr = raw_Open(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _DocumentPtr(_result, false);
}

//
// interface Subdocuments wrapper method implementations
//

inline _ApplicationPtr Subdocuments::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Subdocuments::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Subdocuments::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long Subdocuments::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IUnknownPtr Subdocuments::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline VARIANT_BOOL Subdocuments::GetExpanded ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Expanded(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Subdocuments::PutExpanded ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Expanded(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline SubdocumentPtr Subdocuments::Item ( long Index ) {
    struct Subdocument * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SubdocumentPtr(_result, false);
}

inline SubdocumentPtr Subdocuments::AddFromFile ( VARIANT * Name, VARIANT * ConfirmConversions, VARIANT * ReadOnly, VARIANT * PasswordDocument, VARIANT * PasswordTemplate, VARIANT * Revert, VARIANT * WritePasswordDocument, VARIANT * WritePasswordTemplate ) {
    struct Subdocument * _result = 0;
    HRESULT _hr = raw_AddFromFile(Name, ConfirmConversions, ReadOnly, PasswordDocument, PasswordTemplate, Revert, WritePasswordDocument, WritePasswordTemplate, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SubdocumentPtr(_result, false);
}

inline SubdocumentPtr Subdocuments::AddFromRange ( struct Range * Range ) {
    struct Subdocument * _result = 0;
    HRESULT _hr = raw_AddFromRange(Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SubdocumentPtr(_result, false);
}

inline HRESULT Subdocuments::Merge ( VARIANT * FirstSubdocument, VARIANT * LastSubdocument ) {
    HRESULT _hr = raw_Merge(FirstSubdocument, LastSubdocument);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Subdocuments::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Subdocuments::Select ( ) {
    HRESULT _hr = raw_Select();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface StoryRanges wrapper method implementations
//

inline IUnknownPtr StoryRanges::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long StoryRanges::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _ApplicationPtr StoryRanges::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long StoryRanges::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr StoryRanges::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline RangePtr StoryRanges::Item ( enum WdStoryType Index ) {
    struct Range * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

//
// interface ListParagraphs wrapper method implementations
//

inline IUnknownPtr ListParagraphs::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long ListParagraphs::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _ApplicationPtr ListParagraphs::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long ListParagraphs::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr ListParagraphs::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline ParagraphPtr ListParagraphs::Item ( long Index ) {
    struct Paragraph * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ParagraphPtr(_result, false);
}

//
// interface ProofreadingErrors wrapper method implementations
//

inline _ApplicationPtr ProofreadingErrors::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long ProofreadingErrors::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr ProofreadingErrors::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline IUnknownPtr ProofreadingErrors::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long ProofreadingErrors::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum WdProofreadingErrorType ProofreadingErrors::GetType ( ) {
    enum WdProofreadingErrorType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline RangePtr ProofreadingErrors::Item ( long Index ) {
    struct Range * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

//
// interface EmailSignatureEntries wrapper method implementations
//

inline _ApplicationPtr EmailSignatureEntries::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long EmailSignatureEntries::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr EmailSignatureEntries::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline IUnknownPtr EmailSignatureEntries::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long EmailSignatureEntries::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline EmailSignatureEntryPtr EmailSignatureEntries::Item ( VARIANT * Index ) {
    struct EmailSignatureEntry * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return EmailSignatureEntryPtr(_result, false);
}

inline EmailSignatureEntryPtr EmailSignatureEntries::Add ( _bstr_t Name, struct Range * Range ) {
    struct EmailSignatureEntry * _result = 0;
    HRESULT _hr = raw_Add(Name, Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return EmailSignatureEntryPtr(_result, false);
}

//
// interface EmailSignature wrapper method implementations
//

inline _ApplicationPtr EmailSignature::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long EmailSignature::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr EmailSignature::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline _bstr_t EmailSignature::GetNewMessageSignature ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_NewMessageSignature(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void EmailSignature::PutNewMessageSignature ( _bstr_t prop ) {
    HRESULT _hr = put_NewMessageSignature(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t EmailSignature::GetReplyMessageSignature ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_ReplyMessageSignature(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void EmailSignature::PutReplyMessageSignature ( _bstr_t prop ) {
    HRESULT _hr = put_ReplyMessageSignature(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline EmailSignatureEntriesPtr EmailSignature::GetEmailSignatureEntries ( ) {
    struct EmailSignatureEntries * _result = 0;
    HRESULT _hr = get_EmailSignatureEntries(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return EmailSignatureEntriesPtr(_result, false);
}

//
// interface Break wrapper method implementations
//

inline _ApplicationPtr Break::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Break::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Break::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline RangePtr Break::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline long Break::GetPageIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_PageIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface Breaks wrapper method implementations
//

inline IUnknownPtr Breaks::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long Breaks::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _ApplicationPtr Breaks::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Breaks::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Breaks::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline BreakPtr Breaks::Item ( long Index ) {
    struct Break * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BreakPtr(_result, false);
}

//
// interface Editor wrapper method implementations
//

inline _bstr_t Editor::GetID ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_ID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _bstr_t Editor::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline RangePtr Editor::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline RangePtr Editor::GetNextRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_NextRange(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline _ApplicationPtr Editor::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Editor::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Editor::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline HRESULT Editor::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Editor::DeleteAll ( ) {
    HRESULT _hr = raw_DeleteAll();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Editor::SelectAll ( ) {
    HRESULT _hr = raw_SelectAll();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Editors wrapper method implementations
//

inline _ApplicationPtr Editors::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Editors::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Editors::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long Editors::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline EditorPtr Editors::Item ( VARIANT * Index ) {
    struct Editor * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return EditorPtr(_result, false);
}

inline EditorPtr Editors::Add ( VARIANT * EditorID ) {
    struct Editor * _result = 0;
    HRESULT _hr = raw_Add(EditorID, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return EditorPtr(_result, false);
}

//
// interface OMathBreak wrapper method implementations
//

inline _ApplicationPtr OMathBreak::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long OMathBreak::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr OMathBreak::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline RangePtr OMathBreak::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline long OMathBreak::GetAlignAt ( ) {
    long _result = 0;
    HRESULT _hr = get_AlignAt(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathBreak::PutAlignAt ( long prop ) {
    HRESULT _hr = put_AlignAt(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT OMathBreak::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface OMathBreaks wrapper method implementations
//

inline _ApplicationPtr OMathBreaks::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long OMathBreaks::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr OMathBreaks::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long OMathBreaks::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline OMathBreakPtr OMathBreaks::Item ( long Index ) {
    struct OMathBreak * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathBreakPtr(_result, false);
}

inline OMathBreakPtr OMathBreaks::Add ( struct Range * Range ) {
    struct OMathBreak * _result = 0;
    HRESULT _hr = raw_Add(Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathBreakPtr(_result, false);
}

//
// interface CoAuthUpdate wrapper method implementations
//

inline _ApplicationPtr CoAuthUpdate::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long CoAuthUpdate::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr CoAuthUpdate::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline RangePtr CoAuthUpdate::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

//
// interface CoAuthUpdates wrapper method implementations
//

inline _ApplicationPtr CoAuthUpdates::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long CoAuthUpdates::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr CoAuthUpdates::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long CoAuthUpdates::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IUnknownPtr CoAuthUpdates::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline CoAuthUpdatePtr CoAuthUpdates::Item ( long Index ) {
    struct CoAuthUpdate * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CoAuthUpdatePtr(_result, false);
}

//
// interface Conflict wrapper method implementations
//

inline _ApplicationPtr Conflict::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Conflict::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Conflict::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline RangePtr Conflict::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline enum WdRevisionType Conflict::GetType ( ) {
    enum WdRevisionType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Conflict::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT Conflict::Accept ( ) {
    HRESULT _hr = raw_Accept();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Conflict::Reject ( ) {
    HRESULT _hr = raw_Reject();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Conflicts wrapper method implementations
//

inline _ApplicationPtr Conflicts::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Conflicts::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Conflicts::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline IUnknownPtr Conflicts::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long Conflicts::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline ConflictPtr Conflicts::Item ( long Index ) {
    struct Conflict * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ConflictPtr(_result, false);
}

inline HRESULT Conflicts::AcceptAll ( ) {
    HRESULT _hr = raw_AcceptAll();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Conflicts::RejectAll ( ) {
    HRESULT _hr = raw_RejectAll();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface ListFormat wrapper method implementations
//

inline long ListFormat::GetListLevelNumber ( ) {
    long _result = 0;
    HRESULT _hr = get_ListLevelNumber(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ListFormat::PutListLevelNumber ( long prop ) {
    HRESULT _hr = put_ListLevelNumber(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline ListPtr ListFormat::GetList ( ) {
    struct List * _result = 0;
    HRESULT _hr = get_List(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ListPtr(_result, false);
}

inline ListTemplatePtr ListFormat::GetListTemplate ( ) {
    struct ListTemplate * _result = 0;
    HRESULT _hr = get_ListTemplate(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ListTemplatePtr(_result, false);
}

inline long ListFormat::GetListValue ( ) {
    long _result = 0;
    HRESULT _hr = get_ListValue(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL ListFormat::GetSingleList ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SingleList(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL ListFormat::GetSingleListTemplate ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SingleListTemplate(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum WdListType ListFormat::GetListType ( ) {
    enum WdListType _result;
    HRESULT _hr = get_ListType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _bstr_t ListFormat::GetListString ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_ListString(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _ApplicationPtr ListFormat::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long ListFormat::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr ListFormat::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline enum WdContinue ListFormat::CanContinuePreviousList ( struct ListTemplate * ListTemplate ) {
    enum WdContinue _result;
    HRESULT _hr = raw_CanContinuePreviousList(ListTemplate, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT ListFormat::RemoveNumbers ( VARIANT * NumberType ) {
    HRESULT _hr = raw_RemoveNumbers(NumberType);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT ListFormat::ConvertNumbersToText ( VARIANT * NumberType ) {
    HRESULT _hr = raw_ConvertNumbersToText(NumberType);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long ListFormat::CountNumberedItems ( VARIANT * NumberType, VARIANT * Level ) {
    long _result = 0;
    HRESULT _hr = raw_CountNumberedItems(NumberType, Level, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT ListFormat::ApplyBulletDefaultOld ( ) {
    HRESULT _hr = raw_ApplyBulletDefaultOld();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT ListFormat::ApplyNumberDefaultOld ( ) {
    HRESULT _hr = raw_ApplyNumberDefaultOld();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT ListFormat::ApplyOutlineNumberDefaultOld ( ) {
    HRESULT _hr = raw_ApplyOutlineNumberDefaultOld();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT ListFormat::ApplyListTemplateOld ( struct ListTemplate * ListTemplate, VARIANT * ContinuePreviousList, VARIANT * ApplyTo ) {
    HRESULT _hr = raw_ApplyListTemplateOld(ListTemplate, ContinuePreviousList, ApplyTo);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT ListFormat::ListOutdent ( ) {
    HRESULT _hr = raw_ListOutdent();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT ListFormat::ListIndent ( ) {
    HRESULT _hr = raw_ListIndent();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT ListFormat::ApplyBulletDefault ( VARIANT * DefaultListBehavior ) {
    HRESULT _hr = raw_ApplyBulletDefault(DefaultListBehavior);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT ListFormat::ApplyNumberDefault ( VARIANT * DefaultListBehavior ) {
    HRESULT _hr = raw_ApplyNumberDefault(DefaultListBehavior);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT ListFormat::ApplyOutlineNumberDefault ( VARIANT * DefaultListBehavior ) {
    HRESULT _hr = raw_ApplyOutlineNumberDefault(DefaultListBehavior);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT ListFormat::ApplyListTemplate ( struct ListTemplate * ListTemplate, VARIANT * ContinuePreviousList, VARIANT * ApplyTo, VARIANT * DefaultListBehavior ) {
    HRESULT _hr = raw_ApplyListTemplate(ListTemplate, ContinuePreviousList, ApplyTo, DefaultListBehavior);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline InlineShapePtr ListFormat::GetListPictureBullet ( ) {
    struct InlineShape * _result = 0;
    HRESULT _hr = get_ListPictureBullet(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InlineShapePtr(_result, false);
}

inline HRESULT ListFormat::ApplyListTemplateWithLevel ( struct ListTemplate * ListTemplate, VARIANT * ContinuePreviousList, VARIANT * ApplyTo, VARIANT * DefaultListBehavior, VARIANT * ApplyLevel ) {
    HRESULT _hr = raw_ApplyListTemplateWithLevel(ListTemplate, ContinuePreviousList, ApplyTo, DefaultListBehavior, ApplyLevel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Sections wrapper method implementations
//

inline IUnknownPtr Sections::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long Sections::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline SectionPtr Sections::GetFirst ( ) {
    struct Section * _result = 0;
    HRESULT _hr = get_First(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SectionPtr(_result, false);
}

inline SectionPtr Sections::GetLast ( ) {
    struct Section * _result = 0;
    HRESULT _hr = get_Last(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SectionPtr(_result, false);
}

inline _ApplicationPtr Sections::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Sections::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Sections::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline PageSetupPtr Sections::GetPageSetup ( ) {
    struct PageSetup * _result = 0;
    HRESULT _hr = get_PageSetup(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return PageSetupPtr(_result, false);
}

inline void Sections::PutPageSetup ( struct PageSetup * prop ) {
    HRESULT _hr = put_PageSetup(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline SectionPtr Sections::Item ( long Index ) {
    struct Section * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SectionPtr(_result, false);
}

inline SectionPtr Sections::Add ( VARIANT * Range, VARIANT * Start ) {
    struct Section * _result = 0;
    HRESULT _hr = raw_Add(Range, Start, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SectionPtr(_result, false);
}

//
// interface Section wrapper method implementations
//

inline RangePtr Section::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline _ApplicationPtr Section::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Section::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Section::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline PageSetupPtr Section::GetPageSetup ( ) {
    struct PageSetup * _result = 0;
    HRESULT _hr = get_PageSetup(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return PageSetupPtr(_result, false);
}

inline void Section::PutPageSetup ( struct PageSetup * prop ) {
    HRESULT _hr = put_PageSetup(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HeadersFootersPtr Section::GetHeaders ( ) {
    struct HeadersFooters * _result = 0;
    HRESULT _hr = get_Headers(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HeadersFootersPtr(_result, false);
}

inline HeadersFootersPtr Section::GetFooters ( ) {
    struct HeadersFooters * _result = 0;
    HRESULT _hr = get_Footers(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HeadersFootersPtr(_result, false);
}

inline VARIANT_BOOL Section::GetProtectedForForms ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ProtectedForForms(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Section::PutProtectedForForms ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ProtectedForForms(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Section::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline BordersPtr Section::GetBorders ( ) {
    struct Borders * _result = 0;
    HRESULT _hr = get_Borders(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BordersPtr(_result, false);
}

inline void Section::PutBorders ( struct Borders * prop ) {
    HRESULT _hr = put_Borders(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface Table wrapper method implementations
//

inline RangePtr Table::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline _ApplicationPtr Table::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Table::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Table::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline ColumnsPtr Table::GetColumns ( ) {
    struct Columns * _result = 0;
    HRESULT _hr = get_Columns(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ColumnsPtr(_result, false);
}

inline RowsPtr Table::GetRows ( ) {
    struct Rows * _result = 0;
    HRESULT _hr = get_Rows(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RowsPtr(_result, false);
}

inline BordersPtr Table::GetBorders ( ) {
    struct Borders * _result = 0;
    HRESULT _hr = get_Borders(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BordersPtr(_result, false);
}

inline void Table::PutBorders ( struct Borders * prop ) {
    HRESULT _hr = put_Borders(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline ShadingPtr Table::GetShading ( ) {
    struct Shading * _result = 0;
    HRESULT _hr = get_Shading(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShadingPtr(_result, false);
}

inline VARIANT_BOOL Table::GetUniform ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Uniform(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Table::GetAutoFormatType ( ) {
    long _result = 0;
    HRESULT _hr = get_AutoFormatType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT Table::Select ( ) {
    HRESULT _hr = raw_Select();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Table::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Table::SortOld ( VARIANT * ExcludeHeader, VARIANT * FieldNumber, VARIANT * SortFieldType, VARIANT * SortOrder, VARIANT * FieldNumber2, VARIANT * SortFieldType2, VARIANT * SortOrder2, VARIANT * FieldNumber3, VARIANT * SortFieldType3, VARIANT * SortOrder3, VARIANT * CaseSensitive, VARIANT * LanguageID ) {
    HRESULT _hr = raw_SortOld(ExcludeHeader, FieldNumber, SortFieldType, SortOrder, FieldNumber2, SortFieldType2, SortOrder2, FieldNumber3, SortFieldType3, SortOrder3, CaseSensitive, LanguageID);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Table::SortAscending ( ) {
    HRESULT _hr = raw_SortAscending();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Table::SortDescending ( ) {
    HRESULT _hr = raw_SortDescending();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Table::AutoFormat ( VARIANT * Format, VARIANT * ApplyBorders, VARIANT * ApplyShading, VARIANT * ApplyFont, VARIANT * ApplyColor, VARIANT * ApplyHeadingRows, VARIANT * ApplyLastRow, VARIANT * ApplyFirstColumn, VARIANT * ApplyLastColumn, VARIANT * AutoFit ) {
    HRESULT _hr = raw_AutoFormat(Format, ApplyBorders, ApplyShading, ApplyFont, ApplyColor, ApplyHeadingRows, ApplyLastRow, ApplyFirstColumn, ApplyLastColumn, AutoFit);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Table::UpdateAutoFormat ( ) {
    HRESULT _hr = raw_UpdateAutoFormat();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline RangePtr Table::ConvertToTextOld ( VARIANT * Separator ) {
    struct Range * _result = 0;
    HRESULT _hr = raw_ConvertToTextOld(Separator, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline CellPtr Table::Cell ( long Row, long Column ) {
    struct Cell * _result = 0;
    HRESULT _hr = raw_Cell(Row, Column, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CellPtr(_result, false);
}

inline TablePtr Table::Split ( VARIANT * BeforeRow ) {
    struct Table * _result = 0;
    HRESULT _hr = raw_Split(BeforeRow, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TablePtr(_result, false);
}

inline RangePtr Table::ConvertToText ( VARIANT * Separator, VARIANT * NestedTables ) {
    struct Range * _result = 0;
    HRESULT _hr = raw_ConvertToText(Separator, NestedTables, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline HRESULT Table::AutoFitBehavior ( enum WdAutoFitBehavior Behavior ) {
    HRESULT _hr = raw_AutoFitBehavior(Behavior);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Table::Sort ( VARIANT * ExcludeHeader, VARIANT * FieldNumber, VARIANT * SortFieldType, VARIANT * SortOrder, VARIANT * FieldNumber2, VARIANT * SortFieldType2, VARIANT * SortOrder2, VARIANT * FieldNumber3, VARIANT * SortFieldType3, VARIANT * SortOrder3, VARIANT * CaseSensitive, VARIANT * BidiSort, VARIANT * IgnoreThe, VARIANT * IgnoreKashida, VARIANT * IgnoreDiacritics, VARIANT * IgnoreHe, VARIANT * LanguageID ) {
    HRESULT _hr = raw_Sort(ExcludeHeader, FieldNumber, SortFieldType, SortOrder, FieldNumber2, SortFieldType2, SortOrder2, FieldNumber3, SortFieldType3, SortOrder3, CaseSensitive, BidiSort, IgnoreThe, IgnoreKashida, IgnoreDiacritics, IgnoreHe, LanguageID);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline TablesPtr Table::GetTables ( ) {
    struct Tables * _result = 0;
    HRESULT _hr = get_Tables(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TablesPtr(_result, false);
}

inline long Table::GetNestingLevel ( ) {
    long _result = 0;
    HRESULT _hr = get_NestingLevel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL Table::GetAllowPageBreaks ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AllowPageBreaks(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Table::PutAllowPageBreaks ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AllowPageBreaks(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Table::GetAllowAutoFit ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AllowAutoFit(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Table::PutAllowAutoFit ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AllowAutoFit(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Table::GetPreferredWidth ( ) {
    float _result = 0;
    HRESULT _hr = get_PreferredWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Table::PutPreferredWidth ( float prop ) {
    HRESULT _hr = put_PreferredWidth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdPreferredWidthType Table::GetPreferredWidthType ( ) {
    enum WdPreferredWidthType _result;
    HRESULT _hr = get_PreferredWidthType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Table::PutPreferredWidthType ( enum WdPreferredWidthType prop ) {
    HRESULT _hr = put_PreferredWidthType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Table::GetTopPadding ( ) {
    float _result = 0;
    HRESULT _hr = get_TopPadding(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Table::PutTopPadding ( float prop ) {
    HRESULT _hr = put_TopPadding(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Table::GetBottomPadding ( ) {
    float _result = 0;
    HRESULT _hr = get_BottomPadding(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Table::PutBottomPadding ( float prop ) {
    HRESULT _hr = put_BottomPadding(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Table::GetLeftPadding ( ) {
    float _result = 0;
    HRESULT _hr = get_LeftPadding(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Table::PutLeftPadding ( float prop ) {
    HRESULT _hr = put_LeftPadding(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Table::GetRightPadding ( ) {
    float _result = 0;
    HRESULT _hr = get_RightPadding(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Table::PutRightPadding ( float prop ) {
    HRESULT _hr = put_RightPadding(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Table::GetSpacing ( ) {
    float _result = 0;
    HRESULT _hr = get_Spacing(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Table::PutSpacing ( float prop ) {
    HRESULT _hr = put_Spacing(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdTableDirection Table::GetTableDirection ( ) {
    enum WdTableDirection _result;
    HRESULT _hr = get_TableDirection(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Table::PutTableDirection ( enum WdTableDirection prop ) {
    HRESULT _hr = put_TableDirection(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t Table::GetID ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_ID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void Table::PutID ( _bstr_t prop ) {
    HRESULT _hr = put_ID(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _variant_t Table::GetStyle ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Style(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline void Table::PutStyle ( VARIANT * prop ) {
    HRESULT _hr = put_Style(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Table::GetApplyStyleHeadingRows ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ApplyStyleHeadingRows(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Table::PutApplyStyleHeadingRows ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ApplyStyleHeadingRows(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Table::GetApplyStyleLastRow ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ApplyStyleLastRow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Table::PutApplyStyleLastRow ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ApplyStyleLastRow(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Table::GetApplyStyleFirstColumn ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ApplyStyleFirstColumn(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Table::PutApplyStyleFirstColumn ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ApplyStyleFirstColumn(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Table::GetApplyStyleLastColumn ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ApplyStyleLastColumn(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Table::PutApplyStyleLastColumn ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ApplyStyleLastColumn(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Table::GetApplyStyleRowBands ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ApplyStyleRowBands(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Table::PutApplyStyleRowBands ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ApplyStyleRowBands(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Table::GetApplyStyleColumnBands ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ApplyStyleColumnBands(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Table::PutApplyStyleColumnBands ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ApplyStyleColumnBands(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT Table::ApplyStyleDirectFormatting ( _bstr_t StyleName ) {
    HRESULT _hr = raw_ApplyStyleDirectFormatting(StyleName);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _bstr_t Table::GetTitle ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Title(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void Table::PutTitle ( _bstr_t prop ) {
    HRESULT _hr = put_Title(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t Table::GetDescr ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Descr(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void Table::PutDescr ( _bstr_t prop ) {
    HRESULT _hr = put_Descr(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface Tables wrapper method implementations
//

inline IUnknownPtr Tables::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long Tables::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _ApplicationPtr Tables::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Tables::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Tables::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline TablePtr Tables::Item ( long Index ) {
    struct Table * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TablePtr(_result, false);
}

inline TablePtr Tables::AddOld ( struct Range * Range, long NumRows, long NumColumns ) {
    struct Table * _result = 0;
    HRESULT _hr = raw_AddOld(Range, NumRows, NumColumns, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TablePtr(_result, false);
}

inline TablePtr Tables::Add ( struct Range * Range, long NumRows, long NumColumns, VARIANT * DefaultTableBehavior, VARIANT * AutoFitBehavior ) {
    struct Table * _result = 0;
    HRESULT _hr = raw_Add(Range, NumRows, NumColumns, DefaultTableBehavior, AutoFitBehavior, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TablePtr(_result, false);
}

inline long Tables::GetNestingLevel ( ) {
    long _result = 0;
    HRESULT _hr = get_NestingLevel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface Row wrapper method implementations
//

inline RangePtr Row::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline _ApplicationPtr Row::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Row::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Row::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long Row::GetAllowBreakAcrossPages ( ) {
    long _result = 0;
    HRESULT _hr = get_AllowBreakAcrossPages(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Row::PutAllowBreakAcrossPages ( long prop ) {
    HRESULT _hr = put_AllowBreakAcrossPages(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdRowAlignment Row::GetAlignment ( ) {
    enum WdRowAlignment _result;
    HRESULT _hr = get_Alignment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Row::PutAlignment ( enum WdRowAlignment prop ) {
    HRESULT _hr = put_Alignment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Row::GetHeadingFormat ( ) {
    long _result = 0;
    HRESULT _hr = get_HeadingFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Row::PutHeadingFormat ( long prop ) {
    HRESULT _hr = put_HeadingFormat(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Row::GetSpaceBetweenColumns ( ) {
    float _result = 0;
    HRESULT _hr = get_SpaceBetweenColumns(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Row::PutSpaceBetweenColumns ( float prop ) {
    HRESULT _hr = put_SpaceBetweenColumns(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Row::GetHeight ( ) {
    float _result = 0;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Row::PutHeight ( float prop ) {
    HRESULT _hr = put_Height(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdRowHeightRule Row::GetHeightRule ( ) {
    enum WdRowHeightRule _result;
    HRESULT _hr = get_HeightRule(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Row::PutHeightRule ( enum WdRowHeightRule prop ) {
    HRESULT _hr = put_HeightRule(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Row::GetLeftIndent ( ) {
    float _result = 0;
    HRESULT _hr = get_LeftIndent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Row::PutLeftIndent ( float prop ) {
    HRESULT _hr = put_LeftIndent(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Row::GetIsLast ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IsLast(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL Row::GetIsFirst ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IsFirst(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Row::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline CellsPtr Row::GetCells ( ) {
    struct Cells * _result = 0;
    HRESULT _hr = get_Cells(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CellsPtr(_result, false);
}

inline BordersPtr Row::GetBorders ( ) {
    struct Borders * _result = 0;
    HRESULT _hr = get_Borders(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BordersPtr(_result, false);
}

inline void Row::PutBorders ( struct Borders * prop ) {
    HRESULT _hr = put_Borders(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline ShadingPtr Row::GetShading ( ) {
    struct Shading * _result = 0;
    HRESULT _hr = get_Shading(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShadingPtr(_result, false);
}

inline RowPtr Row::GetNext ( ) {
    struct Row * _result = 0;
    HRESULT _hr = get_Next(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RowPtr(_result, false);
}

inline RowPtr Row::GetPrevious ( ) {
    struct Row * _result = 0;
    HRESULT _hr = get_Previous(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RowPtr(_result, false);
}

inline HRESULT Row::Select ( ) {
    HRESULT _hr = raw_Select();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Row::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Row::SetLeftIndent ( float LeftIndent, enum WdRulerStyle RulerStyle ) {
    HRESULT _hr = raw_SetLeftIndent(LeftIndent, RulerStyle);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Row::SetHeight ( float RowHeight, enum WdRowHeightRule HeightRule ) {
    HRESULT _hr = raw_SetHeight(RowHeight, HeightRule);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline RangePtr Row::ConvertToTextOld ( VARIANT * Separator ) {
    struct Range * _result = 0;
    HRESULT _hr = raw_ConvertToTextOld(Separator, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline RangePtr Row::ConvertToText ( VARIANT * Separator, VARIANT * NestedTables ) {
    struct Range * _result = 0;
    HRESULT _hr = raw_ConvertToText(Separator, NestedTables, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline long Row::GetNestingLevel ( ) {
    long _result = 0;
    HRESULT _hr = get_NestingLevel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _bstr_t Row::GetID ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_ID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void Row::PutID ( _bstr_t prop ) {
    HRESULT _hr = put_ID(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface Rows wrapper method implementations
//

inline IUnknownPtr Rows::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long Rows::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Rows::GetAllowBreakAcrossPages ( ) {
    long _result = 0;
    HRESULT _hr = get_AllowBreakAcrossPages(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Rows::PutAllowBreakAcrossPages ( long prop ) {
    HRESULT _hr = put_AllowBreakAcrossPages(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdRowAlignment Rows::GetAlignment ( ) {
    enum WdRowAlignment _result;
    HRESULT _hr = get_Alignment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Rows::PutAlignment ( enum WdRowAlignment prop ) {
    HRESULT _hr = put_Alignment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Rows::GetHeadingFormat ( ) {
    long _result = 0;
    HRESULT _hr = get_HeadingFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Rows::PutHeadingFormat ( long prop ) {
    HRESULT _hr = put_HeadingFormat(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Rows::GetSpaceBetweenColumns ( ) {
    float _result = 0;
    HRESULT _hr = get_SpaceBetweenColumns(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Rows::PutSpaceBetweenColumns ( float prop ) {
    HRESULT _hr = put_SpaceBetweenColumns(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Rows::GetHeight ( ) {
    float _result = 0;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Rows::PutHeight ( float prop ) {
    HRESULT _hr = put_Height(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdRowHeightRule Rows::GetHeightRule ( ) {
    enum WdRowHeightRule _result;
    HRESULT _hr = get_HeightRule(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Rows::PutHeightRule ( enum WdRowHeightRule prop ) {
    HRESULT _hr = put_HeightRule(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Rows::GetLeftIndent ( ) {
    float _result = 0;
    HRESULT _hr = get_LeftIndent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Rows::PutLeftIndent ( float prop ) {
    HRESULT _hr = put_LeftIndent(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline RowPtr Rows::GetFirst ( ) {
    struct Row * _result = 0;
    HRESULT _hr = get_First(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RowPtr(_result, false);
}

inline RowPtr Rows::GetLast ( ) {
    struct Row * _result = 0;
    HRESULT _hr = get_Last(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RowPtr(_result, false);
}

inline _ApplicationPtr Rows::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Rows::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Rows::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline BordersPtr Rows::GetBorders ( ) {
    struct Borders * _result = 0;
    HRESULT _hr = get_Borders(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BordersPtr(_result, false);
}

inline void Rows::PutBorders ( struct Borders * prop ) {
    HRESULT _hr = put_Borders(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline ShadingPtr Rows::GetShading ( ) {
    struct Shading * _result = 0;
    HRESULT _hr = get_Shading(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShadingPtr(_result, false);
}

inline RowPtr Rows::Item ( long Index ) {
    struct Row * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RowPtr(_result, false);
}

inline RowPtr Rows::Add ( VARIANT * BeforeRow ) {
    struct Row * _result = 0;
    HRESULT _hr = raw_Add(BeforeRow, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RowPtr(_result, false);
}

inline HRESULT Rows::Select ( ) {
    HRESULT _hr = raw_Select();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Rows::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Rows::SetLeftIndent ( float LeftIndent, enum WdRulerStyle RulerStyle ) {
    HRESULT _hr = raw_SetLeftIndent(LeftIndent, RulerStyle);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Rows::SetHeight ( float RowHeight, enum WdRowHeightRule HeightRule ) {
    HRESULT _hr = raw_SetHeight(RowHeight, HeightRule);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline RangePtr Rows::ConvertToTextOld ( VARIANT * Separator ) {
    struct Range * _result = 0;
    HRESULT _hr = raw_ConvertToTextOld(Separator, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline HRESULT Rows::DistributeHeight ( ) {
    HRESULT _hr = raw_DistributeHeight();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline RangePtr Rows::ConvertToText ( VARIANT * Separator, VARIANT * NestedTables ) {
    struct Range * _result = 0;
    HRESULT _hr = raw_ConvertToText(Separator, NestedTables, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline long Rows::GetWrapAroundText ( ) {
    long _result = 0;
    HRESULT _hr = get_WrapAroundText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Rows::PutWrapAroundText ( long prop ) {
    HRESULT _hr = put_WrapAroundText(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Rows::GetDistanceTop ( ) {
    float _result = 0;
    HRESULT _hr = get_DistanceTop(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Rows::PutDistanceTop ( float prop ) {
    HRESULT _hr = put_DistanceTop(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Rows::GetDistanceBottom ( ) {
    float _result = 0;
    HRESULT _hr = get_DistanceBottom(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Rows::PutDistanceBottom ( float prop ) {
    HRESULT _hr = put_DistanceBottom(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Rows::GetDistanceLeft ( ) {
    float _result = 0;
    HRESULT _hr = get_DistanceLeft(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Rows::PutDistanceLeft ( float prop ) {
    HRESULT _hr = put_DistanceLeft(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Rows::GetDistanceRight ( ) {
    float _result = 0;
    HRESULT _hr = get_DistanceRight(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Rows::PutDistanceRight ( float prop ) {
    HRESULT _hr = put_DistanceRight(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Rows::GetHorizontalPosition ( ) {
    float _result = 0;
    HRESULT _hr = get_HorizontalPosition(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Rows::PutHorizontalPosition ( float prop ) {
    HRESULT _hr = put_HorizontalPosition(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Rows::GetVerticalPosition ( ) {
    float _result = 0;
    HRESULT _hr = get_VerticalPosition(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Rows::PutVerticalPosition ( float prop ) {
    HRESULT _hr = put_VerticalPosition(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdRelativeHorizontalPosition Rows::GetRelativeHorizontalPosition ( ) {
    enum WdRelativeHorizontalPosition _result;
    HRESULT _hr = get_RelativeHorizontalPosition(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Rows::PutRelativeHorizontalPosition ( enum WdRelativeHorizontalPosition prop ) {
    HRESULT _hr = put_RelativeHorizontalPosition(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdRelativeVerticalPosition Rows::GetRelativeVerticalPosition ( ) {
    enum WdRelativeVerticalPosition _result;
    HRESULT _hr = get_RelativeVerticalPosition(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Rows::PutRelativeVerticalPosition ( enum WdRelativeVerticalPosition prop ) {
    HRESULT _hr = put_RelativeVerticalPosition(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Rows::GetAllowOverlap ( ) {
    long _result = 0;
    HRESULT _hr = get_AllowOverlap(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Rows::PutAllowOverlap ( long prop ) {
    HRESULT _hr = put_AllowOverlap(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Rows::GetNestingLevel ( ) {
    long _result = 0;
    HRESULT _hr = get_NestingLevel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum WdTableDirection Rows::GetTableDirection ( ) {
    enum WdTableDirection _result;
    HRESULT _hr = get_TableDirection(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Rows::PutTableDirection ( enum WdTableDirection prop ) {
    HRESULT _hr = put_TableDirection(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface Column wrapper method implementations
//

inline _ApplicationPtr Column::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Column::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Column::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline float Column::GetWidth ( ) {
    float _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Column::PutWidth ( float prop ) {
    HRESULT _hr = put_Width(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Column::GetIsFirst ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IsFirst(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL Column::GetIsLast ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IsLast(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Column::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline CellsPtr Column::GetCells ( ) {
    struct Cells * _result = 0;
    HRESULT _hr = get_Cells(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CellsPtr(_result, false);
}

inline BordersPtr Column::GetBorders ( ) {
    struct Borders * _result = 0;
    HRESULT _hr = get_Borders(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BordersPtr(_result, false);
}

inline void Column::PutBorders ( struct Borders * prop ) {
    HRESULT _hr = put_Borders(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline ShadingPtr Column::GetShading ( ) {
    struct Shading * _result = 0;
    HRESULT _hr = get_Shading(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShadingPtr(_result, false);
}

inline ColumnPtr Column::GetNext ( ) {
    struct Column * _result = 0;
    HRESULT _hr = get_Next(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ColumnPtr(_result, false);
}

inline ColumnPtr Column::GetPrevious ( ) {
    struct Column * _result = 0;
    HRESULT _hr = get_Previous(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ColumnPtr(_result, false);
}

inline HRESULT Column::Select ( ) {
    HRESULT _hr = raw_Select();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Column::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Column::SetWidth ( float ColumnWidth, enum WdRulerStyle RulerStyle ) {
    HRESULT _hr = raw_SetWidth(ColumnWidth, RulerStyle);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Column::AutoFit ( ) {
    HRESULT _hr = raw_AutoFit();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Column::SortOld ( VARIANT * ExcludeHeader, VARIANT * SortFieldType, VARIANT * SortOrder, VARIANT * CaseSensitive, VARIANT * LanguageID ) {
    HRESULT _hr = raw_SortOld(ExcludeHeader, SortFieldType, SortOrder, CaseSensitive, LanguageID);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Column::Sort ( VARIANT * ExcludeHeader, VARIANT * SortFieldType, VARIANT * SortOrder, VARIANT * CaseSensitive, VARIANT * BidiSort, VARIANT * IgnoreThe, VARIANT * IgnoreKashida, VARIANT * IgnoreDiacritics, VARIANT * IgnoreHe, VARIANT * LanguageID ) {
    HRESULT _hr = raw_Sort(ExcludeHeader, SortFieldType, SortOrder, CaseSensitive, BidiSort, IgnoreThe, IgnoreKashida, IgnoreDiacritics, IgnoreHe, LanguageID);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long Column::GetNestingLevel ( ) {
    long _result = 0;
    HRESULT _hr = get_NestingLevel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline float Column::GetPreferredWidth ( ) {
    float _result = 0;
    HRESULT _hr = get_PreferredWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Column::PutPreferredWidth ( float prop ) {
    HRESULT _hr = put_PreferredWidth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdPreferredWidthType Column::GetPreferredWidthType ( ) {
    enum WdPreferredWidthType _result;
    HRESULT _hr = get_PreferredWidthType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Column::PutPreferredWidthType ( enum WdPreferredWidthType prop ) {
    HRESULT _hr = put_PreferredWidthType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface Cell wrapper method implementations
//

inline RangePtr Cell::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline _ApplicationPtr Cell::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Cell::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Cell::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long Cell::GetRowIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_RowIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Cell::GetColumnIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_ColumnIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline float Cell::GetWidth ( ) {
    float _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Cell::PutWidth ( float prop ) {
    HRESULT _hr = put_Width(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Cell::GetHeight ( ) {
    float _result = 0;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Cell::PutHeight ( float prop ) {
    HRESULT _hr = put_Height(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdRowHeightRule Cell::GetHeightRule ( ) {
    enum WdRowHeightRule _result;
    HRESULT _hr = get_HeightRule(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Cell::PutHeightRule ( enum WdRowHeightRule prop ) {
    HRESULT _hr = put_HeightRule(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdCellVerticalAlignment Cell::GetVerticalAlignment ( ) {
    enum WdCellVerticalAlignment _result;
    HRESULT _hr = get_VerticalAlignment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Cell::PutVerticalAlignment ( enum WdCellVerticalAlignment prop ) {
    HRESULT _hr = put_VerticalAlignment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline ColumnPtr Cell::GetColumn ( ) {
    struct Column * _result = 0;
    HRESULT _hr = get_Column(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ColumnPtr(_result, false);
}

inline RowPtr Cell::GetRow ( ) {
    struct Row * _result = 0;
    HRESULT _hr = get_Row(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RowPtr(_result, false);
}

inline CellPtr Cell::GetNext ( ) {
    struct Cell * _result = 0;
    HRESULT _hr = get_Next(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CellPtr(_result, false);
}

inline CellPtr Cell::GetPrevious ( ) {
    struct Cell * _result = 0;
    HRESULT _hr = get_Previous(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CellPtr(_result, false);
}

inline ShadingPtr Cell::GetShading ( ) {
    struct Shading * _result = 0;
    HRESULT _hr = get_Shading(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShadingPtr(_result, false);
}

inline BordersPtr Cell::GetBorders ( ) {
    struct Borders * _result = 0;
    HRESULT _hr = get_Borders(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BordersPtr(_result, false);
}

inline void Cell::PutBorders ( struct Borders * prop ) {
    HRESULT _hr = put_Borders(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT Cell::Select ( ) {
    HRESULT _hr = raw_Select();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Cell::Delete ( VARIANT * ShiftCells ) {
    HRESULT _hr = raw_Delete(ShiftCells);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Cell::Formula ( VARIANT * Formula, VARIANT * NumFormat ) {
    HRESULT _hr = raw_Formula(Formula, NumFormat);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Cell::SetWidth ( float ColumnWidth, enum WdRulerStyle RulerStyle ) {
    HRESULT _hr = raw_SetWidth(ColumnWidth, RulerStyle);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Cell::SetHeight ( VARIANT * RowHeight, enum WdRowHeightRule HeightRule ) {
    HRESULT _hr = raw_SetHeight(RowHeight, HeightRule);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Cell::Merge ( struct Cell * MergeTo ) {
    HRESULT _hr = raw_Merge(MergeTo);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Cell::Split ( VARIANT * NumRows, VARIANT * NumColumns ) {
    HRESULT _hr = raw_Split(NumRows, NumColumns);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Cell::AutoSum ( ) {
    HRESULT _hr = raw_AutoSum();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline TablesPtr Cell::GetTables ( ) {
    struct Tables * _result = 0;
    HRESULT _hr = get_Tables(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TablesPtr(_result, false);
}

inline long Cell::GetNestingLevel ( ) {
    long _result = 0;
    HRESULT _hr = get_NestingLevel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL Cell::GetWordWrap ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_WordWrap(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Cell::PutWordWrap ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_WordWrap(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Cell::GetPreferredWidth ( ) {
    float _result = 0;
    HRESULT _hr = get_PreferredWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Cell::PutPreferredWidth ( float prop ) {
    HRESULT _hr = put_PreferredWidth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Cell::GetFitText ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_FitText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Cell::PutFitText ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_FitText(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Cell::GetTopPadding ( ) {
    float _result = 0;
    HRESULT _hr = get_TopPadding(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Cell::PutTopPadding ( float prop ) {
    HRESULT _hr = put_TopPadding(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Cell::GetBottomPadding ( ) {
    float _result = 0;
    HRESULT _hr = get_BottomPadding(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Cell::PutBottomPadding ( float prop ) {
    HRESULT _hr = put_BottomPadding(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Cell::GetLeftPadding ( ) {
    float _result = 0;
    HRESULT _hr = get_LeftPadding(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Cell::PutLeftPadding ( float prop ) {
    HRESULT _hr = put_LeftPadding(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Cell::GetRightPadding ( ) {
    float _result = 0;
    HRESULT _hr = get_RightPadding(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Cell::PutRightPadding ( float prop ) {
    HRESULT _hr = put_RightPadding(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t Cell::GetID ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_ID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void Cell::PutID ( _bstr_t prop ) {
    HRESULT _hr = put_ID(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdPreferredWidthType Cell::GetPreferredWidthType ( ) {
    enum WdPreferredWidthType _result;
    HRESULT _hr = get_PreferredWidthType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Cell::PutPreferredWidthType ( enum WdPreferredWidthType prop ) {
    HRESULT _hr = put_PreferredWidthType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface Columns wrapper method implementations
//

inline IUnknownPtr Columns::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long Columns::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _ApplicationPtr Columns::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Columns::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Columns::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline ColumnPtr Columns::GetFirst ( ) {
    struct Column * _result = 0;
    HRESULT _hr = get_First(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ColumnPtr(_result, false);
}

inline ColumnPtr Columns::GetLast ( ) {
    struct Column * _result = 0;
    HRESULT _hr = get_Last(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ColumnPtr(_result, false);
}

inline float Columns::GetWidth ( ) {
    float _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Columns::PutWidth ( float prop ) {
    HRESULT _hr = put_Width(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline BordersPtr Columns::GetBorders ( ) {
    struct Borders * _result = 0;
    HRESULT _hr = get_Borders(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BordersPtr(_result, false);
}

inline void Columns::PutBorders ( struct Borders * prop ) {
    HRESULT _hr = put_Borders(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline ShadingPtr Columns::GetShading ( ) {
    struct Shading * _result = 0;
    HRESULT _hr = get_Shading(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShadingPtr(_result, false);
}

inline ColumnPtr Columns::Item ( long Index ) {
    struct Column * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ColumnPtr(_result, false);
}

inline ColumnPtr Columns::Add ( VARIANT * BeforeColumn ) {
    struct Column * _result = 0;
    HRESULT _hr = raw_Add(BeforeColumn, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ColumnPtr(_result, false);
}

inline HRESULT Columns::Select ( ) {
    HRESULT _hr = raw_Select();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Columns::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Columns::SetWidth ( float ColumnWidth, enum WdRulerStyle RulerStyle ) {
    HRESULT _hr = raw_SetWidth(ColumnWidth, RulerStyle);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Columns::AutoFit ( ) {
    HRESULT _hr = raw_AutoFit();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Columns::DistributeWidth ( ) {
    HRESULT _hr = raw_DistributeWidth();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long Columns::GetNestingLevel ( ) {
    long _result = 0;
    HRESULT _hr = get_NestingLevel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline float Columns::GetPreferredWidth ( ) {
    float _result = 0;
    HRESULT _hr = get_PreferredWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Columns::PutPreferredWidth ( float prop ) {
    HRESULT _hr = put_PreferredWidth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdPreferredWidthType Columns::GetPreferredWidthType ( ) {
    enum WdPreferredWidthType _result;
    HRESULT _hr = get_PreferredWidthType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Columns::PutPreferredWidthType ( enum WdPreferredWidthType prop ) {
    HRESULT _hr = put_PreferredWidthType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface Cells wrapper method implementations
//

inline IUnknownPtr Cells::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long Cells::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _ApplicationPtr Cells::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Cells::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Cells::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline float Cells::GetWidth ( ) {
    float _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Cells::PutWidth ( float prop ) {
    HRESULT _hr = put_Width(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Cells::GetHeight ( ) {
    float _result = 0;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Cells::PutHeight ( float prop ) {
    HRESULT _hr = put_Height(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdRowHeightRule Cells::GetHeightRule ( ) {
    enum WdRowHeightRule _result;
    HRESULT _hr = get_HeightRule(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Cells::PutHeightRule ( enum WdRowHeightRule prop ) {
    HRESULT _hr = put_HeightRule(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdCellVerticalAlignment Cells::GetVerticalAlignment ( ) {
    enum WdCellVerticalAlignment _result;
    HRESULT _hr = get_VerticalAlignment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Cells::PutVerticalAlignment ( enum WdCellVerticalAlignment prop ) {
    HRESULT _hr = put_VerticalAlignment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline BordersPtr Cells::GetBorders ( ) {
    struct Borders * _result = 0;
    HRESULT _hr = get_Borders(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BordersPtr(_result, false);
}

inline void Cells::PutBorders ( struct Borders * prop ) {
    HRESULT _hr = put_Borders(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline ShadingPtr Cells::GetShading ( ) {
    struct Shading * _result = 0;
    HRESULT _hr = get_Shading(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShadingPtr(_result, false);
}

inline CellPtr Cells::Item ( long Index ) {
    struct Cell * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CellPtr(_result, false);
}

inline CellPtr Cells::Add ( VARIANT * BeforeCell ) {
    struct Cell * _result = 0;
    HRESULT _hr = raw_Add(BeforeCell, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CellPtr(_result, false);
}

inline HRESULT Cells::Delete ( VARIANT * ShiftCells ) {
    HRESULT _hr = raw_Delete(ShiftCells);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Cells::SetWidth ( float ColumnWidth, enum WdRulerStyle RulerStyle ) {
    HRESULT _hr = raw_SetWidth(ColumnWidth, RulerStyle);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Cells::SetHeight ( VARIANT * RowHeight, enum WdRowHeightRule HeightRule ) {
    HRESULT _hr = raw_SetHeight(RowHeight, HeightRule);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Cells::Merge ( ) {
    HRESULT _hr = raw_Merge();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Cells::Split ( VARIANT * NumRows, VARIANT * NumColumns, VARIANT * MergeBeforeSplit ) {
    HRESULT _hr = raw_Split(NumRows, NumColumns, MergeBeforeSplit);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Cells::DistributeHeight ( ) {
    HRESULT _hr = raw_DistributeHeight();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Cells::DistributeWidth ( ) {
    HRESULT _hr = raw_DistributeWidth();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Cells::AutoFit ( ) {
    HRESULT _hr = raw_AutoFit();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long Cells::GetNestingLevel ( ) {
    long _result = 0;
    HRESULT _hr = get_NestingLevel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline float Cells::GetPreferredWidth ( ) {
    float _result = 0;
    HRESULT _hr = get_PreferredWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Cells::PutPreferredWidth ( float prop ) {
    HRESULT _hr = put_PreferredWidth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdPreferredWidthType Cells::GetPreferredWidthType ( ) {
    enum WdPreferredWidthType _result;
    HRESULT _hr = get_PreferredWidthType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Cells::PutPreferredWidthType ( enum WdPreferredWidthType prop ) {
    HRESULT _hr = put_PreferredWidthType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface Fields wrapper method implementations
//

inline _ApplicationPtr Fields::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Fields::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Fields::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long Fields::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Fields::GetLocked ( ) {
    long _result = 0;
    HRESULT _hr = get_Locked(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Fields::PutLocked ( long prop ) {
    HRESULT _hr = put_Locked(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline IUnknownPtr Fields::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline FieldPtr Fields::Item ( long Index ) {
    struct Field * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FieldPtr(_result, false);
}

inline HRESULT Fields::ToggleShowCodes ( ) {
    HRESULT _hr = raw_ToggleShowCodes();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long Fields::Update ( ) {
    long _result = 0;
    HRESULT _hr = raw_Update(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT Fields::Unlink ( ) {
    HRESULT _hr = raw_Unlink();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Fields::UpdateSource ( ) {
    HRESULT _hr = raw_UpdateSource();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline FieldPtr Fields::Add ( struct Range * Range, VARIANT * Type, VARIANT * Text, VARIANT * PreserveFormatting ) {
    struct Field * _result = 0;
    HRESULT _hr = raw_Add(Range, Type, Text, PreserveFormatting, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FieldPtr(_result, false);
}

//
// interface Field wrapper method implementations
//

inline _ApplicationPtr Field::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Field::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Field::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline RangePtr Field::GetCode ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Code(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline void Field::PutCode ( struct Range * prop ) {
    HRESULT _hr = put_Code(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdFieldType Field::GetType ( ) {
    enum WdFieldType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL Field::GetLocked ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Locked(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Field::PutLocked ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Locked(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdFieldKind Field::GetKind ( ) {
    enum WdFieldKind _result;
    HRESULT _hr = get_Kind(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline RangePtr Field::GetResult ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Result(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline void Field::PutResult ( struct Range * prop ) {
    HRESULT _hr = put_Result(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t Field::GetData ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Data(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void Field::PutData ( _bstr_t prop ) {
    HRESULT _hr = put_Data(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline FieldPtr Field::GetNext ( ) {
    struct Field * _result = 0;
    HRESULT _hr = get_Next(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FieldPtr(_result, false);
}

inline FieldPtr Field::GetPrevious ( ) {
    struct Field * _result = 0;
    HRESULT _hr = get_Previous(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FieldPtr(_result, false);
}

inline long Field::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL Field::GetShowCodes ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowCodes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Field::PutShowCodes ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ShowCodes(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline LinkFormatPtr Field::GetLinkFormat ( ) {
    struct LinkFormat * _result = 0;
    HRESULT _hr = get_LinkFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return LinkFormatPtr(_result, false);
}

inline OLEFormatPtr Field::GetOLEFormat ( ) {
    struct OLEFormat * _result = 0;
    HRESULT _hr = get_OLEFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OLEFormatPtr(_result, false);
}

inline InlineShapePtr Field::GetInlineShape ( ) {
    struct InlineShape * _result = 0;
    HRESULT _hr = get_InlineShape(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InlineShapePtr(_result, false);
}

inline HRESULT Field::Select ( ) {
    HRESULT _hr = raw_Select();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL Field::Update ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_Update(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT Field::Unlink ( ) {
    HRESULT _hr = raw_Unlink();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Field::UpdateSource ( ) {
    HRESULT _hr = raw_UpdateSource();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Field::DoClick ( ) {
    HRESULT _hr = raw_DoClick();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Field::Copy ( ) {
    HRESULT _hr = raw_Copy();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Field::Cut ( ) {
    HRESULT _hr = raw_Cut();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Field::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface TablesOfFigures wrapper method implementations
//

inline _ApplicationPtr TablesOfFigures::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long TablesOfFigures::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr TablesOfFigures::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline IUnknownPtr TablesOfFigures::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long TablesOfFigures::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum WdTofFormat TablesOfFigures::GetFormat ( ) {
    enum WdTofFormat _result;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TablesOfFigures::PutFormat ( enum WdTofFormat prop ) {
    HRESULT _hr = put_Format(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline TableOfFiguresPtr TablesOfFigures::Item ( long Index ) {
    struct TableOfFigures * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TableOfFiguresPtr(_result, false);
}

inline TableOfFiguresPtr TablesOfFigures::AddOld ( struct Range * Range, VARIANT * Caption, VARIANT * IncludeLabel, VARIANT * UseHeadingStyles, VARIANT * UpperHeadingLevel, VARIANT * LowerHeadingLevel, VARIANT * UseFields, VARIANT * TableID, VARIANT * RightAlignPageNumbers, VARIANT * IncludePageNumbers, VARIANT * AddedStyles ) {
    struct TableOfFigures * _result = 0;
    HRESULT _hr = raw_AddOld(Range, Caption, IncludeLabel, UseHeadingStyles, UpperHeadingLevel, LowerHeadingLevel, UseFields, TableID, RightAlignPageNumbers, IncludePageNumbers, AddedStyles, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TableOfFiguresPtr(_result, false);
}

inline FieldPtr TablesOfFigures::MarkEntry ( struct Range * Range, VARIANT * Entry, VARIANT * EntryAutoText, VARIANT * TableID, VARIANT * Level ) {
    struct Field * _result = 0;
    HRESULT _hr = raw_MarkEntry(Range, Entry, EntryAutoText, TableID, Level, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FieldPtr(_result, false);
}

inline TableOfFiguresPtr TablesOfFigures::Add ( struct Range * Range, VARIANT * Caption, VARIANT * IncludeLabel, VARIANT * UseHeadingStyles, VARIANT * UpperHeadingLevel, VARIANT * LowerHeadingLevel, VARIANT * UseFields, VARIANT * TableID, VARIANT * RightAlignPageNumbers, VARIANT * IncludePageNumbers, VARIANT * AddedStyles, VARIANT * UseHyperlinks, VARIANT * HidePageNumbersInWeb ) {
    struct TableOfFigures * _result = 0;
    HRESULT _hr = raw_Add(Range, Caption, IncludeLabel, UseHeadingStyles, UpperHeadingLevel, LowerHeadingLevel, UseFields, TableID, RightAlignPageNumbers, IncludePageNumbers, AddedStyles, UseHyperlinks, HidePageNumbersInWeb, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TableOfFiguresPtr(_result, false);
}

//
// interface TablesOfContents wrapper method implementations
//

inline _ApplicationPtr TablesOfContents::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long TablesOfContents::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr TablesOfContents::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline IUnknownPtr TablesOfContents::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long TablesOfContents::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum WdTocFormat TablesOfContents::GetFormat ( ) {
    enum WdTocFormat _result;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TablesOfContents::PutFormat ( enum WdTocFormat prop ) {
    HRESULT _hr = put_Format(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline TableOfContentsPtr TablesOfContents::Item ( long Index ) {
    struct TableOfContents * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TableOfContentsPtr(_result, false);
}

inline TableOfContentsPtr TablesOfContents::AddOld ( struct Range * Range, VARIANT * UseHeadingStyles, VARIANT * UpperHeadingLevel, VARIANT * LowerHeadingLevel, VARIANT * UseFields, VARIANT * TableID, VARIANT * RightAlignPageNumbers, VARIANT * IncludePageNumbers, VARIANT * AddedStyles ) {
    struct TableOfContents * _result = 0;
    HRESULT _hr = raw_AddOld(Range, UseHeadingStyles, UpperHeadingLevel, LowerHeadingLevel, UseFields, TableID, RightAlignPageNumbers, IncludePageNumbers, AddedStyles, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TableOfContentsPtr(_result, false);
}

inline FieldPtr TablesOfContents::MarkEntry ( struct Range * Range, VARIANT * Entry, VARIANT * EntryAutoText, VARIANT * TableID, VARIANT * Level ) {
    struct Field * _result = 0;
    HRESULT _hr = raw_MarkEntry(Range, Entry, EntryAutoText, TableID, Level, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FieldPtr(_result, false);
}

inline TableOfContentsPtr TablesOfContents::Add2000 ( struct Range * Range, VARIANT * UseHeadingStyles, VARIANT * UpperHeadingLevel, VARIANT * LowerHeadingLevel, VARIANT * UseFields, VARIANT * TableID, VARIANT * RightAlignPageNumbers, VARIANT * IncludePageNumbers, VARIANT * AddedStyles, VARIANT * UseHyperlinks, VARIANT * HidePageNumbersInWeb ) {
    struct TableOfContents * _result = 0;
    HRESULT _hr = raw_Add2000(Range, UseHeadingStyles, UpperHeadingLevel, LowerHeadingLevel, UseFields, TableID, RightAlignPageNumbers, IncludePageNumbers, AddedStyles, UseHyperlinks, HidePageNumbersInWeb, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TableOfContentsPtr(_result, false);
}

inline TableOfContentsPtr TablesOfContents::Add ( struct Range * Range, VARIANT * UseHeadingStyles, VARIANT * UpperHeadingLevel, VARIANT * LowerHeadingLevel, VARIANT * UseFields, VARIANT * TableID, VARIANT * RightAlignPageNumbers, VARIANT * IncludePageNumbers, VARIANT * AddedStyles, VARIANT * UseHyperlinks, VARIANT * HidePageNumbersInWeb, VARIANT * UseOutlineLevels ) {
    struct TableOfContents * _result = 0;
    HRESULT _hr = raw_Add(Range, UseHeadingStyles, UpperHeadingLevel, LowerHeadingLevel, UseFields, TableID, RightAlignPageNumbers, IncludePageNumbers, AddedStyles, UseHyperlinks, HidePageNumbersInWeb, UseOutlineLevels, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TableOfContentsPtr(_result, false);
}

//
// interface TablesOfAuthorities wrapper method implementations
//

inline _ApplicationPtr TablesOfAuthorities::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long TablesOfAuthorities::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr TablesOfAuthorities::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline IUnknownPtr TablesOfAuthorities::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long TablesOfAuthorities::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum WdToaFormat TablesOfAuthorities::GetFormat ( ) {
    enum WdToaFormat _result;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TablesOfAuthorities::PutFormat ( enum WdToaFormat prop ) {
    HRESULT _hr = put_Format(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline TableOfAuthoritiesPtr TablesOfAuthorities::Item ( long Index ) {
    struct TableOfAuthorities * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TableOfAuthoritiesPtr(_result, false);
}

inline TableOfAuthoritiesPtr TablesOfAuthorities::Add ( struct Range * Range, VARIANT * Category, VARIANT * Bookmark, VARIANT * Passim, VARIANT * KeepEntryFormatting, VARIANT * Separator, VARIANT * IncludeSequenceName, VARIANT * EntrySeparator, VARIANT * PageRangeSeparator, VARIANT * IncludeCategoryHeader, VARIANT * PageNumberSeparator ) {
    struct TableOfAuthorities * _result = 0;
    HRESULT _hr = raw_Add(Range, Category, Bookmark, Passim, KeepEntryFormatting, Separator, IncludeSequenceName, EntrySeparator, PageRangeSeparator, IncludeCategoryHeader, PageNumberSeparator, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TableOfAuthoritiesPtr(_result, false);
}

inline HRESULT TablesOfAuthorities::NextCitation ( _bstr_t ShortCitation ) {
    HRESULT _hr = raw_NextCitation(ShortCitation);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline FieldPtr TablesOfAuthorities::MarkCitation ( struct Range * Range, _bstr_t ShortCitation, VARIANT * LongCitation, VARIANT * LongCitationAutoText, VARIANT * Category ) {
    struct Field * _result = 0;
    HRESULT _hr = raw_MarkCitation(Range, ShortCitation, LongCitation, LongCitationAutoText, Category, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FieldPtr(_result, false);
}

inline HRESULT TablesOfAuthorities::MarkAllCitations ( _bstr_t ShortCitation, VARIANT * LongCitation, VARIANT * LongCitationAutoText, VARIANT * Category ) {
    HRESULT _hr = raw_MarkAllCitations(ShortCitation, LongCitation, LongCitationAutoText, Category);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Indexes wrapper method implementations
//

inline _ApplicationPtr Indexes::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Indexes::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Indexes::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline IUnknownPtr Indexes::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long Indexes::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum WdIndexFormat Indexes::GetFormat ( ) {
    enum WdIndexFormat _result;
    HRESULT _hr = get_Format(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Indexes::PutFormat ( enum WdIndexFormat prop ) {
    HRESULT _hr = put_Format(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline IndexPtr Indexes::Item ( long Index ) {
    struct Index * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IndexPtr(_result, false);
}

inline IndexPtr Indexes::AddOld ( struct Range * Range, VARIANT * HeadingSeparator, VARIANT * RightAlignPageNumbers, VARIANT * Type, VARIANT * NumberOfColumns, VARIANT * AccentedLetters ) {
    struct Index * _result = 0;
    HRESULT _hr = raw_AddOld(Range, HeadingSeparator, RightAlignPageNumbers, Type, NumberOfColumns, AccentedLetters, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IndexPtr(_result, false);
}

inline FieldPtr Indexes::MarkEntry ( struct Range * Range, VARIANT * Entry, VARIANT * EntryAutoText, VARIANT * CrossReference, VARIANT * CrossReferenceAutoText, VARIANT * BookmarkName, VARIANT * Bold, VARIANT * Italic, VARIANT * Reading ) {
    struct Field * _result = 0;
    HRESULT _hr = raw_MarkEntry(Range, Entry, EntryAutoText, CrossReference, CrossReferenceAutoText, BookmarkName, Bold, Italic, Reading, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FieldPtr(_result, false);
}

inline HRESULT Indexes::MarkAllEntries ( struct Range * Range, VARIANT * Entry, VARIANT * EntryAutoText, VARIANT * CrossReference, VARIANT * CrossReferenceAutoText, VARIANT * BookmarkName, VARIANT * Bold, VARIANT * Italic ) {
    HRESULT _hr = raw_MarkAllEntries(Range, Entry, EntryAutoText, CrossReference, CrossReferenceAutoText, BookmarkName, Bold, Italic);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Indexes::AutoMarkEntries ( _bstr_t ConcordanceFileName ) {
    HRESULT _hr = raw_AutoMarkEntries(ConcordanceFileName);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline IndexPtr Indexes::Add ( struct Range * Range, VARIANT * HeadingSeparator, VARIANT * RightAlignPageNumbers, VARIANT * Type, VARIANT * NumberOfColumns, VARIANT * AccentedLetters, VARIANT * SortBy, VARIANT * IndexLanguage ) {
    struct Index * _result = 0;
    HRESULT _hr = raw_Add(Range, HeadingSeparator, RightAlignPageNumbers, Type, NumberOfColumns, AccentedLetters, SortBy, IndexLanguage, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IndexPtr(_result, false);
}

//
// interface Styles wrapper method implementations
//

inline _ApplicationPtr Styles::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Styles::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Styles::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline IUnknownPtr Styles::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long Styles::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline StylePtr Styles::Item ( VARIANT * Index ) {
    struct Style * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return StylePtr(_result, false);
}

inline StylePtr Styles::Add ( _bstr_t Name, VARIANT * Type ) {
    struct Style * _result = 0;
    HRESULT _hr = raw_Add(Name, Type, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return StylePtr(_result, false);
}

//
// interface Style wrapper method implementations
//

inline _ApplicationPtr Style::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Style::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Style::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline _bstr_t Style::GetNameLocal ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_NameLocal(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void Style::PutNameLocal ( _bstr_t prop ) {
    HRESULT _hr = put_NameLocal(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _variant_t Style::GetBaseStyle ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_BaseStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline void Style::PutBaseStyle ( VARIANT * prop ) {
    HRESULT _hr = put_BaseStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t Style::GetDescription ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Description(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline enum WdStyleType Style::GetType ( ) {
    enum WdStyleType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL Style::GetBuiltIn ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_BuiltIn(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _variant_t Style::GetNextParagraphStyle ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_NextParagraphStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline void Style::PutNextParagraphStyle ( VARIANT * prop ) {
    HRESULT _hr = put_NextParagraphStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Style::GetInUse ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_InUse(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline ShadingPtr Style::GetShading ( ) {
    struct Shading * _result = 0;
    HRESULT _hr = get_Shading(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShadingPtr(_result, false);
}

inline BordersPtr Style::GetBorders ( ) {
    struct Borders * _result = 0;
    HRESULT _hr = get_Borders(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BordersPtr(_result, false);
}

inline void Style::PutBorders ( struct Borders * prop ) {
    HRESULT _hr = put_Borders(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _ParagraphFormatPtr Style::GetParagraphFormat ( ) {
    struct _ParagraphFormat * _result = 0;
    HRESULT _hr = get_ParagraphFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ParagraphFormatPtr(_result, false);
}

inline void Style::PutParagraphFormat ( struct _ParagraphFormat * prop ) {
    HRESULT _hr = put_ParagraphFormat(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _FontPtr Style::GetFont ( ) {
    struct _Font * _result = 0;
    HRESULT _hr = get_Font(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _FontPtr(_result, false);
}

inline void Style::PutFont ( struct _Font * prop ) {
    HRESULT _hr = put_Font(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline FramePtr Style::GetFrame ( ) {
    struct Frame * _result = 0;
    HRESULT _hr = get_Frame(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FramePtr(_result, false);
}

inline enum WdLanguageID Style::GetLanguageID ( ) {
    enum WdLanguageID _result;
    HRESULT _hr = get_LanguageID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Style::PutLanguageID ( enum WdLanguageID prop ) {
    HRESULT _hr = put_LanguageID(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Style::GetAutomaticallyUpdate ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutomaticallyUpdate(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Style::PutAutomaticallyUpdate ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutomaticallyUpdate(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline ListTemplatePtr Style::GetListTemplate ( ) {
    struct ListTemplate * _result = 0;
    HRESULT _hr = get_ListTemplate(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ListTemplatePtr(_result, false);
}

inline long Style::GetListLevelNumber ( ) {
    long _result = 0;
    HRESULT _hr = get_ListLevelNumber(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum WdLanguageID Style::GetLanguageIDFarEast ( ) {
    enum WdLanguageID _result;
    HRESULT _hr = get_LanguageIDFarEast(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Style::PutLanguageIDFarEast ( enum WdLanguageID prop ) {
    HRESULT _hr = put_LanguageIDFarEast(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Style::GetHidden ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Hidden(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Style::PutHidden ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Hidden(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT Style::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Style::LinkToListTemplate ( struct ListTemplate * ListTemplate, VARIANT * ListLevelNumber ) {
    HRESULT _hr = raw_LinkToListTemplate(ListTemplate, ListLevelNumber);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long Style::GetNoProofing ( ) {
    long _result = 0;
    HRESULT _hr = get_NoProofing(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Style::PutNoProofing ( long prop ) {
    HRESULT _hr = put_NoProofing(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _variant_t Style::GetLinkStyle ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_LinkStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline void Style::PutLinkStyle ( VARIANT * prop ) {
    HRESULT _hr = put_LinkStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Style::GetVisibility ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Visibility(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Style::PutVisibility ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Visibility(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Style::GetNoSpaceBetweenParagraphsOfSameStyle ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_NoSpaceBetweenParagraphsOfSameStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Style::PutNoSpaceBetweenParagraphsOfSameStyle ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_NoSpaceBetweenParagraphsOfSameStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline TableStylePtr Style::GetTable ( ) {
    struct TableStyle * _result = 0;
    HRESULT _hr = get_Table(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TableStylePtr(_result, false);
}

inline VARIANT_BOOL Style::GetLocked ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Locked(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Style::PutLocked ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Locked(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Style::GetPriority ( ) {
    long _result = 0;
    HRESULT _hr = get_Priority(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Style::PutPriority ( long prop ) {
    HRESULT _hr = put_Priority(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Style::GetUnhideWhenUsed ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_UnhideWhenUsed(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Style::PutUnhideWhenUsed ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_UnhideWhenUsed(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Style::GetQuickStyle ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_QuickStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Style::PutQuickStyle ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_QuickStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Style::GetLinked ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Linked(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface Envelope wrapper method implementations
//

inline _ApplicationPtr Envelope::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Envelope::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Envelope::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline RangePtr Envelope::GetAddress ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Address(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline RangePtr Envelope::GetReturnAddress ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_ReturnAddress(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline VARIANT_BOOL Envelope::GetDefaultPrintBarCode ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DefaultPrintBarCode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Envelope::PutDefaultPrintBarCode ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DefaultPrintBarCode(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Envelope::GetDefaultPrintFIMA ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DefaultPrintFIMA(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Envelope::PutDefaultPrintFIMA ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DefaultPrintFIMA(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Envelope::GetDefaultHeight ( ) {
    float _result = 0;
    HRESULT _hr = get_DefaultHeight(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Envelope::PutDefaultHeight ( float prop ) {
    HRESULT _hr = put_DefaultHeight(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Envelope::GetDefaultWidth ( ) {
    float _result = 0;
    HRESULT _hr = get_DefaultWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Envelope::PutDefaultWidth ( float prop ) {
    HRESULT _hr = put_DefaultWidth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t Envelope::GetDefaultSize ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_DefaultSize(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void Envelope::PutDefaultSize ( _bstr_t prop ) {
    HRESULT _hr = put_DefaultSize(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Envelope::GetDefaultOmitReturnAddress ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DefaultOmitReturnAddress(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Envelope::PutDefaultOmitReturnAddress ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DefaultOmitReturnAddress(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdPaperTray Envelope::GetFeedSource ( ) {
    enum WdPaperTray _result;
    HRESULT _hr = get_FeedSource(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Envelope::PutFeedSource ( enum WdPaperTray prop ) {
    HRESULT _hr = put_FeedSource(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Envelope::GetAddressFromLeft ( ) {
    float _result = 0;
    HRESULT _hr = get_AddressFromLeft(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Envelope::PutAddressFromLeft ( float prop ) {
    HRESULT _hr = put_AddressFromLeft(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Envelope::GetAddressFromTop ( ) {
    float _result = 0;
    HRESULT _hr = get_AddressFromTop(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Envelope::PutAddressFromTop ( float prop ) {
    HRESULT _hr = put_AddressFromTop(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Envelope::GetReturnAddressFromLeft ( ) {
    float _result = 0;
    HRESULT _hr = get_ReturnAddressFromLeft(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Envelope::PutReturnAddressFromLeft ( float prop ) {
    HRESULT _hr = put_ReturnAddressFromLeft(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Envelope::GetReturnAddressFromTop ( ) {
    float _result = 0;
    HRESULT _hr = get_ReturnAddressFromTop(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Envelope::PutReturnAddressFromTop ( float prop ) {
    HRESULT _hr = put_ReturnAddressFromTop(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline StylePtr Envelope::GetAddressStyle ( ) {
    struct Style * _result = 0;
    HRESULT _hr = get_AddressStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return StylePtr(_result, false);
}

inline StylePtr Envelope::GetReturnAddressStyle ( ) {
    struct Style * _result = 0;
    HRESULT _hr = get_ReturnAddressStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return StylePtr(_result, false);
}

inline enum WdEnvelopeOrientation Envelope::GetDefaultOrientation ( ) {
    enum WdEnvelopeOrientation _result;
    HRESULT _hr = get_DefaultOrientation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Envelope::PutDefaultOrientation ( enum WdEnvelopeOrientation prop ) {
    HRESULT _hr = put_DefaultOrientation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Envelope::GetDefaultFaceUp ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_DefaultFaceUp(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Envelope::PutDefaultFaceUp ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_DefaultFaceUp(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT Envelope::Insert2000 ( VARIANT * ExtractAddress, VARIANT * Address, VARIANT * AutoText, VARIANT * OmitReturnAddress, VARIANT * ReturnAddress, VARIANT * ReturnAutoText, VARIANT * PrintBarCode, VARIANT * PrintFIMA, VARIANT * Size, VARIANT * Height, VARIANT * Width, VARIANT * FeedSource, VARIANT * AddressFromLeft, VARIANT * AddressFromTop, VARIANT * ReturnAddressFromLeft, VARIANT * ReturnAddressFromTop, VARIANT * DefaultFaceUp, VARIANT * DefaultOrientation ) {
    HRESULT _hr = raw_Insert2000(ExtractAddress, Address, AutoText, OmitReturnAddress, ReturnAddress, ReturnAutoText, PrintBarCode, PrintFIMA, Size, Height, Width, FeedSource, AddressFromLeft, AddressFromTop, ReturnAddressFromLeft, ReturnAddressFromTop, DefaultFaceUp, DefaultOrientation);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Envelope::PrintOut2000 ( VARIANT * ExtractAddress, VARIANT * Address, VARIANT * AutoText, VARIANT * OmitReturnAddress, VARIANT * ReturnAddress, VARIANT * ReturnAutoText, VARIANT * PrintBarCode, VARIANT * PrintFIMA, VARIANT * Size, VARIANT * Height, VARIANT * Width, VARIANT * FeedSource, VARIANT * AddressFromLeft, VARIANT * AddressFromTop, VARIANT * ReturnAddressFromLeft, VARIANT * ReturnAddressFromTop, VARIANT * DefaultFaceUp, VARIANT * DefaultOrientation ) {
    HRESULT _hr = raw_PrintOut2000(ExtractAddress, Address, AutoText, OmitReturnAddress, ReturnAddress, ReturnAutoText, PrintBarCode, PrintFIMA, Size, Height, Width, FeedSource, AddressFromLeft, AddressFromTop, ReturnAddressFromLeft, ReturnAddressFromTop, DefaultFaceUp, DefaultOrientation);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Envelope::UpdateDocument ( ) {
    HRESULT _hr = raw_UpdateDocument();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Envelope::Options ( ) {
    HRESULT _hr = raw_Options();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL Envelope::GetVertical ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Vertical(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Envelope::PutVertical ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Vertical(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Envelope::GetRecipientNamefromLeft ( ) {
    float _result = 0;
    HRESULT _hr = get_RecipientNamefromLeft(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Envelope::PutRecipientNamefromLeft ( float prop ) {
    HRESULT _hr = put_RecipientNamefromLeft(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Envelope::GetRecipientNamefromTop ( ) {
    float _result = 0;
    HRESULT _hr = get_RecipientNamefromTop(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Envelope::PutRecipientNamefromTop ( float prop ) {
    HRESULT _hr = put_RecipientNamefromTop(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Envelope::GetRecipientPostalfromLeft ( ) {
    float _result = 0;
    HRESULT _hr = get_RecipientPostalfromLeft(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Envelope::PutRecipientPostalfromLeft ( float prop ) {
    HRESULT _hr = put_RecipientPostalfromLeft(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Envelope::GetRecipientPostalfromTop ( ) {
    float _result = 0;
    HRESULT _hr = get_RecipientPostalfromTop(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Envelope::PutRecipientPostalfromTop ( float prop ) {
    HRESULT _hr = put_RecipientPostalfromTop(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Envelope::GetSenderNamefromLeft ( ) {
    float _result = 0;
    HRESULT _hr = get_SenderNamefromLeft(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Envelope::PutSenderNamefromLeft ( float prop ) {
    HRESULT _hr = put_SenderNamefromLeft(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Envelope::GetSenderNamefromTop ( ) {
    float _result = 0;
    HRESULT _hr = get_SenderNamefromTop(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Envelope::PutSenderNamefromTop ( float prop ) {
    HRESULT _hr = put_SenderNamefromTop(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Envelope::GetSenderPostalfromLeft ( ) {
    float _result = 0;
    HRESULT _hr = get_SenderPostalfromLeft(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Envelope::PutSenderPostalfromLeft ( float prop ) {
    HRESULT _hr = put_SenderPostalfromLeft(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Envelope::GetSenderPostalfromTop ( ) {
    float _result = 0;
    HRESULT _hr = get_SenderPostalfromTop(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Envelope::PutSenderPostalfromTop ( float prop ) {
    HRESULT _hr = put_SenderPostalfromTop(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT Envelope::Insert ( VARIANT * ExtractAddress, VARIANT * Address, VARIANT * AutoText, VARIANT * OmitReturnAddress, VARIANT * ReturnAddress, VARIANT * ReturnAutoText, VARIANT * PrintBarCode, VARIANT * PrintFIMA, VARIANT * Size, VARIANT * Height, VARIANT * Width, VARIANT * FeedSource, VARIANT * AddressFromLeft, VARIANT * AddressFromTop, VARIANT * ReturnAddressFromLeft, VARIANT * ReturnAddressFromTop, VARIANT * DefaultFaceUp, VARIANT * DefaultOrientation, VARIANT * PrintEPostage, VARIANT * Vertical, VARIANT * RecipientNamefromLeft, VARIANT * RecipientNamefromTop, VARIANT * RecipientPostalfromLeft, VARIANT * RecipientPostalfromTop, VARIANT * SenderNamefromLeft, VARIANT * SenderNamefromTop, VARIANT * SenderPostalfromLeft, VARIANT * SenderPostalfromTop ) {
    HRESULT _hr = raw_Insert(ExtractAddress, Address, AutoText, OmitReturnAddress, ReturnAddress, ReturnAutoText, PrintBarCode, PrintFIMA, Size, Height, Width, FeedSource, AddressFromLeft, AddressFromTop, ReturnAddressFromLeft, ReturnAddressFromTop, DefaultFaceUp, DefaultOrientation, PrintEPostage, Vertical, RecipientNamefromLeft, RecipientNamefromTop, RecipientPostalfromLeft, RecipientPostalfromTop, SenderNamefromLeft, SenderNamefromTop, SenderPostalfromLeft, SenderPostalfromTop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Envelope::PrintOut ( VARIANT * ExtractAddress, VARIANT * Address, VARIANT * AutoText, VARIANT * OmitReturnAddress, VARIANT * ReturnAddress, VARIANT * ReturnAutoText, VARIANT * PrintBarCode, VARIANT * PrintFIMA, VARIANT * Size, VARIANT * Height, VARIANT * Width, VARIANT * FeedSource, VARIANT * AddressFromLeft, VARIANT * AddressFromTop, VARIANT * ReturnAddressFromLeft, VARIANT * ReturnAddressFromTop, VARIANT * DefaultFaceUp, VARIANT * DefaultOrientation, VARIANT * PrintEPostage, VARIANT * Vertical, VARIANT * RecipientNamefromLeft, VARIANT * RecipientNamefromTop, VARIANT * RecipientPostalfromLeft, VARIANT * RecipientPostalfromTop, VARIANT * SenderNamefromLeft, VARIANT * SenderNamefromTop, VARIANT * SenderPostalfromLeft, VARIANT * SenderPostalfromTop ) {
    HRESULT _hr = raw_PrintOut(ExtractAddress, Address, AutoText, OmitReturnAddress, ReturnAddress, ReturnAutoText, PrintBarCode, PrintFIMA, Size, Height, Width, FeedSource, AddressFromLeft, AddressFromTop, ReturnAddressFromLeft, ReturnAddressFromTop, DefaultFaceUp, DefaultOrientation, PrintEPostage, Vertical, RecipientNamefromLeft, RecipientNamefromTop, RecipientPostalfromLeft, RecipientPostalfromTop, SenderNamefromLeft, SenderNamefromTop, SenderPostalfromLeft, SenderPostalfromTop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Revision wrapper method implementations
//

inline _ApplicationPtr Revision::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Revision::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Revision::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline _bstr_t Revision::GetAuthor ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Author(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline DATE Revision::GetDate ( ) {
    DATE _result = 0;
    HRESULT _hr = get_Date(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline RangePtr Revision::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline enum WdRevisionType Revision::GetType ( ) {
    enum WdRevisionType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Revision::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT Revision::Accept ( ) {
    HRESULT _hr = raw_Accept();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Revision::Reject ( ) {
    HRESULT _hr = raw_Reject();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline StylePtr Revision::GetStyle ( ) {
    struct Style * _result = 0;
    HRESULT _hr = get_Style(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return StylePtr(_result, false);
}

inline _bstr_t Revision::GetFormatDescription ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_FormatDescription(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline RangePtr Revision::GetMovedRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_MovedRange(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline CellsPtr Revision::GetCells ( ) {
    struct Cells * _result = 0;
    HRESULT _hr = get_Cells(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CellsPtr(_result, false);
}

//
// interface Revisions wrapper method implementations
//

inline _ApplicationPtr Revisions::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Revisions::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Revisions::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline IUnknownPtr Revisions::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long Revisions::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline RevisionPtr Revisions::Item ( long Index ) {
    struct Revision * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RevisionPtr(_result, false);
}

inline HRESULT Revisions::AcceptAll ( ) {
    HRESULT _hr = raw_AcceptAll();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Revisions::RejectAll ( ) {
    HRESULT _hr = raw_RejectAll();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface EmailAuthor wrapper method implementations
//

inline _ApplicationPtr EmailAuthor::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long EmailAuthor::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr EmailAuthor::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline StylePtr EmailAuthor::GetStyle ( ) {
    struct Style * _result = 0;
    HRESULT _hr = get_Style(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return StylePtr(_result, false);
}

//
// interface EmailOptions wrapper method implementations
//

inline _ApplicationPtr EmailOptions::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long EmailOptions::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr EmailOptions::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline VARIANT_BOOL EmailOptions::GetUseThemeStyle ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_UseThemeStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void EmailOptions::PutUseThemeStyle ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_UseThemeStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t EmailOptions::GetMarkCommentsWith ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_MarkCommentsWith(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void EmailOptions::PutMarkCommentsWith ( _bstr_t prop ) {
    HRESULT _hr = put_MarkCommentsWith(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL EmailOptions::GetMarkComments ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MarkComments(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void EmailOptions::PutMarkComments ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MarkComments(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline EmailSignaturePtr EmailOptions::GetEmailSignature ( ) {
    struct EmailSignature * _result = 0;
    HRESULT _hr = get_EmailSignature(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return EmailSignaturePtr(_result, false);
}

inline StylePtr EmailOptions::GetComposeStyle ( ) {
    struct Style * _result = 0;
    HRESULT _hr = get_ComposeStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return StylePtr(_result, false);
}

inline StylePtr EmailOptions::GetReplyStyle ( ) {
    struct Style * _result = 0;
    HRESULT _hr = get_ReplyStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return StylePtr(_result, false);
}

inline _bstr_t EmailOptions::GetThemeName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_ThemeName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void EmailOptions::PutThemeName ( _bstr_t prop ) {
    HRESULT _hr = put_ThemeName(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL EmailOptions::GetDummy1 ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Dummy1(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL EmailOptions::GetDummy2 ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Dummy2(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT EmailOptions::Dummy3 ( ) {
    HRESULT _hr = raw_Dummy3();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL EmailOptions::GetNewColorOnReply ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_NewColorOnReply(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void EmailOptions::PutNewColorOnReply ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_NewColorOnReply(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline StylePtr EmailOptions::GetPlainTextStyle ( ) {
    struct Style * _result = 0;
    HRESULT _hr = get_PlainTextStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return StylePtr(_result, false);
}

inline VARIANT_BOOL EmailOptions::GetUseThemeStyleOnReply ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_UseThemeStyleOnReply(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void EmailOptions::PutUseThemeStyleOnReply ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_UseThemeStyleOnReply(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL EmailOptions::GetAutoFormatAsYouTypeApplyHeadings ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeApplyHeadings(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void EmailOptions::PutAutoFormatAsYouTypeApplyHeadings ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeApplyHeadings(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL EmailOptions::GetAutoFormatAsYouTypeApplyBorders ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeApplyBorders(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void EmailOptions::PutAutoFormatAsYouTypeApplyBorders ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeApplyBorders(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL EmailOptions::GetAutoFormatAsYouTypeApplyBulletedLists ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeApplyBulletedLists(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void EmailOptions::PutAutoFormatAsYouTypeApplyBulletedLists ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeApplyBulletedLists(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL EmailOptions::GetAutoFormatAsYouTypeApplyNumberedLists ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeApplyNumberedLists(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void EmailOptions::PutAutoFormatAsYouTypeApplyNumberedLists ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeApplyNumberedLists(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL EmailOptions::GetAutoFormatAsYouTypeReplaceQuotes ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeReplaceQuotes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void EmailOptions::PutAutoFormatAsYouTypeReplaceQuotes ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeReplaceQuotes(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL EmailOptions::GetAutoFormatAsYouTypeReplaceSymbols ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeReplaceSymbols(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void EmailOptions::PutAutoFormatAsYouTypeReplaceSymbols ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeReplaceSymbols(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL EmailOptions::GetAutoFormatAsYouTypeReplaceOrdinals ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeReplaceOrdinals(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void EmailOptions::PutAutoFormatAsYouTypeReplaceOrdinals ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeReplaceOrdinals(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL EmailOptions::GetAutoFormatAsYouTypeReplaceFractions ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeReplaceFractions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void EmailOptions::PutAutoFormatAsYouTypeReplaceFractions ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeReplaceFractions(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL EmailOptions::GetAutoFormatAsYouTypeReplacePlainTextEmphasis ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeReplacePlainTextEmphasis(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void EmailOptions::PutAutoFormatAsYouTypeReplacePlainTextEmphasis ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeReplacePlainTextEmphasis(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL EmailOptions::GetAutoFormatAsYouTypeFormatListItemBeginning ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeFormatListItemBeginning(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void EmailOptions::PutAutoFormatAsYouTypeFormatListItemBeginning ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeFormatListItemBeginning(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL EmailOptions::GetAutoFormatAsYouTypeDefineStyles ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeDefineStyles(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void EmailOptions::PutAutoFormatAsYouTypeDefineStyles ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeDefineStyles(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL EmailOptions::GetAutoFormatAsYouTypeReplaceHyperlinks ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeReplaceHyperlinks(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void EmailOptions::PutAutoFormatAsYouTypeReplaceHyperlinks ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeReplaceHyperlinks(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL EmailOptions::GetAutoFormatAsYouTypeApplyTables ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeApplyTables(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void EmailOptions::PutAutoFormatAsYouTypeApplyTables ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeApplyTables(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL EmailOptions::GetAutoFormatAsYouTypeApplyFirstIndents ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeApplyFirstIndents(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void EmailOptions::PutAutoFormatAsYouTypeApplyFirstIndents ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeApplyFirstIndents(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL EmailOptions::GetAutoFormatAsYouTypeApplyDates ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeApplyDates(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void EmailOptions::PutAutoFormatAsYouTypeApplyDates ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeApplyDates(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL EmailOptions::GetAutoFormatAsYouTypeApplyClosings ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeApplyClosings(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void EmailOptions::PutAutoFormatAsYouTypeApplyClosings ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeApplyClosings(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL EmailOptions::GetAutoFormatAsYouTypeMatchParentheses ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeMatchParentheses(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void EmailOptions::PutAutoFormatAsYouTypeMatchParentheses ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeMatchParentheses(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL EmailOptions::GetAutoFormatAsYouTypeReplaceFarEastDashes ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeReplaceFarEastDashes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void EmailOptions::PutAutoFormatAsYouTypeReplaceFarEastDashes ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeReplaceFarEastDashes(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL EmailOptions::GetAutoFormatAsYouTypeDeleteAutoSpaces ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeDeleteAutoSpaces(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void EmailOptions::PutAutoFormatAsYouTypeDeleteAutoSpaces ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeDeleteAutoSpaces(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL EmailOptions::GetAutoFormatAsYouTypeInsertClosings ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeInsertClosings(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void EmailOptions::PutAutoFormatAsYouTypeInsertClosings ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeInsertClosings(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL EmailOptions::GetAutoFormatAsYouTypeAutoLetterWizard ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeAutoLetterWizard(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void EmailOptions::PutAutoFormatAsYouTypeAutoLetterWizard ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeAutoLetterWizard(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL EmailOptions::GetAutoFormatAsYouTypeInsertOvers ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoFormatAsYouTypeInsertOvers(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void EmailOptions::PutAutoFormatAsYouTypeInsertOvers ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AutoFormatAsYouTypeInsertOvers(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL EmailOptions::GetRelyOnCSS ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_RelyOnCSS(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void EmailOptions::PutRelyOnCSS ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_RelyOnCSS(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdEmailHTMLFidelity EmailOptions::GetHTMLFidelity ( ) {
    enum WdEmailHTMLFidelity _result;
    HRESULT _hr = get_HTMLFidelity(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void EmailOptions::PutHTMLFidelity ( enum WdEmailHTMLFidelity prop ) {
    HRESULT _hr = put_HTMLFidelity(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL EmailOptions::GetEmbedSmartTag ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_EmbedSmartTag(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void EmailOptions::PutEmbedSmartTag ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_EmbedSmartTag(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL EmailOptions::GetTabIndentKey ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_TabIndentKey(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void EmailOptions::PutTabIndentKey ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_TabIndentKey(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface Email wrapper method implementations
//

inline _ApplicationPtr Email::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Email::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Email::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline EmailAuthorPtr Email::GetCurrentEmailAuthor ( ) {
    struct EmailAuthor * _result = 0;
    HRESULT _hr = get_CurrentEmailAuthor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return EmailAuthorPtr(_result, false);
}

//
// interface Selection wrapper method implementations
//

inline _bstr_t Selection::GetText ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Text(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void Selection::PutText ( _bstr_t prop ) {
    HRESULT _hr = put_Text(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline RangePtr Selection::GetFormattedText ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_FormattedText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline void Selection::PutFormattedText ( struct Range * prop ) {
    HRESULT _hr = put_FormattedText(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Selection::GetStart ( ) {
    long _result = 0;
    HRESULT _hr = get_Start(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Selection::PutStart ( long prop ) {
    HRESULT _hr = put_Start(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Selection::GetEnd ( ) {
    long _result = 0;
    HRESULT _hr = get_End(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Selection::PutEnd ( long prop ) {
    HRESULT _hr = put_End(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _FontPtr Selection::GetFont ( ) {
    struct _Font * _result = 0;
    HRESULT _hr = get_Font(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _FontPtr(_result, false);
}

inline void Selection::PutFont ( struct _Font * prop ) {
    HRESULT _hr = put_Font(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdSelectionType Selection::GetType ( ) {
    enum WdSelectionType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum WdStoryType Selection::GetStoryType ( ) {
    enum WdStoryType _result;
    HRESULT _hr = get_StoryType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _variant_t Selection::GetStyle ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Style(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline void Selection::PutStyle ( VARIANT * prop ) {
    HRESULT _hr = put_Style(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline TablesPtr Selection::GetTables ( ) {
    struct Tables * _result = 0;
    HRESULT _hr = get_Tables(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TablesPtr(_result, false);
}

inline WordsPtr Selection::GetWords ( ) {
    struct Words * _result = 0;
    HRESULT _hr = get_Words(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return WordsPtr(_result, false);
}

inline SentencesPtr Selection::GetSentences ( ) {
    struct Sentences * _result = 0;
    HRESULT _hr = get_Sentences(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SentencesPtr(_result, false);
}

inline CharactersPtr Selection::GetCharacters ( ) {
    struct Characters * _result = 0;
    HRESULT _hr = get_Characters(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CharactersPtr(_result, false);
}

inline FootnotesPtr Selection::GetFootnotes ( ) {
    struct Footnotes * _result = 0;
    HRESULT _hr = get_Footnotes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FootnotesPtr(_result, false);
}

inline EndnotesPtr Selection::GetEndnotes ( ) {
    struct Endnotes * _result = 0;
    HRESULT _hr = get_Endnotes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return EndnotesPtr(_result, false);
}

inline CommentsPtr Selection::GetComments ( ) {
    struct Comments * _result = 0;
    HRESULT _hr = get_Comments(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CommentsPtr(_result, false);
}

inline CellsPtr Selection::GetCells ( ) {
    struct Cells * _result = 0;
    HRESULT _hr = get_Cells(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CellsPtr(_result, false);
}

inline SectionsPtr Selection::GetSections ( ) {
    struct Sections * _result = 0;
    HRESULT _hr = get_Sections(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SectionsPtr(_result, false);
}

inline ParagraphsPtr Selection::GetParagraphs ( ) {
    struct Paragraphs * _result = 0;
    HRESULT _hr = get_Paragraphs(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ParagraphsPtr(_result, false);
}

inline BordersPtr Selection::GetBorders ( ) {
    struct Borders * _result = 0;
    HRESULT _hr = get_Borders(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BordersPtr(_result, false);
}

inline void Selection::PutBorders ( struct Borders * prop ) {
    HRESULT _hr = put_Borders(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline ShadingPtr Selection::GetShading ( ) {
    struct Shading * _result = 0;
    HRESULT _hr = get_Shading(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShadingPtr(_result, false);
}

inline FieldsPtr Selection::GetFields ( ) {
    struct Fields * _result = 0;
    HRESULT _hr = get_Fields(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FieldsPtr(_result, false);
}

inline FormFieldsPtr Selection::GetFormFields ( ) {
    struct FormFields * _result = 0;
    HRESULT _hr = get_FormFields(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FormFieldsPtr(_result, false);
}

inline FramesPtr Selection::GetFrames ( ) {
    struct Frames * _result = 0;
    HRESULT _hr = get_Frames(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FramesPtr(_result, false);
}

inline _ParagraphFormatPtr Selection::GetParagraphFormat ( ) {
    struct _ParagraphFormat * _result = 0;
    HRESULT _hr = get_ParagraphFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ParagraphFormatPtr(_result, false);
}

inline void Selection::PutParagraphFormat ( struct _ParagraphFormat * prop ) {
    HRESULT _hr = put_ParagraphFormat(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline PageSetupPtr Selection::GetPageSetup ( ) {
    struct PageSetup * _result = 0;
    HRESULT _hr = get_PageSetup(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return PageSetupPtr(_result, false);
}

inline void Selection::PutPageSetup ( struct PageSetup * prop ) {
    HRESULT _hr = put_PageSetup(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline BookmarksPtr Selection::GetBookmarks ( ) {
    struct Bookmarks * _result = 0;
    HRESULT _hr = get_Bookmarks(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BookmarksPtr(_result, false);
}

inline long Selection::GetStoryLength ( ) {
    long _result = 0;
    HRESULT _hr = get_StoryLength(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum WdLanguageID Selection::GetLanguageID ( ) {
    enum WdLanguageID _result;
    HRESULT _hr = get_LanguageID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Selection::PutLanguageID ( enum WdLanguageID prop ) {
    HRESULT _hr = put_LanguageID(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdLanguageID Selection::GetLanguageIDFarEast ( ) {
    enum WdLanguageID _result;
    HRESULT _hr = get_LanguageIDFarEast(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Selection::PutLanguageIDFarEast ( enum WdLanguageID prop ) {
    HRESULT _hr = put_LanguageIDFarEast(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdLanguageID Selection::GetLanguageIDOther ( ) {
    enum WdLanguageID _result;
    HRESULT _hr = get_LanguageIDOther(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Selection::PutLanguageIDOther ( enum WdLanguageID prop ) {
    HRESULT _hr = put_LanguageIDOther(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HyperlinksPtr Selection::GetHyperlinks ( ) {
    struct Hyperlinks * _result = 0;
    HRESULT _hr = get_Hyperlinks(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HyperlinksPtr(_result, false);
}

inline ColumnsPtr Selection::GetColumns ( ) {
    struct Columns * _result = 0;
    HRESULT _hr = get_Columns(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ColumnsPtr(_result, false);
}

inline RowsPtr Selection::GetRows ( ) {
    struct Rows * _result = 0;
    HRESULT _hr = get_Rows(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RowsPtr(_result, false);
}

inline HeaderFooterPtr Selection::GetHeaderFooter ( ) {
    struct HeaderFooter * _result = 0;
    HRESULT _hr = get_HeaderFooter(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HeaderFooterPtr(_result, false);
}

inline VARIANT_BOOL Selection::GetIsEndOfRowMark ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IsEndOfRowMark(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Selection::GetBookmarkID ( ) {
    long _result = 0;
    HRESULT _hr = get_BookmarkID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Selection::GetPreviousBookmarkID ( ) {
    long _result = 0;
    HRESULT _hr = get_PreviousBookmarkID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline FindPtr Selection::GetFind ( ) {
    struct Find * _result = 0;
    HRESULT _hr = get_Find(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FindPtr(_result, false);
}

inline RangePtr Selection::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline _variant_t Selection::GetInformation ( enum WdInformation Type ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Information(Type, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline enum WdSelectionFlags Selection::GetFlags ( ) {
    enum WdSelectionFlags _result;
    HRESULT _hr = get_Flags(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Selection::PutFlags ( enum WdSelectionFlags prop ) {
    HRESULT _hr = put_Flags(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Selection::GetActive ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Active(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL Selection::GetStartIsActive ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_StartIsActive(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Selection::PutStartIsActive ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_StartIsActive(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Selection::GetIPAtEndOfLine ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IPAtEndOfLine(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL Selection::GetExtendMode ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ExtendMode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Selection::PutExtendMode ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ExtendMode(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL Selection::GetColumnSelectMode ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ColumnSelectMode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Selection::PutColumnSelectMode ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ColumnSelectMode(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdTextOrientation Selection::GetOrientation ( ) {
    enum WdTextOrientation _result;
    HRESULT _hr = get_Orientation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Selection::PutOrientation ( enum WdTextOrientation prop ) {
    HRESULT _hr = put_Orientation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline InlineShapesPtr Selection::GetInlineShapes ( ) {
    struct InlineShapes * _result = 0;
    HRESULT _hr = get_InlineShapes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InlineShapesPtr(_result, false);
}

inline _ApplicationPtr Selection::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Selection::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Selection::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline _DocumentPtr Selection::GetDocument ( ) {
    struct _Document * _result = 0;
    HRESULT _hr = get_Document(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _DocumentPtr(_result, false);
}

inline ShapeRangePtr Selection::GetShapeRange ( ) {
    struct ShapeRange * _result = 0;
    HRESULT _hr = get_ShapeRange(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapeRangePtr(_result, false);
}

inline HRESULT Selection::Select ( ) {
    HRESULT _hr = raw_Select();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::SetRange ( long Start, long End ) {
    HRESULT _hr = raw_SetRange(Start, End);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::Collapse ( VARIANT * Direction ) {
    HRESULT _hr = raw_Collapse(Direction);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::InsertBefore ( _bstr_t Text ) {
    HRESULT _hr = raw_InsertBefore(Text);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::InsertAfter ( _bstr_t Text ) {
    HRESULT _hr = raw_InsertAfter(Text);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline RangePtr Selection::Next ( VARIANT * Unit, VARIANT * Count ) {
    struct Range * _result = 0;
    HRESULT _hr = raw_Next(Unit, Count, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline RangePtr Selection::Previous ( VARIANT * Unit, VARIANT * Count ) {
    struct Range * _result = 0;
    HRESULT _hr = raw_Previous(Unit, Count, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline long Selection::StartOf ( VARIANT * Unit, VARIANT * Extend ) {
    long _result = 0;
    HRESULT _hr = raw_StartOf(Unit, Extend, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Selection::EndOf ( VARIANT * Unit, VARIANT * Extend ) {
    long _result = 0;
    HRESULT _hr = raw_EndOf(Unit, Extend, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Selection::Move ( VARIANT * Unit, VARIANT * Count ) {
    long _result = 0;
    HRESULT _hr = raw_Move(Unit, Count, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Selection::MoveStart ( VARIANT * Unit, VARIANT * Count ) {
    long _result = 0;
    HRESULT _hr = raw_MoveStart(Unit, Count, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Selection::MoveEnd ( VARIANT * Unit, VARIANT * Count ) {
    long _result = 0;
    HRESULT _hr = raw_MoveEnd(Unit, Count, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Selection::MoveWhile ( VARIANT * Cset, VARIANT * Count ) {
    long _result = 0;
    HRESULT _hr = raw_MoveWhile(Cset, Count, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Selection::MoveStartWhile ( VARIANT * Cset, VARIANT * Count ) {
    long _result = 0;
    HRESULT _hr = raw_MoveStartWhile(Cset, Count, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Selection::MoveEndWhile ( VARIANT * Cset, VARIANT * Count ) {
    long _result = 0;
    HRESULT _hr = raw_MoveEndWhile(Cset, Count, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Selection::MoveUntil ( VARIANT * Cset, VARIANT * Count ) {
    long _result = 0;
    HRESULT _hr = raw_MoveUntil(Cset, Count, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Selection::MoveStartUntil ( VARIANT * Cset, VARIANT * Count ) {
    long _result = 0;
    HRESULT _hr = raw_MoveStartUntil(Cset, Count, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Selection::MoveEndUntil ( VARIANT * Cset, VARIANT * Count ) {
    long _result = 0;
    HRESULT _hr = raw_MoveEndUntil(Cset, Count, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT Selection::Cut ( ) {
    HRESULT _hr = raw_Cut();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::Copy ( ) {
    HRESULT _hr = raw_Copy();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::Paste ( ) {
    HRESULT _hr = raw_Paste();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::InsertBreak ( VARIANT * Type ) {
    HRESULT _hr = raw_InsertBreak(Type);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::InsertFile ( _bstr_t FileName, VARIANT * Range, VARIANT * ConfirmConversions, VARIANT * Link, VARIANT * Attachment ) {
    HRESULT _hr = raw_InsertFile(FileName, Range, ConfirmConversions, Link, Attachment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL Selection::InStory ( struct Range * Range ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_InStory(Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL Selection::InRange ( struct Range * Range ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_InRange(Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Selection::Delete ( VARIANT * Unit, VARIANT * Count ) {
    long _result = 0;
    HRESULT _hr = raw_Delete(Unit, Count, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Selection::Expand ( VARIANT * Unit ) {
    long _result = 0;
    HRESULT _hr = raw_Expand(Unit, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT Selection::InsertParagraph ( ) {
    HRESULT _hr = raw_InsertParagraph();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::InsertParagraphAfter ( ) {
    HRESULT _hr = raw_InsertParagraphAfter();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline TablePtr Selection::ConvertToTableOld ( VARIANT * Separator, VARIANT * NumRows, VARIANT * NumColumns, VARIANT * InitialColumnWidth, VARIANT * Format, VARIANT * ApplyBorders, VARIANT * ApplyShading, VARIANT * ApplyFont, VARIANT * ApplyColor, VARIANT * ApplyHeadingRows, VARIANT * ApplyLastRow, VARIANT * ApplyFirstColumn, VARIANT * ApplyLastColumn, VARIANT * AutoFit ) {
    struct Table * _result = 0;
    HRESULT _hr = raw_ConvertToTableOld(Separator, NumRows, NumColumns, InitialColumnWidth, Format, ApplyBorders, ApplyShading, ApplyFont, ApplyColor, ApplyHeadingRows, ApplyLastRow, ApplyFirstColumn, ApplyLastColumn, AutoFit, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TablePtr(_result, false);
}

inline HRESULT Selection::InsertDateTimeOld ( VARIANT * DateTimeFormat, VARIANT * InsertAsField, VARIANT * InsertAsFullWidth ) {
    HRESULT _hr = raw_InsertDateTimeOld(DateTimeFormat, InsertAsField, InsertAsFullWidth);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::InsertSymbol ( long CharacterNumber, VARIANT * Font, VARIANT * Unicode, VARIANT * Bias ) {
    HRESULT _hr = raw_InsertSymbol(CharacterNumber, Font, Unicode, Bias);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::InsertCrossReference_2002 ( VARIANT * ReferenceType, enum WdReferenceKind ReferenceKind, VARIANT * ReferenceItem, VARIANT * InsertAsHyperlink, VARIANT * IncludePosition ) {
    HRESULT _hr = raw_InsertCrossReference_2002(ReferenceType, ReferenceKind, ReferenceItem, InsertAsHyperlink, IncludePosition);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::InsertCaptionXP ( VARIANT * Label, VARIANT * Title, VARIANT * TitleAutoText, VARIANT * Position ) {
    HRESULT _hr = raw_InsertCaptionXP(Label, Title, TitleAutoText, Position);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::CopyAsPicture ( ) {
    HRESULT _hr = raw_CopyAsPicture();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::SortOld ( VARIANT * ExcludeHeader, VARIANT * FieldNumber, VARIANT * SortFieldType, VARIANT * SortOrder, VARIANT * FieldNumber2, VARIANT * SortFieldType2, VARIANT * SortOrder2, VARIANT * FieldNumber3, VARIANT * SortFieldType3, VARIANT * SortOrder3, VARIANT * SortColumn, VARIANT * Separator, VARIANT * CaseSensitive, VARIANT * LanguageID ) {
    HRESULT _hr = raw_SortOld(ExcludeHeader, FieldNumber, SortFieldType, SortOrder, FieldNumber2, SortFieldType2, SortOrder2, FieldNumber3, SortFieldType3, SortOrder3, SortColumn, Separator, CaseSensitive, LanguageID);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::SortAscending ( ) {
    HRESULT _hr = raw_SortAscending();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::SortDescending ( ) {
    HRESULT _hr = raw_SortDescending();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL Selection::IsEqual ( struct Range * Range ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_IsEqual(Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline float Selection::Calculate ( ) {
    float _result = 0;
    HRESULT _hr = raw_Calculate(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline RangePtr Selection::GoTo ( VARIANT * What, VARIANT * Which, VARIANT * Count, VARIANT * Name ) {
    struct Range * _result = 0;
    HRESULT _hr = raw_GoTo(What, Which, Count, Name, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline RangePtr Selection::GoToNext ( enum WdGoToItem What ) {
    struct Range * _result = 0;
    HRESULT _hr = raw_GoToNext(What, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline RangePtr Selection::GoToPrevious ( enum WdGoToItem What ) {
    struct Range * _result = 0;
    HRESULT _hr = raw_GoToPrevious(What, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline HRESULT Selection::PasteSpecial ( VARIANT * IconIndex, VARIANT * Link, VARIANT * Placement, VARIANT * DisplayAsIcon, VARIANT * DataType, VARIANT * IconFileName, VARIANT * IconLabel ) {
    HRESULT _hr = raw_PasteSpecial(IconIndex, Link, Placement, DisplayAsIcon, DataType, IconFileName, IconLabel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline FieldPtr Selection::PreviousField ( ) {
    struct Field * _result = 0;
    HRESULT _hr = raw_PreviousField(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FieldPtr(_result, false);
}

inline FieldPtr Selection::NextField ( ) {
    struct Field * _result = 0;
    HRESULT _hr = raw_NextField(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FieldPtr(_result, false);
}

inline HRESULT Selection::InsertParagraphBefore ( ) {
    HRESULT _hr = raw_InsertParagraphBefore();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::InsertCells ( VARIANT * ShiftCells ) {
    HRESULT _hr = raw_InsertCells(ShiftCells);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::Extend ( VARIANT * Character ) {
    HRESULT _hr = raw_Extend(Character);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::Shrink ( ) {
    HRESULT _hr = raw_Shrink();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long Selection::MoveLeft ( VARIANT * Unit, VARIANT * Count, VARIANT * Extend ) {
    long _result = 0;
    HRESULT _hr = raw_MoveLeft(Unit, Count, Extend, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Selection::MoveRight ( VARIANT * Unit, VARIANT * Count, VARIANT * Extend ) {
    long _result = 0;
    HRESULT _hr = raw_MoveRight(Unit, Count, Extend, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Selection::MoveUp ( VARIANT * Unit, VARIANT * Count, VARIANT * Extend ) {
    long _result = 0;
    HRESULT _hr = raw_MoveUp(Unit, Count, Extend, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Selection::MoveDown ( VARIANT * Unit, VARIANT * Count, VARIANT * Extend ) {
    long _result = 0;
    HRESULT _hr = raw_MoveDown(Unit, Count, Extend, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Selection::HomeKey ( VARIANT * Unit, VARIANT * Extend ) {
    long _result = 0;
    HRESULT _hr = raw_HomeKey(Unit, Extend, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Selection::EndKey ( VARIANT * Unit, VARIANT * Extend ) {
    long _result = 0;
    HRESULT _hr = raw_EndKey(Unit, Extend, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT Selection::EscapeKey ( ) {
    HRESULT _hr = raw_EscapeKey();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::TypeText ( _bstr_t Text ) {
    HRESULT _hr = raw_TypeText(Text);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::CopyFormat ( ) {
    HRESULT _hr = raw_CopyFormat();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::PasteFormat ( ) {
    HRESULT _hr = raw_PasteFormat();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::TypeParagraph ( ) {
    HRESULT _hr = raw_TypeParagraph();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::TypeBackspace ( ) {
    HRESULT _hr = raw_TypeBackspace();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::NextSubdocument ( ) {
    HRESULT _hr = raw_NextSubdocument();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::PreviousSubdocument ( ) {
    HRESULT _hr = raw_PreviousSubdocument();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::SelectColumn ( ) {
    HRESULT _hr = raw_SelectColumn();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::SelectCurrentFont ( ) {
    HRESULT _hr = raw_SelectCurrentFont();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::SelectCurrentAlignment ( ) {
    HRESULT _hr = raw_SelectCurrentAlignment();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::SelectCurrentSpacing ( ) {
    HRESULT _hr = raw_SelectCurrentSpacing();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::SelectCurrentIndent ( ) {
    HRESULT _hr = raw_SelectCurrentIndent();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::SelectCurrentTabs ( ) {
    HRESULT _hr = raw_SelectCurrentTabs();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::SelectCurrentColor ( ) {
    HRESULT _hr = raw_SelectCurrentColor();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::CreateTextbox ( ) {
    HRESULT _hr = raw_CreateTextbox();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::WholeStory ( ) {
    HRESULT _hr = raw_WholeStory();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::SelectRow ( ) {
    HRESULT _hr = raw_SelectRow();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::SplitTable ( ) {
    HRESULT _hr = raw_SplitTable();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::InsertRows ( VARIANT * NumRows ) {
    HRESULT _hr = raw_InsertRows(NumRows);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::InsertColumns ( ) {
    HRESULT _hr = raw_InsertColumns();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::InsertFormula ( VARIANT * Formula, VARIANT * NumberFormat ) {
    HRESULT _hr = raw_InsertFormula(Formula, NumberFormat);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline RevisionPtr Selection::NextRevision ( VARIANT * Wrap ) {
    struct Revision * _result = 0;
    HRESULT _hr = raw_NextRevision(Wrap, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RevisionPtr(_result, false);
}

inline RevisionPtr Selection::PreviousRevision ( VARIANT * Wrap ) {
    struct Revision * _result = 0;
    HRESULT _hr = raw_PreviousRevision(Wrap, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RevisionPtr(_result, false);
}

inline HRESULT Selection::PasteAsNestedTable ( ) {
    HRESULT _hr = raw_PasteAsNestedTable();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline AutoTextEntryPtr Selection::CreateAutoTextEntry ( _bstr_t Name, _bstr_t StyleName ) {
    struct AutoTextEntry * _result = 0;
    HRESULT _hr = raw_CreateAutoTextEntry(Name, StyleName, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return AutoTextEntryPtr(_result, false);
}

inline HRESULT Selection::DetectLanguage ( ) {
    HRESULT _hr = raw_DetectLanguage();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::SelectCell ( ) {
    HRESULT _hr = raw_SelectCell();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::InsertRowsBelow ( VARIANT * NumRows ) {
    HRESULT _hr = raw_InsertRowsBelow(NumRows);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::InsertColumnsRight ( ) {
    HRESULT _hr = raw_InsertColumnsRight();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::InsertRowsAbove ( VARIANT * NumRows ) {
    HRESULT _hr = raw_InsertRowsAbove(NumRows);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::RtlRun ( ) {
    HRESULT _hr = raw_RtlRun();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::LtrRun ( ) {
    HRESULT _hr = raw_LtrRun();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::BoldRun ( ) {
    HRESULT _hr = raw_BoldRun();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::ItalicRun ( ) {
    HRESULT _hr = raw_ItalicRun();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::RtlPara ( ) {
    HRESULT _hr = raw_RtlPara();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::LtrPara ( ) {
    HRESULT _hr = raw_LtrPara();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::InsertDateTime ( VARIANT * DateTimeFormat, VARIANT * InsertAsField, VARIANT * InsertAsFullWidth, VARIANT * DateLanguage, VARIANT * CalendarType ) {
    HRESULT _hr = raw_InsertDateTime(DateTimeFormat, InsertAsField, InsertAsFullWidth, DateLanguage, CalendarType);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::Sort2000 ( VARIANT * ExcludeHeader, VARIANT * FieldNumber, VARIANT * SortFieldType, VARIANT * SortOrder, VARIANT * FieldNumber2, VARIANT * SortFieldType2, VARIANT * SortOrder2, VARIANT * FieldNumber3, VARIANT * SortFieldType3, VARIANT * SortOrder3, VARIANT * SortColumn, VARIANT * Separator, VARIANT * CaseSensitive, VARIANT * BidiSort, VARIANT * IgnoreThe, VARIANT * IgnoreKashida, VARIANT * IgnoreDiacritics, VARIANT * IgnoreHe, VARIANT * LanguageID ) {
    HRESULT _hr = raw_Sort2000(ExcludeHeader, FieldNumber, SortFieldType, SortOrder, FieldNumber2, SortFieldType2, SortOrder2, FieldNumber3, SortFieldType3, SortOrder3, SortColumn, Separator, CaseSensitive, BidiSort, IgnoreThe, IgnoreKashida, IgnoreDiacritics, IgnoreHe, LanguageID);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline TablePtr Selection::ConvertToTable ( VARIANT * Separator, VARIANT * NumRows, VARIANT * NumColumns, VARIANT * InitialColumnWidth, VARIANT * Format, VARIANT * ApplyBorders, VARIANT * ApplyShading, VARIANT * ApplyFont, VARIANT * ApplyColor, VARIANT * ApplyHeadingRows, VARIANT * ApplyLastRow, VARIANT * ApplyFirstColumn, VARIANT * ApplyLastColumn, VARIANT * AutoFit, VARIANT * AutoFitBehavior, VARIANT * DefaultTableBehavior ) {
    struct Table * _result = 0;
    HRESULT _hr = raw_ConvertToTable(Separator, NumRows, NumColumns, InitialColumnWidth, Format, ApplyBorders, ApplyShading, ApplyFont, ApplyColor, ApplyHeadingRows, ApplyLastRow, ApplyFirstColumn, ApplyLastColumn, AutoFit, AutoFitBehavior, DefaultTableBehavior, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TablePtr(_result, false);
}

inline long Selection::GetNoProofing ( ) {
    long _result = 0;
    HRESULT _hr = get_NoProofing(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Selection::PutNoProofing ( long prop ) {
    HRESULT _hr = put_NoProofing(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline TablesPtr Selection::GetTopLevelTables ( ) {
    struct Tables * _result = 0;
    HRESULT _hr = get_TopLevelTables(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TablesPtr(_result, false);
}

inline VARIANT_BOOL Selection::GetLanguageDetected ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_LanguageDetected(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Selection::PutLanguageDetected ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_LanguageDetected(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Selection::GetFitTextWidth ( ) {
    float _result = 0;
    HRESULT _hr = get_FitTextWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Selection::PutFitTextWidth ( float prop ) {
    HRESULT _hr = put_FitTextWidth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT Selection::ClearFormatting ( ) {
    HRESULT _hr = raw_ClearFormatting();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::PasteAppendTable ( ) {
    HRESULT _hr = raw_PasteAppendTable();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HTMLDivisionsPtr Selection::GetHTMLDivisions ( ) {
    struct HTMLDivisions * _result = 0;
    HRESULT _hr = get_HTMLDivisions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HTMLDivisionsPtr(_result, false);
}

inline SmartTagsPtr Selection::GetSmartTags ( ) {
    struct SmartTags * _result = 0;
    HRESULT _hr = get_SmartTags(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SmartTagsPtr(_result, false);
}

inline ShapeRangePtr Selection::GetChildShapeRange ( ) {
    struct ShapeRange * _result = 0;
    HRESULT _hr = get_ChildShapeRange(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapeRangePtr(_result, false);
}

inline VARIANT_BOOL Selection::GetHasChildShapeRange ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HasChildShapeRange(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline FootnoteOptionsPtr Selection::GetFootnoteOptions ( ) {
    struct FootnoteOptions * _result = 0;
    HRESULT _hr = get_FootnoteOptions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FootnoteOptionsPtr(_result, false);
}

inline EndnoteOptionsPtr Selection::GetEndnoteOptions ( ) {
    struct EndnoteOptions * _result = 0;
    HRESULT _hr = get_EndnoteOptions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return EndnoteOptionsPtr(_result, false);
}

inline HRESULT Selection::ToggleCharacterCode ( ) {
    HRESULT _hr = raw_ToggleCharacterCode();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::PasteAndFormat ( enum WdRecoveryType Type ) {
    HRESULT _hr = raw_PasteAndFormat(Type);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::PasteExcelTable ( VARIANT_BOOL LinkedToExcel, VARIANT_BOOL WordFormatting, VARIANT_BOOL RTF ) {
    HRESULT _hr = raw_PasteExcelTable(LinkedToExcel, WordFormatting, RTF);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::ShrinkDiscontiguousSelection ( ) {
    HRESULT _hr = raw_ShrinkDiscontiguousSelection();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::InsertStyleSeparator ( ) {
    HRESULT _hr = raw_InsertStyleSeparator();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::Sort ( VARIANT * ExcludeHeader, VARIANT * FieldNumber, VARIANT * SortFieldType, VARIANT * SortOrder, VARIANT * FieldNumber2, VARIANT * SortFieldType2, VARIANT * SortOrder2, VARIANT * FieldNumber3, VARIANT * SortFieldType3, VARIANT * SortOrder3, VARIANT * SortColumn, VARIANT * Separator, VARIANT * CaseSensitive, VARIANT * BidiSort, VARIANT * IgnoreThe, VARIANT * IgnoreKashida, VARIANT * IgnoreDiacritics, VARIANT * IgnoreHe, VARIANT * LanguageID, VARIANT * SubFieldNumber, VARIANT * SubFieldNumber2, VARIANT * SubFieldNumber3 ) {
    HRESULT _hr = raw_Sort(ExcludeHeader, FieldNumber, SortFieldType, SortOrder, FieldNumber2, SortFieldType2, SortOrder2, FieldNumber3, SortFieldType3, SortOrder3, SortColumn, Separator, CaseSensitive, BidiSort, IgnoreThe, IgnoreKashida, IgnoreDiacritics, IgnoreHe, LanguageID, SubFieldNumber, SubFieldNumber2, SubFieldNumber3);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline XMLNodesPtr Selection::GetXMLNodes ( ) {
    struct XMLNodes * _result = 0;
    HRESULT _hr = get_XMLNodes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLNodesPtr(_result, false);
}

inline XMLNodePtr Selection::GetXMLParentNode ( ) {
    struct XMLNode * _result = 0;
    HRESULT _hr = get_XMLParentNode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLNodePtr(_result, false);
}

inline EditorsPtr Selection::GetEditors ( ) {
    struct Editors * _result = 0;
    HRESULT _hr = get_Editors(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return EditorsPtr(_result, false);
}

inline _bstr_t Selection::GetXML ( VARIANT_BOOL DataOnly ) {
    BSTR _result = 0;
    HRESULT _hr = get_XML(DataOnly, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _variant_t Selection::GetEnhMetaFileBits ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_EnhMetaFileBits(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline RangePtr Selection::GoToEditableRange ( VARIANT * EditorID ) {
    struct Range * _result = 0;
    HRESULT _hr = raw_GoToEditableRange(EditorID, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline HRESULT Selection::InsertXML ( _bstr_t XML, VARIANT * Transform ) {
    HRESULT _hr = raw_InsertXML(XML, Transform);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::InsertCaption ( VARIANT * Label, VARIANT * Title, VARIANT * TitleAutoText, VARIANT * Position, VARIANT * ExcludeLabel ) {
    HRESULT _hr = raw_InsertCaption(Label, Title, TitleAutoText, Position, ExcludeLabel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::InsertCrossReference ( VARIANT * ReferenceType, enum WdReferenceKind ReferenceKind, VARIANT * ReferenceItem, VARIANT * InsertAsHyperlink, VARIANT * IncludePosition, VARIANT * SeparateNumbers, VARIANT * SeparatorString ) {
    HRESULT _hr = raw_InsertCrossReference(ReferenceType, ReferenceKind, ReferenceItem, InsertAsHyperlink, IncludePosition, SeparateNumbers, SeparatorString);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline OMathsPtr Selection::GetOMaths ( ) {
    struct OMaths * _result = 0;
    HRESULT _hr = get_OMaths(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathsPtr(_result, false);
}

inline _bstr_t Selection::GetWordOpenXML ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_WordOpenXML(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline HRESULT Selection::ClearParagraphStyle ( ) {
    HRESULT _hr = raw_ClearParagraphStyle();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::ClearCharacterAllFormatting ( ) {
    HRESULT _hr = raw_ClearCharacterAllFormatting();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::ClearCharacterStyle ( ) {
    HRESULT _hr = raw_ClearCharacterStyle();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::ClearCharacterDirectFormatting ( ) {
    HRESULT _hr = raw_ClearCharacterDirectFormatting();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline ContentControlsPtr Selection::GetContentControls ( ) {
    struct ContentControls * _result = 0;
    HRESULT _hr = get_ContentControls(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ContentControlsPtr(_result, false);
}

inline ContentControlPtr Selection::GetParentContentControl ( ) {
    struct ContentControl * _result = 0;
    HRESULT _hr = get_ParentContentControl(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ContentControlPtr(_result, false);
}

inline HRESULT Selection::ExportAsFixedFormat ( _bstr_t OutputFileName, enum WdExportFormat ExportFormat, VARIANT_BOOL OpenAfterExport, enum WdExportOptimizeFor OptimizeFor, VARIANT_BOOL ExportCurrentPage, enum WdExportItem Item, VARIANT_BOOL IncludeDocProps, VARIANT_BOOL KeepIRM, enum WdExportCreateBookmarks CreateBookmarks, VARIANT_BOOL DocStructureTags, VARIANT_BOOL BitmapMissingFonts, VARIANT_BOOL UseISO19005_1, VARIANT * FixedFormatExtClassPtr ) {
    HRESULT _hr = raw_ExportAsFixedFormat(OutputFileName, ExportFormat, OpenAfterExport, OptimizeFor, ExportCurrentPage, Item, IncludeDocProps, KeepIRM, CreateBookmarks, DocStructureTags, BitmapMissingFonts, UseISO19005_1, FixedFormatExtClassPtr);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::ReadingModeGrowFont ( ) {
    HRESULT _hr = raw_ReadingModeGrowFont();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::ReadingModeShrinkFont ( ) {
    HRESULT _hr = raw_ReadingModeShrinkFont();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::ClearParagraphAllFormatting ( ) {
    HRESULT _hr = raw_ClearParagraphAllFormatting();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::ClearParagraphDirectFormatting ( ) {
    HRESULT _hr = raw_ClearParagraphDirectFormatting();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Selection::InsertNewPage ( ) {
    HRESULT _hr = raw_InsertNewPage();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface IApplicationEvents2 wrapper method implementations
//

inline HRESULT IApplicationEvents2::Startup ( ) {
    HRESULT _hr = raw_Startup();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents2::Quit ( ) {
    HRESULT _hr = raw_Quit();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents2::DocumentChange ( ) {
    HRESULT _hr = raw_DocumentChange();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents2::DocumentOpen ( struct _Document * Doc ) {
    HRESULT _hr = raw_DocumentOpen(Doc);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents2::DocumentBeforeClose ( struct _Document * Doc, VARIANT_BOOL * Cancel ) {
    HRESULT _hr = raw_DocumentBeforeClose(Doc, Cancel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents2::DocumentBeforePrint ( struct _Document * Doc, VARIANT_BOOL * Cancel ) {
    HRESULT _hr = raw_DocumentBeforePrint(Doc, Cancel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents2::DocumentBeforeSave ( struct _Document * Doc, VARIANT_BOOL * SaveAsUI, VARIANT_BOOL * Cancel ) {
    HRESULT _hr = raw_DocumentBeforeSave(Doc, SaveAsUI, Cancel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents2::NewDocument ( struct _Document * Doc ) {
    HRESULT _hr = raw_NewDocument(Doc);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents2::WindowActivate ( struct _Document * Doc, struct Window * Wn ) {
    HRESULT _hr = raw_WindowActivate(Doc, Wn);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents2::WindowDeactivate ( struct _Document * Doc, struct Window * Wn ) {
    HRESULT _hr = raw_WindowDeactivate(Doc, Wn);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents2::WindowSelectionChange ( struct Selection * Sel ) {
    HRESULT _hr = raw_WindowSelectionChange(Sel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents2::WindowBeforeRightClick ( struct Selection * Sel, VARIANT_BOOL * Cancel ) {
    HRESULT _hr = raw_WindowBeforeRightClick(Sel, Cancel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents2::WindowBeforeDoubleClick ( struct Selection * Sel, VARIANT_BOOL * Cancel ) {
    HRESULT _hr = raw_WindowBeforeDoubleClick(Sel, Cancel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface IApplicationEvents3 wrapper method implementations
//

inline HRESULT IApplicationEvents3::Startup ( ) {
    HRESULT _hr = raw_Startup();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents3::Quit ( ) {
    HRESULT _hr = raw_Quit();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents3::DocumentChange ( ) {
    HRESULT _hr = raw_DocumentChange();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents3::DocumentOpen ( struct _Document * Doc ) {
    HRESULT _hr = raw_DocumentOpen(Doc);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents3::DocumentBeforeClose ( struct _Document * Doc, VARIANT_BOOL * Cancel ) {
    HRESULT _hr = raw_DocumentBeforeClose(Doc, Cancel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents3::DocumentBeforePrint ( struct _Document * Doc, VARIANT_BOOL * Cancel ) {
    HRESULT _hr = raw_DocumentBeforePrint(Doc, Cancel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents3::DocumentBeforeSave ( struct _Document * Doc, VARIANT_BOOL * SaveAsUI, VARIANT_BOOL * Cancel ) {
    HRESULT _hr = raw_DocumentBeforeSave(Doc, SaveAsUI, Cancel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents3::NewDocument ( struct _Document * Doc ) {
    HRESULT _hr = raw_NewDocument(Doc);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents3::WindowActivate ( struct _Document * Doc, struct Window * Wn ) {
    HRESULT _hr = raw_WindowActivate(Doc, Wn);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents3::WindowDeactivate ( struct _Document * Doc, struct Window * Wn ) {
    HRESULT _hr = raw_WindowDeactivate(Doc, Wn);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents3::WindowSelectionChange ( struct Selection * Sel ) {
    HRESULT _hr = raw_WindowSelectionChange(Sel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents3::WindowBeforeRightClick ( struct Selection * Sel, VARIANT_BOOL * Cancel ) {
    HRESULT _hr = raw_WindowBeforeRightClick(Sel, Cancel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents3::WindowBeforeDoubleClick ( struct Selection * Sel, VARIANT_BOOL * Cancel ) {
    HRESULT _hr = raw_WindowBeforeDoubleClick(Sel, Cancel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents3::EPostagePropertyDialog ( struct _Document * Doc ) {
    HRESULT _hr = raw_EPostagePropertyDialog(Doc);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents3::EPostageInsert ( struct _Document * Doc ) {
    HRESULT _hr = raw_EPostageInsert(Doc);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents3::MailMergeAfterMerge ( struct _Document * Doc, struct _Document * DocResult ) {
    HRESULT _hr = raw_MailMergeAfterMerge(Doc, DocResult);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents3::MailMergeAfterRecordMerge ( struct _Document * Doc ) {
    HRESULT _hr = raw_MailMergeAfterRecordMerge(Doc);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents3::MailMergeBeforeMerge ( struct _Document * Doc, long StartRecord, long EndRecord, VARIANT_BOOL * Cancel ) {
    HRESULT _hr = raw_MailMergeBeforeMerge(Doc, StartRecord, EndRecord, Cancel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents3::MailMergeBeforeRecordMerge ( struct _Document * Doc, VARIANT_BOOL * Cancel ) {
    HRESULT _hr = raw_MailMergeBeforeRecordMerge(Doc, Cancel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents3::MailMergeDataSourceLoad ( struct _Document * Doc ) {
    HRESULT _hr = raw_MailMergeDataSourceLoad(Doc);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents3::MailMergeDataSourceValidate ( struct _Document * Doc, VARIANT_BOOL * Handled ) {
    HRESULT _hr = raw_MailMergeDataSourceValidate(Doc, Handled);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents3::MailMergeWizardSendToCustom ( struct _Document * Doc ) {
    HRESULT _hr = raw_MailMergeWizardSendToCustom(Doc);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents3::MailMergeWizardStateChange ( struct _Document * Doc, int * FromState, int * ToState, VARIANT_BOOL * Handled ) {
    HRESULT _hr = raw_MailMergeWizardStateChange(Doc, FromState, ToState, Handled);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents3::WindowSize ( struct _Document * Doc, struct Window * Wn ) {
    HRESULT _hr = raw_WindowSize(Doc, Wn);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface HeadersFooters wrapper method implementations
//

inline _ApplicationPtr HeadersFooters::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long HeadersFooters::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr HeadersFooters::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline IUnknownPtr HeadersFooters::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long HeadersFooters::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HeaderFooterPtr HeadersFooters::Item ( enum WdHeaderFooterIndex Index ) {
    struct HeaderFooter * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HeaderFooterPtr(_result, false);
}

//
// interface HeaderFooter wrapper method implementations
//

inline _ApplicationPtr HeaderFooter::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long HeaderFooter::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr HeaderFooter::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline RangePtr HeaderFooter::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline enum WdHeaderFooterIndex HeaderFooter::GetIndex ( ) {
    enum WdHeaderFooterIndex _result;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL HeaderFooter::GetIsHeader ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IsHeader(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL HeaderFooter::GetExists ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Exists(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void HeaderFooter::PutExists ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Exists(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline PageNumbersPtr HeaderFooter::GetPageNumbers ( ) {
    struct PageNumbers * _result = 0;
    HRESULT _hr = get_PageNumbers(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return PageNumbersPtr(_result, false);
}

inline VARIANT_BOOL HeaderFooter::GetLinkToPrevious ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_LinkToPrevious(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void HeaderFooter::PutLinkToPrevious ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_LinkToPrevious(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline ShapesPtr HeaderFooter::GetShapes ( ) {
    struct Shapes * _result = 0;
    HRESULT _hr = get_Shapes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapesPtr(_result, false);
}

//
// interface ListLevel wrapper method implementations
//

inline long ListLevel::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _bstr_t ListLevel::GetNumberFormat ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_NumberFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void ListLevel::PutNumberFormat ( _bstr_t prop ) {
    HRESULT _hr = put_NumberFormat(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdTrailingCharacter ListLevel::GetTrailingCharacter ( ) {
    enum WdTrailingCharacter _result;
    HRESULT _hr = get_TrailingCharacter(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ListLevel::PutTrailingCharacter ( enum WdTrailingCharacter prop ) {
    HRESULT _hr = put_TrailingCharacter(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdListNumberStyle ListLevel::GetNumberStyle ( ) {
    enum WdListNumberStyle _result;
    HRESULT _hr = get_NumberStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ListLevel::PutNumberStyle ( enum WdListNumberStyle prop ) {
    HRESULT _hr = put_NumberStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float ListLevel::GetNumberPosition ( ) {
    float _result = 0;
    HRESULT _hr = get_NumberPosition(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ListLevel::PutNumberPosition ( float prop ) {
    HRESULT _hr = put_NumberPosition(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdListLevelAlignment ListLevel::GetAlignment ( ) {
    enum WdListLevelAlignment _result;
    HRESULT _hr = get_Alignment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ListLevel::PutAlignment ( enum WdListLevelAlignment prop ) {
    HRESULT _hr = put_Alignment(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float ListLevel::GetTextPosition ( ) {
    float _result = 0;
    HRESULT _hr = get_TextPosition(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ListLevel::PutTextPosition ( float prop ) {
    HRESULT _hr = put_TextPosition(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float ListLevel::GetTabPosition ( ) {
    float _result = 0;
    HRESULT _hr = get_TabPosition(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ListLevel::PutTabPosition ( float prop ) {
    HRESULT _hr = put_TabPosition(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL ListLevel::GetResetOnHigherOld ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ResetOnHigherOld(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ListLevel::PutResetOnHigherOld ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ResetOnHigherOld(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long ListLevel::GetStartAt ( ) {
    long _result = 0;
    HRESULT _hr = get_StartAt(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ListLevel::PutStartAt ( long prop ) {
    HRESULT _hr = put_StartAt(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t ListLevel::GetLinkedStyle ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_LinkedStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void ListLevel::PutLinkedStyle ( _bstr_t prop ) {
    HRESULT _hr = put_LinkedStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _FontPtr ListLevel::GetFont ( ) {
    struct _Font * _result = 0;
    HRESULT _hr = get_Font(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _FontPtr(_result, false);
}

inline void ListLevel::PutFont ( struct _Font * prop ) {
    HRESULT _hr = put_Font(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _ApplicationPtr ListLevel::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long ListLevel::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr ListLevel::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long ListLevel::GetResetOnHigher ( ) {
    long _result = 0;
    HRESULT _hr = get_ResetOnHigher(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ListLevel::PutResetOnHigher ( long prop ) {
    HRESULT _hr = put_ResetOnHigher(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline InlineShapePtr ListLevel::GetPictureBullet ( ) {
    struct InlineShape * _result = 0;
    HRESULT _hr = get_PictureBullet(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InlineShapePtr(_result, false);
}

inline InlineShapePtr ListLevel::ApplyPictureBullet ( _bstr_t FileName ) {
    struct InlineShape * _result = 0;
    HRESULT _hr = raw_ApplyPictureBullet(FileName, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InlineShapePtr(_result, false);
}

//
// interface ListLevels wrapper method implementations
//

inline IUnknownPtr ListLevels::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long ListLevels::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _ApplicationPtr ListLevels::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long ListLevels::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr ListLevels::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline ListLevelPtr ListLevels::Item ( long Index ) {
    struct ListLevel * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ListLevelPtr(_result, false);
}

//
// interface ListTemplate wrapper method implementations
//

inline _ApplicationPtr ListTemplate::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long ListTemplate::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr ListTemplate::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline VARIANT_BOOL ListTemplate::GetOutlineNumbered ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_OutlineNumbered(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ListTemplate::PutOutlineNumbered ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_OutlineNumbered(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t ListTemplate::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void ListTemplate::PutName ( _bstr_t prop ) {
    HRESULT _hr = put_Name(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline ListLevelsPtr ListTemplate::GetListLevels ( ) {
    struct ListLevels * _result = 0;
    HRESULT _hr = get_ListLevels(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ListLevelsPtr(_result, false);
}

inline ListTemplatePtr ListTemplate::Convert ( VARIANT * Level ) {
    struct ListTemplate * _result = 0;
    HRESULT _hr = raw_Convert(Level, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ListTemplatePtr(_result, false);
}

//
// interface ListTemplates wrapper method implementations
//

inline IUnknownPtr ListTemplates::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long ListTemplates::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _ApplicationPtr ListTemplates::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long ListTemplates::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr ListTemplates::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline ListTemplatePtr ListTemplates::Item ( VARIANT * Index ) {
    struct ListTemplate * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ListTemplatePtr(_result, false);
}

inline ListTemplatePtr ListTemplates::Add ( VARIANT * OutlineNumbered, VARIANT * Name ) {
    struct ListTemplate * _result = 0;
    HRESULT _hr = raw_Add(OutlineNumbered, Name, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ListTemplatePtr(_result, false);
}

//
// interface List wrapper method implementations
//

inline RangePtr List::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline ListParagraphsPtr List::GetListParagraphs ( ) {
    struct ListParagraphs * _result = 0;
    HRESULT _hr = get_ListParagraphs(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ListParagraphsPtr(_result, false);
}

inline VARIANT_BOOL List::GetSingleListTemplate ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SingleListTemplate(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _ApplicationPtr List::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long List::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr List::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline HRESULT List::ConvertNumbersToText ( VARIANT * NumberType ) {
    HRESULT _hr = raw_ConvertNumbersToText(NumberType);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT List::RemoveNumbers ( VARIANT * NumberType ) {
    HRESULT _hr = raw_RemoveNumbers(NumberType);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long List::CountNumberedItems ( VARIANT * NumberType, VARIANT * Level ) {
    long _result = 0;
    HRESULT _hr = raw_CountNumberedItems(NumberType, Level, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT List::ApplyListTemplateOld ( struct ListTemplate * ListTemplate, VARIANT * ContinuePreviousList ) {
    HRESULT _hr = raw_ApplyListTemplateOld(ListTemplate, ContinuePreviousList);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline enum WdContinue List::CanContinuePreviousList ( struct ListTemplate * ListTemplate ) {
    enum WdContinue _result;
    HRESULT _hr = raw_CanContinuePreviousList(ListTemplate, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT List::ApplyListTemplate ( struct ListTemplate * ListTemplate, VARIANT * ContinuePreviousList, VARIANT * DefaultListBehavior ) {
    HRESULT _hr = raw_ApplyListTemplate(ListTemplate, ContinuePreviousList, DefaultListBehavior);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _bstr_t List::GetStyleName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_StyleName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline HRESULT List::ApplyListTemplateWithLevel ( struct ListTemplate * ListTemplate, VARIANT * ContinuePreviousList, VARIANT * DefaultListBehavior, VARIANT * ApplyLevel ) {
    HRESULT _hr = raw_ApplyListTemplateWithLevel(ListTemplate, ContinuePreviousList, DefaultListBehavior, ApplyLevel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Lists wrapper method implementations
//

inline IUnknownPtr Lists::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long Lists::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _ApplicationPtr Lists::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Lists::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Lists::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline ListPtr Lists::Item ( long Index ) {
    struct List * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ListPtr(_result, false);
}

//
// interface ListGallery wrapper method implementations
//

inline ListTemplatesPtr ListGallery::GetListTemplates ( ) {
    struct ListTemplates * _result = 0;
    HRESULT _hr = get_ListTemplates(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ListTemplatesPtr(_result, false);
}

inline _ApplicationPtr ListGallery::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long ListGallery::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr ListGallery::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline VARIANT_BOOL ListGallery::GetModified ( long Index ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Modified(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT ListGallery::Reset ( long Index ) {
    HRESULT _hr = raw_Reset(Index);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface ListGalleries wrapper method implementations
//

inline IUnknownPtr ListGalleries::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long ListGalleries::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _ApplicationPtr ListGalleries::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long ListGalleries::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr ListGalleries::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline ListGalleryPtr ListGalleries::Item ( enum WdListGalleryType Index ) {
    struct ListGallery * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ListGalleryPtr(_result, false);
}

//
// interface Hyperlinks wrapper method implementations
//

inline _ApplicationPtr Hyperlinks::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Hyperlinks::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Hyperlinks::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long Hyperlinks::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IUnknownPtr Hyperlinks::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline HyperlinkPtr Hyperlinks::Item ( VARIANT * Index ) {
    struct Hyperlink * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HyperlinkPtr(_result, false);
}

inline HyperlinkPtr Hyperlinks::_Add ( IDispatch * Anchor, VARIANT * Address, VARIANT * SubAddress ) {
    struct Hyperlink * _result = 0;
    HRESULT _hr = raw__Add(Anchor, Address, SubAddress, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HyperlinkPtr(_result, false);
}

inline HyperlinkPtr Hyperlinks::Add ( IDispatch * Anchor, VARIANT * Address, VARIANT * SubAddress, VARIANT * ScreenTip, VARIANT * TextToDisplay, VARIANT * Target ) {
    struct Hyperlink * _result = 0;
    HRESULT _hr = raw_Add(Anchor, Address, SubAddress, ScreenTip, TextToDisplay, Target, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HyperlinkPtr(_result, false);
}

//
// interface Hyperlink wrapper method implementations
//

inline _ApplicationPtr Hyperlink::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Hyperlink::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Hyperlink::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline _bstr_t Hyperlink::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _bstr_t Hyperlink::GetAddressOld ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_AddressOld(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline enum Office::MsoHyperlinkType Hyperlink::GetType ( ) {
    enum Office::MsoHyperlinkType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline RangePtr Hyperlink::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline ShapePtr Hyperlink::GetShape ( ) {
    struct Shape * _result = 0;
    HRESULT _hr = get_Shape(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline _bstr_t Hyperlink::GetSubAddressOld ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_SubAddressOld(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline VARIANT_BOOL Hyperlink::GetExtraInfoRequired ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ExtraInfoRequired(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT Hyperlink::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Hyperlink::Follow ( VARIANT * NewWindow, VARIANT * AddHistory, VARIANT * ExtraInfo, VARIANT * Method, VARIANT * HeaderInfo ) {
    HRESULT _hr = raw_Follow(NewWindow, AddHistory, ExtraInfo, Method, HeaderInfo);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Hyperlink::AddToFavorites ( ) {
    HRESULT _hr = raw_AddToFavorites();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Hyperlink::CreateNewDocument ( _bstr_t FileName, VARIANT_BOOL EditNow, VARIANT_BOOL Overwrite ) {
    HRESULT _hr = raw_CreateNewDocument(FileName, EditNow, Overwrite);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _bstr_t Hyperlink::GetAddress ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Address(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void Hyperlink::PutAddress ( _bstr_t prop ) {
    HRESULT _hr = put_Address(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t Hyperlink::GetSubAddress ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_SubAddress(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void Hyperlink::PutSubAddress ( _bstr_t prop ) {
    HRESULT _hr = put_SubAddress(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t Hyperlink::GetEmailSubject ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_EmailSubject(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void Hyperlink::PutEmailSubject ( _bstr_t prop ) {
    HRESULT _hr = put_EmailSubject(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t Hyperlink::GetScreenTip ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_ScreenTip(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void Hyperlink::PutScreenTip ( _bstr_t prop ) {
    HRESULT _hr = put_ScreenTip(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t Hyperlink::GetTextToDisplay ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_TextToDisplay(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void Hyperlink::PutTextToDisplay ( _bstr_t prop ) {
    HRESULT _hr = put_TextToDisplay(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t Hyperlink::GetTarget ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Target(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void Hyperlink::PutTarget ( _bstr_t prop ) {
    HRESULT _hr = put_Target(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface Shapes wrapper method implementations
//

inline _ApplicationPtr Shapes::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Shapes::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Shapes::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long Shapes::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IUnknownPtr Shapes::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline ShapePtr Shapes::Item ( VARIANT * Index ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline ShapePtr Shapes::AddCallout ( enum Office::MsoCalloutType Type, float Left, float Top, float Width, float Height, VARIANT * Anchor ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_AddCallout(Type, Left, Top, Width, Height, Anchor, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline ShapePtr Shapes::AddConnector ( enum Office::MsoConnectorType Type, float BeginX, float BeginY, float EndX, float EndY ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_AddConnector(Type, BeginX, BeginY, EndX, EndY, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline ShapePtr Shapes::AddCurve ( VARIANT * SafeArrayOfPoints, VARIANT * Anchor ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_AddCurve(SafeArrayOfPoints, Anchor, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline ShapePtr Shapes::AddLabel ( enum Office::MsoTextOrientation Orientation, float Left, float Top, float Width, float Height, VARIANT * Anchor ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_AddLabel(Orientation, Left, Top, Width, Height, Anchor, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline ShapePtr Shapes::AddLine ( float BeginX, float BeginY, float EndX, float EndY, VARIANT * Anchor ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_AddLine(BeginX, BeginY, EndX, EndY, Anchor, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline ShapePtr Shapes::AddPicture ( _bstr_t FileName, VARIANT * LinkToFile, VARIANT * SaveWithDocument, VARIANT * Left, VARIANT * Top, VARIANT * Width, VARIANT * Height, VARIANT * Anchor ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_AddPicture(FileName, LinkToFile, SaveWithDocument, Left, Top, Width, Height, Anchor, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline ShapePtr Shapes::AddPolyline ( VARIANT * SafeArrayOfPoints, VARIANT * Anchor ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_AddPolyline(SafeArrayOfPoints, Anchor, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline ShapePtr Shapes::AddShape ( long Type, float Left, float Top, float Width, float Height, VARIANT * Anchor ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_AddShape(Type, Left, Top, Width, Height, Anchor, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline ShapePtr Shapes::AddTextEffect ( enum Office::MsoPresetTextEffect PresetTextEffect, _bstr_t Text, _bstr_t FontName, float FontSize, enum Office::MsoTriState FontBold, enum Office::MsoTriState FontItalic, float Left, float Top, VARIANT * Anchor ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_AddTextEffect(PresetTextEffect, Text, FontName, FontSize, FontBold, FontItalic, Left, Top, Anchor, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline ShapePtr Shapes::AddTextbox ( enum Office::MsoTextOrientation Orientation, float Left, float Top, float Width, float Height, VARIANT * Anchor ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_AddTextbox(Orientation, Left, Top, Width, Height, Anchor, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline FreeformBuilderPtr Shapes::BuildFreeform ( enum Office::MsoEditingType EditingType, float X1, float Y1 ) {
    struct FreeformBuilder * _result = 0;
    HRESULT _hr = raw_BuildFreeform(EditingType, X1, Y1, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FreeformBuilderPtr(_result, false);
}

inline ShapeRangePtr Shapes::Range ( VARIANT * Index ) {
    struct ShapeRange * _result = 0;
    HRESULT _hr = raw_Range(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapeRangePtr(_result, false);
}

inline HRESULT Shapes::SelectAll ( ) {
    HRESULT _hr = raw_SelectAll();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline ShapePtr Shapes::AddOLEObject ( VARIANT * ClassType, VARIANT * FileName, VARIANT * LinkToFile, VARIANT * DisplayAsIcon, VARIANT * IconFileName, VARIANT * IconIndex, VARIANT * IconLabel, VARIANT * Left, VARIANT * Top, VARIANT * Width, VARIANT * Height, VARIANT * Anchor ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_AddOLEObject(ClassType, FileName, LinkToFile, DisplayAsIcon, IconFileName, IconIndex, IconLabel, Left, Top, Width, Height, Anchor, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline ShapePtr Shapes::AddOLEControl ( VARIANT * ClassType, VARIANT * Left, VARIANT * Top, VARIANT * Width, VARIANT * Height, VARIANT * Anchor ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_AddOLEControl(ClassType, Left, Top, Width, Height, Anchor, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline ShapePtr Shapes::AddDiagram ( enum Office::MsoDiagramType Type, float Left, float Top, float Width, float Height, VARIANT * Anchor ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_AddDiagram(Type, Left, Top, Width, Height, Anchor, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline ShapePtr Shapes::AddCanvas ( float Left, float Top, float Width, float Height, VARIANT * Anchor ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_AddCanvas(Left, Top, Width, Height, Anchor, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline ShapePtr Shapes::AddChart ( enum Office::XlChartType Type, VARIANT * Left, VARIANT * Top, VARIANT * Width, VARIANT * Height, VARIANT * Anchor ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_AddChart(Type, Left, Top, Width, Height, Anchor, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline ShapePtr Shapes::AddSmartArt ( struct Office::SmartArtLayout * Layout, VARIANT * Left, VARIANT * Top, VARIANT * Width, VARIANT * Height, VARIANT * Anchor ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_AddSmartArt(Layout, Left, Top, Width, Height, Anchor, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

//
// interface ShapeRange wrapper method implementations
//

inline _ApplicationPtr ShapeRange::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long ShapeRange::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr ShapeRange::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long ShapeRange::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IUnknownPtr ShapeRange::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline AdjustmentsPtr ShapeRange::GetAdjustments ( ) {
    struct Adjustments * _result = 0;
    HRESULT _hr = get_Adjustments(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return AdjustmentsPtr(_result, false);
}

inline enum Office::MsoAutoShapeType ShapeRange::GetAutoShapeType ( ) {
    enum Office::MsoAutoShapeType _result;
    HRESULT _hr = get_AutoShapeType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ShapeRange::PutAutoShapeType ( enum Office::MsoAutoShapeType prop ) {
    HRESULT _hr = put_AutoShapeType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline CalloutFormatPtr ShapeRange::GetCallout ( ) {
    struct CalloutFormat * _result = 0;
    HRESULT _hr = get_Callout(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CalloutFormatPtr(_result, false);
}

inline long ShapeRange::GetConnectionSiteCount ( ) {
    long _result = 0;
    HRESULT _hr = get_ConnectionSiteCount(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum Office::MsoTriState ShapeRange::GetConnector ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_Connector(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline ConnectorFormatPtr ShapeRange::GetConnectorFormat ( ) {
    struct ConnectorFormat * _result = 0;
    HRESULT _hr = get_ConnectorFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ConnectorFormatPtr(_result, false);
}

inline FillFormatPtr ShapeRange::GetFill ( ) {
    struct FillFormat * _result = 0;
    HRESULT _hr = get_Fill(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FillFormatPtr(_result, false);
}

inline GroupShapesPtr ShapeRange::GetGroupItems ( ) {
    struct GroupShapes * _result = 0;
    HRESULT _hr = get_GroupItems(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return GroupShapesPtr(_result, false);
}

inline float ShapeRange::GetHeight ( ) {
    float _result = 0;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ShapeRange::PutHeight ( float prop ) {
    HRESULT _hr = put_Height(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum Office::MsoTriState ShapeRange::GetHorizontalFlip ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_HorizontalFlip(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline float ShapeRange::GetLeft ( ) {
    float _result = 0;
    HRESULT _hr = get_Left(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ShapeRange::PutLeft ( float prop ) {
    HRESULT _hr = put_Left(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline LineFormatPtr ShapeRange::GetLine ( ) {
    struct LineFormat * _result = 0;
    HRESULT _hr = get_Line(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return LineFormatPtr(_result, false);
}

inline enum Office::MsoTriState ShapeRange::GetLockAspectRatio ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_LockAspectRatio(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ShapeRange::PutLockAspectRatio ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_LockAspectRatio(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t ShapeRange::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void ShapeRange::PutName ( _bstr_t prop ) {
    HRESULT _hr = put_Name(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline ShapeNodesPtr ShapeRange::GetNodes ( ) {
    struct ShapeNodes * _result = 0;
    HRESULT _hr = get_Nodes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapeNodesPtr(_result, false);
}

inline float ShapeRange::GetRotation ( ) {
    float _result = 0;
    HRESULT _hr = get_Rotation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ShapeRange::PutRotation ( float prop ) {
    HRESULT _hr = put_Rotation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline PictureFormatPtr ShapeRange::GetPictureFormat ( ) {
    struct PictureFormat * _result = 0;
    HRESULT _hr = get_PictureFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return PictureFormatPtr(_result, false);
}

inline ShadowFormatPtr ShapeRange::GetShadow ( ) {
    struct ShadowFormat * _result = 0;
    HRESULT _hr = get_Shadow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShadowFormatPtr(_result, false);
}

inline TextEffectFormatPtr ShapeRange::GetTextEffect ( ) {
    struct TextEffectFormat * _result = 0;
    HRESULT _hr = get_TextEffect(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TextEffectFormatPtr(_result, false);
}

inline TextFramePtr ShapeRange::GetTextFrame ( ) {
    struct TextFrame * _result = 0;
    HRESULT _hr = get_TextFrame(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TextFramePtr(_result, false);
}

inline ThreeDFormatPtr ShapeRange::GetThreeD ( ) {
    struct ThreeDFormat * _result = 0;
    HRESULT _hr = get_ThreeD(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ThreeDFormatPtr(_result, false);
}

inline float ShapeRange::GetTop ( ) {
    float _result = 0;
    HRESULT _hr = get_Top(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ShapeRange::PutTop ( float prop ) {
    HRESULT _hr = put_Top(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum Office::MsoShapeType ShapeRange::GetType ( ) {
    enum Office::MsoShapeType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum Office::MsoTriState ShapeRange::GetVerticalFlip ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_VerticalFlip(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _variant_t ShapeRange::GetVertices ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Vertices(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline enum Office::MsoTriState ShapeRange::GetVisible ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_Visible(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ShapeRange::PutVisible ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_Visible(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float ShapeRange::GetWidth ( ) {
    float _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ShapeRange::PutWidth ( float prop ) {
    HRESULT _hr = put_Width(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long ShapeRange::GetZOrderPosition ( ) {
    long _result = 0;
    HRESULT _hr = get_ZOrderPosition(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HyperlinkPtr ShapeRange::GetHyperlink ( ) {
    struct Hyperlink * _result = 0;
    HRESULT _hr = get_Hyperlink(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HyperlinkPtr(_result, false);
}

inline enum WdRelativeHorizontalPosition ShapeRange::GetRelativeHorizontalPosition ( ) {
    enum WdRelativeHorizontalPosition _result;
    HRESULT _hr = get_RelativeHorizontalPosition(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ShapeRange::PutRelativeHorizontalPosition ( enum WdRelativeHorizontalPosition prop ) {
    HRESULT _hr = put_RelativeHorizontalPosition(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdRelativeVerticalPosition ShapeRange::GetRelativeVerticalPosition ( ) {
    enum WdRelativeVerticalPosition _result;
    HRESULT _hr = get_RelativeVerticalPosition(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ShapeRange::PutRelativeVerticalPosition ( enum WdRelativeVerticalPosition prop ) {
    HRESULT _hr = put_RelativeVerticalPosition(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long ShapeRange::GetLockAnchor ( ) {
    long _result = 0;
    HRESULT _hr = get_LockAnchor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ShapeRange::PutLockAnchor ( long prop ) {
    HRESULT _hr = put_LockAnchor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline WrapFormatPtr ShapeRange::GetWrapFormat ( ) {
    struct WrapFormat * _result = 0;
    HRESULT _hr = get_WrapFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return WrapFormatPtr(_result, false);
}

inline RangePtr ShapeRange::GetAnchor ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Anchor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline ShapePtr ShapeRange::Item ( VARIANT * Index ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline HRESULT ShapeRange::Align ( enum Office::MsoAlignCmd Align, long RelativeTo ) {
    HRESULT _hr = raw_Align(Align, RelativeTo);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT ShapeRange::Apply ( ) {
    HRESULT _hr = raw_Apply();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT ShapeRange::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT ShapeRange::Distribute ( enum Office::MsoDistributeCmd Distribute, long RelativeTo ) {
    HRESULT _hr = raw_Distribute(Distribute, RelativeTo);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline ShapeRangePtr ShapeRange::Duplicate ( ) {
    struct ShapeRange * _result = 0;
    HRESULT _hr = raw_Duplicate(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapeRangePtr(_result, false);
}

inline HRESULT ShapeRange::Flip ( enum Office::MsoFlipCmd FlipCmd ) {
    HRESULT _hr = raw_Flip(FlipCmd);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT ShapeRange::IncrementLeft ( float Increment ) {
    HRESULT _hr = raw_IncrementLeft(Increment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT ShapeRange::IncrementRotation ( float Increment ) {
    HRESULT _hr = raw_IncrementRotation(Increment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT ShapeRange::IncrementTop ( float Increment ) {
    HRESULT _hr = raw_IncrementTop(Increment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline ShapePtr ShapeRange::Group ( ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_Group(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline HRESULT ShapeRange::PickUp ( ) {
    HRESULT _hr = raw_PickUp();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline ShapePtr ShapeRange::Regroup ( ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_Regroup(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline HRESULT ShapeRange::RerouteConnections ( ) {
    HRESULT _hr = raw_RerouteConnections();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT ShapeRange::ScaleHeight ( float Factor, enum Office::MsoTriState RelativeToOriginalSize, enum Office::MsoScaleFrom Scale ) {
    HRESULT _hr = raw_ScaleHeight(Factor, RelativeToOriginalSize, Scale);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT ShapeRange::ScaleWidth ( float Factor, enum Office::MsoTriState RelativeToOriginalSize, enum Office::MsoScaleFrom Scale ) {
    HRESULT _hr = raw_ScaleWidth(Factor, RelativeToOriginalSize, Scale);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT ShapeRange::Select ( VARIANT * Replace ) {
    HRESULT _hr = raw_Select(Replace);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT ShapeRange::SetShapesDefaultProperties ( ) {
    HRESULT _hr = raw_SetShapesDefaultProperties();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline ShapeRangePtr ShapeRange::Ungroup ( ) {
    struct ShapeRange * _result = 0;
    HRESULT _hr = raw_Ungroup(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapeRangePtr(_result, false);
}

inline HRESULT ShapeRange::ZOrder ( enum Office::MsoZOrderCmd ZOrderCmd ) {
    HRESULT _hr = raw_ZOrder(ZOrderCmd);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline FramePtr ShapeRange::ConvertToFrame ( ) {
    struct Frame * _result = 0;
    HRESULT _hr = raw_ConvertToFrame(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FramePtr(_result, false);
}

inline InlineShapePtr ShapeRange::ConvertToInlineShape ( ) {
    struct InlineShape * _result = 0;
    HRESULT _hr = raw_ConvertToInlineShape(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InlineShapePtr(_result, false);
}

inline HRESULT ShapeRange::Activate ( ) {
    HRESULT _hr = raw_Activate();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _bstr_t ShapeRange::GetAlternativeText ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_AlternativeText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void ShapeRange::PutAlternativeText ( _bstr_t prop ) {
    HRESULT _hr = put_AlternativeText(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum Office::MsoTriState ShapeRange::GetHasDiagram ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_HasDiagram(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline Office::IMsoDiagramPtr ShapeRange::GetDiagram ( ) {
    struct Office::IMsoDiagram * _result = 0;
    HRESULT _hr = get_Diagram(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::IMsoDiagramPtr(_result, false);
}

inline enum Office::MsoTriState ShapeRange::GetHasDiagramNode ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_HasDiagramNode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline DiagramNodePtr ShapeRange::GetDiagramNode ( ) {
    struct DiagramNode * _result = 0;
    HRESULT _hr = get_DiagramNode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DiagramNodePtr(_result, false);
}

inline enum Office::MsoTriState ShapeRange::GetChild ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_Child(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline ShapePtr ShapeRange::GetParentGroup ( ) {
    struct Shape * _result = 0;
    HRESULT _hr = get_ParentGroup(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline CanvasShapesPtr ShapeRange::GetCanvasItems ( ) {
    struct CanvasShapes * _result = 0;
    HRESULT _hr = get_CanvasItems(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CanvasShapesPtr(_result, false);
}

inline long ShapeRange::GetID ( ) {
    long _result = 0;
    HRESULT _hr = get_ID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT ShapeRange::CanvasCropLeft ( float Increment ) {
    HRESULT _hr = raw_CanvasCropLeft(Increment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT ShapeRange::CanvasCropTop ( float Increment ) {
    HRESULT _hr = raw_CanvasCropTop(Increment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT ShapeRange::CanvasCropRight ( float Increment ) {
    HRESULT _hr = raw_CanvasCropRight(Increment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT ShapeRange::CanvasCropBottom ( float Increment ) {
    HRESULT _hr = raw_CanvasCropBottom(Increment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline void ShapeRange::PutRTF ( _bstr_t _arg1 ) {
    HRESULT _hr = put_RTF(_arg1);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long ShapeRange::GetLayoutInCell ( ) {
    long _result = 0;
    HRESULT _hr = get_LayoutInCell(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ShapeRange::PutLayoutInCell ( long prop ) {
    HRESULT _hr = put_LayoutInCell(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float ShapeRange::GetLeftRelative ( ) {
    float _result = 0;
    HRESULT _hr = get_LeftRelative(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ShapeRange::PutLeftRelative ( float prop ) {
    HRESULT _hr = put_LeftRelative(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float ShapeRange::GetTopRelative ( ) {
    float _result = 0;
    HRESULT _hr = get_TopRelative(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ShapeRange::PutTopRelative ( float prop ) {
    HRESULT _hr = put_TopRelative(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float ShapeRange::GetWidthRelative ( ) {
    float _result = 0;
    HRESULT _hr = get_WidthRelative(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ShapeRange::PutWidthRelative ( float prop ) {
    HRESULT _hr = put_WidthRelative(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float ShapeRange::GetHeightRelative ( ) {
    float _result = 0;
    HRESULT _hr = get_HeightRelative(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ShapeRange::PutHeightRelative ( float prop ) {
    HRESULT _hr = put_HeightRelative(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdRelativeHorizontalSize ShapeRange::GetRelativeHorizontalSize ( ) {
    enum WdRelativeHorizontalSize _result;
    HRESULT _hr = get_RelativeHorizontalSize(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ShapeRange::PutRelativeHorizontalSize ( enum WdRelativeHorizontalSize prop ) {
    HRESULT _hr = put_RelativeHorizontalSize(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdRelativeVerticalSize ShapeRange::GetRelativeVerticalSize ( ) {
    enum WdRelativeVerticalSize _result;
    HRESULT _hr = get_RelativeVerticalSize(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ShapeRange::PutRelativeVerticalSize ( enum WdRelativeVerticalSize prop ) {
    HRESULT _hr = put_RelativeVerticalSize(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline SoftEdgeFormatPtr ShapeRange::GetSoftEdge ( ) {
    struct SoftEdgeFormat * _result = 0;
    HRESULT _hr = get_SoftEdge(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SoftEdgeFormatPtr(_result, false);
}

inline GlowFormatPtr ShapeRange::GetGlow ( ) {
    struct GlowFormat * _result = 0;
    HRESULT _hr = get_Glow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return GlowFormatPtr(_result, false);
}

inline ReflectionFormatPtr ShapeRange::GetReflection ( ) {
    struct ReflectionFormat * _result = 0;
    HRESULT _hr = get_Reflection(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ReflectionFormatPtr(_result, false);
}

inline Office::TextFrame2Ptr ShapeRange::GetTextFrame2 ( ) {
    struct Office::TextFrame2 * _result = 0;
    HRESULT _hr = get_TextFrame2(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::TextFrame2Ptr(_result, false);
}

inline enum Office::MsoShapeStyleIndex ShapeRange::GetShapeStyle ( ) {
    enum Office::MsoShapeStyleIndex _result;
    HRESULT _hr = get_ShapeStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ShapeRange::PutShapeStyle ( enum Office::MsoShapeStyleIndex prop ) {
    HRESULT _hr = put_ShapeStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum Office::MsoBackgroundStyleIndex ShapeRange::GetBackgroundStyle ( ) {
    enum Office::MsoBackgroundStyleIndex _result;
    HRESULT _hr = get_BackgroundStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ShapeRange::PutBackgroundStyle ( enum Office::MsoBackgroundStyleIndex prop ) {
    HRESULT _hr = put_BackgroundStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t ShapeRange::GetTitle ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Title(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void ShapeRange::PutTitle ( _bstr_t prop ) {
    HRESULT _hr = put_Title(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface GroupShapes wrapper method implementations
//

inline _ApplicationPtr GroupShapes::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long GroupShapes::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr GroupShapes::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long GroupShapes::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IUnknownPtr GroupShapes::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline ShapePtr GroupShapes::Item ( VARIANT * Index ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline ShapeRangePtr GroupShapes::Range ( VARIANT * Index ) {
    struct ShapeRange * _result = 0;
    HRESULT _hr = raw_Range(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapeRangePtr(_result, false);
}

//
// interface Shape wrapper method implementations
//

inline _ApplicationPtr Shape::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Shape::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Shape::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline AdjustmentsPtr Shape::GetAdjustments ( ) {
    struct Adjustments * _result = 0;
    HRESULT _hr = get_Adjustments(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return AdjustmentsPtr(_result, false);
}

inline enum Office::MsoAutoShapeType Shape::GetAutoShapeType ( ) {
    enum Office::MsoAutoShapeType _result;
    HRESULT _hr = get_AutoShapeType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Shape::PutAutoShapeType ( enum Office::MsoAutoShapeType prop ) {
    HRESULT _hr = put_AutoShapeType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline CalloutFormatPtr Shape::GetCallout ( ) {
    struct CalloutFormat * _result = 0;
    HRESULT _hr = get_Callout(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CalloutFormatPtr(_result, false);
}

inline long Shape::GetConnectionSiteCount ( ) {
    long _result = 0;
    HRESULT _hr = get_ConnectionSiteCount(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum Office::MsoTriState Shape::GetConnector ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_Connector(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline ConnectorFormatPtr Shape::GetConnectorFormat ( ) {
    struct ConnectorFormat * _result = 0;
    HRESULT _hr = get_ConnectorFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ConnectorFormatPtr(_result, false);
}

inline FillFormatPtr Shape::GetFill ( ) {
    struct FillFormat * _result = 0;
    HRESULT _hr = get_Fill(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FillFormatPtr(_result, false);
}

inline GroupShapesPtr Shape::GetGroupItems ( ) {
    struct GroupShapes * _result = 0;
    HRESULT _hr = get_GroupItems(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return GroupShapesPtr(_result, false);
}

inline float Shape::GetHeight ( ) {
    float _result = 0;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Shape::PutHeight ( float prop ) {
    HRESULT _hr = put_Height(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum Office::MsoTriState Shape::GetHorizontalFlip ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_HorizontalFlip(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline float Shape::GetLeft ( ) {
    float _result = 0;
    HRESULT _hr = get_Left(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Shape::PutLeft ( float prop ) {
    HRESULT _hr = put_Left(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline LineFormatPtr Shape::GetLine ( ) {
    struct LineFormat * _result = 0;
    HRESULT _hr = get_Line(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return LineFormatPtr(_result, false);
}

inline enum Office::MsoTriState Shape::GetLockAspectRatio ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_LockAspectRatio(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Shape::PutLockAspectRatio ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_LockAspectRatio(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t Shape::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void Shape::PutName ( _bstr_t prop ) {
    HRESULT _hr = put_Name(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline ShapeNodesPtr Shape::GetNodes ( ) {
    struct ShapeNodes * _result = 0;
    HRESULT _hr = get_Nodes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapeNodesPtr(_result, false);
}

inline float Shape::GetRotation ( ) {
    float _result = 0;
    HRESULT _hr = get_Rotation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Shape::PutRotation ( float prop ) {
    HRESULT _hr = put_Rotation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline PictureFormatPtr Shape::GetPictureFormat ( ) {
    struct PictureFormat * _result = 0;
    HRESULT _hr = get_PictureFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return PictureFormatPtr(_result, false);
}

inline ShadowFormatPtr Shape::GetShadow ( ) {
    struct ShadowFormat * _result = 0;
    HRESULT _hr = get_Shadow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShadowFormatPtr(_result, false);
}

inline TextEffectFormatPtr Shape::GetTextEffect ( ) {
    struct TextEffectFormat * _result = 0;
    HRESULT _hr = get_TextEffect(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TextEffectFormatPtr(_result, false);
}

inline TextFramePtr Shape::GetTextFrame ( ) {
    struct TextFrame * _result = 0;
    HRESULT _hr = get_TextFrame(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TextFramePtr(_result, false);
}

inline ThreeDFormatPtr Shape::GetThreeD ( ) {
    struct ThreeDFormat * _result = 0;
    HRESULT _hr = get_ThreeD(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ThreeDFormatPtr(_result, false);
}

inline float Shape::GetTop ( ) {
    float _result = 0;
    HRESULT _hr = get_Top(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Shape::PutTop ( float prop ) {
    HRESULT _hr = put_Top(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum Office::MsoShapeType Shape::GetType ( ) {
    enum Office::MsoShapeType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum Office::MsoTriState Shape::GetVerticalFlip ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_VerticalFlip(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _variant_t Shape::GetVertices ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Vertices(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline enum Office::MsoTriState Shape::GetVisible ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_Visible(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Shape::PutVisible ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_Visible(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Shape::GetWidth ( ) {
    float _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Shape::PutWidth ( float prop ) {
    HRESULT _hr = put_Width(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Shape::GetZOrderPosition ( ) {
    long _result = 0;
    HRESULT _hr = get_ZOrderPosition(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HyperlinkPtr Shape::GetHyperlink ( ) {
    struct Hyperlink * _result = 0;
    HRESULT _hr = get_Hyperlink(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HyperlinkPtr(_result, false);
}

inline enum WdRelativeHorizontalPosition Shape::GetRelativeHorizontalPosition ( ) {
    enum WdRelativeHorizontalPosition _result;
    HRESULT _hr = get_RelativeHorizontalPosition(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Shape::PutRelativeHorizontalPosition ( enum WdRelativeHorizontalPosition prop ) {
    HRESULT _hr = put_RelativeHorizontalPosition(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdRelativeVerticalPosition Shape::GetRelativeVerticalPosition ( ) {
    enum WdRelativeVerticalPosition _result;
    HRESULT _hr = get_RelativeVerticalPosition(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Shape::PutRelativeVerticalPosition ( enum WdRelativeVerticalPosition prop ) {
    HRESULT _hr = put_RelativeVerticalPosition(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Shape::GetLockAnchor ( ) {
    long _result = 0;
    HRESULT _hr = get_LockAnchor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Shape::PutLockAnchor ( long prop ) {
    HRESULT _hr = put_LockAnchor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline WrapFormatPtr Shape::GetWrapFormat ( ) {
    struct WrapFormat * _result = 0;
    HRESULT _hr = get_WrapFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return WrapFormatPtr(_result, false);
}

inline OLEFormatPtr Shape::GetOLEFormat ( ) {
    struct OLEFormat * _result = 0;
    HRESULT _hr = get_OLEFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OLEFormatPtr(_result, false);
}

inline RangePtr Shape::GetAnchor ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Anchor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline LinkFormatPtr Shape::GetLinkFormat ( ) {
    struct LinkFormat * _result = 0;
    HRESULT _hr = get_LinkFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return LinkFormatPtr(_result, false);
}

inline HRESULT Shape::Apply ( ) {
    HRESULT _hr = raw_Apply();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Shape::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline ShapePtr Shape::Duplicate ( ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_Duplicate(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline HRESULT Shape::Flip ( enum Office::MsoFlipCmd FlipCmd ) {
    HRESULT _hr = raw_Flip(FlipCmd);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Shape::IncrementLeft ( float Increment ) {
    HRESULT _hr = raw_IncrementLeft(Increment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Shape::IncrementRotation ( float Increment ) {
    HRESULT _hr = raw_IncrementRotation(Increment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Shape::IncrementTop ( float Increment ) {
    HRESULT _hr = raw_IncrementTop(Increment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Shape::PickUp ( ) {
    HRESULT _hr = raw_PickUp();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Shape::RerouteConnections ( ) {
    HRESULT _hr = raw_RerouteConnections();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Shape::ScaleHeight ( float Factor, enum Office::MsoTriState RelativeToOriginalSize, enum Office::MsoScaleFrom Scale ) {
    HRESULT _hr = raw_ScaleHeight(Factor, RelativeToOriginalSize, Scale);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Shape::ScaleWidth ( float Factor, enum Office::MsoTriState RelativeToOriginalSize, enum Office::MsoScaleFrom Scale ) {
    HRESULT _hr = raw_ScaleWidth(Factor, RelativeToOriginalSize, Scale);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Shape::Select ( VARIANT * Replace ) {
    HRESULT _hr = raw_Select(Replace);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Shape::SetShapesDefaultProperties ( ) {
    HRESULT _hr = raw_SetShapesDefaultProperties();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline ShapeRangePtr Shape::Ungroup ( ) {
    struct ShapeRange * _result = 0;
    HRESULT _hr = raw_Ungroup(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapeRangePtr(_result, false);
}

inline HRESULT Shape::ZOrder ( enum Office::MsoZOrderCmd ZOrderCmd ) {
    HRESULT _hr = raw_ZOrder(ZOrderCmd);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline InlineShapePtr Shape::ConvertToInlineShape ( ) {
    struct InlineShape * _result = 0;
    HRESULT _hr = raw_ConvertToInlineShape(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InlineShapePtr(_result, false);
}

inline FramePtr Shape::ConvertToFrame ( ) {
    struct Frame * _result = 0;
    HRESULT _hr = raw_ConvertToFrame(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FramePtr(_result, false);
}

inline HRESULT Shape::Activate ( ) {
    HRESULT _hr = raw_Activate();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _bstr_t Shape::GetAlternativeText ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_AlternativeText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void Shape::PutAlternativeText ( _bstr_t prop ) {
    HRESULT _hr = put_AlternativeText(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline Office::ScriptPtr Shape::GetScript ( ) {
    struct Office::Script * _result = 0;
    HRESULT _hr = get_Script(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::ScriptPtr(_result, false);
}

inline enum Office::MsoTriState Shape::GetHasDiagram ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_HasDiagram(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline Office::IMsoDiagramPtr Shape::GetDiagram ( ) {
    struct Office::IMsoDiagram * _result = 0;
    HRESULT _hr = get_Diagram(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::IMsoDiagramPtr(_result, false);
}

inline enum Office::MsoTriState Shape::GetHasDiagramNode ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_HasDiagramNode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline DiagramNodePtr Shape::GetDiagramNode ( ) {
    struct DiagramNode * _result = 0;
    HRESULT _hr = get_DiagramNode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DiagramNodePtr(_result, false);
}

inline enum Office::MsoTriState Shape::GetChild ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_Child(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline ShapePtr Shape::GetParentGroup ( ) {
    struct Shape * _result = 0;
    HRESULT _hr = get_ParentGroup(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline CanvasShapesPtr Shape::GetCanvasItems ( ) {
    struct CanvasShapes * _result = 0;
    HRESULT _hr = get_CanvasItems(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CanvasShapesPtr(_result, false);
}

inline long Shape::GetID ( ) {
    long _result = 0;
    HRESULT _hr = get_ID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT Shape::CanvasCropLeft ( float Increment ) {
    HRESULT _hr = raw_CanvasCropLeft(Increment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Shape::CanvasCropTop ( float Increment ) {
    HRESULT _hr = raw_CanvasCropTop(Increment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Shape::CanvasCropRight ( float Increment ) {
    HRESULT _hr = raw_CanvasCropRight(Increment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Shape::CanvasCropBottom ( float Increment ) {
    HRESULT _hr = raw_CanvasCropBottom(Increment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline void Shape::PutRTF ( _bstr_t _arg1 ) {
    HRESULT _hr = put_RTF(_arg1);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Shape::GetLayoutInCell ( ) {
    long _result = 0;
    HRESULT _hr = get_LayoutInCell(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Shape::PutLayoutInCell ( long prop ) {
    HRESULT _hr = put_LayoutInCell(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum Office::MsoTriState Shape::GetHasChart ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_HasChart(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline ChartPtr Shape::GetChart ( ) {
    struct Chart * _result = 0;
    HRESULT _hr = get_Chart(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartPtr(_result, false);
}

inline float Shape::GetLeftRelative ( ) {
    float _result = 0;
    HRESULT _hr = get_LeftRelative(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Shape::PutLeftRelative ( float prop ) {
    HRESULT _hr = put_LeftRelative(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Shape::GetTopRelative ( ) {
    float _result = 0;
    HRESULT _hr = get_TopRelative(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Shape::PutTopRelative ( float prop ) {
    HRESULT _hr = put_TopRelative(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Shape::GetWidthRelative ( ) {
    float _result = 0;
    HRESULT _hr = get_WidthRelative(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Shape::PutWidthRelative ( float prop ) {
    HRESULT _hr = put_WidthRelative(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float Shape::GetHeightRelative ( ) {
    float _result = 0;
    HRESULT _hr = get_HeightRelative(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Shape::PutHeightRelative ( float prop ) {
    HRESULT _hr = put_HeightRelative(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdRelativeHorizontalSize Shape::GetRelativeHorizontalSize ( ) {
    enum WdRelativeHorizontalSize _result;
    HRESULT _hr = get_RelativeHorizontalSize(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Shape::PutRelativeHorizontalSize ( enum WdRelativeHorizontalSize prop ) {
    HRESULT _hr = put_RelativeHorizontalSize(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdRelativeVerticalSize Shape::GetRelativeVerticalSize ( ) {
    enum WdRelativeVerticalSize _result;
    HRESULT _hr = get_RelativeVerticalSize(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Shape::PutRelativeVerticalSize ( enum WdRelativeVerticalSize prop ) {
    HRESULT _hr = put_RelativeVerticalSize(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline SoftEdgeFormatPtr Shape::GetSoftEdge ( ) {
    struct SoftEdgeFormat * _result = 0;
    HRESULT _hr = get_SoftEdge(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SoftEdgeFormatPtr(_result, false);
}

inline GlowFormatPtr Shape::GetGlow ( ) {
    struct GlowFormat * _result = 0;
    HRESULT _hr = get_Glow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return GlowFormatPtr(_result, false);
}

inline ReflectionFormatPtr Shape::GetReflection ( ) {
    struct ReflectionFormat * _result = 0;
    HRESULT _hr = get_Reflection(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ReflectionFormatPtr(_result, false);
}

inline Office::TextFrame2Ptr Shape::GetTextFrame2 ( ) {
    struct Office::TextFrame2 * _result = 0;
    HRESULT _hr = get_TextFrame2(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::TextFrame2Ptr(_result, false);
}

inline enum Office::MsoTriState Shape::GetHasSmartArt ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_HasSmartArt(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline Office::SmartArtPtr Shape::GetSmartArt ( ) {
    struct Office::SmartArt * _result = 0;
    HRESULT _hr = get_SmartArt(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::SmartArtPtr(_result, false);
}

inline enum Office::MsoShapeStyleIndex Shape::GetShapeStyle ( ) {
    enum Office::MsoShapeStyleIndex _result;
    HRESULT _hr = get_ShapeStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Shape::PutShapeStyle ( enum Office::MsoShapeStyleIndex prop ) {
    HRESULT _hr = put_ShapeStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum Office::MsoBackgroundStyleIndex Shape::GetBackgroundStyle ( ) {
    enum Office::MsoBackgroundStyleIndex _result;
    HRESULT _hr = get_BackgroundStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Shape::PutBackgroundStyle ( enum Office::MsoBackgroundStyleIndex prop ) {
    HRESULT _hr = put_BackgroundStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t Shape::GetTitle ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Title(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void Shape::PutTitle ( _bstr_t prop ) {
    HRESULT _hr = put_Title(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long Shape::GetAnchorID ( ) {
    long _result = 0;
    HRESULT _hr = get_AnchorID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Shape::GetEditID ( ) {
    long _result = 0;
    HRESULT _hr = get_EditID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface TextFrame wrapper method implementations
//

inline _ApplicationPtr TextFrame::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long TextFrame::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline ShapePtr TextFrame::GetParent ( ) {
    struct Shape * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline float TextFrame::GetMarginBottom ( ) {
    float _result = 0;
    HRESULT _hr = get_MarginBottom(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TextFrame::PutMarginBottom ( float prop ) {
    HRESULT _hr = put_MarginBottom(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float TextFrame::GetMarginLeft ( ) {
    float _result = 0;
    HRESULT _hr = get_MarginLeft(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TextFrame::PutMarginLeft ( float prop ) {
    HRESULT _hr = put_MarginLeft(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float TextFrame::GetMarginRight ( ) {
    float _result = 0;
    HRESULT _hr = get_MarginRight(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TextFrame::PutMarginRight ( float prop ) {
    HRESULT _hr = put_MarginRight(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float TextFrame::GetMarginTop ( ) {
    float _result = 0;
    HRESULT _hr = get_MarginTop(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TextFrame::PutMarginTop ( float prop ) {
    HRESULT _hr = put_MarginTop(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum Office::MsoTextOrientation TextFrame::GetOrientation ( ) {
    enum Office::MsoTextOrientation _result;
    HRESULT _hr = get_Orientation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TextFrame::PutOrientation ( enum Office::MsoTextOrientation prop ) {
    HRESULT _hr = put_Orientation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline RangePtr TextFrame::GetTextRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_TextRange(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline RangePtr TextFrame::GetContainingRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_ContainingRange(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline TextFramePtr TextFrame::GetNext ( ) {
    struct TextFrame * _result = 0;
    HRESULT _hr = get_Next(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TextFramePtr(_result, false);
}

inline void TextFrame::PutNext ( struct TextFrame * prop ) {
    HRESULT _hr = put_Next(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline TextFramePtr TextFrame::GetPrevious ( ) {
    struct TextFrame * _result = 0;
    HRESULT _hr = get_Previous(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TextFramePtr(_result, false);
}

inline void TextFrame::PutPrevious ( struct TextFrame * prop ) {
    HRESULT _hr = put_Previous(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL TextFrame::GetOverflowing ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Overflowing(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long TextFrame::GetHasText ( ) {
    long _result = 0;
    HRESULT _hr = get_HasText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT TextFrame::BreakForwardLink ( ) {
    HRESULT _hr = raw_BreakForwardLink();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL TextFrame::ValidLinkTarget ( struct TextFrame * TargetTextFrame ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = raw_ValidLinkTarget(TargetTextFrame, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long TextFrame::GetAutoSize ( ) {
    long _result = 0;
    HRESULT _hr = get_AutoSize(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TextFrame::PutAutoSize ( long prop ) {
    HRESULT _hr = put_AutoSize(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long TextFrame::GetWordWrap ( ) {
    long _result = 0;
    HRESULT _hr = get_WordWrap(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TextFrame::PutWordWrap ( long prop ) {
    HRESULT _hr = put_WordWrap(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum Office::MsoVerticalAnchor TextFrame::GetVerticalAnchor ( ) {
    enum Office::MsoVerticalAnchor _result;
    HRESULT _hr = get_VerticalAnchor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TextFrame::PutVerticalAnchor ( enum Office::MsoVerticalAnchor prop ) {
    HRESULT _hr = put_VerticalAnchor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum Office::MsoHorizontalAnchor TextFrame::GetHorizontalAnchor ( ) {
    enum Office::MsoHorizontalAnchor _result;
    HRESULT _hr = get_HorizontalAnchor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TextFrame::PutHorizontalAnchor ( enum Office::MsoHorizontalAnchor prop ) {
    HRESULT _hr = put_HorizontalAnchor(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum Office::MsoPathFormat TextFrame::GetPathFormat ( ) {
    enum Office::MsoPathFormat _result;
    HRESULT _hr = get_PathFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TextFrame::PutPathFormat ( enum Office::MsoPathFormat prop ) {
    HRESULT _hr = put_PathFormat(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum Office::MsoWarpFormat TextFrame::GetWarpFormat ( ) {
    enum Office::MsoWarpFormat _result;
    HRESULT _hr = get_WarpFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TextFrame::PutWarpFormat ( enum Office::MsoWarpFormat prop ) {
    HRESULT _hr = put_WarpFormat(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline Office::TextColumn2Ptr TextFrame::GetColumn ( ) {
    struct Office::TextColumn2 * _result = 0;
    HRESULT _hr = get_Column(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::TextColumn2Ptr(_result, false);
}

inline ThreeDFormatPtr TextFrame::GetThreeD ( ) {
    struct ThreeDFormat * _result = 0;
    HRESULT _hr = get_ThreeD(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ThreeDFormatPtr(_result, false);
}

inline enum Office::MsoTriState TextFrame::GetNoTextRotation ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_NoTextRotation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void TextFrame::PutNoTextRotation ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_NoTextRotation(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT TextFrame::DeleteText ( ) {
    HRESULT _hr = raw_DeleteText();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface InlineShape wrapper method implementations
//

inline _ApplicationPtr InlineShape::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long InlineShape::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr InlineShape::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline BordersPtr InlineShape::GetBorders ( ) {
    struct Borders * _result = 0;
    HRESULT _hr = get_Borders(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BordersPtr(_result, false);
}

inline void InlineShape::PutBorders ( struct Borders * prop ) {
    HRESULT _hr = put_Borders(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline RangePtr InlineShape::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline LinkFormatPtr InlineShape::GetLinkFormat ( ) {
    struct LinkFormat * _result = 0;
    HRESULT _hr = get_LinkFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return LinkFormatPtr(_result, false);
}

inline FieldPtr InlineShape::GetField ( ) {
    struct Field * _result = 0;
    HRESULT _hr = get_Field(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FieldPtr(_result, false);
}

inline OLEFormatPtr InlineShape::GetOLEFormat ( ) {
    struct OLEFormat * _result = 0;
    HRESULT _hr = get_OLEFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OLEFormatPtr(_result, false);
}

inline enum WdInlineShapeType InlineShape::GetType ( ) {
    enum WdInlineShapeType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HyperlinkPtr InlineShape::GetHyperlink ( ) {
    struct Hyperlink * _result = 0;
    HRESULT _hr = get_Hyperlink(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HyperlinkPtr(_result, false);
}

inline float InlineShape::GetHeight ( ) {
    float _result = 0;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void InlineShape::PutHeight ( float prop ) {
    HRESULT _hr = put_Height(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float InlineShape::GetWidth ( ) {
    float _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void InlineShape::PutWidth ( float prop ) {
    HRESULT _hr = put_Width(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float InlineShape::GetScaleHeight ( ) {
    float _result = 0;
    HRESULT _hr = get_ScaleHeight(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void InlineShape::PutScaleHeight ( float prop ) {
    HRESULT _hr = put_ScaleHeight(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float InlineShape::GetScaleWidth ( ) {
    float _result = 0;
    HRESULT _hr = get_ScaleWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void InlineShape::PutScaleWidth ( float prop ) {
    HRESULT _hr = put_ScaleWidth(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum Office::MsoTriState InlineShape::GetLockAspectRatio ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_LockAspectRatio(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void InlineShape::PutLockAspectRatio ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_LockAspectRatio(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline LineFormatPtr InlineShape::GetLine ( ) {
    struct LineFormat * _result = 0;
    HRESULT _hr = get_Line(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return LineFormatPtr(_result, false);
}

inline FillFormatPtr InlineShape::GetFill ( ) {
    struct FillFormat * _result = 0;
    HRESULT _hr = get_Fill(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FillFormatPtr(_result, false);
}

inline PictureFormatPtr InlineShape::GetPictureFormat ( ) {
    struct PictureFormat * _result = 0;
    HRESULT _hr = get_PictureFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return PictureFormatPtr(_result, false);
}

inline void InlineShape::PutPictureFormat ( struct PictureFormat * prop ) {
    HRESULT _hr = put_PictureFormat(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT InlineShape::Activate ( ) {
    HRESULT _hr = raw_Activate();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT InlineShape::Reset ( ) {
    HRESULT _hr = raw_Reset();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT InlineShape::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT InlineShape::Select ( ) {
    HRESULT _hr = raw_Select();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline ShapePtr InlineShape::ConvertToShape ( ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_ConvertToShape(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline HorizontalLineFormatPtr InlineShape::GetHorizontalLineFormat ( ) {
    struct HorizontalLineFormat * _result = 0;
    HRESULT _hr = get_HorizontalLineFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HorizontalLineFormatPtr(_result, false);
}

inline Office::ScriptPtr InlineShape::GetScript ( ) {
    struct Office::Script * _result = 0;
    HRESULT _hr = get_Script(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::ScriptPtr(_result, false);
}

inline long InlineShape::GetOWSAnchor ( ) {
    long _result = 0;
    HRESULT _hr = get_OWSAnchor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline TextEffectFormatPtr InlineShape::GetTextEffect ( ) {
    struct TextEffectFormat * _result = 0;
    HRESULT _hr = get_TextEffect(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TextEffectFormatPtr(_result, false);
}

inline void InlineShape::PutTextEffect ( struct TextEffectFormat * prop ) {
    HRESULT _hr = put_TextEffect(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t InlineShape::GetAlternativeText ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_AlternativeText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void InlineShape::PutAlternativeText ( _bstr_t prop ) {
    HRESULT _hr = put_AlternativeText(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL InlineShape::GetIsPictureBullet ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IsPictureBullet(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline GroupShapesPtr InlineShape::GetGroupItems ( ) {
    struct GroupShapes * _result = 0;
    HRESULT _hr = get_GroupItems(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return GroupShapesPtr(_result, false);
}

inline enum Office::MsoTriState InlineShape::GetHasChart ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_HasChart(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline ChartPtr InlineShape::GetChart ( ) {
    struct Chart * _result = 0;
    HRESULT _hr = get_Chart(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ChartPtr(_result, false);
}

inline SoftEdgeFormatPtr InlineShape::GetSoftEdge ( ) {
    struct SoftEdgeFormat * _result = 0;
    HRESULT _hr = get_SoftEdge(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SoftEdgeFormatPtr(_result, false);
}

inline GlowFormatPtr InlineShape::GetGlow ( ) {
    struct GlowFormat * _result = 0;
    HRESULT _hr = get_Glow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return GlowFormatPtr(_result, false);
}

inline ReflectionFormatPtr InlineShape::GetReflection ( ) {
    struct ReflectionFormat * _result = 0;
    HRESULT _hr = get_Reflection(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ReflectionFormatPtr(_result, false);
}

inline ShadowFormatPtr InlineShape::GetShadow ( ) {
    struct ShadowFormat * _result = 0;
    HRESULT _hr = get_Shadow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShadowFormatPtr(_result, false);
}

inline enum Office::MsoTriState InlineShape::GetHasSmartArt ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_HasSmartArt(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline Office::SmartArtPtr InlineShape::GetSmartArt ( ) {
    struct Office::SmartArt * _result = 0;
    HRESULT _hr = get_SmartArt(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return Office::SmartArtPtr(_result, false);
}

inline _bstr_t InlineShape::GetTitle ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Title(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void InlineShape::PutTitle ( _bstr_t prop ) {
    HRESULT _hr = put_Title(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long InlineShape::GetAnchorID ( ) {
    long _result = 0;
    HRESULT _hr = get_AnchorID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long InlineShape::GetEditID ( ) {
    long _result = 0;
    HRESULT _hr = get_EditID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface InlineShapes wrapper method implementations
//

inline _ApplicationPtr InlineShapes::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long InlineShapes::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr InlineShapes::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long InlineShapes::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IUnknownPtr InlineShapes::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline InlineShapePtr InlineShapes::Item ( long Index ) {
    struct InlineShape * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InlineShapePtr(_result, false);
}

inline InlineShapePtr InlineShapes::AddPicture ( _bstr_t FileName, VARIANT * LinkToFile, VARIANT * SaveWithDocument, VARIANT * Range ) {
    struct InlineShape * _result = 0;
    HRESULT _hr = raw_AddPicture(FileName, LinkToFile, SaveWithDocument, Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InlineShapePtr(_result, false);
}

inline InlineShapePtr InlineShapes::AddOLEObject ( VARIANT * ClassType, VARIANT * FileName, VARIANT * LinkToFile, VARIANT * DisplayAsIcon, VARIANT * IconFileName, VARIANT * IconIndex, VARIANT * IconLabel, VARIANT * Range ) {
    struct InlineShape * _result = 0;
    HRESULT _hr = raw_AddOLEObject(ClassType, FileName, LinkToFile, DisplayAsIcon, IconFileName, IconIndex, IconLabel, Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InlineShapePtr(_result, false);
}

inline InlineShapePtr InlineShapes::AddOLEControl ( VARIANT * ClassType, VARIANT * Range ) {
    struct InlineShape * _result = 0;
    HRESULT _hr = raw_AddOLEControl(ClassType, Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InlineShapePtr(_result, false);
}

inline InlineShapePtr InlineShapes::New ( struct Range * Range ) {
    struct InlineShape * _result = 0;
    HRESULT _hr = raw_New(Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InlineShapePtr(_result, false);
}

inline InlineShapePtr InlineShapes::AddHorizontalLine ( _bstr_t FileName, VARIANT * Range ) {
    struct InlineShape * _result = 0;
    HRESULT _hr = raw_AddHorizontalLine(FileName, Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InlineShapePtr(_result, false);
}

inline InlineShapePtr InlineShapes::AddHorizontalLineStandard ( VARIANT * Range ) {
    struct InlineShape * _result = 0;
    HRESULT _hr = raw_AddHorizontalLineStandard(Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InlineShapePtr(_result, false);
}

inline InlineShapePtr InlineShapes::AddPictureBullet ( _bstr_t FileName, VARIANT * Range ) {
    struct InlineShape * _result = 0;
    HRESULT _hr = raw_AddPictureBullet(FileName, Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InlineShapePtr(_result, false);
}

inline InlineShapePtr InlineShapes::AddChart ( enum Office::XlChartType Type, VARIANT * Range ) {
    struct InlineShape * _result = 0;
    HRESULT _hr = raw_AddChart(Type, Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InlineShapePtr(_result, false);
}

inline InlineShapePtr InlineShapes::AddSmartArt ( struct Office::SmartArtLayout * Layout, VARIANT * Range ) {
    struct InlineShape * _result = 0;
    HRESULT _hr = raw_AddSmartArt(Layout, Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return InlineShapePtr(_result, false);
}

//
// interface ConnectorFormat wrapper method implementations
//

inline _ApplicationPtr ConnectorFormat::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long ConnectorFormat::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum Office::MsoTriState ConnectorFormat::GetBeginConnected ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_BeginConnected(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline ShapePtr ConnectorFormat::GetBeginConnectedShape ( ) {
    struct Shape * _result = 0;
    HRESULT _hr = get_BeginConnectedShape(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline long ConnectorFormat::GetBeginConnectionSite ( ) {
    long _result = 0;
    HRESULT _hr = get_BeginConnectionSite(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum Office::MsoTriState ConnectorFormat::GetEndConnected ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_EndConnected(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline ShapePtr ConnectorFormat::GetEndConnectedShape ( ) {
    struct Shape * _result = 0;
    HRESULT _hr = get_EndConnectedShape(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline long ConnectorFormat::GetEndConnectionSite ( ) {
    long _result = 0;
    HRESULT _hr = get_EndConnectionSite(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr ConnectorFormat::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline enum Office::MsoConnectorType ConnectorFormat::GetType ( ) {
    enum Office::MsoConnectorType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ConnectorFormat::PutType ( enum Office::MsoConnectorType prop ) {
    HRESULT _hr = put_Type(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT ConnectorFormat::BeginConnect ( struct Shape * * ConnectedShape, long ConnectionSite ) {
    HRESULT _hr = raw_BeginConnect(ConnectedShape, ConnectionSite);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT ConnectorFormat::BeginDisconnect ( ) {
    HRESULT _hr = raw_BeginDisconnect();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT ConnectorFormat::EndConnect ( struct Shape * * ConnectedShape, long ConnectionSite ) {
    HRESULT _hr = raw_EndConnect(ConnectedShape, ConnectionSite);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT ConnectorFormat::EndDisconnect ( ) {
    HRESULT _hr = raw_EndDisconnect();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface FreeformBuilder wrapper method implementations
//

inline _ApplicationPtr FreeformBuilder::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long FreeformBuilder::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr FreeformBuilder::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline HRESULT FreeformBuilder::AddNodes ( enum Office::MsoSegmentType SegmentType, enum Office::MsoEditingType EditingType, float X1, float Y1, float X2, float Y2, float X3, float Y3 ) {
    HRESULT _hr = raw_AddNodes(SegmentType, EditingType, X1, Y1, X2, Y2, X3, Y3);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline ShapePtr FreeformBuilder::ConvertToShape ( VARIANT * Anchor ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_ConvertToShape(Anchor, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

//
// interface CanvasShapes wrapper method implementations
//

inline _ApplicationPtr CanvasShapes::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long CanvasShapes::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr CanvasShapes::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long CanvasShapes::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IUnknownPtr CanvasShapes::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline ShapePtr CanvasShapes::Item ( VARIANT * Index ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline ShapePtr CanvasShapes::AddCallout ( enum Office::MsoCalloutType Type, float Left, float Top, float Width, float Height ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_AddCallout(Type, Left, Top, Width, Height, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline ShapePtr CanvasShapes::AddConnector ( enum Office::MsoConnectorType Type, float BeginX, float BeginY, float EndX, float EndY ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_AddConnector(Type, BeginX, BeginY, EndX, EndY, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline ShapePtr CanvasShapes::AddCurve ( VARIANT * SafeArrayOfPoints ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_AddCurve(SafeArrayOfPoints, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline ShapePtr CanvasShapes::AddLabel ( enum Office::MsoTextOrientation Orientation, float Left, float Top, float Width, float Height ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_AddLabel(Orientation, Left, Top, Width, Height, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline ShapePtr CanvasShapes::AddLine ( float BeginX, float BeginY, float EndX, float EndY ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_AddLine(BeginX, BeginY, EndX, EndY, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline ShapePtr CanvasShapes::AddPicture ( _bstr_t FileName, VARIANT * LinkToFile, VARIANT * SaveWithDocument, VARIANT * Left, VARIANT * Top, VARIANT * Width, VARIANT * Height ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_AddPicture(FileName, LinkToFile, SaveWithDocument, Left, Top, Width, Height, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline ShapePtr CanvasShapes::AddPolyline ( VARIANT * SafeArrayOfPoints ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_AddPolyline(SafeArrayOfPoints, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline ShapePtr CanvasShapes::AddShape ( long Type, float Left, float Top, float Width, float Height ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_AddShape(Type, Left, Top, Width, Height, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline ShapePtr CanvasShapes::AddTextEffect ( enum Office::MsoPresetTextEffect PresetTextEffect, _bstr_t Text, _bstr_t FontName, float FontSize, enum Office::MsoTriState FontBold, enum Office::MsoTriState FontItalic, float Left, float Top ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_AddTextEffect(PresetTextEffect, Text, FontName, FontSize, FontBold, FontItalic, Left, Top, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline ShapePtr CanvasShapes::AddTextbox ( enum Office::MsoTextOrientation Orientation, float Left, float Top, float Width, float Height ) {
    struct Shape * _result = 0;
    HRESULT _hr = raw_AddTextbox(Orientation, Left, Top, Width, Height, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline FreeformBuilderPtr CanvasShapes::BuildFreeform ( enum Office::MsoEditingType EditingType, float X1, float Y1 ) {
    struct FreeformBuilder * _result = 0;
    HRESULT _hr = raw_BuildFreeform(EditingType, X1, Y1, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FreeformBuilderPtr(_result, false);
}

inline ShapeRangePtr CanvasShapes::Range ( VARIANT * Index ) {
    struct ShapeRange * _result = 0;
    HRESULT _hr = raw_Range(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapeRangePtr(_result, false);
}

inline HRESULT CanvasShapes::SelectAll ( ) {
    HRESULT _hr = raw_SelectAll();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface HTMLDivision wrapper method implementations
//

inline _ApplicationPtr HTMLDivision::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long HTMLDivision::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr HTMLDivision::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline RangePtr HTMLDivision::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline BordersPtr HTMLDivision::GetBorders ( ) {
    struct Borders * _result = 0;
    HRESULT _hr = get_Borders(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BordersPtr(_result, false);
}

inline float HTMLDivision::GetLeftIndent ( ) {
    float _result = 0;
    HRESULT _hr = get_LeftIndent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void HTMLDivision::PutLeftIndent ( float prop ) {
    HRESULT _hr = put_LeftIndent(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float HTMLDivision::GetRightIndent ( ) {
    float _result = 0;
    HRESULT _hr = get_RightIndent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void HTMLDivision::PutRightIndent ( float prop ) {
    HRESULT _hr = put_RightIndent(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float HTMLDivision::GetSpaceBefore ( ) {
    float _result = 0;
    HRESULT _hr = get_SpaceBefore(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void HTMLDivision::PutSpaceBefore ( float prop ) {
    HRESULT _hr = put_SpaceBefore(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline float HTMLDivision::GetSpaceAfter ( ) {
    float _result = 0;
    HRESULT _hr = get_SpaceAfter(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void HTMLDivision::PutSpaceAfter ( float prop ) {
    HRESULT _hr = put_SpaceAfter(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HTMLDivisionsPtr HTMLDivision::GetHTMLDivisions ( ) {
    struct HTMLDivisions * _result = 0;
    HRESULT _hr = get_HTMLDivisions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HTMLDivisionsPtr(_result, false);
}

inline HTMLDivisionPtr HTMLDivision::HTMLDivisionParent ( VARIANT * LevelsUp ) {
    struct HTMLDivision * _result = 0;
    HRESULT _hr = raw_HTMLDivisionParent(LevelsUp, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HTMLDivisionPtr(_result, false);
}

inline HRESULT HTMLDivision::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface HTMLDivisions wrapper method implementations
//

inline _ApplicationPtr HTMLDivisions::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long HTMLDivisions::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr HTMLDivisions::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline IUnknownPtr HTMLDivisions::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long HTMLDivisions::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long HTMLDivisions::GetNestingLevel ( ) {
    long _result = 0;
    HRESULT _hr = get_NestingLevel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HTMLDivisionPtr HTMLDivisions::Add ( VARIANT * Range ) {
    struct HTMLDivision * _result = 0;
    HRESULT _hr = raw_Add(Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HTMLDivisionPtr(_result, false);
}

inline HTMLDivisionPtr HTMLDivisions::Item ( long Index ) {
    struct HTMLDivision * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return HTMLDivisionPtr(_result, false);
}

//
// interface DiagramNode wrapper method implementations
//

inline _ApplicationPtr DiagramNode::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long DiagramNode::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr DiagramNode::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline DiagramNodeChildrenPtr DiagramNode::GetChildren ( ) {
    struct DiagramNodeChildren * _result = 0;
    HRESULT _hr = get_Children(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DiagramNodeChildrenPtr(_result, false);
}

inline ShapePtr DiagramNode::GetShape ( ) {
    struct Shape * _result = 0;
    HRESULT _hr = get_Shape(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline DiagramNodePtr DiagramNode::GetRoot ( ) {
    struct DiagramNode * _result = 0;
    HRESULT _hr = get_Root(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DiagramNodePtr(_result, false);
}

inline DiagramPtr DiagramNode::GetDiagram ( ) {
    struct Diagram * _result = 0;
    HRESULT _hr = get_Diagram(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DiagramPtr(_result, false);
}

inline enum Office::MsoOrgChartLayoutType DiagramNode::GetLayout ( ) {
    enum Office::MsoOrgChartLayoutType _result;
    HRESULT _hr = get_Layout(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void DiagramNode::PutLayout ( enum Office::MsoOrgChartLayoutType prop ) {
    HRESULT _hr = put_Layout(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline ShapePtr DiagramNode::GetTextShape ( ) {
    struct Shape * _result = 0;
    HRESULT _hr = get_TextShape(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ShapePtr(_result, false);
}

inline DiagramNodePtr DiagramNode::AddNode ( enum Office::MsoRelativeNodePosition Pos, enum Office::MsoDiagramNodeType NodeType ) {
    struct DiagramNode * _result = 0;
    HRESULT _hr = raw_AddNode(Pos, NodeType, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DiagramNodePtr(_result, false);
}

inline HRESULT DiagramNode::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT DiagramNode::MoveNode ( struct DiagramNode * * TargetNode, enum Office::MsoRelativeNodePosition Pos ) {
    HRESULT _hr = raw_MoveNode(TargetNode, Pos);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT DiagramNode::ReplaceNode ( struct DiagramNode * * TargetNode ) {
    HRESULT _hr = raw_ReplaceNode(TargetNode);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT DiagramNode::SwapNode ( struct DiagramNode * * TargetNode, enum Office::MsoRelativeNodePosition Pos ) {
    HRESULT _hr = raw_SwapNode(TargetNode, Pos);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline DiagramNodePtr DiagramNode::CloneNode ( VARIANT_BOOL copyChildren, struct DiagramNode * * TargetNode, enum Office::MsoRelativeNodePosition Pos ) {
    struct DiagramNode * _result = 0;
    HRESULT _hr = raw_CloneNode(copyChildren, TargetNode, Pos, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DiagramNodePtr(_result, false);
}

inline HRESULT DiagramNode::TransferChildren ( struct DiagramNode * * ReceivingNode ) {
    HRESULT _hr = raw_TransferChildren(ReceivingNode);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline DiagramNodePtr DiagramNode::NextNode ( ) {
    struct DiagramNode * _result = 0;
    HRESULT _hr = raw_NextNode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DiagramNodePtr(_result, false);
}

inline DiagramNodePtr DiagramNode::PrevNode ( ) {
    struct DiagramNode * _result = 0;
    HRESULT _hr = raw_PrevNode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DiagramNodePtr(_result, false);
}

//
// interface DiagramNodeChildren wrapper method implementations
//

inline _ApplicationPtr DiagramNodeChildren::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long DiagramNodeChildren::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IUnknownPtr DiagramNodeChildren::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline IDispatchPtr DiagramNodeChildren::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long DiagramNodeChildren::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline DiagramNodePtr DiagramNodeChildren::GetFirstChild ( ) {
    struct DiagramNode * _result = 0;
    HRESULT _hr = get_FirstChild(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DiagramNodePtr(_result, false);
}

inline DiagramNodePtr DiagramNodeChildren::GetLastChild ( ) {
    struct DiagramNode * _result = 0;
    HRESULT _hr = get_LastChild(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DiagramNodePtr(_result, false);
}

inline DiagramNodePtr DiagramNodeChildren::Item ( VARIANT * Index ) {
    struct DiagramNode * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DiagramNodePtr(_result, false);
}

inline DiagramNodePtr DiagramNodeChildren::AddNode ( VARIANT * Index, enum Office::MsoDiagramNodeType NodeType ) {
    struct DiagramNode * _result = 0;
    HRESULT _hr = raw_AddNode(Index, NodeType, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DiagramNodePtr(_result, false);
}

inline HRESULT DiagramNodeChildren::SelectAll ( ) {
    HRESULT _hr = raw_SelectAll();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface DiagramNodes wrapper method implementations
//

inline _ApplicationPtr DiagramNodes::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long DiagramNodes::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IUnknownPtr DiagramNodes::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline IDispatchPtr DiagramNodes::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long DiagramNodes::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline DiagramNodePtr DiagramNodes::Item ( VARIANT * Index ) {
    struct DiagramNode * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DiagramNodePtr(_result, false);
}

inline HRESULT DiagramNodes::SelectAll ( ) {
    HRESULT _hr = raw_SelectAll();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Diagram wrapper method implementations
//

inline _ApplicationPtr Diagram::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Diagram::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Diagram::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline DiagramNodesPtr Diagram::GetNodes ( ) {
    struct DiagramNodes * _result = 0;
    HRESULT _hr = get_Nodes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DiagramNodesPtr(_result, false);
}

inline enum Office::MsoDiagramType Diagram::GetType ( ) {
    enum Office::MsoDiagramType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum Office::MsoTriState Diagram::GetAutoLayout ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_AutoLayout(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Diagram::PutAutoLayout ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_AutoLayout(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum Office::MsoTriState Diagram::GetReverse ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_Reverse(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Diagram::PutReverse ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_Reverse(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum Office::MsoTriState Diagram::GetAutoFormat ( ) {
    enum Office::MsoTriState _result;
    HRESULT _hr = get_AutoFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void Diagram::PutAutoFormat ( enum Office::MsoTriState prop ) {
    HRESULT _hr = put_AutoFormat(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT Diagram::Convert ( enum Office::MsoDiagramType Type ) {
    HRESULT _hr = raw_Convert(Type);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT Diagram::FitText ( ) {
    HRESULT _hr = raw_FitText();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface SmartTag wrapper method implementations
//

inline _bstr_t SmartTag::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _bstr_t SmartTag::GetXML ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_XML(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline RangePtr SmartTag::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline _bstr_t SmartTag::GetDownloadURL ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_DownloadURL(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline CustomPropertiesPtr SmartTag::GetProperties ( ) {
    struct CustomProperties * _result = 0;
    HRESULT _hr = get_Properties(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CustomPropertiesPtr(_result, false);
}

inline _ApplicationPtr SmartTag::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long SmartTag::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr SmartTag::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline HRESULT SmartTag::Select ( ) {
    HRESULT _hr = raw_Select();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT SmartTag::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline SmartTagActionsPtr SmartTag::GetSmartTagActions ( ) {
    struct SmartTagActions * _result = 0;
    HRESULT _hr = get_SmartTagActions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SmartTagActionsPtr(_result, false);
}

inline XMLNodePtr SmartTag::GetXMLNode ( ) {
    struct XMLNode * _result = 0;
    HRESULT _hr = get_XMLNode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLNodePtr(_result, false);
}

//
// interface SmartTags wrapper method implementations
//

inline IUnknownPtr SmartTags::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long SmartTags::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _ApplicationPtr SmartTags::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long SmartTags::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr SmartTags::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline SmartTagPtr SmartTags::Item ( VARIANT * Index ) {
    struct SmartTag * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SmartTagPtr(_result, false);
}

inline SmartTagPtr SmartTags::Add ( _bstr_t Name, VARIANT * Range, VARIANT * Properties ) {
    struct SmartTag * _result = 0;
    HRESULT _hr = raw_Add(Name, Range, Properties, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SmartTagPtr(_result, false);
}

inline SmartTagsPtr SmartTags::SmartTagsByType ( _bstr_t Name ) {
    struct SmartTags * _result = 0;
    HRESULT _hr = raw_SmartTagsByType(Name, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SmartTagsPtr(_result, false);
}

//
// interface Line wrapper method implementations
//

inline _ApplicationPtr Line::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Line::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Line::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline enum WdLineType Line::GetLineType ( ) {
    enum WdLineType _result;
    HRESULT _hr = get_LineType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Line::GetLeft ( ) {
    long _result = 0;
    HRESULT _hr = get_Left(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Line::GetTop ( ) {
    long _result = 0;
    HRESULT _hr = get_Top(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Line::GetWidth ( ) {
    long _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Line::GetHeight ( ) {
    long _result = 0;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline RangePtr Line::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline RectanglesPtr Line::GetRectangles ( ) {
    struct Rectangles * _result = 0;
    HRESULT _hr = get_Rectangles(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RectanglesPtr(_result, false);
}

//
// interface Lines wrapper method implementations
//

inline IUnknownPtr Lines::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long Lines::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _ApplicationPtr Lines::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Lines::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Lines::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline LinePtr Lines::Item ( long Index ) {
    struct Line * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return LinePtr(_result, false);
}

//
// interface Rectangle wrapper method implementations
//

inline _ApplicationPtr Rectangle::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Rectangle::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Rectangle::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline enum WdRectangleType Rectangle::GetRectangleType ( ) {
    enum WdRectangleType _result;
    HRESULT _hr = get_RectangleType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Rectangle::GetLeft ( ) {
    long _result = 0;
    HRESULT _hr = get_Left(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Rectangle::GetTop ( ) {
    long _result = 0;
    HRESULT _hr = get_Top(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Rectangle::GetWidth ( ) {
    long _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Rectangle::GetHeight ( ) {
    long _result = 0;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline RangePtr Rectangle::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline LinesPtr Rectangle::GetLines ( ) {
    struct Lines * _result = 0;
    HRESULT _hr = get_Lines(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return LinesPtr(_result, false);
}

//
// interface Rectangles wrapper method implementations
//

inline IUnknownPtr Rectangles::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long Rectangles::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _ApplicationPtr Rectangles::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Rectangles::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Rectangles::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline RectanglePtr Rectangles::Item ( long Index ) {
    struct Rectangle * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RectanglePtr(_result, false);
}

//
// interface Page wrapper method implementations
//

inline _ApplicationPtr Page::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Page::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Page::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long Page::GetLeft ( ) {
    long _result = 0;
    HRESULT _hr = get_Left(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Page::GetTop ( ) {
    long _result = 0;
    HRESULT _hr = get_Top(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Page::GetWidth ( ) {
    long _result = 0;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long Page::GetHeight ( ) {
    long _result = 0;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline RectanglesPtr Page::GetRectangles ( ) {
    struct Rectangles * _result = 0;
    HRESULT _hr = get_Rectangles(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RectanglesPtr(_result, false);
}

inline BreaksPtr Page::GetBreaks ( ) {
    struct Breaks * _result = 0;
    HRESULT _hr = get_Breaks(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BreaksPtr(_result, false);
}

inline _variant_t Page::GetEnhMetaFileBits ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_EnhMetaFileBits(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

//
// interface Pages wrapper method implementations
//

inline IUnknownPtr Pages::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long Pages::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _ApplicationPtr Pages::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Pages::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Pages::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline PagePtr Pages::Item ( long Index ) {
    struct Page * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return PagePtr(_result, false);
}

//
// interface XMLNode wrapper method implementations
//

inline _bstr_t XMLNode::GetBaseName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_BaseName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _ApplicationPtr XMLNode::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long XMLNode::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr XMLNode::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline RangePtr XMLNode::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline _bstr_t XMLNode::GetText ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Text(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void XMLNode::PutText ( _bstr_t prop ) {
    HRESULT _hr = put_Text(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t XMLNode::GetNamespaceURI ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_NamespaceURI(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _bstr_t XMLNode::GetXML ( VARIANT_BOOL DataOnly ) {
    BSTR _result = 0;
    HRESULT _hr = get_XML(DataOnly, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline XMLNodePtr XMLNode::GetNextSibling ( ) {
    struct XMLNode * _result = 0;
    HRESULT _hr = get_NextSibling(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLNodePtr(_result, false);
}

inline XMLNodePtr XMLNode::GetPreviousSibling ( ) {
    struct XMLNode * _result = 0;
    HRESULT _hr = get_PreviousSibling(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLNodePtr(_result, false);
}

inline XMLNodePtr XMLNode::GetParentNode ( ) {
    struct XMLNode * _result = 0;
    HRESULT _hr = get_ParentNode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLNodePtr(_result, false);
}

inline XMLNodePtr XMLNode::GetFirstChild ( ) {
    struct XMLNode * _result = 0;
    HRESULT _hr = get_FirstChild(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLNodePtr(_result, false);
}

inline XMLNodePtr XMLNode::GetLastChild ( ) {
    struct XMLNode * _result = 0;
    HRESULT _hr = get_LastChild(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLNodePtr(_result, false);
}

inline _DocumentPtr XMLNode::GetOwnerDocument ( ) {
    struct _Document * _result = 0;
    HRESULT _hr = get_OwnerDocument(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _DocumentPtr(_result, false);
}

inline enum WdXMLNodeType XMLNode::GetNodeType ( ) {
    enum WdXMLNodeType _result;
    HRESULT _hr = get_NodeType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline XMLNodesPtr XMLNode::GetChildNodes ( ) {
    struct XMLNodes * _result = 0;
    HRESULT _hr = get_ChildNodes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLNodesPtr(_result, false);
}

inline XMLNodesPtr XMLNode::GetAttributes ( ) {
    struct XMLNodes * _result = 0;
    HRESULT _hr = get_Attributes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLNodesPtr(_result, false);
}

inline _bstr_t XMLNode::GetNodeValue ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_NodeValue(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void XMLNode::PutNodeValue ( _bstr_t prop ) {
    HRESULT _hr = put_NodeValue(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL XMLNode::GetHasChildNodes ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HasChildNodes(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline XMLNodePtr XMLNode::SelectSingleNode ( _bstr_t XPath, _bstr_t PrefixMapping, VARIANT_BOOL FastSearchSkippingTextNodes ) {
    struct XMLNode * _result = 0;
    HRESULT _hr = raw_SelectSingleNode(XPath, PrefixMapping, FastSearchSkippingTextNodes, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLNodePtr(_result, false);
}

inline XMLNodesPtr XMLNode::SelectNodes ( _bstr_t XPath, _bstr_t PrefixMapping, VARIANT_BOOL FastSearchSkippingTextNodes ) {
    struct XMLNodes * _result = 0;
    HRESULT _hr = raw_SelectNodes(XPath, PrefixMapping, FastSearchSkippingTextNodes, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLNodesPtr(_result, false);
}

inline XMLChildNodeSuggestionsPtr XMLNode::GetChildNodeSuggestions ( ) {
    struct XMLChildNodeSuggestions * _result = 0;
    HRESULT _hr = get_ChildNodeSuggestions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLChildNodeSuggestionsPtr(_result, false);
}

inline enum WdXMLNodeLevel XMLNode::GetLevel ( ) {
    enum WdXMLNodeLevel _result;
    HRESULT _hr = get_Level(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum WdXMLValidationStatus XMLNode::GetValidationStatus ( ) {
    enum WdXMLValidationStatus _result;
    HRESULT _hr = get_ValidationStatus(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline SmartTagPtr XMLNode::GetSmartTag ( ) {
    struct SmartTag * _result = 0;
    HRESULT _hr = get_SmartTag(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SmartTagPtr(_result, false);
}

inline _bstr_t XMLNode::GetValidationErrorText ( VARIANT_BOOL Advanced ) {
    BSTR _result = 0;
    HRESULT _hr = get_ValidationErrorText(Advanced, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _bstr_t XMLNode::GetPlaceholderText ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_PlaceholderText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void XMLNode::PutPlaceholderText ( _bstr_t prop ) {
    HRESULT _hr = put_PlaceholderText(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT XMLNode::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT XMLNode::Copy ( ) {
    HRESULT _hr = raw_Copy();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT XMLNode::RemoveChild ( struct XMLNode * ChildElement ) {
    HRESULT _hr = raw_RemoveChild(ChildElement);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT XMLNode::Cut ( ) {
    HRESULT _hr = raw_Cut();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT XMLNode::Validate ( ) {
    HRESULT _hr = raw_Validate();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT XMLNode::SetValidationError ( enum WdXMLValidationStatus Status, VARIANT * ErrorText, VARIANT_BOOL ClearedAutomatically ) {
    HRESULT _hr = raw_SetValidationError(Status, ErrorText, ClearedAutomatically);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _bstr_t XMLNode::GetWordOpenXML ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_WordOpenXML(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

//
// interface XMLNodes wrapper method implementations
//

inline IUnknownPtr XMLNodes::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long XMLNodes::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _ApplicationPtr XMLNodes::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long XMLNodes::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr XMLNodes::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline XMLNodePtr XMLNodes::Item ( long Index ) {
    struct XMLNode * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLNodePtr(_result, false);
}

inline XMLNodePtr XMLNodes::Add ( _bstr_t Name, _bstr_t Namespace, VARIANT * Range ) {
    struct XMLNode * _result = 0;
    HRESULT _hr = raw_Add(Name, Namespace, Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLNodePtr(_result, false);
}

//
// interface XMLChildNodeSuggestion wrapper method implementations
//

inline _ApplicationPtr XMLChildNodeSuggestion::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long XMLChildNodeSuggestion::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr XMLChildNodeSuggestion::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline _bstr_t XMLChildNodeSuggestion::GetBaseName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_BaseName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _bstr_t XMLChildNodeSuggestion::GetNamespaceURI ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_NamespaceURI(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline XMLSchemaReferencePtr XMLChildNodeSuggestion::GetXMLSchemaReference ( ) {
    struct XMLSchemaReference * _result = 0;
    HRESULT _hr = get_XMLSchemaReference(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLSchemaReferencePtr(_result, false);
}

inline XMLNodePtr XMLChildNodeSuggestion::Insert ( VARIANT * Range ) {
    struct XMLNode * _result = 0;
    HRESULT _hr = raw_Insert(Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLNodePtr(_result, false);
}

//
// interface XMLChildNodeSuggestions wrapper method implementations
//

inline IUnknownPtr XMLChildNodeSuggestions::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline long XMLChildNodeSuggestions::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _ApplicationPtr XMLChildNodeSuggestions::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long XMLChildNodeSuggestions::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr XMLChildNodeSuggestions::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline XMLChildNodeSuggestionPtr XMLChildNodeSuggestions::Item ( VARIANT * Index ) {
    struct XMLChildNodeSuggestion * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLChildNodeSuggestionPtr(_result, false);
}

//
// interface IApplicationEvents4 wrapper method implementations
//

inline HRESULT IApplicationEvents4::Startup ( ) {
    HRESULT _hr = raw_Startup();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::Quit ( ) {
    HRESULT _hr = raw_Quit();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::DocumentChange ( ) {
    HRESULT _hr = raw_DocumentChange();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::DocumentOpen ( struct _Document * Doc ) {
    HRESULT _hr = raw_DocumentOpen(Doc);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::DocumentBeforeClose ( struct _Document * Doc, VARIANT_BOOL * Cancel ) {
    HRESULT _hr = raw_DocumentBeforeClose(Doc, Cancel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::DocumentBeforePrint ( struct _Document * Doc, VARIANT_BOOL * Cancel ) {
    HRESULT _hr = raw_DocumentBeforePrint(Doc, Cancel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::DocumentBeforeSave ( struct _Document * Doc, VARIANT_BOOL * SaveAsUI, VARIANT_BOOL * Cancel ) {
    HRESULT _hr = raw_DocumentBeforeSave(Doc, SaveAsUI, Cancel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::NewDocument ( struct _Document * Doc ) {
    HRESULT _hr = raw_NewDocument(Doc);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::WindowActivate ( struct _Document * Doc, struct Window * Wn ) {
    HRESULT _hr = raw_WindowActivate(Doc, Wn);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::WindowDeactivate ( struct _Document * Doc, struct Window * Wn ) {
    HRESULT _hr = raw_WindowDeactivate(Doc, Wn);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::WindowSelectionChange ( struct Selection * Sel ) {
    HRESULT _hr = raw_WindowSelectionChange(Sel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::WindowBeforeRightClick ( struct Selection * Sel, VARIANT_BOOL * Cancel ) {
    HRESULT _hr = raw_WindowBeforeRightClick(Sel, Cancel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::WindowBeforeDoubleClick ( struct Selection * Sel, VARIANT_BOOL * Cancel ) {
    HRESULT _hr = raw_WindowBeforeDoubleClick(Sel, Cancel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::EPostagePropertyDialog ( struct _Document * Doc ) {
    HRESULT _hr = raw_EPostagePropertyDialog(Doc);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::EPostageInsert ( struct _Document * Doc ) {
    HRESULT _hr = raw_EPostageInsert(Doc);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::MailMergeAfterMerge ( struct _Document * Doc, struct _Document * DocResult ) {
    HRESULT _hr = raw_MailMergeAfterMerge(Doc, DocResult);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::MailMergeAfterRecordMerge ( struct _Document * Doc ) {
    HRESULT _hr = raw_MailMergeAfterRecordMerge(Doc);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::MailMergeBeforeMerge ( struct _Document * Doc, long StartRecord, long EndRecord, VARIANT_BOOL * Cancel ) {
    HRESULT _hr = raw_MailMergeBeforeMerge(Doc, StartRecord, EndRecord, Cancel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::MailMergeBeforeRecordMerge ( struct _Document * Doc, VARIANT_BOOL * Cancel ) {
    HRESULT _hr = raw_MailMergeBeforeRecordMerge(Doc, Cancel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::MailMergeDataSourceLoad ( struct _Document * Doc ) {
    HRESULT _hr = raw_MailMergeDataSourceLoad(Doc);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::MailMergeDataSourceValidate ( struct _Document * Doc, VARIANT_BOOL * Handled ) {
    HRESULT _hr = raw_MailMergeDataSourceValidate(Doc, Handled);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::MailMergeWizardSendToCustom ( struct _Document * Doc ) {
    HRESULT _hr = raw_MailMergeWizardSendToCustom(Doc);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::MailMergeWizardStateChange ( struct _Document * Doc, int * FromState, int * ToState, VARIANT_BOOL * Handled ) {
    HRESULT _hr = raw_MailMergeWizardStateChange(Doc, FromState, ToState, Handled);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::WindowSize ( struct _Document * Doc, struct Window * Wn ) {
    HRESULT _hr = raw_WindowSize(Doc, Wn);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::XMLSelectionChange ( struct Selection * Sel, struct XMLNode * OldXMLNode, struct XMLNode * NewXMLNode, long * Reason ) {
    HRESULT _hr = raw_XMLSelectionChange(Sel, OldXMLNode, NewXMLNode, Reason);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::XMLValidationError ( struct XMLNode * XMLNode ) {
    HRESULT _hr = raw_XMLValidationError(XMLNode);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::DocumentSync ( struct _Document * Doc, enum Office::MsoSyncEventType SyncEventType ) {
    HRESULT _hr = raw_DocumentSync(Doc, SyncEventType);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::EPostageInsertEx ( struct _Document * Doc, int cpDeliveryAddrStart, int cpDeliveryAddrEnd, int cpReturnAddrStart, int cpReturnAddrEnd, int xaWidth, int yaHeight, _bstr_t bstrPrinterName, _bstr_t bstrPaperFeed, VARIANT_BOOL fPrint, VARIANT_BOOL * fCancel ) {
    HRESULT _hr = raw_EPostageInsertEx(Doc, cpDeliveryAddrStart, cpDeliveryAddrEnd, cpReturnAddrStart, cpReturnAddrEnd, xaWidth, yaHeight, bstrPrinterName, bstrPaperFeed, fPrint, fCancel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::MailMergeDataSourceValidate2 ( struct _Document * Doc, VARIANT_BOOL * Handled ) {
    HRESULT _hr = raw_MailMergeDataSourceValidate2(Doc, Handled);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::ProtectedViewWindowOpen ( struct ProtectedViewWindow * PvWindow ) {
    HRESULT _hr = raw_ProtectedViewWindowOpen(PvWindow);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::ProtectedViewWindowBeforeEdit ( struct ProtectedViewWindow * PvWindow, VARIANT_BOOL * Cancel ) {
    HRESULT _hr = raw_ProtectedViewWindowBeforeEdit(PvWindow, Cancel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::ProtectedViewWindowBeforeClose ( struct ProtectedViewWindow * PvWindow, int CloseReason, VARIANT_BOOL * Cancel ) {
    HRESULT _hr = raw_ProtectedViewWindowBeforeClose(PvWindow, CloseReason, Cancel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::ProtectedViewWindowSize ( struct ProtectedViewWindow * PvWindow ) {
    HRESULT _hr = raw_ProtectedViewWindowSize(PvWindow);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::ProtectedViewWindowActivate ( struct ProtectedViewWindow * PvWindow ) {
    HRESULT _hr = raw_ProtectedViewWindowActivate(PvWindow);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IApplicationEvents4::ProtectedViewWindowDeactivate ( struct ProtectedViewWindow * PvWindow ) {
    HRESULT _hr = raw_ProtectedViewWindowDeactivate(PvWindow);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface OMaths wrapper method implementations
//

inline IUnknownPtr OMaths::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline _ApplicationPtr OMaths::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long OMaths::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr OMaths::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long OMaths::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline OMathPtr OMaths::Item ( long Index ) {
    struct OMath * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline HRESULT OMaths::Linearize ( ) {
    HRESULT _hr = raw_Linearize();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT OMaths::BuildUp ( ) {
    HRESULT _hr = raw_BuildUp();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline RangePtr OMaths::Add ( struct Range * Range ) {
    struct Range * _result = 0;
    HRESULT _hr = raw_Add(Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

//
// interface OMath wrapper method implementations
//

inline _ApplicationPtr OMath::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long OMath::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr OMath::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline RangePtr OMath::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline OMathFunctionsPtr OMath::GetFunctions ( ) {
    struct OMathFunctions * _result = 0;
    HRESULT _hr = get_Functions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathFunctionsPtr(_result, false);
}

inline enum WdOMathType OMath::GetType ( ) {
    enum WdOMathType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMath::PutType ( enum WdOMathType prop ) {
    HRESULT _hr = put_Type(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline OMathPtr OMath::GetParentOMath ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_ParentOMath(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline OMathFunctionPtr OMath::GetParentFunction ( ) {
    struct OMathFunction * _result = 0;
    HRESULT _hr = get_ParentFunction(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathFunctionPtr(_result, false);
}

inline OMathMatRowPtr OMath::GetParentRow ( ) {
    struct OMathMatRow * _result = 0;
    HRESULT _hr = get_ParentRow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathMatRowPtr(_result, false);
}

inline OMathMatColPtr OMath::GetParentCol ( ) {
    struct OMathMatCol * _result = 0;
    HRESULT _hr = get_ParentCol(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathMatColPtr(_result, false);
}

inline OMathPtr OMath::GetParentArg ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_ParentArg(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline long OMath::GetArgIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_ArgIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long OMath::GetNestingLevel ( ) {
    long _result = 0;
    HRESULT _hr = get_NestingLevel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long OMath::GetArgSize ( ) {
    long _result = 0;
    HRESULT _hr = get_ArgSize(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMath::PutArgSize ( long prop ) {
    HRESULT _hr = put_ArgSize(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline OMathBreaksPtr OMath::GetBreaks ( ) {
    struct OMathBreaks * _result = 0;
    HRESULT _hr = get_Breaks(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathBreaksPtr(_result, false);
}

inline enum WdOMathJc OMath::GetJustification ( ) {
    enum WdOMathJc _result;
    HRESULT _hr = get_Justification(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMath::PutJustification ( enum WdOMathJc prop ) {
    HRESULT _hr = put_Justification(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long OMath::GetAlignPoint ( ) {
    long _result = 0;
    HRESULT _hr = get_AlignPoint(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMath::PutAlignPoint ( long prop ) {
    HRESULT _hr = put_AlignPoint(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT OMath::Linearize ( ) {
    HRESULT _hr = raw_Linearize();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT OMath::BuildUp ( ) {
    HRESULT _hr = raw_BuildUp();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT OMath::Remove ( ) {
    HRESULT _hr = raw_Remove();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT OMath::ConvertToMathText ( ) {
    HRESULT _hr = raw_ConvertToMathText();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT OMath::ConvertToNormalText ( ) {
    HRESULT _hr = raw_ConvertToNormalText();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT OMath::ConvertToLiteralText ( ) {
    HRESULT _hr = raw_ConvertToLiteralText();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface OMathArgs wrapper method implementations
//

inline _ApplicationPtr OMathArgs::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long OMathArgs::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr OMathArgs::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long OMathArgs::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline OMathPtr OMathArgs::Item ( long Index ) {
    struct OMath * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline OMathPtr OMathArgs::Add ( VARIANT * BeforeArg ) {
    struct OMath * _result = 0;
    HRESULT _hr = raw_Add(BeforeArg, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

//
// interface OMathAcc wrapper method implementations
//

inline _ApplicationPtr OMathAcc::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long OMathAcc::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr OMathAcc::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline OMathPtr OMathAcc::GetE ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_E(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline short OMathAcc::GetChar ( ) {
    short _result = 0;
    HRESULT _hr = get_Char(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathAcc::PutChar ( short prop ) {
    HRESULT _hr = put_Char(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface OMathBar wrapper method implementations
//

inline _ApplicationPtr OMathBar::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long OMathBar::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr OMathBar::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline OMathPtr OMathBar::GetE ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_E(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline VARIANT_BOOL OMathBar::GetBarTop ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_BarTop(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathBar::PutBarTop ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_BarTop(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface OMathBox wrapper method implementations
//

inline _ApplicationPtr OMathBox::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long OMathBox::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr OMathBox::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline OMathPtr OMathBox::GetE ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_E(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline VARIANT_BOOL OMathBox::GetOpEmu ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_OpEmu(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathBox::PutOpEmu ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_OpEmu(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL OMathBox::GetNoBreak ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_NoBreak(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathBox::PutNoBreak ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_NoBreak(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL OMathBox::GetDiff ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Diff(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathBox::PutDiff ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Diff(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface OMathBorderBox wrapper method implementations
//

inline _ApplicationPtr OMathBorderBox::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long OMathBorderBox::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr OMathBorderBox::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline OMathPtr OMathBorderBox::GetE ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_E(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline VARIANT_BOOL OMathBorderBox::GetHideTop ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HideTop(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathBorderBox::PutHideTop ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HideTop(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL OMathBorderBox::GetHideBot ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HideBot(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathBorderBox::PutHideBot ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HideBot(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL OMathBorderBox::GetHideLeft ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HideLeft(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathBorderBox::PutHideLeft ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HideLeft(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL OMathBorderBox::GetHideRight ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HideRight(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathBorderBox::PutHideRight ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HideRight(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL OMathBorderBox::GetStrikeH ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_StrikeH(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathBorderBox::PutStrikeH ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_StrikeH(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL OMathBorderBox::GetStrikeV ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_StrikeV(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathBorderBox::PutStrikeV ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_StrikeV(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL OMathBorderBox::GetStrikeBLTR ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_StrikeBLTR(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathBorderBox::PutStrikeBLTR ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_StrikeBLTR(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL OMathBorderBox::GetStrikeTLBR ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_StrikeTLBR(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathBorderBox::PutStrikeTLBR ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_StrikeTLBR(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface OMathDelim wrapper method implementations
//

inline _ApplicationPtr OMathDelim::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long OMathDelim::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr OMathDelim::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline OMathArgsPtr OMathDelim::GetE ( ) {
    struct OMathArgs * _result = 0;
    HRESULT _hr = get_E(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathArgsPtr(_result, false);
}

inline short OMathDelim::GetBegChar ( ) {
    short _result = 0;
    HRESULT _hr = get_BegChar(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathDelim::PutBegChar ( short prop ) {
    HRESULT _hr = put_BegChar(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline short OMathDelim::GetSepChar ( ) {
    short _result = 0;
    HRESULT _hr = get_SepChar(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathDelim::PutSepChar ( short prop ) {
    HRESULT _hr = put_SepChar(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline short OMathDelim::GetEndChar ( ) {
    short _result = 0;
    HRESULT _hr = get_EndChar(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathDelim::PutEndChar ( short prop ) {
    HRESULT _hr = put_EndChar(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL OMathDelim::GetGrow ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Grow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathDelim::PutGrow ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Grow(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdOMathShapeType OMathDelim::GetShape ( ) {
    enum WdOMathShapeType _result;
    HRESULT _hr = get_Shape(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathDelim::PutShape ( enum WdOMathShapeType prop ) {
    HRESULT _hr = put_Shape(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL OMathDelim::GetNoLeftChar ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_NoLeftChar(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathDelim::PutNoLeftChar ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_NoLeftChar(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL OMathDelim::GetNoRightChar ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_NoRightChar(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathDelim::PutNoRightChar ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_NoRightChar(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface OMathEqArray wrapper method implementations
//

inline _ApplicationPtr OMathEqArray::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long OMathEqArray::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr OMathEqArray::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline OMathArgsPtr OMathEqArray::GetE ( ) {
    struct OMathArgs * _result = 0;
    HRESULT _hr = get_E(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathArgsPtr(_result, false);
}

inline VARIANT_BOOL OMathEqArray::GetMaxDist ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MaxDist(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathEqArray::PutMaxDist ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MaxDist(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL OMathEqArray::GetObjDist ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ObjDist(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathEqArray::PutObjDist ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ObjDist(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdOMathVertAlignType OMathEqArray::GetAlign ( ) {
    enum WdOMathVertAlignType _result;
    HRESULT _hr = get_Align(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathEqArray::PutAlign ( enum WdOMathVertAlignType prop ) {
    HRESULT _hr = put_Align(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdOMathSpacingRule OMathEqArray::GetRowSpacingRule ( ) {
    enum WdOMathSpacingRule _result;
    HRESULT _hr = get_RowSpacingRule(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathEqArray::PutRowSpacingRule ( enum WdOMathSpacingRule prop ) {
    HRESULT _hr = put_RowSpacingRule(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long OMathEqArray::GetRowSpacing ( ) {
    long _result = 0;
    HRESULT _hr = get_RowSpacing(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathEqArray::PutRowSpacing ( long prop ) {
    HRESULT _hr = put_RowSpacing(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface OMathFrac wrapper method implementations
//

inline _ApplicationPtr OMathFrac::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long OMathFrac::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr OMathFrac::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline OMathPtr OMathFrac::GetNum ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_Num(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline OMathPtr OMathFrac::GetDen ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_Den(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline enum WdOMathFracType OMathFrac::GetType ( ) {
    enum WdOMathFracType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathFrac::PutType ( enum WdOMathFracType prop ) {
    HRESULT _hr = put_Type(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface OMathFunc wrapper method implementations
//

inline _ApplicationPtr OMathFunc::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long OMathFunc::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr OMathFunc::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline OMathPtr OMathFunc::GetFName ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_FName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline OMathPtr OMathFunc::GetE ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_E(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

//
// interface OMathGroupChar wrapper method implementations
//

inline _ApplicationPtr OMathGroupChar::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long OMathGroupChar::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr OMathGroupChar::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline OMathPtr OMathGroupChar::GetE ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_E(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline short OMathGroupChar::GetChar ( ) {
    short _result = 0;
    HRESULT _hr = get_Char(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathGroupChar::PutChar ( short prop ) {
    HRESULT _hr = put_Char(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL OMathGroupChar::GetCharTop ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_CharTop(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathGroupChar::PutCharTop ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_CharTop(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL OMathGroupChar::GetAlignTop ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AlignTop(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathGroupChar::PutAlignTop ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AlignTop(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface OMathMatRow wrapper method implementations
//

inline _ApplicationPtr OMathMatRow::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long OMathMatRow::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr OMathMatRow::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline OMathArgsPtr OMathMatRow::GetArgs ( ) {
    struct OMathArgs * _result = 0;
    HRESULT _hr = get_Args(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathArgsPtr(_result, false);
}

inline long OMathMatRow::GetRowIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_RowIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT OMathMatRow::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface OMathMatRows wrapper method implementations
//

inline IUnknownPtr OMathMatRows::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline _ApplicationPtr OMathMatRows::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long OMathMatRows::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr OMathMatRows::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long OMathMatRows::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline OMathMatRowPtr OMathMatRows::Item ( long Index ) {
    struct OMathMatRow * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathMatRowPtr(_result, false);
}

inline OMathMatRowPtr OMathMatRows::Add ( VARIANT * BeforeRow ) {
    struct OMathMatRow * _result = 0;
    HRESULT _hr = raw_Add(BeforeRow, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathMatRowPtr(_result, false);
}

//
// interface OMathMatCol wrapper method implementations
//

inline _ApplicationPtr OMathMatCol::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long OMathMatCol::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr OMathMatCol::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline OMathArgsPtr OMathMatCol::GetArgs ( ) {
    struct OMathArgs * _result = 0;
    HRESULT _hr = get_Args(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathArgsPtr(_result, false);
}

inline long OMathMatCol::GetColIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_ColIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum WdOMathHorizAlignType OMathMatCol::GetAlign ( ) {
    enum WdOMathHorizAlignType _result;
    HRESULT _hr = get_Align(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathMatCol::PutAlign ( enum WdOMathHorizAlignType prop ) {
    HRESULT _hr = put_Align(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT OMathMatCol::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface OMathMatCols wrapper method implementations
//

inline IUnknownPtr OMathMatCols::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline _ApplicationPtr OMathMatCols::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long OMathMatCols::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr OMathMatCols::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long OMathMatCols::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline OMathMatColPtr OMathMatCols::Item ( long Index ) {
    struct OMathMatCol * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathMatColPtr(_result, false);
}

inline OMathMatColPtr OMathMatCols::Add ( VARIANT * BeforeCol ) {
    struct OMathMatCol * _result = 0;
    HRESULT _hr = raw_Add(BeforeCol, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathMatColPtr(_result, false);
}

//
// interface OMathMat wrapper method implementations
//

inline _ApplicationPtr OMathMat::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long OMathMat::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr OMathMat::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline OMathMatRowsPtr OMathMat::GetRows ( ) {
    struct OMathMatRows * _result = 0;
    HRESULT _hr = get_Rows(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathMatRowsPtr(_result, false);
}

inline OMathMatColsPtr OMathMat::GetCols ( ) {
    struct OMathMatCols * _result = 0;
    HRESULT _hr = get_Cols(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathMatColsPtr(_result, false);
}

inline OMathPtr OMathMat::GetCell ( long Row, long Col ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_Cell(Row, Col, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline enum WdOMathVertAlignType OMathMat::GetAlign ( ) {
    enum WdOMathVertAlignType _result;
    HRESULT _hr = get_Align(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathMat::PutAlign ( enum WdOMathVertAlignType prop ) {
    HRESULT _hr = put_Align(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL OMathMat::GetPlcHoldHidden ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PlcHoldHidden(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathMat::PutPlcHoldHidden ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_PlcHoldHidden(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdOMathSpacingRule OMathMat::GetRowSpacingRule ( ) {
    enum WdOMathSpacingRule _result;
    HRESULT _hr = get_RowSpacingRule(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathMat::PutRowSpacingRule ( enum WdOMathSpacingRule prop ) {
    HRESULT _hr = put_RowSpacingRule(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long OMathMat::GetRowSpacing ( ) {
    long _result = 0;
    HRESULT _hr = get_RowSpacing(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathMat::PutRowSpacing ( long prop ) {
    HRESULT _hr = put_RowSpacing(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long OMathMat::GetColSpacing ( ) {
    long _result = 0;
    HRESULT _hr = get_ColSpacing(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathMat::PutColSpacing ( long prop ) {
    HRESULT _hr = put_ColSpacing(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdOMathSpacingRule OMathMat::GetColGapRule ( ) {
    enum WdOMathSpacingRule _result;
    HRESULT _hr = get_ColGapRule(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathMat::PutColGapRule ( enum WdOMathSpacingRule prop ) {
    HRESULT _hr = put_ColGapRule(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long OMathMat::GetColGap ( ) {
    long _result = 0;
    HRESULT _hr = get_ColGap(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathMat::PutColGap ( long prop ) {
    HRESULT _hr = put_ColGap(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface OMathNary wrapper method implementations
//

inline _ApplicationPtr OMathNary::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long OMathNary::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr OMathNary::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline OMathPtr OMathNary::GetSub ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_Sub(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline OMathPtr OMathNary::GetSup ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_Sup(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline OMathPtr OMathNary::GetE ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_E(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline short OMathNary::GetChar ( ) {
    short _result = 0;
    HRESULT _hr = get_Char(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathNary::PutChar ( short prop ) {
    HRESULT _hr = put_Char(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL OMathNary::GetGrow ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Grow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathNary::PutGrow ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Grow(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL OMathNary::GetSubSupLim ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SubSupLim(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathNary::PutSubSupLim ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_SubSupLim(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL OMathNary::GetHideSub ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HideSub(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathNary::PutHideSub ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HideSub(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL OMathNary::GetHideSup ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HideSup(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathNary::PutHideSup ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HideSup(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface OMathPhantom wrapper method implementations
//

inline _ApplicationPtr OMathPhantom::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long OMathPhantom::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr OMathPhantom::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline OMathPtr OMathPhantom::GetE ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_E(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline VARIANT_BOOL OMathPhantom::GetShow ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Show(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathPhantom::PutShow ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Show(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL OMathPhantom::GetZeroWid ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ZeroWid(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathPhantom::PutZeroWid ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ZeroWid(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL OMathPhantom::GetZeroAsc ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ZeroAsc(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathPhantom::PutZeroAsc ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ZeroAsc(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL OMathPhantom::GetZeroDesc ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ZeroDesc(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathPhantom::PutZeroDesc ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_ZeroDesc(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL OMathPhantom::GetTransp ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Transp(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathPhantom::PutTransp ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Transp(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL OMathPhantom::GetSmash ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Smash(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathPhantom::PutSmash ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Smash(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface OMathRad wrapper method implementations
//

inline _ApplicationPtr OMathRad::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long OMathRad::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr OMathRad::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline OMathPtr OMathRad::GetDeg ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_Deg(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline OMathPtr OMathRad::GetE ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_E(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline VARIANT_BOOL OMathRad::GetHideDeg ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HideDeg(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathRad::PutHideDeg ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_HideDeg(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface OMathScrSub wrapper method implementations
//

inline _ApplicationPtr OMathScrSub::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long OMathScrSub::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr OMathScrSub::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline OMathPtr OMathScrSub::GetE ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_E(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline OMathPtr OMathScrSub::GetSub ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_Sub(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

//
// interface OMathScrSup wrapper method implementations
//

inline _ApplicationPtr OMathScrSup::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long OMathScrSup::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr OMathScrSup::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline OMathPtr OMathScrSup::GetE ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_E(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline OMathPtr OMathScrSup::GetSup ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_Sup(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

//
// interface OMathFunctions wrapper method implementations
//

inline IUnknownPtr OMathFunctions::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline _ApplicationPtr OMathFunctions::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long OMathFunctions::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr OMathFunctions::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long OMathFunctions::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline OMathFunctionPtr OMathFunctions::Item ( long Index ) {
    struct OMathFunction * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathFunctionPtr(_result, false);
}

inline OMathFunctionPtr OMathFunctions::Add ( struct Range * Range, enum WdOMathFunctionType Type, VARIANT * NumArgs, VARIANT * NumCols ) {
    struct OMathFunction * _result = 0;
    HRESULT _hr = raw_Add(Range, Type, NumArgs, NumCols, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathFunctionPtr(_result, false);
}

//
// interface OMathFunction wrapper method implementations
//

inline enum WdOMathFunctionType OMathFunction::GetType ( ) {
    enum WdOMathFunctionType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _ApplicationPtr OMathFunction::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long OMathFunction::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr OMathFunction::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline RangePtr OMathFunction::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline OMathArgsPtr OMathFunction::GetArgs ( ) {
    struct OMathArgs * _result = 0;
    HRESULT _hr = get_Args(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathArgsPtr(_result, false);
}

inline OMathAccPtr OMathFunction::GetAcc ( ) {
    struct OMathAcc * _result = 0;
    HRESULT _hr = get_Acc(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathAccPtr(_result, false);
}

inline OMathBarPtr OMathFunction::GetBar ( ) {
    struct OMathBar * _result = 0;
    HRESULT _hr = get_Bar(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathBarPtr(_result, false);
}

inline OMathBoxPtr OMathFunction::GetBox ( ) {
    struct OMathBox * _result = 0;
    HRESULT _hr = get_Box(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathBoxPtr(_result, false);
}

inline OMathBorderBoxPtr OMathFunction::GetBorderBox ( ) {
    struct OMathBorderBox * _result = 0;
    HRESULT _hr = get_BorderBox(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathBorderBoxPtr(_result, false);
}

inline OMathDelimPtr OMathFunction::GetDelim ( ) {
    struct OMathDelim * _result = 0;
    HRESULT _hr = get_Delim(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathDelimPtr(_result, false);
}

inline OMathEqArrayPtr OMathFunction::GetEqArray ( ) {
    struct OMathEqArray * _result = 0;
    HRESULT _hr = get_EqArray(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathEqArrayPtr(_result, false);
}

inline OMathFracPtr OMathFunction::GetFrac ( ) {
    struct OMathFrac * _result = 0;
    HRESULT _hr = get_Frac(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathFracPtr(_result, false);
}

inline OMathFuncPtr OMathFunction::GetFunc ( ) {
    struct OMathFunc * _result = 0;
    HRESULT _hr = get_Func(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathFuncPtr(_result, false);
}

inline OMathGroupCharPtr OMathFunction::GetGroupChar ( ) {
    struct OMathGroupChar * _result = 0;
    HRESULT _hr = get_GroupChar(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathGroupCharPtr(_result, false);
}

inline OMathLimLowPtr OMathFunction::GetLimLow ( ) {
    struct OMathLimLow * _result = 0;
    HRESULT _hr = get_LimLow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathLimLowPtr(_result, false);
}

inline OMathLimUppPtr OMathFunction::GetLimUpp ( ) {
    struct OMathLimUpp * _result = 0;
    HRESULT _hr = get_LimUpp(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathLimUppPtr(_result, false);
}

inline OMathMatPtr OMathFunction::GetMat ( ) {
    struct OMathMat * _result = 0;
    HRESULT _hr = get_Mat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathMatPtr(_result, false);
}

inline OMathNaryPtr OMathFunction::GetNary ( ) {
    struct OMathNary * _result = 0;
    HRESULT _hr = get_Nary(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathNaryPtr(_result, false);
}

inline OMathPhantomPtr OMathFunction::GetPhantom ( ) {
    struct OMathPhantom * _result = 0;
    HRESULT _hr = get_Phantom(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPhantomPtr(_result, false);
}

inline OMathScrPrePtr OMathFunction::GetScrPre ( ) {
    struct OMathScrPre * _result = 0;
    HRESULT _hr = get_ScrPre(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathScrPrePtr(_result, false);
}

inline OMathRadPtr OMathFunction::GetRad ( ) {
    struct OMathRad * _result = 0;
    HRESULT _hr = get_Rad(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathRadPtr(_result, false);
}

inline OMathScrSubPtr OMathFunction::GetScrSub ( ) {
    struct OMathScrSub * _result = 0;
    HRESULT _hr = get_ScrSub(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathScrSubPtr(_result, false);
}

inline OMathScrSubSupPtr OMathFunction::GetScrSubSup ( ) {
    struct OMathScrSubSup * _result = 0;
    HRESULT _hr = get_ScrSubSup(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathScrSubSupPtr(_result, false);
}

inline OMathScrSupPtr OMathFunction::GetScrSup ( ) {
    struct OMathScrSup * _result = 0;
    HRESULT _hr = get_ScrSup(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathScrSupPtr(_result, false);
}

inline OMathPtr OMathFunction::GetOMath ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_OMath(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline OMathFunctionPtr OMathFunction::Remove ( ) {
    struct OMathFunction * _result = 0;
    HRESULT _hr = raw_Remove(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathFunctionPtr(_result, false);
}

//
// interface OMathLimLow wrapper method implementations
//

inline _ApplicationPtr OMathLimLow::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long OMathLimLow::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr OMathLimLow::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline OMathPtr OMathLimLow::GetE ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_E(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline OMathPtr OMathLimLow::GetLim ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_Lim(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline OMathFunctionPtr OMathLimLow::ToLimUpp ( ) {
    struct OMathFunction * _result = 0;
    HRESULT _hr = raw_ToLimUpp(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathFunctionPtr(_result, false);
}

//
// interface OMathLimUpp wrapper method implementations
//

inline _ApplicationPtr OMathLimUpp::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long OMathLimUpp::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr OMathLimUpp::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline OMathPtr OMathLimUpp::GetE ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_E(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline OMathPtr OMathLimUpp::GetLim ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_Lim(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline OMathFunctionPtr OMathLimUpp::ToLimLow ( ) {
    struct OMathFunction * _result = 0;
    HRESULT _hr = raw_ToLimLow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathFunctionPtr(_result, false);
}

//
// interface OMathScrPre wrapper method implementations
//

inline _ApplicationPtr OMathScrPre::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long OMathScrPre::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr OMathScrPre::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline OMathPtr OMathScrPre::GetSub ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_Sub(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline OMathPtr OMathScrPre::GetSup ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_Sup(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline OMathPtr OMathScrPre::GetE ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_E(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline OMathFunctionPtr OMathScrPre::ToScrSubSup ( ) {
    struct OMathFunction * _result = 0;
    HRESULT _hr = raw_ToScrSubSup(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathFunctionPtr(_result, false);
}

//
// interface OMathScrSubSup wrapper method implementations
//

inline _ApplicationPtr OMathScrSubSup::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long OMathScrSubSup::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr OMathScrSubSup::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline OMathPtr OMathScrSubSup::GetE ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_E(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline OMathPtr OMathScrSubSup::GetSub ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_Sub(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline OMathPtr OMathScrSubSup::GetSup ( ) {
    struct OMath * _result = 0;
    HRESULT _hr = get_Sup(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathPtr(_result, false);
}

inline VARIANT_BOOL OMathScrSubSup::GetAlignScripts ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AlignScripts(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void OMathScrSubSup::PutAlignScripts ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_AlignScripts(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline OMathFunctionPtr OMathScrSubSup::RemoveSub ( ) {
    struct OMathFunction * _result = 0;
    HRESULT _hr = raw_RemoveSub(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathFunctionPtr(_result, false);
}

inline OMathFunctionPtr OMathScrSubSup::RemoveSup ( ) {
    struct OMathFunction * _result = 0;
    HRESULT _hr = raw_RemoveSup(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathFunctionPtr(_result, false);
}

inline OMathFunctionPtr OMathScrSubSup::ToScrPre ( ) {
    struct OMathFunction * _result = 0;
    HRESULT _hr = raw_ToScrPre(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return OMathFunctionPtr(_result, false);
}

//
// interface ContentControls wrapper method implementations
//

inline IUnknownPtr ContentControls::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline _ApplicationPtr ContentControls::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long ContentControls::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr ContentControls::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long ContentControls::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline ContentControlPtr ContentControls::Item ( VARIANT * Index ) {
    struct ContentControl * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ContentControlPtr(_result, false);
}

inline ContentControlPtr ContentControls::Add ( enum WdContentControlType Type, VARIANT * Range ) {
    struct ContentControl * _result = 0;
    HRESULT _hr = raw_Add(Type, Range, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ContentControlPtr(_result, false);
}

//
// interface ContentControl wrapper method implementations
//

inline _ApplicationPtr ContentControl::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long ContentControl::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr ContentControl::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline RangePtr ContentControl::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline VARIANT_BOOL ContentControl::GetLockContentControl ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_LockContentControl(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ContentControl::PutLockContentControl ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_LockContentControl(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL ContentControl::GetLockContents ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_LockContents(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ContentControl::PutLockContents ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_LockContents(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline XMLMappingPtr ContentControl::GetXMLMapping ( ) {
    struct XMLMapping * _result = 0;
    HRESULT _hr = get_XMLMapping(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return XMLMappingPtr(_result, false);
}

inline enum WdContentControlType ContentControl::GetType ( ) {
    enum WdContentControlType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ContentControl::PutType ( enum WdContentControlType prop ) {
    HRESULT _hr = put_Type(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT ContentControl::Copy ( ) {
    HRESULT _hr = raw_Copy();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT ContentControl::Cut ( ) {
    HRESULT _hr = raw_Cut();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT ContentControl::Delete ( VARIANT_BOOL DeleteContents ) {
    HRESULT _hr = raw_Delete(DeleteContents);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline ContentControlListEntriesPtr ContentControl::GetDropdownListEntries ( ) {
    struct ContentControlListEntries * _result = 0;
    HRESULT _hr = get_DropdownListEntries(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ContentControlListEntriesPtr(_result, false);
}

inline BuildingBlockPtr ContentControl::GetPlaceholderText ( ) {
    struct BuildingBlock * _result = 0;
    HRESULT _hr = get_PlaceholderText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BuildingBlockPtr(_result, false);
}

inline HRESULT ContentControl::SetPlaceholderText ( struct BuildingBlock * BuildingBlock, struct Range * Range, _bstr_t Text ) {
    HRESULT _hr = raw_SetPlaceholderText(BuildingBlock, Range, Text);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _bstr_t ContentControl::GetTitle ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Title(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void ContentControl::PutTitle ( _bstr_t prop ) {
    HRESULT _hr = put_Title(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t ContentControl::GetDateDisplayFormat ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_DateDisplayFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void ContentControl::PutDateDisplayFormat ( _bstr_t prop ) {
    HRESULT _hr = put_DateDisplayFormat(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL ContentControl::GetMultiLine ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_MultiLine(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ContentControl::PutMultiLine ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_MultiLine(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline ContentControlPtr ContentControl::GetParentContentControl ( ) {
    struct ContentControl * _result = 0;
    HRESULT _hr = get_ParentContentControl(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ContentControlPtr(_result, false);
}

inline VARIANT_BOOL ContentControl::GetTemporary ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Temporary(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ContentControl::PutTemporary ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Temporary(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t ContentControl::GetID ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_ID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline VARIANT_BOOL ContentControl::GetShowingPlaceholderText ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ShowingPlaceholderText(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum WdContentControlDateStorageFormat ContentControl::GetDateStorageFormat ( ) {
    enum WdContentControlDateStorageFormat _result;
    HRESULT _hr = get_DateStorageFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ContentControl::PutDateStorageFormat ( enum WdContentControlDateStorageFormat prop ) {
    HRESULT _hr = put_DateStorageFormat(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdBuildingBlockTypes ContentControl::GetBuildingBlockType ( ) {
    enum WdBuildingBlockTypes _result;
    HRESULT _hr = get_BuildingBlockType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ContentControl::PutBuildingBlockType ( enum WdBuildingBlockTypes prop ) {
    HRESULT _hr = put_BuildingBlockType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t ContentControl::GetBuildingBlockCategory ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_BuildingBlockCategory(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void ContentControl::PutBuildingBlockCategory ( _bstr_t prop ) {
    HRESULT _hr = put_BuildingBlockCategory(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdLanguageID ContentControl::GetDateDisplayLocale ( ) {
    enum WdLanguageID _result;
    HRESULT _hr = get_DateDisplayLocale(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ContentControl::PutDateDisplayLocale ( enum WdLanguageID prop ) {
    HRESULT _hr = put_DateDisplayLocale(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT ContentControl::Ungroup ( ) {
    HRESULT _hr = raw_Ungroup();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _variant_t ContentControl::GetDefaultTextStyle ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_DefaultTextStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline void ContentControl::PutDefaultTextStyle ( VARIANT * prop ) {
    HRESULT _hr = put_DefaultTextStyle(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum WdCalendarType ContentControl::GetDateCalendarType ( ) {
    enum WdCalendarType _result;
    HRESULT _hr = get_DateCalendarType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ContentControl::PutDateCalendarType ( enum WdCalendarType prop ) {
    HRESULT _hr = put_DateCalendarType(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t ContentControl::GetTag ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Tag(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void ContentControl::PutTag ( _bstr_t prop ) {
    HRESULT _hr = put_Tag(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL ContentControl::GetChecked ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Checked(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void ContentControl::PutChecked ( VARIANT_BOOL prop ) {
    HRESULT _hr = put_Checked(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT ContentControl::SetCheckedSymbol ( long CharacterNumber, _bstr_t Font ) {
    HRESULT _hr = raw_SetCheckedSymbol(CharacterNumber, Font);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT ContentControl::SetUncheckedSymbol ( long CharacterNumber, _bstr_t Font ) {
    HRESULT _hr = raw_SetUncheckedSymbol(CharacterNumber, Font);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface BuildingBlockTypes wrapper method implementations
//

inline _ApplicationPtr BuildingBlockTypes::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long BuildingBlockTypes::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr BuildingBlockTypes::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long BuildingBlockTypes::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline BuildingBlockTypePtr BuildingBlockTypes::Item ( enum WdBuildingBlockTypes Index ) {
    struct BuildingBlockType * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BuildingBlockTypePtr(_result, false);
}

//
// interface BuildingBlockType wrapper method implementations
//

inline _ApplicationPtr BuildingBlockType::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long BuildingBlockType::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr BuildingBlockType::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long BuildingBlockType::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _bstr_t BuildingBlockType::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline CategoriesPtr BuildingBlockType::GetCategories ( ) {
    struct Categories * _result = 0;
    HRESULT _hr = get_Categories(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CategoriesPtr(_result, false);
}

//
// interface Categories wrapper method implementations
//

inline _ApplicationPtr Categories::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Categories::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Categories::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long Categories::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline CategoryPtr Categories::Item ( VARIANT * Index ) {
    struct Category * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CategoryPtr(_result, false);
}

//
// interface Category wrapper method implementations
//

inline _ApplicationPtr Category::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long Category::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr Category::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long Category::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _bstr_t Category::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline BuildingBlocksPtr Category::GetBuildingBlocks ( ) {
    struct BuildingBlocks * _result = 0;
    HRESULT _hr = get_BuildingBlocks(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BuildingBlocksPtr(_result, false);
}

inline BuildingBlockTypePtr Category::GetType ( ) {
    struct BuildingBlockType * _result = 0;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BuildingBlockTypePtr(_result, false);
}

//
// interface BuildingBlock wrapper method implementations
//

inline _ApplicationPtr BuildingBlock::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long BuildingBlock::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr BuildingBlock::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long BuildingBlock::GetIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_Index(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _bstr_t BuildingBlock::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void BuildingBlock::PutName ( _bstr_t prop ) {
    HRESULT _hr = put_Name(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline BuildingBlockTypePtr BuildingBlock::GetType ( ) {
    struct BuildingBlockType * _result = 0;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BuildingBlockTypePtr(_result, false);
}

inline _bstr_t BuildingBlock::GetDescription ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Description(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void BuildingBlock::PutDescription ( _bstr_t prop ) {
    HRESULT _hr = put_Description(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t BuildingBlock::GetID ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_ID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline CategoryPtr BuildingBlock::GetCategory ( ) {
    struct Category * _result = 0;
    HRESULT _hr = get_Category(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CategoryPtr(_result, false);
}

inline _bstr_t BuildingBlock::GetValue ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Value(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void BuildingBlock::PutValue ( _bstr_t prop ) {
    HRESULT _hr = put_Value(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long BuildingBlock::GetInsertOptions ( ) {
    long _result = 0;
    HRESULT _hr = get_InsertOptions(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void BuildingBlock::PutInsertOptions ( long prop ) {
    HRESULT _hr = put_InsertOptions(prop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT BuildingBlock::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline RangePtr BuildingBlock::Insert ( struct Range * Where, VARIANT * RichText ) {
    struct Range * _result = 0;
    HRESULT _hr = raw_Insert(Where, RichText, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

//
// interface BuildingBlocks wrapper method implementations
//

inline _ApplicationPtr BuildingBlocks::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long BuildingBlocks::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr BuildingBlocks::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long BuildingBlocks::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline BuildingBlockPtr BuildingBlocks::Item ( VARIANT * Index ) {
    struct BuildingBlock * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BuildingBlockPtr(_result, false);
}

inline BuildingBlockPtr BuildingBlocks::Add ( _bstr_t Name, struct Range * Range, VARIANT * Description, enum WdDocPartInsertOptions InsertOptions ) {
    struct BuildingBlock * _result = 0;
    HRESULT _hr = raw_Add(Name, Range, Description, InsertOptions, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BuildingBlockPtr(_result, false);
}

//
// interface BuildingBlockEntries wrapper method implementations
//

inline _ApplicationPtr BuildingBlockEntries::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long BuildingBlockEntries::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr BuildingBlockEntries::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long BuildingBlockEntries::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline BuildingBlockPtr BuildingBlockEntries::Item ( VARIANT * Index ) {
    struct BuildingBlock * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BuildingBlockPtr(_result, false);
}

inline BuildingBlockPtr BuildingBlockEntries::Add ( _bstr_t Name, enum WdBuildingBlockTypes Type, _bstr_t Category, struct Range * Range, VARIANT * Description, enum WdDocPartInsertOptions InsertOptions ) {
    struct BuildingBlock * _result = 0;
    HRESULT _hr = raw_Add(Name, Type, Category, Range, Description, InsertOptions, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BuildingBlockPtr(_result, false);
}

//
// interface CoAuthLock wrapper method implementations
//

inline _ApplicationPtr CoAuthLock::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long CoAuthLock::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr CoAuthLock::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline enum WdLockType CoAuthLock::GetType ( ) {
    enum WdLockType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline CoAuthorPtr CoAuthLock::GetOwner ( ) {
    struct CoAuthor * _result = 0;
    HRESULT _hr = get_Owner(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CoAuthorPtr(_result, false);
}

inline RangePtr CoAuthLock::GetRange ( ) {
    struct Range * _result = 0;
    HRESULT _hr = get_Range(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return RangePtr(_result, false);
}

inline VARIANT_BOOL CoAuthLock::GetHeaderFooter ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_HeaderFooter(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT CoAuthLock::Unlock ( ) {
    HRESULT _hr = raw_Unlock();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface CoAuthLocks wrapper method implementations
//

inline _ApplicationPtr CoAuthLocks::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long CoAuthLocks::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr CoAuthLocks::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long CoAuthLocks::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IUnknownPtr CoAuthLocks::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline CoAuthLockPtr CoAuthLocks::Item ( long Index ) {
    struct CoAuthLock * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CoAuthLockPtr(_result, false);
}

inline CoAuthLockPtr CoAuthLocks::Add ( const _variant_t & Range, enum WdLockType Type ) {
    struct CoAuthLock * _result = 0;
    HRESULT _hr = raw_Add(Range, Type, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CoAuthLockPtr(_result, false);
}

inline HRESULT CoAuthLocks::RemoveEphemeralLocks ( ) {
    HRESULT _hr = raw_RemoveEphemeralLocks();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface CoAuthor wrapper method implementations
//

inline _ApplicationPtr CoAuthor::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long CoAuthor::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr CoAuthor::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline _bstr_t CoAuthor::GetID ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_ID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _bstr_t CoAuthor::GetName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline VARIANT_BOOL CoAuthor::GetIsMe ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_IsMe(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline CoAuthLocksPtr CoAuthor::GetLocks ( ) {
    struct CoAuthLocks * _result = 0;
    HRESULT _hr = get_Locks(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CoAuthLocksPtr(_result, false);
}

inline _bstr_t CoAuthor::GetEmailAddress ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_EmailAddress(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

//
// interface CoAuthors wrapper method implementations
//

inline _ApplicationPtr CoAuthors::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long CoAuthors::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr CoAuthors::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline long CoAuthors::GetCount ( ) {
    long _result = 0;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IUnknownPtr CoAuthors::Get_NewEnum ( ) {
    IUnknown * _result = 0;
    HRESULT _hr = get__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

inline CoAuthorPtr CoAuthors::Item ( const _variant_t & Index ) {
    struct CoAuthor * _result = 0;
    HRESULT _hr = raw_Item(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CoAuthorPtr(_result, false);
}

//
// interface CoAuthoring wrapper method implementations
//

inline _ApplicationPtr CoAuthoring::GetApplication ( ) {
    struct _Application * _result = 0;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _ApplicationPtr(_result, false);
}

inline long CoAuthoring::GetCreator ( ) {
    long _result = 0;
    HRESULT _hr = get_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IDispatchPtr CoAuthoring::GetParent ( ) {
    IDispatch * _result = 0;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline CoAuthorsPtr CoAuthoring::GetAuthors ( ) {
    struct CoAuthors * _result = 0;
    HRESULT _hr = get_Authors(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CoAuthorsPtr(_result, false);
}

inline CoAuthorPtr CoAuthoring::GetMe ( ) {
    struct CoAuthor * _result = 0;
    HRESULT _hr = get_Me(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CoAuthorPtr(_result, false);
}

inline VARIANT_BOOL CoAuthoring::GetPendingUpdates ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PendingUpdates(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline CoAuthLocksPtr CoAuthoring::GetLocks ( ) {
    struct CoAuthLocks * _result = 0;
    HRESULT _hr = get_Locks(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CoAuthLocksPtr(_result, false);
}

inline CoAuthUpdatesPtr CoAuthoring::GetUpdates ( ) {
    struct CoAuthUpdates * _result = 0;
    HRESULT _hr = get_Updates(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CoAuthUpdatesPtr(_result, false);
}

inline ConflictsPtr CoAuthoring::GetConflicts ( ) {
    struct Conflicts * _result = 0;
    HRESULT _hr = get_Conflicts(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ConflictsPtr(_result, false);
}

inline VARIANT_BOOL CoAuthoring::GetCanShare ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_CanShare(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL CoAuthoring::GetCanMerge ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_CanMerge(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}