43 "debugprogid" :
"progid");
44 BSiteI->
Init(
this,
this,
OleStr(progid),
true);
55TOcLinkView::~TOcLinkView()
190 ps.PartRect.SetNull();
489 for (
int i =
Count() - 1;
i >= 0;
i--) {
#define PRECONDITION(condition)
IBContainer – Supported by container app's document window.
IBPart – Supported by server objects.
IBSite – Supported by container apps for each linked/embedded object.
virtual void _IFUNC Invalidate(TOcInvalidate)=0
virtual HRESULT _IFUNC Init(IBDataProvider *, IBPart *, LPCOLESTR, BOOL)=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
TOcLinkCollection & GetViews()
Container of link views with iterator.
int Detach(TOcLinkView *const &view, int del=0)
int Find(TOcLinkView *const &view)
void Clear()
Release Views in the collection.
virtual unsigned Count() const
Link Viewer object for a server document.
owl::ulong _IFUNC Release()
HRESULT _IFUNC GetFormat(owl::uint index, TOcFormatInfo *fmt)
HRESULT QueryObject(const IID &iid, void **iface)
HRESULT _IFUNC Save(IStorage *, BOOL sameAsLoad, BOOL remember)
Save the document that we are a view on.
HWND _IFUNC OpenInPlace(HWND)
Open or close this view as an in-place edit session.
HRESULT _IFUNC GetPalette(LOGPALETTE **)
Optional palette query for.
HRESULT _IFUNC SetPartPos(owl::TRect *)
Set a new position for our document within its container.
HRESULT _IFUNC InsertMenus(HMENU, TOcMenuWidths *)
Insert the server's menus into the shared menubar.
HRESULT _IFUNC EnumVerbs(TOcVerb *)
Enumerate the verbs for our document.
HRESULT _IFUNC GetPartSize(owl::TSize *)
Return the 'size' of the document that this view in on.
HRESULT _IFUNC CanOpenInPlace()
Query to determine if this view can open in place.
LPOLESTR _IFUNC GetName(TOcPartName)
HRESULT _IFUNC Show(BOOL)
Show/Hide the server view window.
HANDLE _IFUNC GetFormatData(TOcFormatInfo *)
Request native data for pasting into client application.
int Detach()
Remove this link view from the document.
owl::ulong _IFUNC AddRef()
HRESULT _IFUNC DragFeedback(owl::TPoint *, BOOL)
Let the server provide drag feedback.
HRESULT _IFUNC Activate(BOOL)
Activate this view.
HRESULT _IFUNC Draw(HDC, const RECTL *, const RECTL *, TOcAspect, TOcDraw bd)
Render the view in the DC provided.
HRESULT _IFUNC Close()
Close the remote view window, & if canShutDown is true, try to close the server app too.
owl::uint _IFUNC CountFormats()
void SetMoniker(LPCTSTR name)
Remember the name of the moniker.
HRESULT _IFUNC Init(IBSite *, TOcInitInfo *)
Load the associated document and activate the remote view.
HRESULT _IFUNC DoVerb(owl::uint)
Perform a verb on our document.
void _IFUNC FrameResized(const owl::TRect *, BOOL)
A container window has resized.
HRESULT _IFUNC SetPartSize(owl::TSize *)
HRESULT _IFUNC SetHost(IBContainer *objContainer)
void GetLinkRect()
Get the initial size and position from the host app into our members.
void Invalidate(TOcInvalidate)
Invalidate the site corresponding to this view.
void Disconnect()
Disconnect from the client site.
HRESULT _IFUNC Open(BOOL)
Start or end open editing Work with the window Z-order and parenting.
HRESULT _IFUNC DoQueryInterface(const IID &iid, void **pif)
TOcLinkView(TOcView *ocView, owl::TRegList *regList=0, IUnknown *outer=0)
HRESULT _IFUNC ShowTools(BOOL)
Show or hide the tool windows used by our view.
Used to obtain the size of the rectangle that encloses the selection.
Remote Viewer object for a server document.
Use when doing parts save and load.
virtual bool EvOcViewBreakLink(TOcLinkView &view)=0
virtual bool EvOcViewPartSize(TOcPartSize &size)=0
virtual bool EvOcViewGetPalette(LOGPALETTE **palette)=0
virtual bool EvOcViewDrag(TOcDragDrop &ddInfo)=0
virtual bool EvOcViewPaint(TOcViewPaint &vp)=0
virtual bool EvOcViewClipData(TOcFormatData &format)=0
virtual bool EvOcViewAttachWindow(bool attach)=0
virtual bool EvOcViewSavePart(TOcSaveLoad &ocSave)=0
The TOcView partner is a container (viewer) of a given (server/client) document.
TOcDocument & OcDocument
Our OC document object.
HRESULT _IFUNC BringToFront()
owl::uint _IFUNC CountFormats()
Format count.
HRESULT _IFUNC QueryInterface(const GUID &iid, void **iface)
HRESULT _IFUNC GetFormat(owl::uint, TOcFormatInfo *)
Format retrieval.
TOcApp & OcApp
Our OC application object.
TOcServerHost * ServerHost
The hosting app's server object.
IUnknown * SetOuter(IUnknown *outer=0)
TPoint is a support class, derived from tagPOINT.
Iterator for Pointer Container.
TRect is a mathematical class derived from tagRect.
void SetEmpty()
Empties this rectangle by setting left, top, right, and bottom 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.
Reference to reference counted string object TUString Lightweight reference object consisting of a po...
Include for OC, gets common headers when precompiled headers are enabled.
Object Component Framework (COM encapsulation)
const BCID cidBOleInProcSite
HRESULT HRFailIfZero(int bexpr)
@ amExeModule
set for EXE components, 0 if DLL inproc server
@ amDebug
user requested launching for debugging
Object Windows Library (OWLNext Core)
Definition of TOcApp application connection class.
interface _ICLASS IStorage
Definition of TOcLinkView Class.
Definition of TOcRemView Class.
#define TYPESAFE_DOWNCAST(object, toClass)
For part adornment painting over part, & painting views.