8#if !defined(OCF_OCPART_H)
12#if defined(BI_HAS_PRAGMA_ONCE)
55 void SetStorage(
IStorage* storage,
bool remember =
true);
56 bool Save(
bool SameAsLoad =
true,
bool remember =
true);
77 void SetVisible(
bool visible);
96 bool Save(
IStorage* storage,
bool sameAsLoad,
bool remember);
98 bool Activate(
bool activate);
107 bool EnumVerbs(
const TOcVerb&);
111 HRESULT QueryServer(
const IID &
iid,
void * * iface);
113 bool SetFormatData(
TOcFormatInfo * fmt, HANDLE data,
bool release);
130 HRESULT QueryObject(
const IID &
iid,
void * * iface);
134 HRESULT
_IFUNC SiteShow(BOOL);
135 HRESULT
_IFUNC DiscardUndo();
141 void _IFUNC OnSetFocus(BOOL set);
147 HRESULT
_IFUNC GetParentWindow(HWND *);
186 int Detach(
TOcPart*
const& part,
int del = 0);
189 bool SelectAll(
bool select =
false);
OLE Automation Class Definitions.
IBContainer – Supported by container app's document window.
IBDataProvider – Supported by parts and/or sites which can be copied to the OLE2 clipboard.
ILinkable abstract base class.
IBPart – Supported by server objects.
IBSite2 – Add flexibility to have parent of site not be container.
OC Document class, holds parts & is a owner of views.
void SetPart(TOcPart *part)
TOcPartChangeInfo(TOcPart *part, TOcInvalidate type=invView)
virtual unsigned Count() const
void Clear()
Release parts in the collection.
int Find(TOcPart *const &part)
int Add(TOcPart *const &part)
OC part class represents an embeded or linked part in a document.
virtual bool Init(TOcInitInfo *initInfo, owl::TRect pos)
Perform common ctor initialization.
TOcDocument & OcDocument
The OC document we are imbeded in.
bool IsVisible(const owl::TRect &logicalRect) const
owl::uint16 Flags
Is this part Selected/Visible/Active/ALink?
LPCOLESTR GetServerName(TOcPartName partName)
HWND OpenInPlace(HWND hwnd)
TOcStorage * Storage
The storage we are in.
owl::ulong _IFUNC Release()
owl::TPoint GetPos() const
bool SetHost(IBContainer *container)
IUnknown * BPart
Our corresponding helper object & interfaces.
owl::ulong _IFUNC AddRef()
void Delete()
Delete this object.
TOcPart(TOcDocument &document, int id=0)
Construct a new part with a given temp id Must call Init method to complete initialization.
TOcStorage * GetStorage()
friend class TOcPartCollection
HRESULT _IFUNC QueryInterface(const GUID &iid, void **iface)
owl::TRect GetRect() const
TPoint is a support class, derived from tagPOINT.
Array of pointers of simple types.
TRect is a mathematical class derived from tagRect.
bool Touches(const TRect &other) const
Returns true if the other rectangle shares any interior points with this rectangle; otherwise,...
The tagSIZE struct is defined as.
Reference to reference counted string object TUString Lightweight reference object consisting of a po...
TPtrArrayIterator< R, TTypedArray< T, R, A > > Iterator
Definition of container classes used and made available by OWL.
Classes for window system geometry.
Object Component Framework (COM encapsulation).
bool HRSucceeded(HRESULT hr)
TOcPartCollection::Iterator TOcPartCollectionIter
ObjectComponents BOcOle engine linking & embedding interfaces.
interface _ICLASS IStorage
Various general OC enums and structs.