10#include <owl/docview.rh>
11#include <owl/editview.rh>
130 bool status = (
inStream->gcount() == count);
155 if (Doc->GetDocPath() ==
nullptr) {
212#if OWL_PERSISTENT_STREAMS
222 is >> GetObject()->Origin;
230TEditView::Streamer::Write(opstream&
os)
const
234 os << GetObject()->Origin;
#define DIAG_DECLARE_GROUP(group)
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...
bool VnCommit(bool force)
Commits changes made in the view to the document.
void EvNCDestroy()
Used internally by TEditView to manage memory.
bool VnDocClosed(int omode)
Indicates that the document has been closed.
bool VnRevert(bool clear)
Returns a nonzero value if changes made to the view should be erased and the data from the document s...
auto Create() -> bool override
< String-aware overload
~TEditView() override
Destroys a TEditView object.
bool VnIsDirty()
Returns a nonzero value if changes made to the data in the view have not been saved to the document; ...
bool LoadData()
Reads the view from the stream and closes the file.
bool VnIsWindow(HWND hWnd)
Returns a nonzero value if the window's handle passed in hWnd is the same as that of the view's displ...
Abstract base class for view access from document.
void NotOK()
To flag errors in creation.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
virtual bool Create()
Creates the window interface element to be associated with this ObjectWindows interface element.
bool IsChild(HWND hWnd) const
Returns true if the window is a child window or a descendant window of this window.
void EvNCDestroy()
Responds to an incoming WM_NCDESTROY message, the last message sent to an MS-Windows interface elemen...
HWND GetHandle() const
Returns the handle of the window.
TXOwl is root class of the ObjectWindows exception hierarchy.
ipstream, a specialized input stream derivative of pstream, is the base class for reading (extracting...
#define DEFINE_RESPONSE_TABLE1(cls, base)
Macro to define a response table for a class with one base.
void ReadBaseObject(Base *base, ipstream &in)
#define IMPLEMENT_STREAMABLE2(cls, base1, base2)
void WriteBaseObject(Base *base, opstream &out)
void Scroll(int horizontalUnit, int verticalUnit)
Scroll the text by the specified horizontal and vertical amounts.
void ClearModify()
Resets the change flag of the edit control causing IsModified to return false.
void UnlockBuffer(LPCTSTR buffer, bool updateHandle=false)
Unlock the edit control's buffer locked by LockBuffer.
int GetFirstVisibleLine() const
Indicates the topmost visible line in an edit control.
TCHAR * LockBuffer(uint newSize=0)
Lock and unlock this edit control's buffer.
void Clear() override
Override TStatic virtual member functions.
virtual bool SetSelection(int startPos, int endPos)
Select the characters in the range "startPos .. endPos".
TRange GetSelection() const
Functional style overload.
@ ofWrite
ios::out, open for writing
Object Windows Library (OWLNext Core)