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

Remote Viewer object for a server document. More...

#include <ocf/ocremvie.h>

Inheritance diagram for ocf::TOcRemView:
ocf::TOcView ocf::IBPart2 ocf::TUnknown ocf::IBContainer ocf::IBContains ocf::IBDropDest ocf::IBPart ocf::IBDataProvider2 ocf::IBWindow ocf::IBDataConsumer ocf::IBDataProvider ocf::IBDataProvider ocf::IBDataNegotiator ocf::IBDataNegotiator ocf::IBDataNegotiator

Public Types

enum  TState { Hidden , Closing , OpenEditing , InPlaceActive }
 
enum  TKind { DontKnow , Embedding , LoadFromFile , Link }
 

Public Member Functions

 TOcRemView (TOcDocument &doc, TOcContainerHost *cs, TOcServerHost *ss, owl::TRegList *regList=0, IUnknown *outer=0)
 New constructor that uses host interfaces.
 
 TOcRemView (TOcDocument &doc, owl::TRegList *regList=0, IUnknown *outer=0)
 Constructor for compatibility only.
 
virtual void ReleaseObject ()
 Should only be called by the owner/creator of this object.
 
void Invalidate (TOcInvalidate)
 Invalidate the site within the active view.
 
void Disconnect ()
 Disconnect from the client site.
 
virtual bool EvSetFocus (bool set)
 Set focus to the inplace server.
 
void EvClose ()
 
void Rename ()
 Update monikers with new name.
 
owl::TString GetContainerTitle ()
 Get the window text of the container.
 
void GetInitialRect (bool selection=false)
 Get the initial size and position from the app.
 
bool Save (IStorage *storageI)
 Save remote view specific information to compound file.
 
bool Load (IStorage *storageI)
 Load remote view specific information.
 
bool SetContainerStatusText (LPCTSTR text)
 
TState GetState () const
 
TKind GetKind () const
 
void SetOpenEditing ()
 
owl::ulong _IFUNC AddRef ()
 
owl::ulong _IFUNC Release ()
 
HRESULT _IFUNC QueryInterface (const GUID &iid, void **iface)
 
HRESULT _IFUNC GetPartSize (owl::TSize *)
 Return the 'size' of the document that this view in on.
 
- Public Member Functions inherited from ocf::TOcView
 TOcView (TOcDocument &doc, TOcContainerHost *ch, TOcServerHost *sh, owl::TRegList *regList=0, IUnknown *outer=0)
 New, interface constructor.
 
 TOcView (TOcDocument &doc, owl::TRegList *regList=0, IUnknown *outer=0)
 Compatibility constructor.
 
void SetupWindow (HWND hWin, bool embedded=false)
 
TOcDocumentGetOcDocument ()
 
IBRootLinkableGetLinkable ()
 
bool RegisterClipFormats (owl::TRegList &regList)
 Register the clipboard formats supported.
 
bool BrowseClipboard (TOcInitInfo &initInfo)
 
bool PasteNative (TOcInitInfo &init, owl::TPoint *where=0)
 Paste native data into the container.
 
bool Paste (bool linking=false)
 
void SetOcData (TOcDataProvider *ocData=0)
 
TOcDataProviderGetOcData ()
 
owl::TPoint GetOrigin () const
 
owl::TRect GetWindowRect () const
 Return the client rect for the view window.
 
void ScrollWindow (int dx, int dy)
 Scroll this container window a give dx,dy.
 
void InvalidatePart (TOcPartChangeInfo &changeInfo)
 
TOcLinkViewGetDocLink (LPCTSTR name=0)
 Obtain a TOcLinkView representing a moniker, the whole document by default.
 
bool IsOptionSet (owl::uint32 option) const
 
void SetOption (owl::uint32 bit, bool state)
 
TOcPartGetActivePart ()
 
void SetActivePart (TOcPart *part)
 
bool ActivatePart (TOcPart *part)
 Activate a given part.
 
void EvResize ()
 
void EvActivate (bool activate)
 View is activated/deactivated.
 
bool EnumLinks (IBLinkInfo **)
 
bool BrowseLinks ()
 
bool UpdateLinks ()
 
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 _IFUNC Init (LPCOLESTR path)
 This is called when we want to create a part from data saved in the storage named "path".
 
HRESULT _IFUNC GetPart (IBPart **, LPCOLESTR)
 
HRESULT _IFUNC BringToFront ()
 Show the container window.
 
