|
OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Linking & embeding version of the Registrar. More...
#include <ocf/ocapp.h>
Public Member Functions | |
| TOcRegistrar (owl::TRegList ®Info, TComponentFactory callback, owl::uint32 preselectedOptions, owl::tstring &cmdLine, owl::TRegLink *linkHead=0, owl::TModule *module=&owl::GetGlobalModule()) | |
| The 'preselectedOptions' parameter enables to preserve old (pre 6.40) behaviour (see Bug #376): Set to amQuietReg, no exception is thrown on registration failures which nowadays occur frequently due to restricted user rights during registration updates. | |
| ~TOcRegistrar () | |
| void | CreateOcApp (owl::uint32 options, TOcAppHost *host, TOcAppFrameHost *frameHost) |
| void | CreateOcApp (owl::uint32 options, TOcApp *&ret) |
| IBClassMgr * | CreateBOleClassMgr () |
| void | SetApp (TOcApp *app) |
| Public Member Functions inherited from ocf::TRegistrar | |
| TRegistrar (owl::TRegList ®Info, TComponentFactory callback, owl::tstring &cmdLine, owl::TModule *module=&owl::GetGlobalModule()) | |
| virtual | ~TRegistrar () |
| TUnknown * | CreateAutoApp (TObjectDescriptor app, owl::uint32 options, IUnknown *outer=0) |
| void | ReleaseAutoApp (TObjectDescriptor app) |
| TUnknown * | CreateAutoObject (TObjectDescriptor doc, TServedObject &app, IUnknown *outer=0) |
| TUnknown * | CreateAutoObject (const void *obj, const std::type_info &objInfo, const void *app, const std::type_info &appInfo, IUnknown *outer=0) |
| virtual int | Run () |
| virtual void | Shutdown (IUnknown *releasedObj, owl::uint32 options) |
| void | RegisterAppClass () |
| void | UnregisterAppClass () |
| bool | IsOptionSet (owl::uint32 option) const |
| owl::uint32 | GetOptions () const |
| void | SetOption (owl::uint32 bit, bool state) |
| void | ProcessCmdLine (owl::tstring &cmdLine) |
| TAppDescriptor & | GetAppDescriptor () |
Protected Member Functions | |
| void * | GetFactory (const GUID &clsid, const GUID &iidiid) |
| Override TRegistrar's GetFactory to provide additional factory support using BOle factories. | |
| bool | CanUnload () |
| void | LoadBOle () |
| Dynamically load the OcOle Dll, get the one entry point that we need & make the class manager object that we use. | |
| Protected Member Functions inherited from ocf::TRegistrar | |
| TRegistrar (TAppDescriptor &appDesc) | |
Friends | |
| class _ICLASS | TOcApp |
Additional Inherited Members | |
| Static Public Member Functions inherited from ocf::TRegistrar | |
| static TRegistrar * | GetNext (TRegistrar *reg) |
| Protected Attributes inherited from ocf::TRegistrar | |
| TAppDescriptor & | AppDesc |
| ocf::TOcRegistrar::TOcRegistrar | ( | owl::TRegList & | regInfo, |
| TComponentFactory | callback, | ||
| owl::uint32 | preselectedOptions, | ||
| owl::tstring & | cmdLine, | ||
| owl::TRegLink * | linkHead = 0, | ||
| owl::TModule * | module = & owl::GetGlobalModule() ) |
The 'preselectedOptions' parameter enables to preserve old (pre 6.40) behaviour (see Bug #376): Set to amQuietReg, no exception is thrown on registration failures which nowadays occur frequently due to restricted user rights during registration updates.
This option should only be set when cmdLine is empty, otherwise wanted exceptions on registration failures will be suppressed too. The amNoRegValidate bit may be set to suppress the automatic registration update at all.
Definition at line 854 of file ocapp.cpp.
References ocf::TRegistrar::TRegistrar(), and ocf::TRegistrar::GetOptions().
|
protectedvirtual |
Reimplemented from ocf::TRegistrar.
Definition at line 953 of file ocapp.cpp.
References ocf::TRegistrar::CanUnload(), and TRACEX.
| IBClassMgr * ocf::TOcRegistrar::CreateBOleClassMgr | ( | ) |
Definition at line 886 of file ocapp.cpp.
References BOLEBIND, LoadBOle(), ocf::TXObjComp::Throw(), and ocf::TXObjComp::xBOleBindFail.
|
inline |
Definition at line 326 of file ocapp.h.
References ocf::TOcApp::TOcApp(), and TOcApp.
|
inline |
Definition at line 317 of file ocapp.h.
References ocf::TOcApp::TOcApp().
|
protectedvirtual |
Override TRegistrar's GetFactory to provide additional factory support using BOle factories.
Reimplemented from ocf::TRegistrar.
Definition at line 915 of file ocapp.cpp.
References ocf::amDebug, ocf::cidBOleFactory, CreateBOleClassMgr(), ocf::TRegistrar::GetAppDescriptor(), ocf::TRegistrar::GetFactory(), ocf::TAppDescriptor::GetRegLink(), owl::TRegLink::GetRegList(), ocf::HRSucceeded(), ocf::IBClass::Init(), ocf::TRegistrar::IsOptionSet(), and OleStr.
|
protected |
Dynamically load the OcOle Dll, get the one entry point that we need & make the class manager object that we use.
Definition at line 1060 of file ocapp.cpp.
References BOLE_FILEVER_LS, BOLE_FILEVER_MS, BOLEDLL, BOLEDLLW, owl::candidates, ocf::TXObjComp::Throw(), ocf::TXObjComp::xBOleLoadFail, and ocf::TXObjComp::xBOleVersFail.
| void ocf::TOcRegistrar::SetApp | ( | TOcApp * | app | ) |
|
friend |