|
OWLNext 7.0
Borland's Object Windows Library for the modern age
|
OCF Application class. More...
#include <ocf/ocapp.h>
Public Member Functions | |
| TOcApp (TOcRegistrar ®istrar, owl::uint32 options, TOcAppHost *host, TOcAppFrameHost *frameHost) | |
| New constructor for TOcApp using host interfaces. | |
| void | SetupWindow (TOcAppFrameHost *frameHost) |
| TOcApp (TOcRegistrar ®istrar, owl::uint32 options, TOcApp *&retOcApp) | |
| Compatibility constructor & SetupWindow for TOcApp. | |
| void | SetupWindow (HWND frameWnd) |
| TOcRegistrar & | GetRegistrar () |
| owl::tstring | GetName () const |
| bool | IsOptionSet (owl::uint32 option) const |
| void | SetOption (owl::uint32 bit, bool state) |
| virtual void | ReleaseObject () |
| Should only be called by the owner/creator of this object. | |
| void | RegisterClasses () |
| Register doc factories based on their 'progid' and their templates. | |
| void | UnregisterClasses () |
| Unregister doc class factories based on their 'progid' and their templates. | |
| void | AddUserFormatName (LPCTSTR name, LPCTSTR resultName, LPCTSTR id=0) |
| Add a user defined clipboard format name. | |
| TOcNameList & | GetNameList () |
| bool | UnregisterClass (const owl::tstring &progid) |
| void | EvResize () |
| Let BOle know that the main window has resized. | |
| void | EvActivate (bool) |
| Let BOle know that the main window has [de]activated. | |
| bool | EvSetFocus (bool set) |
| bool | RegisterClass (const owl::tstring &progid, BCID classId, bool multiUse) |
| bool | TranslateAccel (MSG *msg) |
| bool | ModalDialog (bool enable) |
| TOcHelp | AppHelpMode (TOcHelp newMode) |
| bool | CanClose () |
| bool | Browse (TOcInitInfo &initInfo) |
| bool | BrowseControls (TOcInitInfo &initInfo) |
| bool | BrowseClipboard (TOcInitInfo &initInfo) |
| bool | Paste (TOcInitInfo &initInfo) |
| bool | Copy (TOcPart *ocPart) |
| Copy Selected embedded object. | |
| bool | Copy (TOcDataProvider *ocData) |
| Copy a selection in server document. | |
| bool | Drag (TOcDataProvider *ocData, TOcDropAction inAction, TOcDropAction &outAction) |
| Drag a selection. | |
| bool | Drag (TOcPart *ocData, TOcDropAction inAction, TOcDropAction &outAction) |
| Drag an embedded object. | |
| bool | Convert (TOcPart *ocPart, bool b) |
| Open the Convert dialog, and perform the conversion if OK. | |
| owl::uint | EnableEditMenu (TOcMenuEnable enable, IBDataConsumer *ocview) |
| HRESULT | BOleComponentCreate (IUnknown **retIface, IUnknown *outer, owl::uint32 idClass) |
| Create a BOle helper for one of our OC objects in this app. | |
| owl::ulong _IFUNC | AddRef () |
| owl::ulong _IFUNC | Release () |
| HRESULT _IFUNC | QueryInterface (const GUID &iidiid, void **iface) |
| Public Member Functions inherited from ocf::TUnknown | |
| operator IUnknown & () | |
| operator IUnknown * () | |
| IUnknown * | SetOuter (IUnknown *outer=0) |
| IUnknown * | GetOuter () |
| unsigned long | GetRefCount () |
| unsigned long | AdjustRefCount (int i) |
| IUnknown & | Aggregate (TUnknown &inner) |
Protected Member Functions | |
| ~TOcApp () | |
| Clean up this object be releasing all helpers. | |
| HRESULT | QueryObject (const IID &iidiid, 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 &iidiid, 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(), FrameHost, Host, OcAppPtr, Options, PRECONDITION, RegisterClasses(), Registered, 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::TOcAppFrameHost::ReleaseOcObject(), ocf::TOcAppHost::ReleaseOcObject(), and UnregisterClasses().
|
inline |
Definition at line 215 of file ocapp.h.
References _IFUNC, and ocf::TUnknown::GetOuter().
| void ocf::TOcApp::AddUserFormatName | ( | LPCTSTR | name, |
| LPCTSTR | resultName, | ||
| LPCTSTR | id = 0 ) |
Add a user defined clipboard format name.
Definition at line 294 of file ocapp.cpp.
References ocf::TOcFormatName::TOcFormatName().
| HRESULT ocf::TOcApp::BOleComponentCreate | ( | IUnknown ** | retIface, |
| IUnknown * | outer, | ||
| owl::uint32 | idClass ) |
| 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().
| bool ocf::TOcApp::Convert | ( | TOcPart * | ocPart, |
| bool | b ) |
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::TOcPart::GetBPartI(), ocf::HRIsOK(), ocf::HRSucceeded(), PRECONDITION, and TOcPart.
| 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::Copy | ( | TOcPart * | ocPart | ) |
Copy Selected embedded object.
Definition at line 383 of file ocapp.cpp.
References ocf::HRIsOK(), ocf::TOcPart::QueryInterface(), ocf::TOcPart::Release(), and TOcPart.
| 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 ) |
Drag an embedded object.
Definition at line 427 of file ocapp.cpp.
References ocf::HRSucceeded(), ocf::TOcPart::QueryInterface(), ocf::TOcPart::Release(), and TOcPart.
| uint ocf::TOcApp::EnableEditMenu | ( | TOcMenuEnable | enable, |
| IBDataConsumer * | ocview ) |
| void ocf::TOcApp::EvActivate | ( | bool | active | ) |
| void ocf::TOcApp::EvResize | ( | ) |
|
inline |
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().
|
inline |
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().
|
inline |
Definition at line 217 of file ocapp.h.
References _IFUNC, and ocf::TUnknown::GetOuter().
|
protected |
| 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(), owl::TRegLink::GetNext(), GetRegistrar(), ocf::TAppDescriptor::GetRegLinkHead(), owl::TRegLink::GetRegList(), IsOptionSet(), ocrSingleUse, RegisterClass(), Registered, ocf::TXObjComp::Throw(), owl::ToBool(), and ocf::TXObjComp::xDocFactoryFail.
|
inline |
Definition at line 216 of file ocapp.h.
References _IFUNC, and ocf::TUnknown::GetOuter().
|
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::TOcAppFrameHost::ReleaseOcObject(), and ocf::TOcAppHost::ReleaseOcObject().
|
inline |
| void ocf::TOcApp::SetupWindow | ( | HWND | frameWnd | ) |
Definition at line 51 of file ocapp.cpp.
References FrameHost, and ocf::TOcAppFrameHost::SetWindow().
| void ocf::TOcApp::SetupWindow | ( | TOcAppFrameHost * | frameHost | ) |
|
inline |
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(), owl::TRegLink::GetNext(), GetRegistrar(), ocf::TAppDescriptor::GetRegLinkHead(), owl::TRegLink::GetRegList(), IsOptionSet(), Registered, ocf::TXObjComp::Throw(), UnregisterClass(), and ocf::TXObjComp::xDocFactoryFail.
|
friend |
Definition at line 292 of file ocapp.h.
References _ICLASS, and TOcClassMgr.
|
friend |
Definition at line 288 of file ocapp.h.
References _ICLASS, and TOcDocument.
|
friend |
|
friend |
Definition at line 290 of file ocapp.h.
References _ICLASS, and TOcRemView.
|
friend |
|
protected |
|
protected |
|
protected |