HRESULT QueryObject (const IID &iid, void **iface)
 
void _IFUNC DragFeedback (owl::TPoint *p, const owl::TRect *r, TOcMouseAction a, owl::uint cf, HRESULT &hr)
 
HRESULT _IFUNC AllowInPlace ()
 Check option flag to see if in place activation is allowed.
 
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 SetFormatData (TOcFormatInfo *fmt, HANDLE data, BOOL release)
 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 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 server 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)
 
void Init ()
 Do real constructor work.
 
 ~TOcRemView ()
 
- Protected Member Functions inherited from ocf::TOcView
owl::TResult ForwardEvent (int eventId, const void *param)
 
owl::TResult ForwardEvent (int eventId, owl::TParam2 param=0)
 
 ~TOcView ()
 
void Shutdown ()
 Called from destructor of this class or of derived class to release helpers and host interfaces.
 
HRESULT QueryObject (const IID &iid, void **iface)
 Callback from TUnknown's implementation of QueryInterface.
 
HRESULT _IFUNC Init (LPCOLESTR)
 Ask the container to load document named 'path'.
 
HRESULT _IFUNC GetPart (IBPart **, LPCOLESTR)
 
owl::uint _IFUNC CountFormats ()
 Format count.
 
HRESULT _IFUNC GetFormat (owl::uint, TOcFormatInfo *)
 Format retrieval.
 
HWND _IFUNC GetWindow ()
 
HRESULT _IFUNC GetWindowRect (owl::TRect *r)
 
LPCOLESTR _IFUNC GetWindowTitle ()
 
void _IFUNC AppendWindowTitle (LPCOLESTR title)
 Append server's doc title info to our view's window title.
 
HRESULT _IFUNC SetStatusText (LPCOLESTR text)
 
HRESULT _IFUNC RequestBorderSpace (const owl::TRect *)
 
HRESULT _IFUNC SetBorderSpace (const owl::TRect *)
 
HRESULT _IFUNC InsertContainerMenus (HMENU, TOcMenuWidths *)
 
HRESULT _IFUNC SetFrameMenu (HMENU)
 
void _IFUNC RestoreUI ()
 
HRESULT _IFUNC Accelerator (MSG *)
 
HRESULT _IFUNC GetAccelerators (HACCEL *, int *)
 
HRESULT _IFUNC Drop (TOcInitInfo *, owl::TPoint *, const owl::TRect *)
 Drop a part onto this view.
 
void _IFUNC DragFeedback (owl::TPoint *, const owl::TRect *, TOcMouseAction, owl::uint, HRESULT &hr)
 Provide feedback to the users drag action in our container window.
 
HRESULT _IFUNC Scroll (TOcScrollDir scrollDir)
 Ask the container view window to scroll itself in a given direction.
 
HRESULT _IFUNC GetScrollRect (owl::TRect *)
 
HRESULT _IFUNC FindDropDest (owl::TPoint *, IBDropDest **)
 Locate the drop destination object.
 
HRESULT _IFUNC AllowInPlace ()
 
HRESULT _IFUNC BringToFront ()
 
- 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

IBContainerBContainerI
 
IBLinkableBLSiteI
 for site moniker
 
IUnknown * BSite
 In-place site helper.
 
IBSiteBSiteI
 Site interface.
 
IBApplicationBAppI
 Site's application interface.
 
HWND HRealParent
 View's real parent.
 
TOcToolBarInfo ToolBarInfo
 Inplace tool bar info.
 
TState State
 Current state of this server view.
 
TKind Kind
 What kind of server view this is.
 
- Protected Attributes inherited from ocf::TOcView
IUnknown * BDocument
 Document helper object.
 
IBDocumentBDocumentI
 Document interface on the document.
 
IUnknown * BContainer
 Container helper object.
 
IBRootLinkableBLDocumentI
 RootLinkable interface on the container.
 
TOcAppOcApp
 Our OC application object.
 
TOcDocumentOcDocument
 Our OC document object.
 
TOcContainerHostContainerHost
 The hosting app's container object.
 
TOcServerHostServerHost
 The hosting app's server object.
 
TOcPartActivePart
 Currently active part, if any.
 
owl::uint32 Options
 
owl::TPoint Origin
 
owl::TSize Extent
 
owl::tstring WinTitle
 
TOcFormatList FormatList
 
owl::TString OrgTitle
 Original window title string.
 
int LinkFormat
 adjustment for format count
 
