13#include <owl/docview.rh>
15#if defined(__BORLANDC__)
41 doc.AttachView(*
this);
53 const auto ok = Doc !=
nullptr;
54 WARN(!
ok,
_T(
"TView::~TView: Terminating due to failed precondition."));
55 if (!
ok) std::terminate();
57 if (Doc->DetachView(*
this)) {
76 if (Doc && Doc->DetachView(*
this))
103 if (
tpl && ViewMenu && !
tpl->IsStatic() && *ViewMenu->
GetModule() == *
tpl->GetModule())
117static const tchar*
const TView_PropertyNames[] = {
122static const int TView_PropertyFlags[] = {
224 _T(
"invalid property [") << index <<
_T(
"] specified!") );
255#if OWL_PERSISTENT_STREAMS
282TView::Streamer::Write(opstream&
os)
const
284 TView*
o = GetObject();
285 os.writeByte(
uint8(
o->ViewMenu ? 1 : 0));
315#if OWL_PERSISTENT_STREAMS
331TWindowView::Streamer::Write(opstream&
os)
const
373#if OWL_PERSISTENT_STREAMS
389TDialogView::Streamer::Write(opstream&
os)
const
Definition of class TAppDictionary.
Class definition for TBarDescr.
#define WARN(condition, message)
#define PRECONDITION(condition)
#define DIAG_DECLARE_GROUP(group)
#define TRACEX(group, level, message)
Descriptor of Bar Implementation.
Typically used to obtain information from a user, a dialog box is a window inside of which other cont...
Derived from TDialog and TView.
TDialogView(TDocument &doc, TWindow *parent, TResId resId, TModule *module=&GetGlobalModule())
TDocTemplate is an abstract base class that contains document template functionality.
An abstract base class, TDocument is the base class for all document objects and serves as an interfa...
TDocTemplate * GetTemplate()
Gets the template used for document creation.
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
Abstract base class for view access from document.
@ ViewClass
Name of the C++ class encapsulating the view. (text)
@ ViewName
Name of the view. (text)
@ PrevProperty
Index of last property in base class.
@ NextProperty
Next index to be used by derived class.
virtual int PropertyFlags(int index)
pfXxxxx bit array
virtual ~TView()
Frees a TView object and calls TDocument's private member function DetachView to detach the view from...
virtual LPCTSTR PropertyName(int index)
locale invariant name
virtual int FindProperty(LPCTSTR name)
return property index
void SetViewBar(TBarDescr *bar)
Sets the menu descriptor for this view.
TView(TDocument &doc)
Constructs a TView object of the document associated with the view.
void SetDocument(TDocument &)
virtual LPCTSTR GetViewName()=0
Pure virtual function that returns 0.
void SetViewMenu(TMenuDescr *menu)
virtual int GetProperty(int index, void *dest, int textlen=0)
Retrieves the property identified by the given index.
static void BumpNextViewId()
Increments an internal count used by the Doc/View subsystem to identify each view.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
Derived from both TWindow and TView, TWindowView is a streamable base class that can be used for deri...
TWindowView(TDocument &doc, TWindow *parent=nullptr)
Constructs a TWindowView interface object associated with the window view.
ipstream, a specialized input stream derivative of pstream, is the base class for reading (extracting...
Definition of class TDocManager.
#define DEFINE_RESPONSE_TABLE1(cls, base)
Macro to define a response table for a class with one base.
#define IMPLEMENT_ABSTRACT_STREAMABLE(cls)
TAutoDelete
Flag for Handle ctors to control Handle deletion in dtor.
void ReadBaseObject(Base *base, ipstream &in)
#define _OBJ_FULLTYPENAME(obj)
#define IMPLEMENT_STREAMABLE2(cls, base1, base2)
void WriteBaseObject(Base *base, opstream &out)
const uint pfGetText
property accessible as text format
const uint pfConstant
property is invariant for object instance
Object Windows Library (OWLNext Core)
const uint MinUniqueViewId
General definitions used by all ObjectWindows programs.