|
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 &iidiid, 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 &iidiid, 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::cidBOleSite, Extent, owl::TRegList::Lookup(), OleStr, Origin, Release(), Rename(), and ocf::TUnknown::SetOuter().
|
inline |
Definition at line 38 of file ocdata.h.
References _IFUNC, and ocf::TUnknown::GetOuter().
|
protectedvirtual |
Implements ocf::IBDataNegotiator.
Definition at line 133 of file ocdata.cpp.
| void ocf::TOcDataProvider::Disconnect | ( | ) |
Disconnect from the site.
Definition at line 106 of file ocdata.cpp.
|
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, Extent, HR_NOERROR, ocf::HRFailIfZero(), owl::TRect::Normalize(), PRECONDITION, and owl::TRect::SetNull().
|
protectedvirtual |
Implements ocf::IBDataNegotiator.
Definition at line 142 of file ocdata.cpp.
References 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::TOcFormat::GetRegName(), ocf::TOcFormatData::Handle, ocf::TOcFormatInfo::Id, and PRECONDITION.
|
protectedvirtual |
Return the 'size' of the document that this view is on.
Implements ocf::IBDataProvider.
Definition at line 206 of file ocdata.cpp.
References Extent, HR_NOERROR, Origin, ocf::TOcPartSize::PartRect, owl::TRect::SetNull(), owl::TRect::Size(), and owl::TRect::TopLeft().
|
inline |
Definition at line 40 of file ocdata.h.
References _IFUNC, and ocf::TUnknown::GetOuter().
|
inline |
Definition at line 39 of file ocdata.h.
References _IFUNC, and ocf::TUnknown::GetOuter().
| void ocf::TOcDataProvider::Rename | ( | ) |
Update item moniker with new name.
Definition at line 116 of file ocdata.cpp.
References ocf::TOcItemName::Name, OleStr, and PRECONDITION.
|
protectedvirtual |
Save the selection that we are a view on.
Implements ocf::IBDataProvider.
Definition at line 230 of file ocdata.cpp.
References ocf::HRFailIfZero(), IStorage, PRECONDITION, and owl::ToBool().
|
inline |
|
protected |
|
protected |