owl::TRegListRegList
 
TOcDataProviderOcData
 Dataprovider representing this view.
 
- Protected Attributes inherited from ocf::TUnknown
IUnknown * Outer
 

Detailed Description

Remote Viewer object for a server document.

Definition at line 26 of file ocremvie.h.

Member Enumeration Documentation

◆ TKind

Enumerator
DontKnow 

What kind of server view this is.

Don't know yet, wait for Init()

Embedding 

Normal Embedding.

LoadFromFile 

Transient load-from-file.

Link 

Load-from-file is really a link.

Definition at line 63 of file ocremvie.h.

◆ TState

Enumerator
Hidden 

Current state of this server view.

Hidden & ready to go

Closing 

Shutting down.

OpenEditing 

Open editing.

InPlaceActive 

Inplace active.

Definition at line 57 of file ocremvie.h.

Constructor & Destructor Documentation

◆ TOcRemView() [1/2]

ocf::TOcRemView::TOcRemView ( TOcDocument & doc,
TOcContainerHost * cs,
TOcServerHost * ss,
owl::TRegList * regList = 0,
IUnknown * outer = 0 )

New constructor that uses host interfaces.

Definition at line 44 of file ocremvie.cpp.

References Init(), and TRACEX.

◆ TOcRemView() [2/2]

ocf::TOcRemView::TOcRemView ( TOcDocument & doc,
owl::TRegList * regList = 0,
IUnknown * outer = 0 )

Constructor for compatibility only.

Definition at line 30 of file ocremvie.cpp.

References Init(), and TRACEX.

◆ ~TOcRemView()

ocf::TOcRemView::~TOcRemView ( )
protected

Member Function Documentation

◆ Activate()

HRESULT _IFUNC ocf::TOcRemView::Activate ( BOOL activate)
protectedvirtual

Activate this view.

Implements ocf::IBPart.

Definition at line 702 of file ocremvie.cpp.

References ocf::TOcView::GetWindow(), and HR_NOERROR.

◆ AddRef()

ulong _IFUNC ocf::TOcRemView::AddRef ( )

Definition at line 155 of file ocremvie.cpp.

References ocf::TUnknown::GetOuter().

◆ AllowInPlace()

HRESULT _IFUNC ocf::TOcRemView::AllowInPlace ( )
protectedvirtual

Check option flag to see if in place activation is allowed.

Implements ocf::IBContainer.

Definition at line 200 of file ocremvie.cpp.

References HR_FALSE, HR_NOERROR, ocf::TOcView::IsOptionSet(), OpenEditing, State, ocf::voNoInPlace, and ocf::voNoNestedInPlace.

◆ BringToFront()

HRESULT _IFUNC ocf::TOcRemView::BringToFront ( )
protectedvirtual

Show the container window.

Implements ocf::IBContainer.

Definition at line 190 of file ocremvie.cpp.

References ocf::TOcView::BringToFront(), and HR_NOERROR.

◆ CanOpenInPlace()

HRESULT _IFUNC ocf::TOcRemView::CanOpenInPlace ( )
protectedvirtual

Query to determine if this server view can open in place.

Implements ocf::IBPart.

Definition at line 655 of file ocremvie.cpp.

References HR_FALSE, HR_NOERROR, ocf::TOcView::IsOptionSet(), and ocf::voNoInPlaceServer.

◆ Close()

HRESULT _IFUNC ocf::TOcRemView::Close ( )
protectedvirtual

Close the remote view window, & if canShutDown is true, try to close the server app too.

Implements ocf::IBPart.

Definition at line 632 of file ocremvie.cpp.

References ocf::amExeMode, Closing, EvClose(), ocf::TOcServerHost::EvOcGetWindow(), HR_NOERROR, ocf::TOcApp::IsOptionSet(), ocf::TOcView::OcApp, ocf::TOcView::ServerHost, State, owl::ToBool(), and TRACEX.

◆ CountFormats()

uint _IFUNC ocf::TOcRemView::CountFormats ( )
protectedvirtual

Implements ocf::IBDataNegotiator.

Definition at line 449 of file ocremvie.cpp.

References ocf::TOcView::CountFormats().

◆ Disconnect()

void ocf::TOcRemView::Disconnect ( )

Disconnect from the client site.

Definition at line 227 of file ocremvie.cpp.

References BSiteI, ocf::IBSite::Disconnect(), and TRACEX.

◆ DoQueryInterface()

