32 BSiteI(0), BContainerI(0), BLSiteI(0),
48 BSiteI(0), BContainerI(0), BLSiteI(0),
75 "debugprogid" :
"progid");
301 && !
ps.PartRect.IsEmpty();
539 ::GetClipRgn(dc,
hRgn);
540 ::LPtoDP(dc, (
TPoint*)&p, 2);
542 ::IntersectClipRect(dc,
c.left,
c.top,
c.right,
c.bottom);
565 ::SelectClipRgn(dc,
hRgn);
841 for (
i = 0;
i < 6;
i++) {
851 for (
i = 0;
i < 6;
i++)
866 ::GetWindowRect(
tbi.HLeftTB, &
ltbr);
870 ::GetWindowRect(
tbi.HTopTB, &
ttbr);
874 ::GetWindowRect(
tbi.HRightTB, &
rtbr);
878 ::GetWindowRect(
tbi.HBottomTB, &
btbr);
901 ::SetParent(
tbi.HLeftTB,
tbi.HFrame);
909 ::SetParent(
tbi.HTopTB,
tbi.HFrame);
918 ::SetParent(
tbi.HRightTB,
tbi.HFrame);
926 ::SetParent(
tbi.HBottomTB,
tbi.HFrame);
940 tbi.HTopTB =
tbi.HLeftTB =
tbi.HBottomTB =
tbi.HRightTB = 0;
967 for (
i = 0;
i < 3;
i++) {
998 ::SetParent(
tbi.HLeftTB,
tbi.HFrame);
1002 ::SetParent(
tbi.HTopTB,
tbi.HFrame);
1006 ::SetParent(
tbi.HRightTB,
tbi.HFrame);
1009 if (
tbi.HBottomTB) {
1010 ::SetParent(
tbi.HBottomTB,
tbi.HFrame);
#define PRECONDITION(condition)
#define DIAG_DECLARE_GROUP(group)
#define TRACEX(group, level, message)
#define DIAG_DEFINE_GROUP_INIT(f, g, e, l)
IBContainer – Supported by container app's document window.
IBDataProvider2 – new version of IBDataProvider.
virtual HRESULT _IFUNC Init(IBContainer *)=0
virtual void _IFUNC OnClose()=0
virtual HRESULT _IFUNC OnRename(IBLinkable *pContainer, LPCOLESTR name)=0
IBPart – Supported by server objects.
IBSite – Supported by container apps for each linked/embedded object.
virtual HRESULT _IFUNC GetSiteRect(owl::TRect *, owl::TRect *)=0
virtual void _IFUNC OnSetFocus(BOOL)=0
virtual void _IFUNC Invalidate(TOcInvalidate)=0
virtual HRESULT _IFUNC GetZoom(TOcScaleInfo *pScale)=0
virtual HRESULT _IFUNC Init(IBDataProvider *, IBPart *, LPCOLESTR, BOOL)=0
virtual void _IFUNC Disconnect()=0
virtual HRESULT _IFUNC SetBorderSpace(const owl::TRect *)=0
virtual LPCOLESTR _IFUNC GetWindowTitle()=0
virtual HRESULT _IFUNC RequestBorderSpace(const owl::TRect *)=0
virtual HWND _IFUNC GetWindow()=0
virtual HRESULT _IFUNC GetWindowRect(owl::TRect *)=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
virtual HWND EvOcGetWindow() const =0
virtual bool EvOcViewOpenDoc(LPCTSTR path)=0
virtual void SetWindow(HWND)
OC Document class, holds parts & is a owner of views.
void SetName(const owl::tstring &newName)
Notify container that doc pathname has changed.
bool Activate(bool activate)
Used to obtain the size of the rectangle that encloses the selection.
TOcToolBarInfo ToolBarInfo
Inplace tool bar info.
IBApplication * BAppI
Site's application interface.
HRESULT _IFUNC Close()
Close the remote view window, & if canShutDown is true, try to close the server app too.
HRESULT _IFUNC InsertMenus(HMENU, TOcMenuWidths *)
Insert the server's menus into the shared menubar.
HRESULT _IFUNC Show(BOOL)
Show/Hide the server view window.
void Rename()
Update monikers with new name.
HRESULT _IFUNC SetFormatData(TOcFormatInfo *fmt, HANDLE data, BOOL release)
Request native data for pasting into client application.
void _IFUNC DragFeedback(owl::TPoint *p, const owl::TRect *r, TOcMouseAction a, owl::uint cf, HRESULT &hr)
HRESULT _IFUNC Open(BOOL)
Start or end open editing Work with the window Z-order and parenting.
HRESULT _IFUNC SetHost(IBContainer *objContainer)
IUnknown * BSite
In-place site helper.
HRESULT _IFUNC EnumVerbs(TOcVerb *)
Enumerate the verbs for our document.
HRESULT _IFUNC GetPalette(LOGPALETTE **)
Optional palette query for.
HANDLE _IFUNC GetFormatData(TOcFormatInfo *)
Request native data for pasting into client application.
IBContainer * BContainerI
HRESULT _IFUNC SetPartSize(owl::TSize *)
owl::TString GetContainerTitle()
Get the window text of the container.
void Init()
Do real constructor work.
@ LoadFromFile
Transient load-from-file.
@ Link
Load-from-file is really a link.
@ Embedding
Normal Embedding.
bool Load(IStorage *storageI)
Load remote view specific information.
void _IFUNC FrameResized(const owl::TRect *, BOOL)
A container window has resized.
HRESULT _IFUNC GetPartSize(owl::TSize *)
Return the 'size' of the document that this view in on.
void Invalidate(TOcInvalidate)
Invalidate the site within the active view.
HRESULT _IFUNC CanOpenInPlace()
Query to determine if this server view can open in place.
IBSite * BSiteI
Site interface.
HRESULT _IFUNC Draw(HDC, const RECTL *, const RECTL *, TOcAspect, TOcDraw bd)
Render the view in the DC provided.
HRESULT _IFUNC GetFormat(owl::uint index, TOcFormatInfo *fmt)
HRESULT _IFUNC ShowTools(BOOL)
Show or hide the tool windows used by our view.
owl::ulong _IFUNC AddRef()
HRESULT _IFUNC QueryInterface(const GUID &iid, void **iface)
LPOLESTR _IFUNC GetName(TOcPartName)
HRESULT _IFUNC AllowInPlace()
Check option flag to see if in place activation is allowed.
virtual bool EvSetFocus(bool set)
Set focus to the inplace server.
TKind Kind
What kind of server view this is.
HRESULT _IFUNC DoQueryInterface(const IID &iid, void **pif)
owl::ulong _IFUNC Release()
HRESULT QueryObject(const IID &iid, void **iface)
HWND _IFUNC OpenInPlace(HWND)
Open or close this view as an in-place edit session.
TState State
Current state of this server view.
HRESULT _IFUNC DoVerb(owl::uint)
Perform a verb on our document.
@ Hidden
Current state of this server view.
@ InPlaceActive
Inplace active.
@ OpenEditing
Open editing.
void Disconnect()
Disconnect from the client site.
HRESULT _IFUNC Activate(BOOL)
Activate this view.
HRESULT _IFUNC GetPart(IBPart **, LPCOLESTR)
HRESULT _IFUNC SetPartPos(owl::TRect *)
Set a new position for our document within its container.
TOcRemView(TOcDocument &doc, TOcContainerHost *cs, TOcServerHost *ss, owl::TRegList *regList=0, IUnknown *outer=0)
New constructor that uses host interfaces.
owl::uint _IFUNC CountFormats()
virtual void ReleaseObject()
Should only be called by the owner/creator of this object.
IBLinkable * BLSiteI
for site moniker
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.
HRESULT _IFUNC BringToFront()
Show the container window.
Use when doing parts save and load.
virtual bool EvOcViewSetData(TOcFormatData &format)=0
virtual bool EvOcViewPartSize(TOcPartSize &size)=0
virtual HWND EvOcGetWindow() const =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 EvOcViewLoadPart(TOcSaveLoad &ocLoad)=0
virtual bool EvOcViewSavePart(TOcSaveLoad &ocSave)=0
virtual bool EvOcViewDoVerb(owl::uint verb)=0
virtual bool EvOcViewShowTools(TOcToolBarInfo &tbi)=0
virtual bool EvOcViewSetScale(TOcScaleFactor &scaleFactor)=0
virtual bool EvOcViewClose()=0
virtual bool EvOcViewInsMenus(TOcMenuDescr &sharedMenu)=0
virtual void EvOcViewSetTitle(LPCTSTR title)=0
HRESULT Stat(STATSTG *pstatstg, owl::uint32 grfStatFlag)
The TOcView partner is a container (viewer) of a given (server/client) document.
TOcDocument & OcDocument
Our OC document object.
virtual void ReleaseObject()
Should only be called by the owner/creator of this object.
virtual bool EvSetFocus(bool set)
Returns true if view keeps focus, false if the inplace server got it.
HRESULT _IFUNC BringToFront()
TOcPart * ActivePart
Currently active part, if any.
HRESULT QueryObject(const IID &iid, void **iface)
Callback from TUnknown's implementation of QueryInterface.
void Shutdown()
Called from destructor of this class or of derived class to release helpers and host interfaces.
TOcContainerHost * ContainerHost
The hosting app's container object.
owl::uint _IFUNC CountFormats()
Format count.
HRESULT _IFUNC QueryInterface(const GUID &iid, void **iface)
HRESULT _IFUNC GetFormat(owl::uint, TOcFormatInfo *)
Format retrieval.
HRESULT _IFUNC GetPart(IBPart **, LPCOLESTR)
void _IFUNC DragFeedback(owl::TPoint *, const owl::TRect *, TOcMouseAction, owl::uint, HRESULT &hr)
Provide feedback to the users drag action in our container window.
bool IsOptionSet(owl::uint32 option) const
TOcApp & OcApp
Our OC application object.
TOcServerHost * ServerHost
The hosting app's server object.
IBDocument * BDocumentI
Document interface on the document.
virtual void EvClose()
View is shuting down.
TPoint is a support class, derived from tagPOINT.
TRect is a mathematical class derived from tagRect.
int Height() const
Returns the height of this rectangle (bottom - top).
void SetEmpty()
Empties this rectangle by setting left, top, right, and bottom to 0.
int Width() const
Returns the width of this rectangle (right - left).
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.
LPCTSTR Lookup(LPCSTR key, TLangId lang=TLocaleString::UserDefaultLangId)
Performs the lookup of the TRegItems using a key (an item name such as progid) and returns the value ...
The tagSIZE struct is defined as.
Reference to reference counted string object TUString Lightweight reference object consisting of a po...
int LoadString(uint id, TCHAR *buf, int maxChars) const
Loads a string resource identified by id into the buffer pointed to by buff.
Include for OC, gets common headers when precompiled headers are enabled.
Object Component Framework (COM encapsulation)
const BCID cidBOleInProcSite
HRESULT HRFailIfZero(int bexpr)
bool HRSucceeded(HRESULT hr)
@ amExeMode
may be overridden per instance if running DLL
@ amExeModule
set for EXE components, 0 if DLL inproc server
@ amDebug
user requested launching for debugging
const TCHAR RemViewStreamName[]
Object Windows Library (OWLNext Core)
TModule & GetGlobalModule()
Definition of TOcApp application connection class.
ObjectComponents BOcOle engine linking & embedding interfaces.
interface _ICLASS IStorage
Definition of TOcRemView Class.
Definition of TOcStorage & TOcStream classes.
For part adornment painting over part, & painting views.