13#include <owl/docview.rh>
14#include <owl/richedv.rh>
18#if defined(__BORLANDC__)
34#define TOHIENGLISH(x) static_cast<long> ((1000)*(x))
161 if (Doc->GetDocPath() ==
nullptr) {
359 else if( result ==
No )
573#if OWL_PERSISTENT_STREAMS
588TRichEditView::Streamer::Write(opstream&
os)
const
#define DIAG_DECLARE_GROUP(group)
Definition of Choose Color Common Dialog class.
Definition of Choose Font Common Dialog class.
Defines information necessary to initialize the dialog box with the user's color selection.
Wrapper for the Choose-Color common dialog.
Defines information necessary to initialize the dialog box with the user's font selection.
Encapsulates the Choose-Font common dialog.
A device context class derived from TWindowDC, TClientDC provides access to the client area owned by ...
Class wrapper for management of color values.
Base class for an extensible interface for auto enabling/disabling of commands (menu items,...
@ Unchecked
Command is not enabled.
@ Checked
Command is enabled.
@ Indeterminate
Command is unavaiable.
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.
bool ToggleCharAttribute(ulong mask, uint32 effects)
Toggles a set of character attributes.
bool ReadFromStream(tistream &, uint format=SF_RTF)
< String-aware overload
bool SetCharFormat(const TCharFormat &, uint flags=SCF_SELECTION)
Sets the character formatting of a rich edit control.
bool WriteToStream(tostream &, uint format=SF_RTF)
auto SetSelection(int startPos, int endPos) -> bool override
Selects a range of characters in the rich edit control.
@ Yes
The attribute is absent from the selection.
@ No
The whole selection has the attribute.
bool SetParaFormat(const TParaFormat &)
Sets the paragraph formatting of the current selection of the rich edit control.
uint HasCharAttribute(ulong mask, uint32 effects)
Function returns whether or not the current selection has a particular attribute.
void CeParagraphBullet(TCommandEnabler &)
~TRichEditView() override
void CeFormatItalic(TCommandEnabler &)
TRichEditView(TDocument &doc, TWindow *parent=0)
void CeParagraphLeft(TCommandEnabler &)
bool VnDocClosed(int omode)
auto Create() -> bool override
< String-aware overload
void CeFormatColor(TCommandEnabler &)
void CeFormatFont(TCommandEnabler &)
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)
void CeParagraphRight(TCommandEnabler &)
void CeFormatBkColor(TCommandEnabler &)
bool VnIsWindow(HWND hWnd)
Abstract base class for view access from document.
void SetViewMenu(TMenuDescr *menu)
void NotOK()
To flag errors in creation.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
virtual int Execute()
Creates the underlying HWND and makes it modal with the help of TApplication's BeginModal support.
virtual bool Create()
Creates the window interface element to be associated with this ObjectWindows interface element.
TModule * GetModule() const
Returns a pointer to the module object.
bool IsChild(HWND hWnd) const
Returns true if the window is a child window or a descendant window of this window.
TResult SendMessage(TMsgId, TParam1=0, TParam2=0) const
Sends a message (msg) to a specified window or windows.
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 ClearModify()
Resets the change flag of the edit control causing IsModified to return false.
void Clear() override
Override TStatic virtual member functions.
@ ofWrite
ios::out, open for writing
Object Windows Library (OWLNext Core)
Definition of class TRichEditView Based on Russell Morris class.
#define EV_COMMAND_ENABLE(id, method)
Response table entry for enabling a command.
#define EV_COMMAND(id, method)
Response table entry for a menu/accelerator/push button message.