HRESULT _IFUNC ocf::TOcRemView::DoQueryInterface ( const IID & iid,
void ** pif )
protectedvirtual

Implements ocf::IBPart.

Definition at line 1067 of file ocremvie.cpp.

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

◆ DoVerb()

HRESULT _IFUNC ocf::TOcRemView::DoVerb ( owl::uint verb)
protectedvirtual

Perform a verb on our document.

Implements ocf::IBPart.

Definition at line 789 of file ocremvie.cpp.

References ocf::TOcServerHost::EvOcViewDoVerb(), ocf::HRFailIfZero(), and ocf::TOcView::ServerHost.

◆ DragFeedback() [1/2]

HRESULT _IFUNC ocf::TOcRemView::DragFeedback ( owl::TPoint * where,
BOOL  )
protectedvirtual

Let the server provide drag feedback.

Implements ocf::IBPart.

Definition at line 1040 of file ocremvie.cpp.

References ocf::TOcServerHost::EvOcViewDrag(), ocf::HRFailIfZero(), PRECONDITION, and ocf::TOcView::ServerHost.

◆ DragFeedback() [2/2]

void _IFUNC ocf::TOcRemView::DragFeedback ( owl::TPoint * p,
const owl::TRect * r,
TOcMouseAction a,
owl::uint cf,
HRESULT & hr )
protectedvirtual

Implements ocf::IBDropDest.

Definition at line 176 of file ocremvie.cpp.

References ocf::TOcView::DragFeedback().

◆ Draw()

HRESULT _IFUNC ocf::TOcRemView::Draw ( HDC dc,
const RECTL * pos,
const RECTL * clip,
TOcAspect aspect,
TOcDraw bd )
protectedvirtual

◆ EnumVerbs()

HRESULT _IFUNC ocf::TOcRemView::EnumVerbs ( TOcVerb * )
protectedvirtual

Enumerate the verbs for our document.

Implements ocf::IBPart.

Definition at line 780 of file ocremvie.cpp.

References HR_FAIL.

◆ EvClose()

void ocf::TOcRemView::EvClose ( )
virtual

◆ EvSetFocus()

bool ocf::TOcRemView::EvSetFocus ( bool set)
virtual

Set focus to the inplace server.

Reimplemented from ocf::TOcView.

Definition at line 239 of file ocremvie.cpp.

References BSiteI, ocf::TOcView::EvSetFocus(), and ocf::IBSite::OnSetFocus().

◆ FrameResized()

void _IFUNC ocf::TOcRemView::FrameResized ( const owl::TRect * contFrameR,
BOOL isMainFrame )
protectedvirtual

A container window has resized.

Perform any necessary adjustment of our tools.

Implements ocf::IBPart.

Definition at line 1022 of file ocremvie.cpp.

References ToolBarInfo.

◆ GetContainerTitle()

TString ocf::TOcRemView::GetContainerTitle ( )

Get the window text of the container.

Definition at line 280 of file ocremvie.cpp.

References _T, BContainerI, and ocf::IBWindow::GetWindowTitle().

◆ GetFormat()

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

Implements ocf::IBDataNegotiator.

Definition at line 455 of file ocremvie.cpp.

References ocf::TOcView::GetFormat().

◆ GetFormatData()

HANDLE _IFUNC ocf::TOcRemView::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 468 of file ocremvie.cpp.

References ocf::TOcServerHost::EvOcViewClipData(), ocf::TOcFormatList::Find(), ocf::TOcView::FormatList, PRECONDITION, and ocf::TOcView::ServerHost.

◆ GetInitialRect()

void ocf::TOcRemView::GetInitialRect ( bool selection = false)

Get the initial size and position from the app.

Definition at line 291 of file ocremvie.cpp.

References BSiteI, ocf::TOcServerHost::EvOcViewPartSize(), ocf::TOcView::Extent, ocf::IBSite::GetSiteRect(), ocf::TOcView::Origin, and ocf::TOcView::ServerHost.

◆ GetKind()

TKind ocf::TOcRemView::GetKind ( ) const
inline

Definition at line 70 of file ocremvie.h.

◆ GetName()

LPOLESTR _IFUNC ocf::TOcRemView::GetName ( TOcPartName )
protectedvirtual

Implements ocf::IBPart.

Definition at line 1075 of file ocremvie.cpp.

◆ GetPalette()

HRESULT _IFUNC ocf::TOcRemView::GetPalette ( LOGPALETTE ** palette)
protectedvirtual

