X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b556e9adf01a107dbe78226c0f289f9ba24b575..9bf6a1b80cb856903e15387ebecc926142e73010:/docs/latex/wx/autoobj.tex diff --git a/docs/latex/wx/autoobj.tex b/docs/latex/wx/autoobj.tex index 9f8795581e..bd20fa6de8 100644 --- a/docs/latex/wx/autoobj.tex +++ b/docs/latex/wx/autoobj.tex @@ -12,16 +12,24 @@ gets the current Excel instance, and if it exists, makes the active cell bold. \begin{verbatim} wxAutomationObject excelObject; if (excelObject.GetInstance("Excel.Application")) - excelObject.PutProperty("ActiveCell.Font.Bold", TRUE); + excelObject.PutProperty("ActiveCell.Font.Bold", true); \end{verbatim} } -Note that this class works under Windows only, and currently only for Visual C++. +Note that this class obviously works under Windows only. \wxheading{Derived from} \helpref{wxObject}{wxobject} +\wxheading{Include files} + + + +\wxheading{Library} + +\helpref{wxCore}{librarieslist} + \wxheading{See also} \helpref{wxVariant}{wxvariant} @@ -70,25 +78,12 @@ needing to call GetProperty several times using several temporary objects. For e \end{verbatim} } -\membersection{wxAutomationObject::ConvertOleToVariant}\label{wxautomationobjectconvertoletovariant} - -\constfunc{bool}{ConvertOleToVariant}{\param{const VARIANTARG\&}{ oleVariant}, \param{const wxVariant\&}{ variant}} - -Converts the given VARIANTARG object to a wxVariant. IDispatch pointers are converted to the ``void*" type. - -\membersection{wxAutomationObject::ConvertVariantToOle}\label{wxautomationobjectconvertvarianttoole} - -\constfunc{bool}{ConvertVariantToOle}{\param{const wxVariant\&}{ variant}, \param{VARIANTARG\&}{ oleVariant}} - -Converts the given wxVariant object to a VARIANTARG. The ``void*" type is assumed to be an -IDispatch pointer. - \membersection{wxAutomationObject::CreateInstance}\label{wxautomationobjectcreateinstance} \constfunc{bool}{CreateInstance}{\param{const wxString\&}{ classId}} -Creates a new object based on the class id, returning TRUE if the object was successfully created, -or FALSE if not. +Creates a new object based on the class id, returning true if the object was successfully created, +or false if not. \membersection{wxAutomationObject::GetDispatchPtr}\label{wxautomationobjectgetdispatchptr} @@ -101,14 +96,14 @@ Gets the IDispatch pointer. \constfunc{bool}{GetInstance}{\param{const wxString\&}{ classId}} Retrieves the current object associated with a class id, and attaches the IDispatch pointer -to this object. Returns TRUE if a pointer was succesfully retrieved, FALSE otherwise. +to this object. Returns true if a pointer was successfully retrieved, false otherwise. Note that this cannot cope with two instances of a given OLE object being active simultaneously, such as two copies of Excel running. Which object is referenced cannot currently be specified. \membersection{wxAutomationObject::GetObject}\label{wxautomationobjectgetobject} -\constfunc{bool}{GetObject}{\param{wxAutomationObject\&}{obj} \param{const wxString\&}{ property}, +\constfunc{bool}{GetObject}{\param{wxAutomationObject\&}{obj}, \param{const wxString\&}{ property}, \param{int}{ noArgs = 0}, \param{wxVariant }{args[] = NULL}} Retrieves a property from this object, assumed to be a dispatch pointer, and initialises {\it obj} with it. @@ -171,7 +166,7 @@ DISPATCH\_METHOD.} \wxheading{Return value} -TRUE if the operation was successful, FALSE otherwise. +true if the operation was successful, false otherwise. \wxheading{Remarks}