diff options
Diffstat (limited to 'doc/html/qaxfactory.html')
-rw-r--r-- | doc/html/qaxfactory.html | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/doc/html/qaxfactory.html b/doc/html/qaxfactory.html index e3ff0d316..a4e86a330 100644 --- a/doc/html/qaxfactory.html +++ b/doc/html/qaxfactory.html @@ -68,7 +68,7 @@ body { background: #ffffff; color: black; } <li class=fn>bool <a href="#stopServer"><b>stopServer</b></a> ()</li> </ul> <hr><a name="details"></a><h2>Detailed Description</h2> -<p> This class is defined in the <b>TQt <a href="activeqt.html#ActiveTQt">ActiveTQt</a> Extension</b>, which can be found in the <tt>qt/extensions</tt> directory. It is not included in the main TQt API. +<p> This class is defined in the <b>TQt <a href="activentqt.html#ActiveTQt">ActiveTQt</a> Extension</b>, which can be found in the <tt>qt/extensions</tt> directory. It is not included in the main TQt API. <p> The TQAxFactory class defines a factory for the creation of COM components. @@ -84,7 +84,7 @@ yourself. Use the <a href="qaxfactory.html#TQAXFACTORY_DEFAULT">TQAXFACTORY_DEFA implementation file (e.g. main.cpp) to instantiate and export the default factory: <p> <pre> - #include <<a href="qapplication-h.html">qapplication.h</a>> + #include <<a href="qapplication-h.html">ntqapplication.h</a>> #include <<a href="qaxfactory-h.html">qaxfactory.h</a>> #include "theactivex.h" @@ -106,14 +106,14 @@ and export it: <p> <pre> TQStringList ActiveTQtFactory::featureList() const { - <a href="qstringlist.html">TQStringList</a> list; + <a href="ntqstringlist.html">TQStringList</a> list; list << "ActiveX1"; list << "ActiveX2"; ... return list; } - TQWidget *ActiveTQtFactory::create( const <a href="qstring.html">TQString</a> &key, TQWidget *parent, const char *name ) + TQWidget *ActiveTQtFactory::create( const <a href="ntqstring.html">TQString</a> &key, TQWidget *parent, const char *name ) { if ( key == "ActiveX1" ) return new ActiveX1( parent, name ); @@ -123,7 +123,7 @@ and export it: return 0; } - TQUuid ActiveTQtFactory::classID( const <a href="qstring.html">TQString</a> &key ) const + TQUuid ActiveTQtFactory::classID( const <a href="ntqstring.html">TQString</a> &key ) const { if ( key == "ActiveX1" ) return "{01234567-89AB-CDEF-0123-456789ABCDEF}"; @@ -131,7 +131,7 @@ and export it: return TQUuid(); } - TQUuid ActiveTQtFactory::interfaceID( const <a href="qstring.html">TQString</a> &key ) const + TQUuid ActiveTQtFactory::interfaceID( const <a href="ntqstring.html">TQString</a> &key ) const { if ( key == "ActiveX1" ) return "{01234567-89AB-CDEF-0123-456789ABCDEF}"; @@ -139,7 +139,7 @@ and export it: return TQUuid(); } - TQUuid ActiveTQtFactory::eventsID( const <a href="qstring.html">TQString</a> &key ) const + TQUuid ActiveTQtFactory::eventsID( const <a href="ntqstring.html">TQString</a> &key ) const { if ( key == "ActiveX1" ) return "{01234567-89AB-CDEF-0123-456789ABCDEF}"; @@ -189,7 +189,7 @@ supplied class. each supplied class. </ul> <hr><h2>Member Function Documentation</h2> -<h3 class=fn><a name="TQAxFactory"></a>TQAxFactory::TQAxFactory ( const <a href="quuid.html">TQUuid</a> & libid, const <a href="quuid.html">TQUuid</a> & appid ) +<h3 class=fn><a name="TQAxFactory"></a>TQAxFactory::TQAxFactory ( const <a href="ntquuid.html">TQUuid</a> & libid, const <a href="ntquuid.html">TQUuid</a> & appid ) </h3> Constructs a TQAxFactory object that returns <em>libid</em> and <em>appid</em> in the implementation of the respective interface functions. @@ -198,40 +198,40 @@ in the implementation of the respective interface functions. </h3> Destroys the TQAxFactory object. -<h3 class=fn><a href="quuid.html">TQUuid</a> <a name="appID"></a>TQAxFactory::appID () const<tt> [virtual]</tt> +<h3 class=fn><a href="ntquuid.html">TQUuid</a> <a name="appID"></a>TQAxFactory::appID () const<tt> [virtual]</tt> </h3> <p> Reimplement this function to return the ActiveX server's application identifier. -<h3 class=fn><a href="quuid.html">TQUuid</a> <a name="classID"></a>TQAxFactory::classID ( const <a href="qstring.html">TQString</a> & key ) const<tt> [virtual]</tt> +<h3 class=fn><a href="ntquuid.html">TQUuid</a> <a name="classID"></a>TQAxFactory::classID ( const <a href="ntqstring.html">TQString</a> & key ) const<tt> [virtual]</tt> </h3> Reimplement this function to return the class identifier for each <em>key</em> returned by the <a href="#featureList">featureList</a>() implementation, or an empty -<a href="quuid.html">TQUuid</a> if this factory doesn't support the value of <em>key</em>. +<a href="ntquuid.html">TQUuid</a> if this factory doesn't support the value of <em>key</em>. <p> The default implementation interprets <em>key</em> as the class name, and returns the value of the Q_CLASSINFO entry "ClassID". -<h3 class=fn><a href="qwidget.html">TQWidget</a> * <a name="create"></a>TQAxFactory::create ( const <a href="qstring.html">TQString</a> & key, <a href="qwidget.html">TQWidget</a> * parent = 0, const char * name = 0 )<tt> [virtual]</tt> +<h3 class=fn><a href="ntqwidget.html">TQWidget</a> * <a name="create"></a>TQAxFactory::create ( const <a href="ntqstring.html">TQString</a> & key, <a href="ntqwidget.html">TQWidget</a> * parent = 0, const char * name = 0 )<tt> [virtual]</tt> </h3> Reimplement this function to return a new widget for <em>key</em>. -Propagate <em>parent</em> and <em>name</em> to the <a href="qwidget.html">TQWidget</a> constructor. Return +Propagate <em>parent</em> and <em>name</em> to the <a href="ntqwidget.html">TQWidget</a> constructor. Return 0 if this factory doesn't support the value of <em>key</em>. <p> The returned widget will be exposed as an ActiveX control, e.g. a COM object that can be embedded as a control into applications. <p> The default implementation returns 0. -<h3 class=fn><a href="qobject.html">TQObject</a> * <a name="createObject"></a>TQAxFactory::createObject ( const <a href="qstring.html">TQString</a> & key, <a href="qobject.html">TQObject</a> * parent = 0, const char * name = 0 )<tt> [virtual]</tt> +<h3 class=fn><a href="ntqobject.html">TQObject</a> * <a name="createObject"></a>TQAxFactory::createObject ( const <a href="ntqstring.html">TQString</a> & key, <a href="ntqobject.html">TQObject</a> * parent = 0, const char * name = 0 )<tt> [virtual]</tt> </h3> Reimplement this function to return a new object for <em>key</em>. -Propagate <em>parent</em> and <em>name</em> to the <a href="qwidget.html">TQWidget</a> constructor. Return +Propagate <em>parent</em> and <em>name</em> to the <a href="ntqwidget.html">TQWidget</a> constructor. Return 0 if this factory doesn't support the value of <em>key</em>. <p> If the object returned is a TQWidget it will be exposed as an ActiveX control, otherwise the returned object will be exposed as a COM object. <p> The default implementation returns the result <a href="#create">TQAxFactory::create</a>() if <em>parent</em> is 0 or a widget, otherwise returns 0. -<h3 class=fn>bool <a name="createObjectWrapper"></a>TQAxFactory::createObjectWrapper ( <a href="qobject.html">TQObject</a> * object, IDispatch ** wrapper )<tt> [virtual]</tt> +<h3 class=fn>bool <a name="createObjectWrapper"></a>TQAxFactory::createObjectWrapper ( <a href="ntqobject.html">TQObject</a> * object, IDispatch ** wrapper )<tt> [virtual]</tt> </h3> <p> Reimplement this function to provide the COM object for <em>object</em> @@ -240,16 +240,16 @@ return FALSE. <p> The default implementation creates a generic automation wrapper based on the <a href="metaobjects.html#meta-object">meta object</a> information of <em>object</em>. -<h3 class=fn><a href="quuid.html">TQUuid</a> <a name="eventsID"></a>TQAxFactory::eventsID ( const <a href="qstring.html">TQString</a> & key ) const<tt> [virtual]</tt> +<h3 class=fn><a href="ntquuid.html">TQUuid</a> <a name="eventsID"></a>TQAxFactory::eventsID ( const <a href="ntqstring.html">TQString</a> & key ) const<tt> [virtual]</tt> </h3> Reimplement this function to return the identifier of the event interface for each <em>key</em> returned by the <a href="#featureList">featureList</a>() -implementation, or an empty <a href="quuid.html">TQUuid</a> if this factory doesn't support +implementation, or an empty <a href="ntquuid.html">TQUuid</a> if this factory doesn't support the value of <em>key</em>. <p> The default implementation interprets <em>key</em> as the class name, and returns the value of the Q_CLASSINFO entry "EventsID". -<h3 class=fn><a href="qstring.html">TQString</a> <a name="exposeToSuperClass"></a>TQAxFactory::exposeToSuperClass ( const <a href="qstring.html">TQString</a> & key ) const<tt> [virtual]</tt> +<h3 class=fn><a href="ntqstring.html">TQString</a> <a name="exposeToSuperClass"></a>TQAxFactory::exposeToSuperClass ( const <a href="ntqstring.html">TQString</a> & key ) const<tt> [virtual]</tt> </h3> Reimplement this function to return the name of the super class of <em>key</em> up to which methods and properties should be exposed by the @@ -257,18 +257,18 @@ ActiveX control. <p> The default implementation interprets <em>key</em> as the class name, and returns the value of the Q_CLASSINFO entry "ToSuperClass". If no such value is set the null-string is returned, and the functions -and properties of all the super classes including <a href="qwidget.html">TQWidget</a> will be +and properties of all the super classes including <a href="ntqwidget.html">TQWidget</a> will be exposed. <p> To only expose the functions and properties of the class itself, reimplement this function to return <em>key</em>. -<h3 class=fn><a href="qstringlist.html">TQStringList</a> <a name="featureList"></a>TQAxFactory::featureList () const<tt> [pure virtual]</tt> +<h3 class=fn><a href="ntqstringlist.html">TQStringList</a> <a name="featureList"></a>TQAxFactory::featureList () const<tt> [pure virtual]</tt> </h3> <p> Reimplement this function to return a list of the widgets (class names) supported by this factory. -<h3 class=fn>bool <a name="hasStockEvents"></a>TQAxFactory::hasStockEvents ( const <a href="qstring.html">TQString</a> & key ) const<tt> [virtual]</tt> +<h3 class=fn>bool <a name="hasStockEvents"></a>TQAxFactory::hasStockEvents ( const <a href="ntqstring.html">TQString</a> & key ) const<tt> [virtual]</tt> </h3> Reimplement this function to return TRUE if the ActiveX control <em>key</em> should support the standard ActiveX events @@ -286,11 +286,11 @@ Reimplement this function to return TRUE if the ActiveX control and returns TRUE if the value of the Q_CLASSINFO entry "StockEvents" is "yes". Otherwise this function returns FALSE. -<h3 class=fn><a href="quuid.html">TQUuid</a> <a name="interfaceID"></a>TQAxFactory::interfaceID ( const <a href="qstring.html">TQString</a> & key ) const<tt> [virtual]</tt> +<h3 class=fn><a href="ntquuid.html">TQUuid</a> <a name="interfaceID"></a>TQAxFactory::interfaceID ( const <a href="ntqstring.html">TQString</a> & key ) const<tt> [virtual]</tt> </h3> Reimplement this function to return the interface identifier for each <em>key</em> returned by the <a href="#featureList">featureList</a>() implementation, or an -empty <a href="quuid.html">TQUuid</a> if this factory doesn't support the value of <em>key</em>. +empty <a href="ntquuid.html">TQUuid</a> if this factory doesn't support the value of <em>key</em>. <p> The default implementation interprets <em>key</em> as the class name, and returns the value of the Q_CLASSINFO entry "InterfaceID". @@ -301,13 +301,13 @@ server, otherwise returns FALSE. <p> <pre> int main( int argc, char**argv ) { - <a href="qapplication.html">TQApplication</a> app( argc, argv ); + <a href="ntqapplication.html">TQApplication</a> app( argc, argv ); if ( !TQAxFactory::isServer() ) { // initialize for stand-alone execution } - return app.<a href="qapplication.html#exec">exec</a>() // standard event processing + return app.<a href="ntqapplication.html#exec">exec</a>() // standard event processing } </pre> @@ -319,14 +319,14 @@ running as a persistent service (e.g. an NT service) and should not terminate even when all objects provided have been released. <p> The default implementation returns FALSE. -<h3 class=fn><a href="qmetaobject.html">TQMetaObject</a> * <a name="metaObject"></a>TQAxFactory::metaObject ( const <a href="qstring.html">TQString</a> & key ) const<tt> [virtual]</tt> +<h3 class=fn><a href="ntqmetaobject.html">TQMetaObject</a> * <a name="metaObject"></a>TQAxFactory::metaObject ( const <a href="ntqstring.html">TQString</a> & key ) const<tt> [virtual]</tt> </h3> -Reimplement this function to return the <a href="qmetaobject.html">TQMetaObject</a> corresponding to +Reimplement this function to return the <a href="ntqmetaobject.html">TQMetaObject</a> corresponding to <em>key</em>, or 0 if this factory doesn't support the value of <em>key</em>. <p> The default implementation returns the TQMetaObject for the class <em>key</em>. -<h3 class=fn>void <a name="registerClass"></a>TQAxFactory::registerClass ( const <a href="qstring.html">TQString</a> & key, <a href="qsettings.html">TQSettings</a> * settings ) const<tt> [virtual]</tt> +<h3 class=fn>void <a name="registerClass"></a>TQAxFactory::registerClass ( const <a href="ntqstring.html">TQString</a> & key, <a href="ntqsettings.html">TQSettings</a> * settings ) const<tt> [virtual]</tt> </h3> Registers additional values for the class <em>key</em> in the system registry using the <em>settings</em> object. The standard values have @@ -339,21 +339,21 @@ this function. <p> If you reimplement this function you must also reimplement <a href="#unregisterClass">unregisterClass</a>() to remove the additional registry values. -<p> <p>See also <a href="qsettings.html">TQSettings</a>. +<p> <p>See also <a href="ntqsettings.html">TQSettings</a>. -<h3 class=fn><a href="qstring.html">TQString</a> <a name="serverDirPath"></a>TQAxFactory::serverDirPath ()<tt> [static]</tt> +<h3 class=fn><a href="ntqstring.html">TQString</a> <a name="serverDirPath"></a>TQAxFactory::serverDirPath ()<tt> [static]</tt> </h3> Returns the directory that contains the server binary. <p> For out-of-process servers this is the same as -<a href="qapplication.html#applicationDirPath">TQApplication::applicationDirPath</a>(). For in-process servers +<a href="ntqapplication.html#applicationDirPath">TQApplication::applicationDirPath</a>(). For in-process servers that function returns the directory that contains the hosting application. -<h3 class=fn><a href="qstring.html">TQString</a> <a name="serverFilePath"></a>TQAxFactory::serverFilePath ()<tt> [static]</tt> +<h3 class=fn><a href="ntqstring.html">TQString</a> <a name="serverFilePath"></a>TQAxFactory::serverFilePath ()<tt> [static]</tt> </h3> Returns the file path of the server binary. <p> For out-of-process servers this is the same as -<a href="qapplication.html#applicationFilePath">TQApplication::applicationFilePath</a>(). For in-process servers +<a href="ntqapplication.html#applicationFilePath">TQApplication::applicationFilePath</a>(). For in-process servers that function returns the file path of the hosting application. <h3 class=fn>bool <a name="startServer"></a>TQAxFactory::startServer ( <a href="qaxfactory.html#ServerType-enum">ServerType</a> type = MultipleInstances )<tt> [static]</tt> @@ -367,7 +367,7 @@ in-process server) does nothing and returns TRUE. if the server executable has been started with the <tt>-activex</tt> command line parameter. -<h3 class=fn>bool <a name="stayTopLevel"></a>TQAxFactory::stayTopLevel ( const <a href="qstring.html">TQString</a> & key ) const<tt> [virtual]</tt> +<h3 class=fn>bool <a name="stayTopLevel"></a>TQAxFactory::stayTopLevel ( const <a href="ntqstring.html">TQString</a> & key ) const<tt> [virtual]</tt> </h3> Reimplement this function to return TRUE if the ActiveX control <em>key</em> should be a top level window, e.g. a dialog. The default implementation @@ -385,13 +385,13 @@ new objects can be created from the existing server process. Usually COM will start a new server process if additional objects are requested. <p> The server is stopped automatically when the main() function returns. -<h3 class=fn><a href="quuid.html">TQUuid</a> <a name="typeLibID"></a>TQAxFactory::typeLibID () const<tt> [virtual]</tt> +<h3 class=fn><a href="ntquuid.html">TQUuid</a> <a name="typeLibID"></a>TQAxFactory::typeLibID () const<tt> [virtual]</tt> </h3> <p> Reimplement this function to return the ActiveX server's type library identifier. -<h3 class=fn>void <a name="unregisterClass"></a>TQAxFactory::unregisterClass ( const <a href="qstring.html">TQString</a> & key, <a href="qsettings.html">TQSettings</a> * settings ) const<tt> [virtual]</tt> +<h3 class=fn>void <a name="unregisterClass"></a>TQAxFactory::unregisterClass ( const <a href="ntqstring.html">TQString</a> & key, <a href="ntqsettings.html">TQSettings</a> * settings ) const<tt> [virtual]</tt> </h3> Unregisters any additional values for the class <em>key</em> from the system registry using the <em>settings</em> object. @@ -399,9 +399,9 @@ system registry using the <em>settings</em> object. settings->removeEntry( "/CLSID/" + classID(key) + "/Implemented Categories/{00000000-0000-0000-000000000000}/." ); </pre> -<p> <p>See also <a href="#registerClass">registerClass</a>() and <a href="qsettings.html">TQSettings</a>. +<p> <p>See also <a href="#registerClass">registerClass</a>() and <a href="ntqsettings.html">TQSettings</a>. -<h3 class=fn>bool <a name="validateLicenseKey"></a>TQAxFactory::validateLicenseKey ( const <a href="qstring.html">TQString</a> & key, const <a href="qstring.html">TQString</a> & licenseKey ) const<tt> [virtual]</tt> +<h3 class=fn>bool <a name="validateLicenseKey"></a>TQAxFactory::validateLicenseKey ( const <a href="ntqstring.html">TQString</a> & key, const <a href="ntqstring.html">TQString</a> & licenseKey ) const<tt> [virtual]</tt> </h3> Reimplement this function to return TRUE if <em>licenseKey</em> is a valid license for the class <em>key</em>, or if the current machine is licensed. |