www.pudn.com > c++builerTTS_Test.rar > VTxtAuto_TLB.h
// ************************************************************************ //
// WARNING
// -------
// The types declared in this file were generated from data read from a
// Type Library. If this type library is explicitly or indirectly (via
// another type library referring to this type library) re-imported, or the
// 'Refresh' command of the Type Library Editor activated while editing the
// Type Library, the contents of this file will be regenerated and all
// manual modifications will be lost.
// ************************************************************************ //
// C++ TLBWRTR : $Revision: 1.151.1.0.1.27 $
// File generated on 2007-3-24 23:27:35 from Type Library described below.
// ************************************************************************ //
// Type Lib: C:\WINDOWS\speech\vtxtauto.tlb (1)
// LIBID: {FF2C7A51-78F9-11CE-B762-00AA004CD65C}
// LCID: 409
// Helpfile:
// HelpString: VoiceText 1.0 Type Library
// DepndLst:
// (1) v2.0 stdole, (C:\WINDOWS\system32\stdole2.tlb)
// ************************************************************************ //
#ifndef VTxtAuto_TLBH
#define VTxtAuto_TLBH
#pragma option push -b -w-inl
#include
#if !defined(__UTILCLS_H_VERSION) || (__UTILCLS_H_VERSION < 0x0600)
//
// The code generated by the TLIBIMP utility or the Import|TypeLibrary
// and Import|ActiveX feature of C++Builder rely on specific versions of
// the header file UTILCLS.H found in the INCLUDE\VCL directory. If an
// older version of the file is detected, you probably need an update/patch.
//
#error "This file requires a newer version of the header UTILCLS.H" \
"You need to apply an update/patch to your copy of C++Builder"
#endif
#include
#include
#if defined(USING_ATLVCL) || defined(USING_ATL)
#if !defined(__TLB_NO_EVENT_WRAPPERS)
#include
#endif
#endif
// *********************************************************************//
// Forward reference of some VCL types (to avoid including STDVCL.HPP)
// *********************************************************************//
namespace Stdvcl {class IStrings; class IStringsDisp;}
using namespace Stdvcl;
typedef TComInterface IStringsPtr;
typedef TComInterface IStringsDispPtr;
namespace Vtxtauto_tlb
{
// *********************************************************************//
// HelpString: VoiceText 1.0 Type Library
// Version: 1.0
// *********************************************************************//
// *********************************************************************//
// GUIDS declared in the TypeLibrary. Following prefixes are used:
// Type Libraries : LIBID_xxxx
// CoClasses : CLSID_xxxx
// DISPInterfaces : DIID_xxxx
// Non-DISP interfaces: IID_xxxx
// *********************************************************************//
extern __declspec (package) const GUID LIBID_VTxtAuto;
extern __declspec (package) const GUID GUID_SPEAKFLAGS;
extern __declspec (package) const GUID IID_IVTxtAuto;
extern __declspec (package) const GUID CLSID_VTxtAuto_;
// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
enum SPEAKFLAGS;
interface DECLSPEC_UUID("{FF2C7A50-78F9-11CE-B762-00AA004CD65C}") IVTxtAuto;
typedef TComInterface IVTxtAutoPtr;
// *********************************************************************//
// Declaration of CoClasses defined in Type Library
// (NOTE: Here we map each CoClass to its Default Interface)
//
// The LIBID_OF_ macro(s) map a LIBID_OF_CoClassName to the GUID of this
// TypeLibrary. It simplifies the updating of macros when CoClass name
// change.
// *********************************************************************//
typedef IVTxtAuto VTxtAuto_;
typedef IVTxtAutoPtr VTxtAuto_Ptr;
#define LIBID_OF_VTxtAuto_ (&LIBID_VTxtAuto)
// *********************************************************************//
// Declaration of Enumerations defined in Type Library
// *********************************************************************//
typedef enum SPEAKFLAGS
{
vtxtst_STATEMENT = 1,
vtxtst_QUESTION = 2,
vtxtst_COMMAND = 4,
vtxtst_WARNING = 8,
vtxtst_READING = 16,
vtxtst_NUMBERS = 32,
vtxtst_SPREADSHEET = 64,
vtxtsp_VERYHIGH = 128,
vtxtsp_HIGH = 256,
vtxtsp_NORMAL = 512
} SPEAKFLAGS;
// *********************************************************************//
// Interface: IVTxtAuto
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {FF2C7A50-78F9-11CE-B762-00AA004CD65C}
// *********************************************************************//
interface IVTxtAuto : public IDispatch
{
public:
// [-1] Register application with Voice Text.
virtual HRESULT STDMETHODCALLTYPE Register(BSTR pszSite/*[in]*/, BSTR pszApp/*[in]*/) = 0;
// [-1] Speak the text.
virtual HRESULT STDMETHODCALLTYPE Speak(BSTR pszBuffer/*[in]*/, long dwFlags/*[in]*/) = 0;
// [-1] Stop speaking the text.
virtual HRESULT STDMETHODCALLTYPE StopSpeaking(void) = 0;
// [-1] Pause speaking the text.
virtual HRESULT STDMETHODCALLTYPE AudioPause(void) = 0;
// [-1] Resume speaking the text.
virtual HRESULT STDMETHODCALLTYPE AudioResume(void) = 0;
// [-1] Rewind the text.
virtual HRESULT STDMETHODCALLTYPE AudioRewind(void) = 0;
// [-1] Fast forward the text.
virtual HRESULT STDMETHODCALLTYPE AudioFastForward(void) = 0;
// [-1] Sets the Automation Server PROGID containing callbacks.
virtual HRESULT STDMETHODCALLTYPE set_Callback(BSTR Param1/*[in]*/) = 0;
// [-1] Set the TTS speed.
virtual HRESULT STDMETHODCALLTYPE set_Speed(long pdwSpeed/*[in]*/) = 0;
// [1610743816] Set the TTS speed.
virtual HRESULT STDMETHODCALLTYPE get_Speed(long* pdwSpeed/*[out,retval]*/) = 0;
// [-1] Set the Enabled/Disabled state.
virtual HRESULT STDMETHODCALLTYPE set_Enabled(long pdwEnabled/*[in]*/) = 0;
// [1610743818] Set the Enabled/Disabled state.
virtual HRESULT STDMETHODCALLTYPE get_Enabled(long* pdwEnabled/*[out,retval]*/) = 0;
// [-1] Get the speaking state.
virtual HRESULT STDMETHODCALLTYPE get_IsSpeaking(VARIANT_BOOL* pbSpeaking/*[out,retval]*/) = 0;
#if !defined(__TLB_NO_INTERFACE_WRAPPERS)
long __fastcall get_Speed(void)
{
long pdwSpeed;
OLECHECK(this->get_Speed((long*)&pdwSpeed));
return pdwSpeed;
}
long __fastcall get_Enabled(void)
{
long pdwEnabled;
OLECHECK(this->get_Enabled((long*)&pdwEnabled));
return pdwEnabled;
}
VARIANT_BOOL __fastcall get_IsSpeaking(void)
{
VARIANT_BOOL pbSpeaking;
OLECHECK(this->get_IsSpeaking((VARIANT_BOOL*)&pbSpeaking));
return pbSpeaking;
}
__property BSTR Callback = {write = set_Callback};
__property long Speed = {read = get_Speed, write = set_Speed};
__property long Enabled = {read = get_Enabled, write = set_Enabled};
__property VARIANT_BOOL IsSpeaking = {read = get_IsSpeaking};
#endif // __TLB_NO_INTERFACE_WRAPPERS
};
#if !defined(__TLB_NO_INTERFACE_WRAPPERS)
// *********************************************************************//
// SmartIntf: TCOMIVTxtAuto
// Interface: IVTxtAuto
// *********************************************************************//
template
class TCOMIVTxtAutoT : public TComInterface, public TComInterfaceBase
{
public:
TCOMIVTxtAutoT() {}
TCOMIVTxtAutoT(IVTxtAuto *intf, bool addRef = false) : TComInterface(intf, addRef) {}
TCOMIVTxtAutoT(const TCOMIVTxtAutoT& src) : TComInterface(src) {}
TCOMIVTxtAutoT& operator=(const TCOMIVTxtAutoT& src) { Bind(src, true); return *this;}
HRESULT __fastcall Register(BSTR pszSite/*[in]*/, BSTR pszApp/*[in]*/);
HRESULT __fastcall Speak(BSTR pszBuffer/*[in]*/, long dwFlags/*[in]*/);
HRESULT __fastcall StopSpeaking(void);
HRESULT __fastcall AudioPause(void);
HRESULT __fastcall AudioResume(void);
HRESULT __fastcall AudioRewind(void);
HRESULT __fastcall AudioFastForward(void);
HRESULT __fastcall set_Callback(BSTR Param1/*[in]*/);
HRESULT __fastcall set_Speed(long pdwSpeed/*[in]*/);
HRESULT __fastcall get_Speed(long* pdwSpeed/*[out,retval]*/);
long __fastcall get_Speed(void);
HRESULT __fastcall set_Enabled(long pdwEnabled/*[in]*/);
HRESULT __fastcall get_Enabled(long* pdwEnabled/*[out,retval]*/);
long __fastcall get_Enabled(void);
HRESULT __fastcall get_IsSpeaking(VARIANT_BOOL* pbSpeaking/*[out,retval]*/);
HRESULT __fastcall get_IsSpeaking(TOLEBOOL* pbSpeaking/*[out,retval]*/);
TOLEBOOL __fastcall get_IsSpeaking(void);
__property BSTR Callback = {write = set_Callback};
__property long Speed = {read = get_Speed, write = set_Speed};
__property long Enabled = {read = get_Enabled, write = set_Enabled};
__property TOLEBOOL IsSpeaking = {read = get_IsSpeaking};
};
typedef TCOMIVTxtAutoT TCOMIVTxtAuto;
// *********************************************************************//
// DispIntf: IVTxtAuto
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {FF2C7A50-78F9-11CE-B762-00AA004CD65C}
// *********************************************************************//
template
class IVTxtAutoDispT : public TAutoDriver
{
public:
IVTxtAutoDispT(){}
IVTxtAutoDispT(IVTxtAuto *pintf)
{
TAutoDriver::Bind(pintf, false);
}
IVTxtAutoDispT(IVTxtAutoPtr pintf)
{
TAutoDriver::Bind(pintf, true);
}
IVTxtAutoDispT& operator=(IVTxtAuto *pintf)
{
TAutoDriver::Bind(pintf, false);
return *this;
}
IVTxtAutoDispT& operator=(IVTxtAutoPtr pintf)
{
TAutoDriver::Bind(pintf, true);
return *this;
}
HRESULT BindDefault()
{
return OLECHECK(Bind(CLSID_VTxtAuto_));
}
HRESULT BindRunning()
{
return BindToActive(CLSID_VTxtAuto_);
}
HRESULT __fastcall Register(BSTR pszSite/*[in]*/, BSTR pszApp/*[in]*/);
HRESULT __fastcall Speak(BSTR pszBuffer/*[in]*/, long dwFlags/*[in]*/);
HRESULT __fastcall StopSpeaking();
HRESULT __fastcall AudioPause();
HRESULT __fastcall AudioResume();
HRESULT __fastcall AudioRewind();
HRESULT __fastcall AudioFastForward();
HRESULT __fastcall set_Callback(BSTR Param1/*[in]*/);
HRESULT __fastcall set_Speed(long pdwSpeed/*[in]*/);
HRESULT __fastcall get_Speed(long* pdwSpeed/*[out,retval]*/);
long __fastcall get_Speed(void);
HRESULT __fastcall set_Enabled(long pdwEnabled/*[in]*/);
HRESULT __fastcall get_Enabled(long* pdwEnabled/*[out,retval]*/);
long __fastcall get_Enabled(void);
HRESULT __fastcall get_IsSpeaking(VARIANT_BOOL* pbSpeaking/*[out,retval]*/);
VARIANT_BOOL __fastcall get_IsSpeaking(void);
__property BSTR Callback = {write = set_Callback};
__property long Speed = {read = get_Speed, write = set_Speed};
__property long Enabled = {read = get_Enabled, write = set_Enabled};
__property VARIANT_BOOL IsSpeaking = {read = get_IsSpeaking};
};
typedef IVTxtAutoDispT IVTxtAutoDisp;
// *********************************************************************//
// SmartIntf: TCOMIVTxtAuto
// Interface: IVTxtAuto
// *********************************************************************//
template HRESULT __fastcall
TCOMIVTxtAutoT::Register(BSTR pszSite/*[in]*/, BSTR pszApp/*[in]*/)
{
return (*this)->Register(pszSite, pszApp);
}
template HRESULT __fastcall
TCOMIVTxtAutoT::Speak(BSTR pszBuffer/*[in]*/, long dwFlags/*[in]*/)
{
return (*this)->Speak(pszBuffer, dwFlags);
}
template HRESULT __fastcall
TCOMIVTxtAutoT::StopSpeaking(void)
{
return (*this)->StopSpeaking();
}
template HRESULT __fastcall
TCOMIVTxtAutoT::AudioPause(void)
{
return (*this)->AudioPause();
}
template HRESULT __fastcall
TCOMIVTxtAutoT::AudioResume(void)
{
return (*this)->AudioResume();
}
template HRESULT __fastcall
TCOMIVTxtAutoT::AudioRewind(void)
{
return (*this)->AudioRewind();
}
template HRESULT __fastcall
TCOMIVTxtAutoT::AudioFastForward(void)
{
return (*this)->AudioFastForward();
}
template HRESULT __fastcall
TCOMIVTxtAutoT::set_Callback(BSTR Param1/*[in]*/)
{
return (*this)->set_Callback(Param1);
}
template HRESULT __fastcall
TCOMIVTxtAutoT::set_Speed(long pdwSpeed/*[in]*/)
{
return (*this)->set_Speed(pdwSpeed);
}
template HRESULT __fastcall
TCOMIVTxtAutoT::get_Speed(long* pdwSpeed/*[out,retval]*/)
{
return (*this)->get_Speed(pdwSpeed);
}
template long __fastcall
TCOMIVTxtAutoT::get_Speed(void)
{
long pdwSpeed;
OLECHECK(this->get_Speed((long*)&pdwSpeed));
return pdwSpeed;
}
template HRESULT __fastcall
TCOMIVTxtAutoT::set_Enabled(long pdwEnabled/*[in]*/)
{
return (*this)->set_Enabled(pdwEnabled);
}
template HRESULT __fastcall
TCOMIVTxtAutoT::get_Enabled(long* pdwEnabled/*[out,retval]*/)
{
return (*this)->get_Enabled(pdwEnabled);
}
template long __fastcall
TCOMIVTxtAutoT::get_Enabled(void)
{
long pdwEnabled;
OLECHECK(this->get_Enabled((long*)&pdwEnabled));
return pdwEnabled;
}
template HRESULT __fastcall
TCOMIVTxtAutoT::get_IsSpeaking(VARIANT_BOOL* pbSpeaking/*[out,retval]*/)
{
return (*this)->get_IsSpeaking(pbSpeaking);
}
template HRESULT __fastcall
TCOMIVTxtAutoT::get_IsSpeaking(TOLEBOOL* pbSpeaking/*[out,retval]*/)
{
return (*this)->get_IsSpeaking(VARIANT_BOOL*)pbSpeaking);
}
template TOLEBOOL __fastcall
TCOMIVTxtAutoT::get_IsSpeaking(void)
{
VARIANT_BOOL pbSpeaking;
OLECHECK(this->get_IsSpeaking((VARIANT_BOOL*)&pbSpeaking));
return (TOLEBOOL)pbSpeaking;
}
// *********************************************************************//
// DispIntf: IVTxtAuto
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {FF2C7A50-78F9-11CE-B762-00AA004CD65C}
// *********************************************************************//
template HRESULT __fastcall
IVTxtAutoDispT::Register(BSTR pszSite/*[in]*/, BSTR pszApp/*[in]*/)
{
_TDispID _dispid(*this, OLETEXT("Register"), DISPID(DISPID_UNKNOWN/*[1610743808]*/));
TAutoArgs<2> _args;
_args[1] = pszSite /*[VT_BSTR:0]*/;
_args[2] = pszApp /*[VT_BSTR:0]*/;
return OleFunction(_dispid, _args);
}
template HRESULT __fastcall
IVTxtAutoDispT::Speak(BSTR pszBuffer/*[in]*/, long dwFlags/*[in]*/)
{
_TDispID _dispid(*this, OLETEXT("Speak"), DISPID(DISPID_UNKNOWN/*[1610743809]*/));
TAutoArgs<2> _args;
_args[1] = pszBuffer /*[VT_BSTR:0]*/;
_args[2] = dwFlags /*[VT_I4:0]*/;
return OleFunction(_dispid, _args);
}
template HRESULT __fastcall
IVTxtAutoDispT::StopSpeaking()
{
_TDispID _dispid(*this, OLETEXT("StopSpeaking"), DISPID(DISPID_UNKNOWN/*[1610743810]*/));
return OleFunction(_dispid);
}
template HRESULT __fastcall
IVTxtAutoDispT::AudioPause()
{
_TDispID _dispid(*this, OLETEXT("AudioPause"), DISPID(DISPID_UNKNOWN/*[1610743811]*/));
return OleFunction(_dispid);
}
template HRESULT __fastcall
IVTxtAutoDispT::AudioResume()
{
_TDispID _dispid(*this, OLETEXT("AudioResume"), DISPID(DISPID_UNKNOWN/*[1610743812]*/));
return OleFunction(_dispid);
}
template HRESULT __fastcall
IVTxtAutoDispT::AudioRewind()
{
_TDispID _dispid(*this, OLETEXT("AudioRewind"), DISPID(DISPID_UNKNOWN/*[1610743813]*/));
return OleFunction(_dispid);
}
template HRESULT __fastcall
IVTxtAutoDispT::AudioFastForward()
{
_TDispID _dispid(*this, OLETEXT("AudioFastForward"), DISPID(DISPID_UNKNOWN/*[1610743814]*/));
return OleFunction(_dispid);
}
template HRESULT __fastcall
IVTxtAutoDispT::set_Callback(BSTR Param1/*[in]*/)
{
_TDispID _dispid(*this, OLETEXT("Callback"), DISPID(DISPID_UNKNOWN/*[1610743815]*/));
TAutoArgs<1> _args;
_args[1] = Param1 /*[VT_BSTR:0]*/;
return OlePropertyPut(_dispid, _args);
}
template HRESULT __fastcall
IVTxtAutoDispT::set_Speed(long pdwSpeed/*[in]*/)
{
_TDispID _dispid(*this, OLETEXT("Speed"), DISPID(DISPID_UNKNOWN/*[1610743816]*/));
TAutoArgs<1> _args;
_args[1] = pdwSpeed /*[VT_I4:0]*/;
return OlePropertyPut(_dispid, _args);
}
template HRESULT __fastcall
IVTxtAutoDispT::get_Speed(long* pdwSpeed/*[out,retval]*/)
{
_TDispID _dispid(*this, OLETEXT("Speed"), DISPID(1610743816));
TAutoArgs<0> _args;
return OutRetValSetterPtr(pdwSpeed /*[VT_I4:1]*/, _args, OlePropertyGet(_dispid, _args));
}
template long __fastcall
IVTxtAutoDispT::get_Speed(void)
{
long pdwSpeed;
this->get_Speed((long*)&pdwSpeed);
return pdwSpeed;
}
template HRESULT __fastcall
IVTxtAutoDispT::set_Enabled(long pdwEnabled/*[in]*/)
{
_TDispID _dispid(*this, OLETEXT("Enabled"), DISPID(DISPID_UNKNOWN/*[1610743818]*/));
TAutoArgs<1> _args;
_args[1] = pdwEnabled /*[VT_I4:0]*/;
return OlePropertyPut(_dispid, _args);
}
template HRESULT __fastcall
IVTxtAutoDispT::get_Enabled(long* pdwEnabled/*[out,retval]*/)
{
_TDispID _dispid(*this, OLETEXT("Enabled"), DISPID(1610743818));
TAutoArgs<0> _args;
return OutRetValSetterPtr(pdwEnabled /*[VT_I4:1]*/, _args, OlePropertyGet(_dispid, _args));
}
template long __fastcall
IVTxtAutoDispT::get_Enabled(void)
{
long pdwEnabled;
this->get_Enabled((long*)&pdwEnabled);
return pdwEnabled;
}
template HRESULT __fastcall
IVTxtAutoDispT::get_IsSpeaking(VARIANT_BOOL* pbSpeaking/*[out,retval]*/)
{
_TDispID _dispid(*this, OLETEXT("IsSpeaking"), DISPID(DISPID_UNKNOWN/*[1610743820]*/));
TAutoArgs<0> _args;
return OutRetValSetterPtr(pbSpeaking /*[VT_BOOL:1]*/, _args, OlePropertyGet(_dispid, _args));
}
template VARIANT_BOOL __fastcall
IVTxtAutoDispT::get_IsSpeaking(void)
{
VARIANT_BOOL pbSpeaking;
this->get_IsSpeaking((VARIANT_BOOL*)&pbSpeaking);
return pbSpeaking;
}
// *********************************************************************//
// The following typedefs expose classes (named CoCoClassName) that
// provide static Create() and CreateRemote(LPWSTR machineName) methods
// for creating an instance of an exposed object. These functions can
// be used by client wishing to automate CoClasses exposed by this
// typelibrary.
// *********************************************************************//
// *********************************************************************//
// COCLASS DEFAULT INTERFACE CREATOR
// CoClass : VTxtAuto_
// Interface: TCOMIVTxtAuto
// *********************************************************************//
typedef TCoClassCreatorT CoVTxtAuto_;
#endif // __TLB_NO_INTERFACE_WRAPPERS
}; // namespace Vtxtauto_tlb
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Vtxtauto_tlb;
#endif
#pragma option pop
#endif // VTxtAuto_TLBH