Definition at line 89 of file qaxscript.cpp.
◆ QAxScriptSite()
QAxScriptSite::QAxScriptSite |
( |
QAxScript * |
script | ) |
|
◆ AddRef()
ULONG WINAPI QAxScriptSite::AddRef |
( |
| ) |
|
◆ EnableModeless()
HRESULT WINAPI QAxScriptSite::EnableModeless |
( |
BOOL |
fEnable | ) |
|
◆ GetDocVersionString()
HRESULT WINAPI QAxScriptSite::GetDocVersionString |
( |
BSTR * |
pbstrVersion | ) |
|
◆ GetItemInfo()
HRESULT WINAPI QAxScriptSite::GetItemInfo |
( |
LPCOLESTR |
pstrName, |
|
|
DWORD |
dwReturnMask, |
|
|
IUnknown ** |
ppiunkItem, |
|
|
ITypeInfo ** |
ppti |
|
) |
| |
Definition at line 182 of file qaxscript.cpp.
186 else if (mask & SCRIPTINFO_IUNKNOWN)
191 else if (mask & SCRIPTINFO_ITYPEINFO)
196 return TYPE_E_ELEMENTNOTFOUND;
198 if (mask & SCRIPTINFO_IUNKNOWN)
200 if (mask & SCRIPTINFO_ITYPEINFO) {
201 IProvideClassInfo *classInfo = 0;
202 object->queryInterface(IID_IProvideClassInfo, (
void**)&classInfo);
204 classInfo->GetClassInfo(
type);
205 classInfo->Release();
static QString fromWCharArray(const wchar_t *, int size=-1)
Returns a copy of the string, where the encoding of string depends on the size of wchar...
QAxBase * findObject(const QString &name)
Returns the object name registered with the manager.
long queryInterface(const QUuid &, void **) const
Requests the interface uuid from the COM object and sets the value of iface to the provided interface...
The QAxBase class is an abstract class that provides an API to initialize and access a COM object...
◆ GetLCID()
HRESULT WINAPI QAxScriptSite::GetLCID |
( |
LCID * |
plcid | ) |
|
◆ GetWindow()
HRESULT WINAPI QAxScriptSite::GetWindow |
( |
HWND * |
phwnd | ) |
|
◆ OnEnterScript()
HRESULT WINAPI QAxScriptSite::OnEnterScript |
( |
| ) |
|
Definition at line 249 of file qaxscript.cpp.
void entered()
This signal is emitted when a script engine has started executing code.
◆ OnLeaveScript()
HRESULT WINAPI QAxScriptSite::OnLeaveScript |
( |
| ) |
|
Definition at line 261 of file qaxscript.cpp.
void finished()
This signal is emitted when a script engine has finished executing code.
◆ OnScriptError()
HRESULT WINAPI QAxScriptSite::OnScriptError |
( |
IActiveScriptError * |
pscripterror | ) |
|
Definition at line 273 of file qaxscript.cpp.
276 memset(&exception, 0,
sizeof(exception));
283 error->GetExceptionInfo(&exception);
284 error->GetSourcePosition(&context, &lineNumber, &charPos);
288 SysFreeString(bstrLineText);
290 SysFreeString(exception.bstrSource);
291 SysFreeString(exception.bstrDescription);
292 SysFreeString(exception.bstrHelpFile);
static QString fromWCharArray(const wchar_t *, int size=-1)
Returns a copy of the string, where the encoding of string depends on the size of wchar...
The QString class provides a Unicode character string.
void error(int code, const QString &description, int sourcePosition, const QString &sourceText)
This signal is emitted when an execution error occurred while running a script.
◆ OnScriptTerminate()
HRESULT WINAPI QAxScriptSite::OnScriptTerminate |
( |
const VARIANT * |
pvarResult, |
|
|
const EXCEPINFO * |
pexcepinfo |
|
) |
| |
Definition at line 228 of file qaxscript.cpp.
232 if (result && result->vt != VT_EMPTY)
static QString fromWCharArray(const wchar_t *, int size=-1)
Returns a copy of the string, where the encoding of string depends on the size of wchar...
void finished()
This signal is emitted when a script engine has finished executing code.
QVariant VARIANTToQVariant(const VARIANT &arg, const QByteArray &typeName, uint type)
Returns arg as a QVariant of type type.
◆ OnStateChange()
HRESULT WINAPI QAxScriptSite::OnStateChange |
( |
SCRIPTSTATE |
ssScriptState | ) |
|
Definition at line 305 of file qaxscript.cpp.
void stateChanged(int state)
This signal is emitted when a script engine changes state.
◆ QueryInterface()
HRESULT WINAPI QAxScriptSite::QueryInterface |
( |
REFIID |
iid, |
|
|
void ** |
ppvObject |
|
) |
| |
Definition at line 150 of file qaxscript.cpp.
153 if (iid == IID_IUnknown)
154 *ppvObject = (IUnknown*)(IActiveScriptSite*)
this;
155 else if (iid == IID_IActiveScriptSite)
156 *ppvObject = (IActiveScriptSite*)
this;
157 else if (iid == IID_IActiveScriptSiteWindow)
158 *ppvObject = (IActiveScriptSiteWindow*)
this;
160 return E_NOINTERFACE;
◆ Release()
ULONG WINAPI QAxScriptSite::Release |
( |
| ) |
|
◆ window()
QWidget * QAxScriptSite::window |
( |
| ) |
const |
|
protected |
Definition at line 316 of file qaxscript.cpp.
Referenced by EnableModeless(), and GetWindow().
328 w =
qApp->activeWindow();
T qobject_cast(QObject *object)
The QObject class is the base class of all Qt objects.
QObject * parent() const
Returns a pointer to the parent object.
◆ ref
◆ script
The documentation for this class was generated from the following file: