OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
ocf::TOcRegistrar Class Reference

Linking & embeding version of the Registrar. More...

#include <ocf/ocapp.h>

Inheritance diagram for ocf::TOcRegistrar:
ocf::TRegistrar

Public Member Functions

 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.
 ~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 &regInfo, 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

Detailed Description

Linking & embeding version of the Registrar.

Definition at line 109 of file ocapp.h.

Constructor & Destructor Documentation

◆ TOcRegistrar()

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().

◆ ~TOcRegistrar()

ocf::TOcRegistrar::~TOcRegistrar ( )

Definition at line 869 of file ocapp.cpp.

Member Function Documentation

◆ CanUnload()

bool ocf::TOcRegistrar::CanUnload ( )
protectedvirtual

Reimplemented from ocf::TRegistrar.

Definition at line 953 of file ocapp.cpp.

References ocf::TRegistrar::CanUnload(), and TRACEX.

◆ CreateBOleClassMgr()

IBClassMgr * ocf::TOcRegistrar::CreateBOleClassMgr ( )

◆ CreateOcApp() [1/2]

void ocf::TOcRegistrar::CreateOcApp ( owl::uint32 options,
TOcApp *& ret )
inline

Definition at line 326 of file ocapp.h.

References ocf::TOcApp::TOcApp(), and TOcApp.

◆ CreateOcApp() [2/2]

void ocf::TOcRegistrar::CreateOcApp ( owl::uint32 options,
TOcAppHost * host,
TOcAppFrameHost * frameHost )
inline

Definition at line 317 of file ocapp.h.

References ocf::TOcApp::TOcApp().

◆ GetFactory()

void * ocf::TOcRegistrar::GetFactory ( const GUID & clsid,
const GUID & iid )
protectedvirtual

◆ LoadBOle()

void ocf::TOcRegistrar::LoadBOle ( )
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.

◆ SetApp()

void ocf::TOcRegistrar::SetApp ( TOcApp * app)

Definition at line 960 of file ocapp.cpp.

References TOcApp.

◆ TOcApp

friend class _ICLASS TOcApp
friend

Definition at line 134 of file ocapp.h.

References _ICLASS, and TOcApp.


The documentation for this class was generated from the following files: