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);
75 {
if (select) Flags |= Selected;
else Flags &= ~Selected;}
77 void SetVisible(
bool visible);
96 bool Save(
IStorage* storage,
bool sameAsLoad,
bool remember);
98 bool Activate(
bool activate);
107 bool EnumVerbs(
const TOcVerb&);
110 {
return const_cast<LPOLESTR
>(BPartI->GetName((
TOcPartName)partName));}
111 HRESULT QueryServer(
const IID &
iid,
void * * iface);
113 bool SetFormatData(
TOcFormatInfo * fmt, HANDLE data,
bool release);
121 {
return GetOuter()->QueryInterface(
iid, iface);}
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 *);
160 enum TFlag { Visible=0x01, Selected=0x02, Active=0x04, Link=0x08,
161 Closing=0x10, OcxDefault=0x20, OcxCancel=0x40 };
181 {
return Base::Add(part); }
184 {
return Base::Find(part);}
185 virtual unsigned Count()
const {
return Base::Size();}
186 int Detach(
TOcPart*
const& part,
int del = 0);
189 bool SelectAll(
bool select =
false);
219 : Part(part), Type(type) {}
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)
Container of parts with iterator.
virtual unsigned Count() const
int Find(TOcPart *const &part)
int Add(TOcPart *const &part)
OC part class represents an embeded or linked part in a document.
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()
TOcStorage * GetStorage()
HRESULT _IFUNC QueryInterface(const GUID &iid, void **iface)
owl::TRect GetRect() const
Standard implementation of a controlling IUnknown for an object, to be inherited with other COM inter...
TPoint is a support class, derived from tagPOINT.
array of pointers of simple types
Iterator for Pointer Container.
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...
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.