Optional palette query for.

Implements ocf::IBPart.

Definition at line 1053 of file ocremvie.cpp.

References ocf::TOcServerHost::EvOcViewGetPalette(), ocf::HRFailIfZero(), PRECONDITION, and ocf::TOcView::ServerHost.

◆ GetPart()

HRESULT _IFUNC ocf::TOcRemView::GetPart ( IBPart ** parti,
LPCOLESTR moniker )
protectedvirtual

Implements ocf::IBContains.

Definition at line 437 of file ocremvie.cpp.

References ocf::TOcView::GetPart(), Kind, Link, and LoadFromFile.

◆ GetPartSize()

HRESULT _IFUNC ocf::TOcRemView::GetPartSize ( owl::TSize * size)
virtual

Return the 'size' of the document that this view in on.

Implements ocf::IBDataProvider.

Definition at line 576 of file ocremvie.cpp.

References ocf::TOcView::Extent, and HR_NOERROR.

◆ GetState()

TState ocf::TOcRemView::GetState ( ) const
inline

Definition at line 69 of file ocremvie.h.

◆ Init() [1/3]

◆ Init() [2/3]

HRESULT _IFUNC ocf::TOcRemView::Init ( IBSite * ,
TOcInitInfo * initInfo )
protectedvirtual

Load the associated document and activate the remote view.

Implements ocf::IBPart.

Definition at line 601 of file ocremvie.cpp.

References Activate(), Embedding, ocf::TOcServerHost::EvOcViewLoadPart(), GetInitialRect(), HR_FAIL, HR_NOERROR, ocf::iwNew, ocf::iwStorage, Kind, PRECONDITION, ocf::TOcView::ServerHost, and Show().

◆ Init() [3/3]

◆ InsertMenus()

HRESULT _IFUNC ocf::TOcRemView::InsertMenus ( HMENU hMenu,
TOcMenuWidths * omw )
protectedvirtual

Insert the server's menus into the shared menubar.

Implements ocf::IBPart.

Definition at line 833 of file ocremvie.cpp.

References ocf::TOcServerHost::EvOcViewInsMenus(), HR_FAIL, HR_NOERROR, PRECONDITION, and ocf::TOcView::ServerHost.

◆ Invalidate()

void ocf::TOcRemView::Invalidate ( TOcInvalidate invalid)

Invalidate the site within the active view.

Definition at line 217 of file ocremvie.cpp.

References BSiteI, and ocf::IBSite::Invalidate().

◆ Load()

bool ocf::TOcRemView::Load ( IStorage * storageI)

Load remote view specific information.

Definition at line 358 of file ocremvie.cpp.

References ocf::TOcView::Extent, ocf::HRSucceeded(), ocf::TOcView::Origin, ocf::RemViewStreamName, and ocf::TOcStorage::Stat().

◆ Open()

◆ OpenInPlace()

HWND _IFUNC ocf::TOcRemView::OpenInPlace ( HWND hWndParent)
protectedvirtual

◆ QueryInterface()

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

Definition at line 167 of file ocremvie.cpp.

References ocf::TUnknown::GetOuter().

◆ QueryObject()

HRESULT ocf::TOcRemView::QueryObject ( const IID & iid,
void ** iface )
protected

Definition at line 129 of file ocremvie.cpp.

References BSite, PRECONDITION, and ocf::TOcView::QueryObject().

◆ Release()

ulong _IFUNC ocf::TOcRemView::Release ( )

Definition at line 161 of file ocremvie.cpp.

References ocf::TUnknown::GetOuter().

◆ ReleaseObject()

void ocf::TOcRemView::ReleaseObject ( )
virtual

Should only be called by the owner/creator of this object.

Reimplemented from ocf::TOcView.

Definition at line 119 of file ocremvie.cpp.

References AddRef(), and ocf::TOcView::ReleaseObject().

◆ Rename()

void ocf::TOcRemView::Rename ( )
virtual

Update monikers with new name.

Reimplemented from ocf::TOcView.

Definition at line 265 of file ocremvie.cpp.

References BLSiteI, PRECONDITION, and ocf::TOcView::Rename().

◆ Save() [1/2]

HRESULT _IFUNC ocf::TOcRemView::Save ( IStorage * storage,
BOOL sameAsLoad,
BOOL remember )
protectedvirtual

Save the document that we are a view on.

