OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Link Viewer object for a server document. More...
#include <ocf/oclink.h>
Public Member Functions | |
TOcLinkView (TOcView *ocView, owl::TRegList *regList=0, IUnknown *outer=0) | |
int | Detach () |
Remove this link view from the document. | |
void | Invalidate (TOcInvalidate) |
Invalidate the site corresponding to this view. | |
void | Disconnect () |
Disconnect from the client site. | |
void | GetLinkRect () |
Get the initial size and position from the host app into our members. | |
void | SetMoniker (LPCTSTR name) |
Remember the name of the moniker. | |
owl::TString & | GetMoniker () |
owl::ulong _IFUNC | AddRef () |
owl::ulong _IFUNC | Release () |
HRESULT _IFUNC | QueryInterface (const GUID &iid, void **iface) |
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 | |
HRESULT | QueryObject (const IID &iid, void **iface) |
owl::uint _IFUNC | CountFormats () |
HRESULT _IFUNC | GetFormat (owl::uint index, TOcFormatInfo *fmt) |
HANDLE _IFUNC | GetFormatData (TOcFormatInfo *) |
Request native data for pasting into client application. | |
HRESULT _IFUNC | Draw (HDC, const RECTL *, const RECTL *, TOcAspect, TOcDraw bd) |
Render the view in the DC provided. | |
HRESULT _IFUNC | GetPartSize (owl::TSize *) |
Return the 'size' of the document that this view in on. | |
HRESULT _IFUNC | Save (IStorage *, BOOL sameAsLoad, BOOL remember) |
Save the document that we are a view on. | |
HRESULT _IFUNC | Init (IBSite *, TOcInitInfo *) |
Load the associated document and activate the remote view. | |
HRESULT _IFUNC | Close () |
Close the remote view window, & if canShutDown is true, try to close the server app too. | |
HRESULT _IFUNC | CanOpenInPlace () |
Query to determine if this view can open in place. | |
HRESULT _IFUNC | SetPartSize (owl::TSize *) |
HRESULT _IFUNC | SetPartPos (owl::TRect *) |
Set a new position for our document within its container. | |
HRESULT _IFUNC | Activate (BOOL) |
Activate this view. | |
HRESULT _IFUNC | Show (BOOL) |
Show/Hide the server view window. | |
HRESULT _IFUNC | Open (BOOL) |
Start or end open editing Work with the window Z-order and parenting. | |
HRESULT _IFUNC | EnumVerbs (TOcVerb *) |
Enumerate the verbs for our document. | |
HRESULT _IFUNC | DoVerb (owl::uint) |
Perform a verb on our document. | |
HWND _IFUNC | OpenInPlace (HWND) |
Open or close this view as an in-place edit session. | |
HRESULT _IFUNC | InsertMenus (HMENU, TOcMenuWidths *) |
Insert the server's menus into the shared menubar. | |
HRESULT _IFUNC | ShowTools (BOOL) |
Show or hide the tool windows used by our view. | |
void _IFUNC | FrameResized (const owl::TRect *, BOOL) |
A container window has resized. | |
HRESULT _IFUNC | DragFeedback (owl::TPoint *, BOOL) |
Let the server provide drag feedback. | |
HRESULT _IFUNC | GetPalette (LOGPALETTE **) |
Optional palette query for. | |
HRESULT _IFUNC | SetHost (IBContainer *objContainer) |
HRESULT _IFUNC | DoQueryInterface (const IID &iid, void **pif) |
LPOLESTR _IFUNC | GetName (TOcPartName) |
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 |
Friends | |
class | TOcLinkCollection |
ocf::TOcLinkView::TOcLinkView | ( | TOcView * | ocView, |
owl::TRegList * | regList = 0, | ||
IUnknown * | outer = 0 ) |
Definition at line 21 of file oclink.cpp.
References AddRef(), ocf::amDebug, ocf::amExeModule, ocf::TOcApp::BOleComponentCreate(), ocf::cidBOleInProcSite, ocf::cidBOleSite, ocf::IBSite::Init(), ocf::TOcApp::IsOptionSet(), ocf::TOcView::OcApp, OleStr, PRECONDITION, Release(), and ocf::TUnknown::SetOuter().
Activate this view.
Implements ocf::IBPart.
Definition at line 324 of file oclink.cpp.
References HR_NOERROR.
|
inline |
Query to determine if this view can open in place.
Implements ocf::IBPart.
Definition at line 295 of file oclink.cpp.
References HR_FAIL.
Close the remote view window, & if canShutDown is true, try to close the server app too.
Implements ocf::IBPart.
Definition at line 285 of file oclink.cpp.
References ocf::TOcServerHost::EvOcViewBreakLink(), HR_NOERROR, and ocf::TOcView::ServerHost.
Implements ocf::IBDataNegotiator.
Definition at line 138 of file oclink.cpp.
References ocf::TOcView::CountFormats().
int ocf::TOcLinkView::Detach | ( | ) |
Remove this link view from the document.
Definition at line 69 of file oclink.cpp.
References ocf::TOcLinkCollection::Detach(), ocf::TOcDocument::GetViews(), and ocf::TOcView::OcDocument.
void ocf::TOcLinkView::Disconnect | ( | ) |
Disconnect from the client site.
Definition at line 115 of file oclink.cpp.
References ocf::IBSite::Disconnect().
Implements ocf::IBPart.
Definition at line 447 of file oclink.cpp.
References PRECONDITION, and ocf::TOcView::QueryInterface().
Perform a verb on our document.
Implements ocf::IBPart.
Definition at line 370 of file oclink.cpp.
References HR_FAIL.
|
protectedvirtual |
Let the server provide drag feedback.
Implements ocf::IBPart.
Definition at line 416 of file oclink.cpp.
References ocf::TOcServerHost::EvOcViewDrag(), ocf::HRFailIfZero(), and ocf::TOcView::ServerHost.
|
protectedvirtual |
Render the view in the DC provided.
Should be a MetaFile Packup all the args & forward message to real view to paint
Implements ocf::IBDataProvider.
Definition at line 202 of file oclink.cpp.
References ocf::drShadingOnly, ocf::TOcServerHost::EvOcViewPaint(), Extent, GetLinkRect(), HR_NOERROR, ocf::HRFailIfZero(), owl::TRect::Normalize(), Origin, PRECONDITION, ocf::TOcView::ServerHost, and owl::TRect::SetEmpty().
Enumerate the verbs for our document.
Implements ocf::IBPart.
Definition at line 361 of file oclink.cpp.
References HR_FAIL.
|
protectedvirtual |
A container window has resized.
Perform any necessary adjustment of our tools.
Implements ocf::IBPart.
Definition at line 408 of file oclink.cpp.
|
protectedvirtual |
Implements ocf::IBDataNegotiator.
Definition at line 147 of file oclink.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 162 of file oclink.cpp.
References ocf::TOcServerHost::EvOcViewClipData(), ocf::TOcFormatList::Find(), ocf::TOcView::FormatList, PRECONDITION, and ocf::TOcView::ServerHost.
void ocf::TOcLinkView::GetLinkRect | ( | ) |
Get the initial size and position from the host app into our members.
Definition at line 180 of file oclink.cpp.
References ocf::TOcServerHost::EvOcViewPartSize(), Extent, Origin, and ocf::TOcView::ServerHost.
|
inline |
|
protectedvirtual |
Implements ocf::IBPart.
Definition at line 458 of file oclink.cpp.
|
protectedvirtual |
Optional palette query for.
Implements ocf::IBPart.
Definition at line 427 of file oclink.cpp.
References ocf::TOcServerHost::EvOcViewGetPalette(), ocf::HRFailIfZero(), PRECONDITION, and ocf::TOcView::ServerHost.
|
protectedvirtual |
Return the 'size' of the document that this view in on.
Implements ocf::IBDataProvider.
Definition at line 238 of file oclink.cpp.
References Extent, and HR_NOERROR.
|
protectedvirtual |
Load the associated document and activate the remote view.
Implements ocf::IBPart.
Definition at line 275 of file oclink.cpp.
References HR_NOERROR.
|
protectedvirtual |
Insert the server's menus into the shared menubar.
Implements ocf::IBPart.
Definition at line 389 of file oclink.cpp.
References HR_NOERROR.
void ocf::TOcLinkView::Invalidate | ( | TOcInvalidate | invalid | ) |
Invalidate the site corresponding to this view.
Definition at line 105 of file oclink.cpp.
References ocf::IBSite::Invalidate().
Start or end open editing Work with the window Z-order and parenting.
Implements ocf::IBPart.
Definition at line 343 of file oclink.cpp.
References ocf::TOcView::BringToFront(), ocf::TOcServerHost::EvOcViewAttachWindow(), HR_NOERROR, ocf::TOcView::ServerHost, and TYPESAFE_DOWNCAST.
Open or close this view as an in-place edit session.
If hWndParent is 0, then in-place is closing
Implements ocf::IBPart.
Definition at line 380 of file oclink.cpp.
Definition at line 78 of file oclink.cpp.
References PRECONDITION.
|
inline |
|
protectedvirtual |
Save the document that we are a view on.
Implements ocf::IBDataProvider.
Definition at line 248 of file oclink.cpp.
References ocf::TOcServerHost::EvOcViewSavePart(), ocf::HRFailIfZero(), PRECONDITION, ocf::TOcView::ServerHost, and owl::ToBool().
|
protectedvirtual |
Remember the name of the moniker.
Definition at line 125 of file oclink.cpp.
|
protectedvirtual |
Set a new position for our document within its container.
Implements ocf::IBPart.
Definition at line 304 of file oclink.cpp.
References HR_NOERROR, and Origin.
|
protectedvirtual |
Implements ocf::IBPart.
Definition at line 314 of file oclink.cpp.
References Extent, and HR_NOERROR.
Show/Hide the server view window.
Implements ocf::IBPart.
Definition at line 333 of file oclink.cpp.
References HR_NOERROR.
Show or hide the tool windows used by our view.
Implements ocf::IBPart.
Definition at line 398 of file oclink.cpp.
References HR_NOERROR.
|
friend |
|
protected |
|
protected |