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)
 
IBClassMgrCreateBOleClassMgr ()
 
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 ()
 
TUnknownCreateAutoApp (TObjectDescriptor app, owl::uint32 options, IUnknown *outer=0)
 
void ReleaseAutoApp (TObjectDescriptor app)
 
TUnknownCreateAutoObject (TObjectDescriptor doc, TServedObject &app, IUnknown *outer=0)
 
TUnknownCreateAutoObject (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)
 
TAppDescriptorGetAppDescriptor ()
 

Protected Member Functions

voidGetFactory (const GUID &clsid, const GUID &iid)
 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 TRegistrarGetNext (TRegistrar *reg)
 
- Protected Attributes inherited from ocf::TRegistrar
TAppDescriptorAppDesc
 

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::GetOptions(), and ocf::TOcClassMgr.

◆ ~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 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 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 1005 of file ocapp.cpp.

References _A2W, _USES_CONVERSION, _W2A, BOLE_FILEVER_LS, BOLE_FILEVER_MS, BOLEDLL, BOLEDLLW, ocf::TXObjComp::Throw(), owl::ToBool(), ocf::TXObjComp::xBOleLoadFail, and ocf::TXObjComp::xBOleVersFail.

◆ SetApp()

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

Definition at line 960 of file ocapp.cpp.

Friends And Related Symbol Documentation

◆ TOcApp

Definition at line 134 of file ocapp.h.


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