9#if !defined(OWL_EDITVIEW_H)
13#if defined(BI_HAS_PRAGMA_ONCE)
42 auto GetViewName() ->
LPCTSTR override;
43 auto GetWindow() ->
TWindow*
override;
45 using TView::SetDocTitle;
49 auto Create() ->
bool override;
50 auto CanClose() ->
bool override;
55 long GetOrigin()
const;
56 void SetOrigin(
long origin);
61 bool VnCommit(
bool force);
62 bool VnRevert(
bool clear);
65 bool VnDocClosed(
int omode);
89 return _T(
"Edit View");
104 return static_cast<TWindow*
>(
this);
121 (Doc->NextView(
this) ||
122 Doc->NextView(
nullptr) !=
this ||
An abstract base class, TDocument is the base class for all document objects and serves as an interfa...
TEditSearch is an edit control that responds to Find, Replace, and FindNext menu commands.
Derived from TView and TEditSearch, TEditView provides a view wrapper for the ObjectWindows text edit...
auto SetDocTitle(LPCTSTR docname, int index) -> bool override
Overrides TView::SetDocTitle and forwards the title to its base class, TEditSearch.
long GetOrigin() const
Returns the position of the stream buffer at which the edit buffer is stored.
auto GetViewName() -> LPCTSTR override
put in resource
static LPCTSTR StaticName()
Returns "Edit View", the descriptive name of the class for the ViewSelect menu.
auto CanClose() -> bool override
Returns a nonzero value if the view can be closed.
bool VnIsDirty()
Returns a nonzero value if changes made to the data in the view have not been saved to the document; ...
void SetOrigin(long origin)
Sets the position of the stream buffer that the edit buffer is stored.
auto GetWindow() -> TWindow *override
Overrides TView::GetWindow and returns this as a TWindow.
Abstract base class for view access from document.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
virtual bool SetDocTitle(LPCTSTR docname, int index)
Default behavior for updating document title is to pass it to parent frame.
Definition of class TDocManager.
Definition of class TEditSearch, an edit control that responds to Find, Replace and FindNext menu com...
#define DECLARE_RESPONSE_TABLE(cls)
#define DECLARE_STREAMABLE_OWL(cls, ver)
#define DECLARE_STREAMABLE_INLINES(cls)
auto CanClose() -> bool override
Checks to see if all child windows can be closed before closing the current window.
bool IsModified() const
Returns true if the user has changed the text in the edit control.
Object Windows Library (OWLNext Core)