10#if !defined(OWL_RICHEDV_H)
14#if defined(BI_HAS_PRAGMA_ONCE)
40 auto SetDocTitle(LPCTSTR docname,
int index) ->
bool override;
45 auto Create() ->
bool override;
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,...
TRichEdit(TWindow *parent, int id, LPCTSTR text, int x, int y, int w, int h, LPCTSTR fileName=nullptr, TModule *module=nullptr)
Constructor for a TRichEdit object.
static LPCTSTR StaticName()
void CeParagraphBullet(TCommandEnabler &)
void CeFormatItalic(TCommandEnabler &)
TRichEditView(TDocument &doc, TWindow *parent=0)
void CeParagraphLeft(TCommandEnabler &)
bool VnDocClosed(int omode)
auto GetViewName() -> LPCTSTR override
auto Create() -> bool override
< String-aware overload
DECLARE_RESPONSE_TABLE(TRichEditView)
void CeFormatColor(TCommandEnabler &)
void CeFormatFont(TCommandEnabler &)
auto SetDocTitle(LPCTSTR docname, int index) -> bool override
auto GetWindow() -> TWindow *override
void SetupWindow() override
auto CanClear() -> bool override
bool VnCommit(bool force)
void CeFormatBold(TCommandEnabler &)
void CeFormatUnderline(TCommandEnabler &)
void CeFormatStrikeout(TCommandEnabler &)
void CeParagraphCenter(TCommandEnabler &)
bool VnRevert(bool clear)
auto CanClose() -> bool override
void CeParagraphRight(TCommandEnabler &)
void CeFormatBkColor(TCommandEnabler &)
bool VnIsWindow(HWND hWnd)
virtual bool SetDocTitle(LPCTSTR docname, int index)
Stores the document title.
friend class TDocument
needs access to NextView
TView(TDocument &doc)
Constructs a TView object of the document associated with the view.
virtual LPCTSTR GetViewName()=0
Pure virtual function that returns 0.
virtual TWindow * GetWindow()
Returns the TWindow instance associated with the view, or 0 if no view exists.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
TApplication * GetApplication() const
Gets a pointer to the TApplication object associated with this.
virtual bool SetDocTitle(LPCTSTR docname, int index)
Default behavior for updating document title is to pass it to parent frame.
virtual bool CanClose()
Use this function to determine if it is okay to close a window.
Definition of class TDocManager.
#define DECLARE_STREAMABLE_OWL(cls, ver)
#define DECLARE_STREAMABLE_INLINES(cls)
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.