OWLNext 7.0
Borland's Object Windows Library for the modern age
|
OCF Application class. More...
#include <ocf/ocapp.h>
Protected Member Functions | |
~TOcApp () | |
Clean up this object be releasing all helpers. | |
HRESULT | QueryObject (const IID &iid, void **iface) |
Callback from TUnknown's implementation of QueryInterface. | |
Protected Member Functions inherited from ocf::TUnknown | |
TUnknown () | |
virtual | ~TUnknown () |
IUnknown & | ThisUnknown () |
virtual HRESULT | QueryObject (const GUID &iid, void **pif) |
QueryObject used when TUnknown is in constructor/destructor. | |
Protected Attributes | |
owl::uint32 | Options |
bool | Registered |
TOcAppHost * | Host |
TOcAppFrameHost * | FrameHost |
TOcApp ** | OcAppPtr |
Protected Attributes inherited from ocf::TUnknown | |
IUnknown * | Outer |
Friends | |
class _ICLASS | TOcDocument |
class _ICLASS | TOcPart |
class _ICLASS | TOcRemView |
class _ICLASS | TOcView |
class _ICLASS | TOcClassMgr |
ocf::TOcApp::TOcApp | ( | TOcRegistrar & | registrar, |
owl::uint32 | options, | ||
TOcAppHost * | host, | ||
TOcAppFrameHost * | frameHost ) |
New constructor for TOcApp using host interfaces.
Definition at line 61 of file ocapp.cpp.
References ocf::TOcAppHost::AttachHost(), Host, PRECONDITION, RegisterClasses(), and TRACEX.
ocf::TOcApp::TOcApp | ( | TOcRegistrar & | registrar, |
owl::uint32 | options, | ||
TOcApp *& | retOcApp ) |
|
protected |
Clean up this object be releasing all helpers.
Definition at line 138 of file ocapp.cpp.
References ocf::amExeModule, ocf::amServedApp, ocf::TOcAppFrameHost::EvOcAppShutdown(), FrameHost, Host, IsOptionSet(), OcAppPtr, Options, ocf::TOcAppHost::ReleaseOcObject(), ocf::TOcAppFrameHost::ReleaseOcObject(), ocf::TRegistrar::Shutdown(), and UnregisterClasses().
|
inline |
Add a user defined clipboard format name.
Definition at line 294 of file ocapp.cpp.
References ocf::TOcNameList::Add().
HRESULT ocf::TOcApp::BOleComponentCreate | ( | IUnknown ** | retIface, |
IUnknown * | outer, | ||
owl::uint32 | idClass ) |
Create a BOle helper for one of our OC objects in this app.
Definition at line 213 of file ocapp.cpp.
References ocf::IBClassMgr::ComponentCreate().
bool ocf::TOcApp::Browse | ( | TOcInitInfo & | initInfo | ) |
Definition at line 356 of file ocapp.cpp.
References ocf::HRIsOK().
bool ocf::TOcApp::BrowseClipboard | ( | TOcInitInfo & | initInfo | ) |
Definition at line 368 of file ocapp.cpp.
References ocf::HRIsOK().
bool ocf::TOcApp::BrowseControls | ( | TOcInitInfo & | initInfo | ) |
Definition at line 362 of file ocapp.cpp.
References ocf::HRIsOK().
bool ocf::TOcApp::CanClose | ( | ) |
Definition at line 344 of file ocapp.cpp.
References ocf::HRIsOK().
Open the Convert dialog, and perform the conversion if OK.
return true if conversion was perfromed successfully.
Definition at line 448 of file ocapp.cpp.
References ocf::HRIsOK(), ocf::HRSucceeded(), and PRECONDITION.
bool ocf::TOcApp::Copy | ( | TOcDataProvider * | ocData | ) |
Copy a selection in server document.
Definition at line 400 of file ocapp.cpp.
References ocf::HRIsOK(), and PRECONDITION.
bool ocf::TOcApp::Drag | ( | TOcDataProvider * | ocData, |
TOcDropAction | inAction, | ||
TOcDropAction & | outAction ) |
Drag a selection.
Definition at line 416 of file ocapp.cpp.
References ocf::HRSucceeded(), and PRECONDITION.
bool ocf::TOcApp::Drag | ( | TOcPart * | ocData, |
TOcDropAction | inAction, | ||
TOcDropAction & | outAction ) |
uint ocf::TOcApp::EnableEditMenu | ( | TOcMenuEnable | enable, |
IBDataConsumer * | ocview ) |
void ocf::TOcApp::EvResize | ( | ) |
Definition at line 187 of file ocapp.h.
References ocf::HRSucceeded().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 302 of file ocapp.h.
References Options, and owl::ToBool().
Definition at line 191 of file ocapp.h.
References ocf::HRSucceeded().
bool ocf::TOcApp::Paste | ( | TOcInitInfo & | initInfo | ) |
Definition at line 374 of file ocapp.cpp.
References ocf::HRIsOK().
bool ocf::TOcApp::RegisterClass | ( | const owl::tstring & | progid, |
BCID | classId, | ||
bool | multiUse ) |
Definition at line 333 of file ocapp.cpp.
References ocf::HRSucceeded(), OleStr, and owl::ToBool().
void ocf::TOcApp::RegisterClasses | ( | ) |
Register doc factories based on their 'progid' and their templates.
Definition at line 225 of file ocapp.cpp.
References ocf::amAutomation, ocf::amDebug, ocf::amEmbedding, ocf::amExeModule, ocf::amSingleUse, ocf::TRegistrar::GetAppDescriptor(), GetRegistrar(), ocf::TAppDescriptor::GetRegLinkHead(), IsOptionSet(), ocrSingleUse, RegisterClass(), Registered, ocf::TXObjComp::Throw(), owl::ToBool(), and ocf::TXObjComp::xDocFactoryFail.
|
inline |
|
virtual |
Should only be called by the owner/creator of this object.
Definition at line 173 of file ocapp.cpp.
References ocf::amServedApp, FrameHost, Host, IsOptionSet(), Release(), ocf::TOcAppHost::ReleaseOcObject(), and ocf::TOcAppFrameHost::ReleaseOcObject().
|
inline |
Definition at line 51 of file ocapp.cpp.
References FrameHost, ocf::TOcRegistrar::SetApp(), and ocf::TOcAppFrameHost::SetWindow().
void ocf::TOcApp::SetupWindow | ( | TOcAppFrameHost * | frameHost | ) |
Definition at line 189 of file ocapp.h.
References ocf::HRSucceeded().
bool ocf::TOcApp::UnregisterClass | ( | const owl::tstring & | progid | ) |
Definition at line 304 of file ocapp.cpp.
References ocf::HRSucceeded(), and OleStr.
void ocf::TOcApp::UnregisterClasses | ( | ) |
Unregister doc class factories based on their 'progid' and their templates.
Definition at line 272 of file ocapp.cpp.
References ocf::amDebug, ocf::TRegistrar::GetAppDescriptor(), GetRegistrar(), ocf::TAppDescriptor::GetRegLinkHead(), IsOptionSet(), Registered, ocf::TXObjComp::Throw(), UnregisterClass(), and ocf::TXObjComp::xDocFactoryFail.
|
protected |
|
protected |
|
protected |