23 OcView(
ocView), BSite(0), BSiteI(0), BLSiteI(0),
43 "debugprogid" :
"progid");
44 BSiteI->Init(
this, 0,
OleStr(progid),
true);
63TOcDataProvider::~TOcDataProvider()
83TOcDataProvider::QueryObject(
const IID &
iid,
void * *
iface)
216 ps.PartRect.SetNull();
#define PRECONDITION(condition)
IBDataProvider – Supported by parts and/or sites which can be copied to the OLE2 clipboard.
virtual HRESULT _IFUNC OnRename(IBLinkable *pContainer, LPCOLESTR name)=0
virtual void _IFUNC Disconnect()=0
HRESULT BOleComponentCreate(IUnknown **retIface, IUnknown *outer, owl::uint32 idClass)
Create a BOle helper for one of our OC objects in this app.
bool IsOptionSet(owl::uint32 option) const
HRESULT _IFUNC Save(IStorage *, BOOL sameAsLoad, BOOL remember)
Save the selection that we are a view on.
owl::ulong _IFUNC Release()
HRESULT _IFUNC GetPartSize(owl::TSize *size)
Return the 'size' of the document that this view is on.
HANDLE _IFUNC GetFormatData(TOcFormatInfo *fmt)
Request native data for pasting into client application.
void Rename()
Update item moniker with new name.
void Disconnect()
Disconnect from the site.
owl::ulong _IFUNC AddRef()
HRESULT _IFUNC Draw(HDC dc, const RECTL *pos, const RECTL *clip, TOcAspect aspect, TOcDraw bd)
Render the data in the DC provided.
HRESULT _IFUNC GetFormat(owl::uint index, TOcFormatInfo *fmt)
TOcDataProvider(TOcView &ocView, owl::TRegList *regList, IUnknown *outer=0, void *userData=0, TDeleteUserData callBack=0)
UINT _IFUNC CountFormats()
Used to obtain the item name for building monikers.
owl::TString Name
Item moniker.
Used to obtain the size of the rectangle that encloses the selection.
Use when doing parts save and load.
virtual bool EvOcViewGetItemName(TOcItemName &item)=0
virtual bool EvOcViewPartSize(TOcPartSize &size)=0
virtual bool EvOcViewPaint(TOcViewPaint &vp)=0
virtual bool EvOcViewClipData(TOcFormatData &format)=0
virtual bool EvOcViewSavePart(TOcSaveLoad &ocSave)=0
The TOcView partner is a container (viewer) of a given (server/client) document.
void SetOcData(TOcDataProvider *ocData=0)
TOcDataProvider * GetOcData()
owl::uint _IFUNC CountFormats()
Format count.
HRESULT _IFUNC GetFormat(owl::uint, TOcFormatInfo *)
Format retrieval.
IBRootLinkable * BLDocumentI
RootLinkable interface on the container.
TOcApp & OcApp
Our OC application object.
TOcServerHost * ServerHost
The hosting app's server object.
IUnknown * SetOuter(IUnknown *outer=0)
TRect is a mathematical class derived from tagRect.
void SetNull()
Sets the left, top, right, and bottom of the rectangle to 0.
TRect & Normalize()
Normalizes this rectangle by switching the left and right data member values if left > right,...
A registration parameter table, composed of a list of TRegItems.
The tagSIZE struct is defined as.
Include for OC, gets common headers when precompiled headers are enabled.
Object Component Framework (COM encapsulation)
HRESULT HRFailIfZero(int bexpr)
@ amDebug
user requested launching for debugging
void(* TDeleteUserData)(void *userData)
Object Windows Library (OWLNext Core)
Definition of TOcApp application connection class.
Definition of TOcDataProvider Class.
interface _ICLASS IStorage
For part adornment painting over part, & painting views.