9#if !defined(OCF_OLEWINDO_H)
13#if defined(BI_HAS_PRAGMA_ONCE)
102 bool HasActivePart();
103 bool SelectEmbedded();
107 bool IsOpenEditing()
const;
108 bool IsRemote()
const;
113 virtual bool OleShutDown();
114 virtual void SetupDC(
owl::TDC& dc,
bool scale =
true);
137 virtual void GetInsertPosition(
owl::TRect& rect);
139 virtual bool Deactivate();
146 virtual void GetLogPerUnit(
owl::TSize& logPerUnit);
148 virtual void SetSelection(
TOcPart* part);
151 virtual LPCTSTR GetFileName();
157 void SetupWindow()
override;
158 void CleanupWindow()
override;
159 auto CanClose() ->
bool override;
167 void EvMDIActivate(HWND hWndActivated, HWND hWndDeactivated);
169 void EvSetFocus(HWND hWndLostFocus);
178 void CmEditPasteSpecial();
179 void CmEditPasteLink();
181 void CmEditConvert();
182 void CmEditInsertObject();
183 void CmEditInsertControl();
184 void CmEditShowObjects();
216 LPCTSTR EvOcViewTitle();
217 void EvOcViewSetTitle(LPCTSTR title);
219 bool EvOcViewBorderSpaceReq(
owl::TRect * rect);
220 bool EvOcViewBorderSpaceSet(
owl::TRect * rect);
227 bool EvOcViewPartActivate(
TOcPart& ocPart);
233 bool EvOcPartInvalid(
TOcPart & );
239 bool EvOcViewGetPalette(LOGPALETTE * * palette);
242 bool EvOcViewClose();
244 bool EvOcViewOpenDoc(LPCTSTR path);
245 bool EvOcViewAttachWindow(
bool attach);
252 virtual bool EvOcViewTransformCoords(
owl::uint verb);
257 virtual bool EvOcAmbientGetBackColor(
long* rgb);
258 virtual bool EvOcAmbientGetForeColor(
long* rgb);
259 virtual bool EvOcAmbientGetLocaleID(
long* locale);
260 virtual bool EvOcAmbientGetTextAlign(
short* align);
261 virtual bool EvOcAmbientGetMessageReflect(
bool* msgReflect);
262 virtual bool EvOcAmbientGetUserMode(
bool* mode);
263 virtual bool EvOcAmbientGetUIDead(
bool* dead);
264 virtual bool EvOcAmbientGetShowGrabHandles(
bool* show);
265 virtual bool EvOcAmbientGetShowHatching(
bool* show);
266 virtual bool EvOcAmbientGetDisplayAsDefault(
bool* disp);
267 virtual bool EvOcAmbientGetSupportsMnemonics(
bool* support);
268 virtual bool EvOcAmbientGetDisplayName(
owl::TString** name);
269 virtual bool EvOcAmbientGetScaleUnits(
owl::TString** units);
270 virtual bool EvOcAmbientGetFont(IDispatch** font);
272 virtual bool EvOcAmbientSetBackColor(
long rgb);
273 virtual bool EvOcAmbientSetForeColor(
long rgb);
274 virtual bool EvOcAmbientSetLocaleID(
long locale);
275 virtual bool EvOcAmbientSetTextAlign(
short align);
276 virtual bool EvOcAmbientSetMessageReflect(
bool msgReflect);
277 virtual bool EvOcAmbientSetUserMode(
bool mode);
278 virtual bool EvOcAmbientSetUIDead(
bool dead);
279 virtual bool EvOcAmbientSetShowGrabHandles(
bool show);
280 virtual bool EvOcAmbientSetShowHatching(
bool show);
281 virtual bool EvOcAmbientSetDisplayAsDefault(
bool disp);
282 virtual bool EvOcAmbientSetSupportsMnemonics(
bool support);
283 virtual bool EvOcAmbientSetDisplayName(
owl::TString* name);
284 virtual bool EvOcAmbientSetScaleUnits(
owl::TString* units);
285 virtual bool EvOcAmbientSetFont(IDispatch* font);
291 virtual bool EvOcCtrlDblClick(
TCtrlEvent* pev);
Class representing an embedded control within a document.
OC Document class, holds parts & is a owner of views.
Used to obtain the item name for building monikers.
Link Viewer object for a server document.
OC part class represents an embeded or linked part in a document.
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.
The TOcView partner is a container (viewer) of a given (server/client) document.
Derived from TClientDC, TOleClientDC is a helper class that translates between two different coordina...
The generic OLE2 window. Use as a client of a frame window.
TOcDocument * OcDoc
Holds the ObjectComponents document associated with this TOleWindow.
TOcView * GetOcView()
Points to the ObjectComponents container view associated with this window.
owl::TPoint DragPt
Indicates the point (in logical units) where the mouse is over the dragged object.
owl::TPoint DragStart
Holds the point where the dragging of the embedded object began.
DECLARE_RESPONSE_TABLE(TOleWindow)
int MinWidth
The minimum width of the part.
bool Remote
Returns true if the window represents an embedded server. Returns false otherwise.
DECLARE_STREAMABLE_OCF(TOleWindow, 1)
virtual LPCTSTR GetFileName()
On linking must be implemented and return the file name.
owl::TRect DragRect
Holds the rectangle being dragged.
owl::TUIHandle::TWhere DragHit
Indicates the position in the embedded object where the user points and clicks the mouse.
virtual bool PaintLink(owl::TDC &dc, bool erase, owl::TRect &rect, owl::TString &moniker)
Repaints part of an object on the given device context.
owl::TRect Pos
Holds the current area in the window where the object is embedded.
bool SelectEmbedded()
Selects the embedded object and returns true to indicate that the object has been selected.
TOcPart * DragPart
Points to the embedded object (the part) being dragged.
int MinHeight
The minimum height of the part.
bool EvOcPartInvalid(TOcPart &)
Handles a WM_OCEVENT message concerning the embedded or linked object in the document and invalidates...
owl::tstring ContainerName
Holds the name of the container.
TOcApp * GetOcApp()
Returns the ObjectComponents application associated with this window.
owl::TDC * DragDC
Points to the device context used while an object is being dragged.
TOcScaleFactor Scale
Holds the current scaling factor. The server uses this information to determine how to scale the docu...
TOcRemView * GetOcRemView()
Returns the server's view associated with this window.
virtual bool PaintSelection(owl::TDC &dc, bool erase, owl::TRect &rect, void *userData=0)
Repaints the selected portion of a document on the given device context.
TOcApp * OcApp
Holds the ObjectComponents application associated with this TOleWindow.
bool ShowObjects
Is true if the embedded object's frame (the gray or shaded brushes around the object) is displayed.
bool IsRemote() const
Returns true if the window represents an embedded server.
TOcView * OcView
Holds the ObjectComponents view or remote view (the server's) associated with the TOleWindow view.
TOcDocument * GetOcDoc()
Returns the ObjectComponents document associated with this window.
A device context class derived from TWindowDC, TClientDC provides access to the client area owned by ...
Base class for an extensible interface for auto enabling/disabling of commands (menu items,...
TDC is the root class for GDI DC wrappers.
TDropInfo is a simple class that supports file-name drag-and-drop operations using the WM_DROPFILES m...
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
TPoint is a support class, derived from tagPOINT.
TRect is a mathematical class derived from tagRect.
A linked structure in which each node points to a list of TRegList objects (or TRegList-derived objec...
The tagSIZE struct is defined as.
Reference to reference counted string object TUString Lightweight reference object consisting of a po...
TWhere
Enumeration describing the location of a grapple selection.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
Definition of GDI DC encapsulation classes: TDC, TWindowDC, TScreenDC, TDesktopDC,...
#define DECLARE_STREAMABLE_INLINES(cls)
Object Component Framework (COM encapsulation)
Object Windows Library (OWLNext Core)
LPARAM TParam2
Second parameter type.
WPARAM TParam1
First parameter type.
LRESULT TResult
Result type.
Definition of OWL signatures for ObjectComponents messages.
Definition of TOcLinkView Class.
Definition of TOcPart class.
Definition of TOcRemView Class.
#define TYPESAFE_DOWNCAST(object, toClass)
Base struct for all control event messages.
For part adornment painting over part, & painting views.
Definition of the UI Helper Classes: TUIHandle, TUIBorder, TUIFace, TUIPart.
Base window class TWindow definition, including HWND encapsulation.