OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Data Provider object for a container document. More...
#include <ocf/ocdata.h>
Public Member Functions | |
TOcDataProvider (TOcView &ocView, owl::TRegList *regList, IUnknown *outer=0, void *userData=0, TDeleteUserData callBack=0) | |
owl::ulong _IFUNC | AddRef () |
owl::ulong _IFUNC | Release () |
HRESULT _IFUNC | QueryInterface (const GUID &iid, void **iface) |
void | Disconnect () |
Disconnect from the site. | |
void | Rename () |
Update item moniker with new name. | |
void * | GetUserData () |
void | SetUserData (void *userData) |
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 | |
UINT _IFUNC | CountFormats () |
HRESULT _IFUNC | GetFormat (owl::uint index, TOcFormatInfo *fmt) |
HANDLE _IFUNC | GetFormatData (TOcFormatInfo *fmt) |
Request native data for pasting into client application. | |
HRESULT _IFUNC | Draw (HDC dc, const RECTL *pos, const RECTL *clip, TOcAspect aspect, TOcDraw bd) |
Render the data in the DC provided. | |
HRESULT _IFUNC | GetPartSize (owl::TSize *size) |
Return the 'size' of the document that this view is on. | |
HRESULT _IFUNC | Save (IStorage *, BOOL sameAsLoad, BOOL remember) |
Save the selection that we are a view on. | |
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::TPoint | Origin |
owl::TSize | Extent |
Protected Attributes inherited from ocf::TUnknown | |
IUnknown * | Outer |
ocf::TOcDataProvider::TOcDataProvider | ( | TOcView & | ocView, |
owl::TRegList * | regList, | ||
IUnknown * | outer = 0, | ||
void * | userData = 0, | ||
TDeleteUserData | callBack = 0 ) |
Definition at line 20 of file ocdata.cpp.
References AddRef(), ocf::amDebug, ocf::TOcApp::BOleComponentCreate(), ocf::cidBOleSite, ocf::TOcApp::IsOptionSet(), ocf::TOcView::OcApp, OleStr, Release(), Rename(), ocf::TOcView::SetOcData(), and ocf::TUnknown::SetOuter().
|
inline |
Implements ocf::IBDataNegotiator.
Definition at line 133 of file ocdata.cpp.
References ocf::TOcView::CountFormats().
void ocf::TOcDataProvider::Disconnect | ( | ) |
Disconnect from the site.
Definition at line 106 of file ocdata.cpp.
References ocf::IBSite::Disconnect().
|
protectedvirtual |
Render the data in the DC provided.
May be a MetaFile Packup all the args & forward message to real view to paint
Implements ocf::IBDataProvider.
Definition at line 173 of file ocdata.cpp.
References ocf::drShadingOnly, ocf::TOcServerHost::EvOcViewPaint(), Extent, HR_NOERROR, ocf::HRFailIfZero(), owl::TRect::Normalize(), PRECONDITION, ocf::TOcView::ServerHost, and owl::TRect::SetNull().
|
protectedvirtual |
Implements ocf::IBDataNegotiator.
Definition at line 142 of file ocdata.cpp.
References ocf::TOcView::GetFormat(), and PRECONDITION.
|
protectedvirtual |
Request native data for pasting into client application.
This is only called at paste time (not at copy time).
Implements ocf::IBDataProvider.
Definition at line 154 of file ocdata.cpp.
References ocf::TOcServerHost::EvOcViewClipData(), ocf::TOcFormatList::Find(), ocf::TOcView::FormatList, PRECONDITION, and ocf::TOcView::ServerHost.
|
protectedvirtual |
Return the 'size' of the document that this view is on.
Implements ocf::IBDataProvider.
Definition at line 206 of file ocdata.cpp.
References ocf::TOcServerHost::EvOcViewPartSize(), Extent, HR_NOERROR, Origin, and ocf::TOcView::ServerHost.
|
inline |
void ocf::TOcDataProvider::Rename | ( | ) |
Update item moniker with new name.
Definition at line 116 of file ocdata.cpp.
References ocf::TOcView::BLDocumentI, ocf::TOcServerHost::EvOcViewGetItemName(), ocf::TOcItemName::Name, OleStr, ocf::IBLinkable::OnRename(), PRECONDITION, ocf::TOcView::Rename(), and ocf::TOcView::ServerHost.
|
protectedvirtual |
Save the selection that we are a view on.
Implements ocf::IBDataProvider.
Definition at line 230 of file ocdata.cpp.
References ocf::TOcServerHost::EvOcViewSavePart(), ocf::HRFailIfZero(), PRECONDITION, ocf::TOcView::ServerHost, and owl::ToBool().
|
protected |
|
protected |