www.pudn.com > test_vc_11.rar > names.cpp


// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++ 
 
// NOTE: Do not modify the contents of this file.  If this class is regenerated by 
//  Microsoft Visual C++, your modifications will be overwritten. 
 
 
#include "stdafx.h" 
#include "names.h" 
 
// Dispatch interfaces referenced by this interface 
#include "spreadsheet.h" 
#include "name.h" 
 
 
///////////////////////////////////////////////////////////////////////////// 
// CNames properties 
 
///////////////////////////////////////////////////////////////////////////// 
// CNames operations 
 
LPDISPATCH CNames::GetApplication() 
{ 
	LPDISPATCH pDispatch; 
	InvokeHelper(0x60020001, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL); 
//	return CSpreadsheet(pDispatch); 
	return pDispatch; 
} 
 
long CNames::GetCount() 
{ 
	long result; 
	InvokeHelper(0x60020002, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); 
	return result; 
} 
 
LPDISPATCH CNames::GetParent() 
{ 
	LPDISPATCH result; 
	InvokeHelper(0x60020003, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL); 
	return result; 
} 
 
CName CNames::Item(const VARIANT& Index, const VARIANT& IndexLocal, const VARIANT& RefersTo) 
{ 
	LPDISPATCH pDispatch; 
	static BYTE parms[] = 
		VTS_VARIANT VTS_VARIANT VTS_VARIANT; 
	InvokeHelper(0x0, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms, 
		&Index, &IndexLocal, &RefersTo); 
	return CName(pDispatch); 
} 
 
void CNames::Add(const VARIANT& Name, const VARIANT& RefersTo, const VARIANT& Visible, const VARIANT& MacroType, const VARIANT& ShortcutKey, const VARIANT& Category, const VARIANT& NameLocal, const VARIANT& RefersToLocal, 
		const VARIANT& CategoryLocal, const VARIANT& RefersToR1C1, const VARIANT& RefersToR1C1Local) 
{ 
	static BYTE parms[] = 
		VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT; 
	InvokeHelper(0x60020005, DISPATCH_METHOD, VT_EMPTY, NULL, parms, 
		 &Name, &RefersTo, &Visible, &MacroType, &ShortcutKey, &Category, &NameLocal, &RefersToLocal, &CategoryLocal, &RefersToR1C1, &RefersToR1C1Local); 
}