OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
ocf::TOcDataProvider Class Reference

Data Provider object for a container document. More...

#include <ocf/ocdata.h>

Inheritance diagram for ocf::TOcDataProvider:
ocf::TUnknown ocf::IBDataProvider ocf::IBDataNegotiator

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.
 
voidGetUserData ()
 
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
 

Detailed Description

Data Provider object for a container document.

Definition at line 29 of file ocdata.h.

Constructor & Destructor Documentation

◆ TOcDataProvider()

ocf::TOcDataProvider::TOcDataProvider ( TOcView & ocView,
owl::TRegList * regList,
IUnknown * outer = 0,
void * userData = 0,
TDeleteUserData callBack = 0 )

Member Function Documentation

◆ AddRef()

owl::ulong _IFUNC ocf::TOcDataProvider::AddRef ( )
inline

Definition at line 38 of file ocdata.h.

◆ CountFormats()

UINT _IFUNC ocf::TOcDataProvider::CountFormats ( )
protectedvirtual

Implements ocf::IBDataNegotiator.

Definition at line 133 of file ocdata.cpp.

References ocf::TOcView::CountFormats().

◆ Disconnect()

void ocf::TOcDataProvider::Disconnect ( )

Disconnect from the site.

Definition at line 106 of file ocdata.cpp.

References ocf::IBSite::Disconnect().

◆ Draw()

HRESULT _IFUNC ocf::TOcDataProvider::Draw ( HDC dc,
const RECTL * pos,
const RECTL * clip,
TOcAspect aspect,
TOcDraw bd )
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().

◆ GetFormat()

HRESULT _IFUNC ocf::TOcDataProvider::GetFormat ( owl::uint index,
TOcFormatInfo * fmt )
protectedvirtual

Implements ocf::IBDataNegotiator.

Definition at line 142 of file ocdata.cpp.

References ocf::TOcView::GetFormat(), and PRECONDITION.

◆ GetFormatData()

HANDLE _IFUNC ocf::TOcDataProvider::GetFormatData ( TOcFormatInfo * fmt)
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.

◆ GetPartSize()

HRESULT _IFUNC ocf::TOcDataProvider::GetPartSize ( owl::TSize * size)
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.

◆ GetUserData()

void * ocf::TOcDataProvider::GetUserData ( )
inline

Definition at line 47 of file ocdata.h.

◆ QueryInterface()

HRESULT _IFUNC ocf::TOcDataProvider::QueryInterface ( const GUID & iid,
void ** iface )
inline

Definition at line 40 of file ocdata.h.

◆ Release()

owl::ulong _IFUNC ocf::TOcDataProvider::Release ( )
inline

Definition at line 39 of file ocdata.h.

◆ Rename()

void ocf::TOcDataProvider::Rename ( )

◆ Save()

HRESULT _IFUNC ocf::TOcDataProvider::Save ( IStorage * storage,
BOOL sameAsLoad,
BOOL remember )
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().

◆ SetUserData()

void ocf::TOcDataProvider::SetUserData ( void * userData)
inline

Definition at line 48 of file ocdata.h.

Member Data Documentation

◆ Extent

owl::TSize ocf::TOcDataProvider::Extent
protected

Definition at line 67 of file ocdata.h.

◆ Origin

owl::TPoint ocf::TOcDataProvider::Origin
protected

Definition at line 66 of file ocdata.h.


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