10#if !defined(OWL_RICHEDV_H)
14#if defined(BI_HAS_PRAGMA_ONCE)
38 auto GetViewName() ->
LPCTSTR override;
39 auto GetWindow() ->
TWindow*
override;
41 using TView::SetDocTitle;
45 auto Create() ->
bool override;
46 auto CanClose() ->
bool override;
49 virtual bool LoadData();
50 void SetupWindow()
override;
54 bool VnCommit(
bool force);
55 bool VnRevert(
bool clear);
58 bool VnDocClosed(
int omode);
65 void CmFormatBkColor();
67 void CmParagraphLeft();
68 void CmParagraphCenter();
69 void CmParagraphRight();
70 void CmParagraphBullet();
73 void CmFormatItalic();
74 void CmFormatUnderline();
75 void CmFormatStrikeout();
92 auto CanClear() ->
bool override;
98 void CmFileSave() { GetApplication()->GetDocManager()->CmFileSave(); }
99 void CmFileSaveAs() { GetApplication()->GetDocManager()->CmFileSaveAs();}
100 void CmFileClose() { GetApplication()->GetDocManager()->CmFileClose(); }
121 return _T(
"RichEdit View");
131 return static_cast<TWindow*
>(
this);
142 (Doc->NextView(
this) ||
143 Doc->NextView(
nullptr) !=
this ||
Base class for an extensible interface for auto enabling/disabling of commands (menu items,...
An abstract base class, TDocument is the base class for all document objects and serves as an interfa...
TRichEdit encapsulates a rich edit control, a window in which a user can enter, edit and format text.
static LPCTSTR StaticName()
auto GetViewName() -> LPCTSTR override
DECLARE_RESPONSE_TABLE(TRichEditView)
auto SetDocTitle(LPCTSTR docname, int index) -> bool override
auto GetWindow() -> TWindow *override
auto CanClose() -> bool override
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.
#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)
Definition of class TRichEdit.