Implements ocf::IBDataProvider.

Definition at line 586 of file ocremvie.cpp.

References ocf::TOcServerHost::EvOcViewSavePart(), ocf::HRFailIfZero(), PRECONDITION, ocf::TOcView::ServerHost, and owl::ToBool().

◆ Save() [2/2]

bool ocf::TOcRemView::Save ( IStorage * storageI)

Save remote view specific information to compound file.

Definition at line 330 of file ocremvie.cpp.

References ocf::TOcView::Extent, ocf::TOcView::Origin, ocf::RemViewStreamName, and ocf::TOcStorage::Stat().

◆ SetContainerStatusText()

bool ocf::TOcRemView::SetContainerStatusText ( LPCTSTR text)
inline

Definition at line 160 of file ocremvie.h.

References BAppI, ocf::HRIsOK(), OleStr, and ocf::IBWindow::SetStatusText().

◆ SetFormatData()

HRESULT _IFUNC ocf::TOcRemView::SetFormatData ( TOcFormatInfo * fmt,
HANDLE data,
BOOL release )
protectedvirtual

Request native data for pasting into client application.

This is only called at paste time (not at copy time).

Implements ocf::IBDataProvider2.

Definition at line 486 of file ocremvie.cpp.

References ocf::TOcServerHost::EvOcViewSetData(), ocf::TOcFormatList::Find(), ocf::TOcView::FormatList, HR_FAIL, HR_NOERROR, PRECONDITION, and ocf::TOcView::ServerHost.

◆ SetHost()

HRESULT _IFUNC ocf::TOcRemView::SetHost ( IBContainer * objContainer)
protectedvirtual

Implements ocf::IBPart.

Definition at line 1061 of file ocremvie.cpp.

References HR_FAIL.

◆ SetOpenEditing()

void ocf::TOcRemView::SetOpenEditing ( )
inline

Definition at line 74 of file ocremvie.h.

◆ SetPartPos()

HRESULT _IFUNC ocf::TOcRemView::SetPartPos ( owl::TRect * r)
protectedvirtual

Set a new position for our document within its container.

Implements ocf::IBPart.

Definition at line 667 of file ocremvie.cpp.

References BSiteI, CHECK, ocf::TOcServerHost::EvOcViewSetScale(), ocf::TOcView::GetWindow(), ocf::IBSite::GetZoom(), HR_NOERROR, ocf::TOcView::Origin, and ocf::TOcView::ServerHost.

◆ SetPartSize()

HRESULT _IFUNC ocf::TOcRemView::SetPartSize ( owl::TSize * size)
protectedvirtual

Implements ocf::IBPart.

Definition at line 692 of file ocremvie.cpp.

References ocf::TOcView::Extent, and HR_NOERROR.

◆ Show()

HRESULT _IFUNC ocf::TOcRemView::Show ( BOOL show)
protectedvirtual

Show/Hide the server view window.

Implements ocf::IBPart.

Definition at line 713 of file ocremvie.cpp.

References ocf::TOcView::GetWindow(), and HR_NOERROR.

◆ ShowTools()

Member Data Documentation

◆ BAppI

IBApplication* ocf::TOcRemView::BAppI
protected

Site's application interface.

Definition at line 147 of file ocremvie.h.

◆ BContainerI

IBContainer* ocf::TOcRemView::BContainerI
protected

Definition at line 143 of file ocremvie.h.

◆ BLSiteI

IBLinkable* ocf::TOcRemView::BLSiteI
protected

for site moniker

Definition at line 144 of file ocremvie.h.

◆ BSite

IUnknown* ocf::TOcRemView::BSite
protected

In-place site helper.

Definition at line 145 of file ocremvie.h.

◆ BSiteI

IBSite* ocf::TOcRemView::BSiteI
protected

Site interface.

Definition at line 146 of file ocremvie.h.

◆ HRealParent

HWND ocf::TOcRemView::HRealParent
protected

View's real parent.

Definition at line 148 of file ocremvie.h.

◆ Kind

TKind ocf::TOcRemView::Kind
protected

What kind of server view this is.

Definition at line 152 of file ocremvie.h.

◆ State

TState ocf::TOcRemView::State
protected

Current state of this server view.

Definition at line 151 of file ocremvie.h.

◆ ToolBarInfo

TOcToolBarInfo ocf::TOcRemView::ToolBarInfo
protected

Inplace tool bar info.

Definition at line 149 of file ocremvie.h.


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