[sword-cvs] sword/apps/windoze/CBuilder6/BibleCS/rxlib RXCOMBOS.hpp,NONE,1.1 RxRichEdit.hpp,NONE,1.1
sword@www.crosswire.org
sword@www.crosswire.org
Thu, 10 Jul 2003 14:20:35 -0700
Update of /usr/local/cvsroot/sword/apps/windoze/CBuilder6/BibleCS/rxlib
In directory www:/tmp/cvs-serv20030
Added Files:
RXCOMBOS.hpp RxRichEdit.hpp
Log Message:
Added rxlib dependencies for BCB6
--- NEW FILE: RXCOMBOS.hpp ---
// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved
// (DO NOT EDIT: machine generated header) 'RxCombos.pas' rev: 6.00
#ifndef RxCombosHPP
#define RxCombosHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Menus.hpp> // Pascal unit
#include <Forms.hpp> // Pascal unit
#include <StdCtrls.hpp> // Pascal unit
#include <Graphics.hpp> // Pascal unit
#include <Controls.hpp> // Pascal unit
#include <Classes.hpp> // Pascal unit
#include <Messages.hpp> // Pascal unit
#include <Windows.hpp> // Pascal unit
#include <SysInit.hpp> // Pascal unit
#include <System.hpp> // Pascal unit
//-- user supplied -----------------------------------------------------------
namespace Rxcombos
{
//-- type declarations -------------------------------------------------------
typedef Stdctrls::TComboBoxStyle TOwnerDrawComboStyle;
class DELPHICLASS TOwnerDrawComboBox;
class PASCALIMPLEMENTATION TOwnerDrawComboBox : public Stdctrls::TCustomComboBox
{
typedef Stdctrls::TCustomComboBox inherited;
private:
Stdctrls::TComboBoxStyle FStyle;
bool FItemHeightChanging;
void __fastcall SetComboStyle(TOwnerDrawComboStyle Value);
HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMRecreateWnd(Messages::TMessage &Message);
protected:
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall CreateWnd(void);
void __fastcall ResetItemHeight(void);
virtual int __fastcall MinItemHeight(void);
__property TOwnerDrawComboStyle Style = {read=FStyle, write=SetComboStyle, default=2};
public:
__fastcall virtual TOwnerDrawComboBox(Classes::TComponent* AOwner);
public:
#pragma option push -w-inl
/* TCustomComboBox.Destroy */ inline __fastcall virtual ~TOwnerDrawComboBox(void) { }
#pragma option pop
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TOwnerDrawComboBox(HWND ParentWindow) : Stdctrls::TCustomComboBox(ParentWindow) { }
#pragma option pop
};
#pragma option push -b-
enum TColorComboOption { coIncludeDefault, coIncludeNone };
#pragma option pop
typedef Set<TColorComboOption, coIncludeDefault, coIncludeNone> TColorComboOptions;
class DELPHICLASS TColorComboBox;
class PASCALIMPLEMENTATION TColorComboBox : public TOwnerDrawComboBox
{
typedef TOwnerDrawComboBox inherited;
private:
Graphics::TColor FColorValue;
bool FDisplayNames;
Classes::TStrings* FColorNames;
TColorComboOptions FOptions;
Classes::TNotifyEvent FOnChange;
Graphics::TColor __fastcall GetColorValue(void);
void __fastcall SetColorValue(Graphics::TColor NewValue);
void __fastcall SetDisplayNames(bool Value);
void __fastcall SetColorNames(Classes::TStrings* Value);
void __fastcall SetOptions(TColorComboOptions Value);
void __fastcall ColorNamesChanged(System::TObject* Sender);
protected:
virtual void __fastcall CreateWnd(void);
virtual void __fastcall DrawItem(int Index, const Types::TRect &Rect, Windows::TOwnerDrawState State);
DYNAMIC void __fastcall Click(void);
DYNAMIC void __fastcall Change(void);
virtual void __fastcall PopulateList(void);
DYNAMIC void __fastcall DoChange(void);
public:
__fastcall virtual TColorComboBox(Classes::TComponent* AOwner);
__fastcall virtual ~TColorComboBox(void);
__property Text ;
__published:
__property Graphics::TColor ColorValue = {read=GetColorValue, write=SetColorValue, default=0};
__property Classes::TStrings* ColorNames = {read=FColorNames, write=SetColorNames};
__property bool DisplayNames = {read=FDisplayNames, write=SetDisplayNames, default=1};
__property TColorComboOptions Options = {read=FOptions, write=SetOptions, default=0};
__property Color = {default=-2147483643};
__property Ctl3D ;
__property DragMode = {default=0};
__property DragCursor = {default=-12};
__property Enabled = {default=1};
__property Font ;
__property Anchors = {default=3};
__property BiDiMode ;
__property Constraints ;
__property DragKind = {default=0};
__property ParentBiDiMode = {default=1};
__property ImeMode = {default=3};
__property ImeName ;
__property ParentColor = {default=0};
__property ParentCtl3D = {default=1};
__property ParentFont = {default=1};
__property ParentShowHint = {default=1};
__property PopupMenu ;
__property ShowHint ;
__property Style = {default=2};
__property TabOrder = {default=-1};
__property TabStop = {default=1};
__property Visible = {default=1};
__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
__property OnClick ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnDropDown ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property OnStartDrag ;
__property OnContextPopup ;
__property OnEndDock ;
__property OnStartDock ;
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TColorComboBox(HWND ParentWindow) : TOwnerDrawComboBox(ParentWindow) { }
#pragma option pop
};
#pragma option push -b-
enum TFontDevice { fdScreen, fdPrinter, fdBoth };
#pragma option pop
#pragma option push -b-
enum TFontListOption { foAnsiOnly, foTrueTypeOnly, foFixedPitchOnly, foNoOEMFonts, foOEMFontsOnly, foScalableOnly, foNoSymbolFonts };
#pragma option pop
typedef Set<TFontListOption, foAnsiOnly, foNoSymbolFonts> TFontListOptions;
class DELPHICLASS TFontComboBox;
class PASCALIMPLEMENTATION TFontComboBox : public TOwnerDrawComboBox
{
typedef TOwnerDrawComboBox inherited;
private:
Graphics::TBitmap* FTrueTypeBMP;
Graphics::TBitmap* FDeviceBMP;
Classes::TNotifyEvent FOnChange;
TFontDevice FDevice;
bool FUpdate;
bool FUseFonts;
TFontListOptions FOptions;
void __fastcall SetFontName(const AnsiString NewFontName);
AnsiString __fastcall GetFontName();
bool __fastcall GetTrueTypeOnly(void);
void __fastcall SetDevice(TFontDevice Value);
void __fastcall SetOptions(TFontListOptions Value);
void __fastcall SetTrueTypeOnly(bool Value);
void __fastcall SetUseFonts(bool Value);
void __fastcall Reset(void);
HIDESBASE MESSAGE void __fastcall WMFontChange(Messages::TMessage &Message);
protected:
virtual void __fastcall PopulateList(void);
DYNAMIC void __fastcall Change(void);
DYNAMIC void __fastcall Click(void);
DYNAMIC void __fastcall DoChange(void);
virtual void __fastcall CreateWnd(void);
virtual void __fastcall DrawItem(int Index, const Types::TRect &Rect, Windows::TOwnerDrawState State);
virtual int __fastcall MinItemHeight(void);
public:
__fastcall virtual TFontComboBox(Classes::TComponent* AOwner);
__fastcall virtual ~TFontComboBox(void);
__property Text ;
__published:
__property TFontDevice Device = {read=FDevice, write=SetDevice, default=0};
__property AnsiString FontName = {read=GetFontName, write=SetFontName};
__property TFontListOptions Options = {read=FOptions, write=SetOptions, default=0};
__property bool TrueTypeOnly = {read=GetTrueTypeOnly, write=SetTrueTypeOnly, stored=false, nodefault};
__property bool UseFonts = {read=FUseFonts, write=SetUseFonts, default=0};
__property Color = {default=-2147483643};
__property Ctl3D ;
__property DragMode = {default=0};
__property DragCursor = {default=-12};
__property Enabled = {default=1};
__property Font ;
__property Anchors = {default=3};
__property BiDiMode ;
__property Constraints ;
__property DragKind = {default=0};
__property ParentBiDiMode = {default=1};
__property ImeMode = {default=3};
__property ImeName ;
__property ParentColor = {default=0};
__property ParentCtl3D = {default=1};
__property ParentFont = {default=1};
__property ParentShowHint = {default=1};
__property PopupMenu ;
__property ShowHint ;
__property Style = {default=2};
__property TabOrder = {default=-1};
__property TabStop = {default=1};
__property Visible = {default=1};
__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
__property OnClick ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnDropDown ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property OnStartDrag ;
__property OnContextPopup ;
__property OnEndDock ;
__property OnStartDock ;
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TFontComboBox(HWND ParentWindow) : TOwnerDrawComboBox(ParentWindow) { }
#pragma option pop
};
//-- var, const, procedure ---------------------------------------------------
} /* namespace Rxcombos */
using namespace Rxcombos;
#pragma option pop // -w-
#pragma option pop // -Vx
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // RxCombos
--- NEW FILE: RxRichEdit.hpp ---
// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved
// (DO NOT EDIT: machine generated header) 'RxRichEd.pas' rev: 6.00
#ifndef RxRichEdHPP
#define RxRichEdHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <ComCtrls.hpp> // Pascal unit
#include <Menus.hpp> // Pascal unit
#include <RichEdit.hpp> // Pascal unit
#include <Dialogs.hpp> // Pascal unit
#include <StdCtrls.hpp> // Pascal unit
#include <Graphics.hpp> // Pascal unit
#include <Forms.hpp> // Pascal unit
#include <Controls.hpp> // Pascal unit
#include <Classes.hpp> // Pascal unit
#include <SysUtils.hpp> // Pascal unit
#include <Messages.hpp> // Pascal unit
#include <CommCtrl.hpp> // Pascal unit
#include <ComObj.hpp> // Pascal unit
#include <ActiveX.hpp> // Pascal unit
#include <Windows.hpp> // Pascal unit
#include <SysInit.hpp> // Pascal unit
#include <System.hpp> // Pascal unit
//-- user supplied -----------------------------------------------------------
namespace Rxriched
{
//-- type declarations -------------------------------------------------------
typedef Shortint TRichEditVersion;
typedef ::CHARFORMAT2A TCharFormat2;
#pragma option push -b-
enum TRxAttributeType { atDefaultText, atSelected, atWord };
#pragma option pop
#pragma option push -b-
enum TRxConsistentAttribute { caBold, caColor, caFace, caItalic, caSize, caStrikeOut, caUnderline, caProtected, caOffset, caHidden, caLink, caBackColor, caDisabled, caWeight, caSubscript, caRevAuthor };
#pragma option pop
typedef Set<TRxConsistentAttribute, caBold, caRevAuthor> TRxConsistentAttributes;
#pragma option push -b-
enum TSubscriptStyle { ssNone, ssSubscript, ssSuperscript };
#pragma option pop
#pragma option push -b-
enum TUnderlineType { utNone, utSolid, utWord, utDouble, utDotted, utWave };
#pragma option pop
class DELPHICLASS TRxTextAttributes;
class DELPHICLASS TRxCustomRichEdit;
class DELPHICLASS TRxParaAttributes;
#pragma option push -b-
enum TParaAlignment { paLeftJustify, paRightJustify, paCenter, paJustify };
#pragma option pop
typedef Shortint THeadingStyle;
#pragma option push -b-
enum TLineSpacingRule { lsSingle, lsOneAndHalf, lsDouble, lsSpecifiedOrMore, lsSpecified, lsMultiple };
#pragma option pop
#pragma option push -b-
enum TRxNumbering { nsNone, nsBullet, nsArabicNumbers, nsLoCaseLetter, nsUpCaseLetter, nsLoCaseRoman, nsUpCaseRoman };
#pragma option pop
#pragma option push -b-
enum TRxNumberingStyle { nsParenthesis, nsPeriod, nsEnclosed, nsSimple };
#pragma option pop
#pragma option push -b-
enum TParaTableStyle { tsNone, tsTableRow, tsTableCellEnd, tsTableCell };
#pragma option pop
class PASCALIMPLEMENTATION TRxParaAttributes : public Classes::TPersistent
{
typedef Classes::TPersistent inherited;
private:
TRxCustomRichEdit* RichEdit;
void __fastcall GetAttributes(PARAFORMAT2 &Paragraph);
TParaAlignment __fastcall GetAlignment(void);
int __fastcall GetFirstIndent(void);
THeadingStyle __fastcall GetHeadingStyle(void);
int __fastcall GetLeftIndent(void);
int __fastcall GetRightIndent(void);
int __fastcall GetSpaceAfter(void);
int __fastcall GetSpaceBefore(void);
int __fastcall GetLineSpacing(void);
TLineSpacingRule __fastcall GetLineSpacingRule(void);
TRxNumbering __fastcall GetNumbering(void);
TRxNumberingStyle __fastcall GetNumberingStyle(void);
Word __fastcall GetNumberingTab(void);
int __fastcall GetTab(Byte Index);
int __fastcall GetTabCount(void);
TParaTableStyle __fastcall GetTableStyle(void);
void __fastcall SetAlignment(TParaAlignment Value);
void __fastcall SetAttributes(PARAFORMAT2 &Paragraph);
void __fastcall SetFirstIndent(int Value);
void __fastcall SetHeadingStyle(THeadingStyle Value);
void __fastcall SetLeftIndent(int Value);
void __fastcall SetRightIndent(int Value);
void __fastcall SetSpaceAfter(int Value);
void __fastcall SetSpaceBefore(int Value);
void __fastcall SetLineSpacing(int Value);
void __fastcall SetLineSpacingRule(TLineSpacingRule Value);
void __fastcall SetNumbering(TRxNumbering Value);
void __fastcall SetNumberingStyle(TRxNumberingStyle Value);
void __fastcall SetNumberingTab(Word Value);
void __fastcall SetTab(Byte Index, int Value);
void __fastcall SetTabCount(int Value);
void __fastcall SetTableStyle(TParaTableStyle Value);
protected:
void __fastcall InitPara(PARAFORMAT2 &Paragraph);
virtual void __fastcall AssignTo(Classes::TPersistent* Dest);
public:
__fastcall TRxParaAttributes(TRxCustomRichEdit* AOwner);
virtual void __fastcall Assign(Classes::TPersistent* Source);
__property TParaAlignment Alignment = {read=GetAlignment, write=SetAlignment, nodefault};
__property int FirstIndent = {read=GetFirstIndent, write=SetFirstIndent, nodefault};
__property THeadingStyle HeadingStyle = {read=GetHeadingStyle, write=SetHeadingStyle, nodefault};
__property int LeftIndent = {read=GetLeftIndent, write=SetLeftIndent, nodefault};
__property int LineSpacing = {read=GetLineSpacing, write=SetLineSpacing, nodefault};
__property TLineSpacingRule LineSpacingRule = {read=GetLineSpacingRule, write=SetLineSpacingRule, nodefault};
__property TRxNumbering Numbering = {read=GetNumbering, write=SetNumbering, nodefault};
__property TRxNumberingStyle NumberingStyle = {read=GetNumberingStyle, write=SetNumberingStyle, nodefault};
__property Word NumberingTab = {read=GetNumberingTab, write=SetNumberingTab, nodefault};
__property int RightIndent = {read=GetRightIndent, write=SetRightIndent, nodefault};
__property int SpaceAfter = {read=GetSpaceAfter, write=SetSpaceAfter, nodefault};
__property int SpaceBefore = {read=GetSpaceBefore, write=SetSpaceBefore, nodefault};
__property int Tab[Byte Index] = {read=GetTab, write=SetTab};
__property int TabCount = {read=GetTabCount, write=SetTabCount, nodefault};
__property TParaTableStyle TableStyle = {read=GetTableStyle, write=SetTableStyle, nodefault};
public:
#pragma option push -w-inl
/* TPersistent.Destroy */ inline __fastcall virtual ~TRxParaAttributes(void) { }
#pragma option pop
};
#pragma option push -b-
enum TRichLangOption { rlAutoKeyboard, rlAutoFont, rlImeCancelComplete, rlImeAlwaysSendNotify };
#pragma option pop
typedef Set<TRichLangOption, rlAutoKeyboard, rlImeAlwaysSendNotify> TRichLangOptions;
typedef void __fastcall (__closure *TRichEditProtectChangeEx)(System::TObject* Sender, const Messages::TMessage &Message, int StartPos, int EndPos, bool &AllowChange);
typedef void __fastcall (__closure *TRichEditURLClickEvent)(System::TObject* Sender, const AnsiString URLText, Controls::TMouseButton Button);
typedef void __fastcall (__closure *TRichEditFindErrorEvent)(System::TObject* Sender, const AnsiString FindText);
typedef void __fastcall (__closure *TRichEditFindCloseEvent)(System::TObject* Sender, Dialogs::TFindDialog* Dialog);
#pragma option push -b-
enum TUndoName { unUnknown, unTyping, unDelete, unDragDrop, unCut, unPaste };
#pragma option pop
#pragma option push -b-
enum TRichStreamFormat { sfDefault, sfRichText, sfPlainText };
#pragma option pop
#pragma option push -b-
enum TRichStreamMode { smSelection, smPlainRtf, smNoObjects, smUnicode };
#pragma option pop
typedef Set<TRichStreamMode, smSelection, smUnicode> TRichStreamModes;
#pragma option push -b-
enum TRichSelection { stText, stObject, stMultiChar, stMultiObject };
#pragma option pop
typedef Set<TRichSelection, stText, stMultiObject> TRichSelectionType;
#pragma option push -b-
enum TRichSearchType { stWholeWord, stMatchCase, stBackward, stSetSelection };
#pragma option pop
typedef Set<TRichSearchType, stWholeWord, stSetSelection> TRichSearchTypes;
class PASCALIMPLEMENTATION TRxCustomRichEdit : public Stdctrls::TCustomMemo
{
typedef Stdctrls::TCustomMemo inherited;
private:
bool FHideScrollBars;
bool FSelectionBar;
bool FAutoURLDetect;
bool FWordSelection;
bool FPlainText;
TRxTextAttributes* FSelAttributes;
TRxTextAttributes* FDefAttributes;
TRxTextAttributes* FWordAttributes;
TRxParaAttributes* FParagraph;
TParaAlignment FOldParaAlignment;
int FScreenLogPixels;
int FUndoLimit;
Classes::TStrings* FRichEditStrings;
Classes::TMemoryStream* FMemStream;
bool FHideSelection;
TRichLangOptions FLangOptions;
bool FModified;
bool FLinesUpdating;
#pragma pack(push, 1)
Types::TRect FPageRect;
#pragma pack(pop)
_charrange FClickRange;
Controls::TMouseButton FClickBtn;
Dialogs::TFindDialog* FFindDialog;
Dialogs::TReplaceDialog* FReplaceDialog;
Dialogs::TFindDialog* FLastFind;
bool FAllowObjects;
System::TObject* FCallback;
System::_di_IInterface FRichEditOle;
Menus::TPopupMenu* FPopupVerbMenu;
AnsiString FTitle;
bool FAutoVerbMenu;
bool FAllowInPlace;
TMetaClass*FDefaultConverter;
Classes::TNotifyEvent FOnSelChange;
Comctrls::TRichEditResizeEvent FOnResizeRequest;
Comctrls::TRichEditProtectChange FOnProtectChange;
TRichEditProtectChangeEx FOnProtectChangeEx;
Comctrls::TRichEditSaveClipboard FOnSaveClipboard;
TRichEditURLClickEvent FOnURLClick;
TRichEditFindErrorEvent FOnTextNotFound;
TRichEditFindCloseEvent FOnCloseFindDialog;
bool __fastcall GetAutoURLDetect(void);
bool __fastcall GetWordSelection(void);
TRichLangOptions __fastcall GetLangOptions(void);
bool __fastcall GetCanRedo(void);
bool __fastcall GetCanPaste(void);
TUndoName __fastcall GetRedoName(void);
TUndoName __fastcall GetUndoName(void);
TRichStreamFormat __fastcall GetStreamFormat(void);
TRichStreamModes __fastcall GetStreamMode(void);
TRichSelectionType __fastcall GetSelectionType(void);
void __fastcall PopupVerbClick(System::TObject* Sender);
void __fastcall ObjectPropsClick(System::TObject* Sender);
void __fastcall CloseObjects(void);
void __fastcall UpdateHostNames(void);
void __fastcall SetAllowObjects(bool Value);
void __fastcall SetStreamFormat(TRichStreamFormat Value);
void __fastcall SetStreamMode(TRichStreamModes Value);
void __fastcall SetAutoURLDetect(bool Value);
void __fastcall SetWordSelection(bool Value);
void __fastcall SetHideScrollBars(bool Value);
HIDESBASE void __fastcall SetHideSelection(bool Value);
void __fastcall SetTitle(const AnsiString Value);
void __fastcall SetLangOptions(TRichLangOptions Value);
void __fastcall SetRichEditStrings(Classes::TStrings* Value);
void __fastcall SetDefAttributes(TRxTextAttributes* Value);
void __fastcall SetSelAttributes(TRxTextAttributes* Value);
void __fastcall SetWordAttributes(TRxTextAttributes* Value);
void __fastcall SetSelectionBar(bool Value);
void __fastcall SetUndoLimit(int Value);
void __fastcall UpdateTextModes(bool Plain);
void __fastcall AdjustFindDialogPosition(Dialogs::TFindDialog* Dialog);
void __fastcall SetupFindDialog(Dialogs::TFindDialog* Dialog, const AnsiString SearchStr, const AnsiString ReplaceStr);
bool __fastcall FindEditText(Dialogs::TFindDialog* Dialog, bool AdjustPos, bool Events);
bool __fastcall GetCanFindNext(void);
void __fastcall FindDialogFind(System::TObject* Sender);
void __fastcall ReplaceDialogReplace(System::TObject* Sender);
void __fastcall FindDialogClose(System::TObject* Sender);
void __fastcall SetUIActive(bool Active);
MESSAGE void __fastcall CMDocWindowActivate(Messages::TMessage &Message);
MESSAGE void __fastcall CMUIDeactivate(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMBiDiModeChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMColorChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CNNotify(Messages::TWMNotify &Message);
MESSAGE void __fastcall EMReplaceSel(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMDestroy(Messages::TWMNoParams &Msg);
HIDESBASE MESSAGE void __fastcall WMMouseMove(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMPaint(Messages::TWMPaint &Message);
HIDESBASE MESSAGE void __fastcall WMSetCursor(Messages::TWMSetCursor &Message);
HIDESBASE MESSAGE void __fastcall WMSetFont(Messages::TWMSetFont &Message);
HIDESBASE MESSAGE void __fastcall WMRButtonUp(Messages::TMessage &Message);
protected:
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall CreateWindowHandle(const Controls::TCreateParams &Params);
virtual void __fastcall CreateWnd(void);
virtual void __fastcall DestroyWnd(void);
DYNAMIC Menus::TPopupMenu* __fastcall GetPopupMenu(void);
virtual void __fastcall TextNotFound(Dialogs::TFindDialog* Dialog);
virtual void __fastcall RequestSize(const Types::TRect &Rect);
DYNAMIC void __fastcall SelectionChange(void);
DYNAMIC bool __fastcall ProtectChange(const Messages::TMessage &Message, int StartPos, int EndPos);
DYNAMIC bool __fastcall SaveClipboard(int NumObj, int NumChars);
DYNAMIC void __fastcall URLClick(const AnsiString URLText, Controls::TMouseButton Button);
virtual void __fastcall SetPlainText(bool Value);
virtual void __fastcall CloseFindDialog(Dialogs::TFindDialog* Dialog);
virtual void __fastcall DoSetMaxLength(int Value);
virtual int __fastcall GetSelLength(void);
virtual int __fastcall GetSelStart(void);
virtual AnsiString __fastcall GetSelText();
virtual void __fastcall SetSelLength(int Value);
virtual void __fastcall SetSelStart(int Value);
__property bool AllowInPlace = {read=FAllowInPlace, write=FAllowInPlace, default=1};
__property bool AllowObjects = {read=FAllowObjects, write=SetAllowObjects, default=1};
__property bool AutoURLDetect = {read=GetAutoURLDetect, write=SetAutoURLDetect, default=1};
__property bool AutoVerbMenu = {read=FAutoVerbMenu, write=FAutoVerbMenu, default=1};
__property bool HideSelection = {read=FHideSelection, write=SetHideSelection, default=1};
__property bool HideScrollBars = {read=FHideScrollBars, write=SetHideScrollBars, default=1};
__property AnsiString Title = {read=FTitle, write=SetTitle};
__property TRichLangOptions LangOptions = {read=GetLangOptions, write=SetLangOptions, default=2};
__property Classes::TStrings* Lines = {read=FRichEditStrings, write=SetRichEditStrings};
__property bool PlainText = {read=FPlainText, write=SetPlainText, default=0};
__property bool SelectionBar = {read=FSelectionBar, write=SetSelectionBar, default=1};
__property TRichStreamFormat StreamFormat = {read=GetStreamFormat, write=SetStreamFormat, default=0};
__property TRichStreamModes StreamMode = {read=GetStreamMode, write=SetStreamMode, default=0};
__property int UndoLimit = {read=FUndoLimit, write=SetUndoLimit, default=100};
__property bool WordSelection = {read=GetWordSelection, write=SetWordSelection, default=1};
__property ScrollBars = {default=3};
__property TabStop = {default=1};
__property Comctrls::TRichEditSaveClipboard OnSaveClipboard = {read=FOnSaveClipboard, write=FOnSaveClipboard};
__property Classes::TNotifyEvent OnSelectionChange = {read=FOnSelChange, write=FOnSelChange};
__property Comctrls::TRichEditProtectChange OnProtectChange = {read=FOnProtectChange, write=FOnProtectChange};
__property TRichEditProtectChangeEx OnProtectChangeEx = {read=FOnProtectChangeEx, write=FOnProtectChangeEx};
__property Comctrls::TRichEditResizeEvent OnResizeRequest = {read=FOnResizeRequest, write=FOnResizeRequest};
__property TRichEditURLClickEvent OnURLClick = {read=FOnURLClick, write=FOnURLClick};
__property TRichEditFindErrorEvent OnTextNotFound = {read=FOnTextNotFound, write=FOnTextNotFound};
__property TRichEditFindCloseEvent OnCloseFindDialog = {read=FOnCloseFindDialog, write=FOnCloseFindDialog};
public:
__fastcall virtual TRxCustomRichEdit(Classes::TComponent* AOwner);
__fastcall virtual ~TRxCustomRichEdit(void);
virtual void __fastcall Clear(void);
void __fastcall SetSelection(int StartPos, int EndPos, bool ScrollCaret);
_charrange __fastcall GetSelection();
AnsiString __fastcall GetTextRange(int StartPos, int EndPos);
int __fastcall LineFromChar(int CharIndex);
int __fastcall GetLineIndex(int LineNo);
int __fastcall GetLineLength(int CharIndex);
AnsiString __fastcall WordAtCursor();
int __fastcall FindText(const AnsiString SearchStr, int StartPos, int Length, TRichSearchTypes Options);
int __fastcall SearchText(const AnsiString SearchStr, int StartPos, int Length, TRichSearchTypes Options);
virtual int __fastcall GetSelTextBuf(char * Buffer, int BufSize);
virtual Types::TPoint __fastcall GetCaretPos();
Types::TPoint __fastcall GetCharPos(int CharIndex);
bool __fastcall InsertObjectDialog(void);
bool __fastcall ObjectPropertiesDialog(void);
bool __fastcall PasteSpecialDialog(void);
Dialogs::TFindDialog* __fastcall FindDialog(const AnsiString SearchStr);
Dialogs::TReplaceDialog* __fastcall ReplaceDialog(const AnsiString SearchStr, const AnsiString ReplaceStr);
bool __fastcall FindNext(void);
virtual void __fastcall Print(const AnsiString Caption);
/* class method */ static void __fastcall RegisterConversionFormat(TMetaClass* vmt, const AnsiString AExtension, bool APlainText, TMetaClass* AConversionClass);
HIDESBASE void __fastcall ClearUndo(void);
void __fastcall Redo(void);
void __fastcall StopGroupTyping(void);
__property bool CanFindNext = {read=GetCanFindNext, nodefault};
__property bool CanRedo = {read=GetCanRedo, nodefault};
__property bool CanPaste = {read=GetCanPaste, nodefault};
__property TUndoName RedoName = {read=GetRedoName, nodefault};
__property TUndoName UndoName = {read=GetUndoName, nodefault};
__property TMetaClass* DefaultConverter = {read=FDefaultConverter, write=FDefaultConverter};
__property TRxTextAttributes* DefAttributes = {read=FDefAttributes, write=SetDefAttributes};
__property TRxTextAttributes* SelAttributes = {read=FSelAttributes, write=SetSelAttributes};
__property TRxTextAttributes* WordAttributes = {read=FWordAttributes, write=SetWordAttributes};
__property Types::TRect PageRect = {read=FPageRect, write=FPageRect};
__property TRxParaAttributes* Paragraph = {read=FParagraph};
__property TRichSelectionType SelectionType = {read=GetSelectionType, nodefault};
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TRxCustomRichEdit(HWND ParentWindow) : Stdctrls::TCustomMemo(ParentWindow) { }
#pragma option pop
};
class PASCALIMPLEMENTATION TRxTextAttributes : public Classes::TPersistent
{
typedef Classes::TPersistent inherited;
private:
TRxCustomRichEdit* RichEdit;
TRxAttributeType FType;
void __fastcall AssignFont(Graphics::TFont* Font);
void __fastcall GetAttributes(::CHARFORMAT2A &Format);
Graphics::TFontCharset __fastcall GetCharset(void);
void __fastcall SetCharset(Graphics::TFontCharset Value);
TSubscriptStyle __fastcall GetSubscriptStyle(void);
void __fastcall SetSubscriptStyle(TSubscriptStyle Value);
Graphics::TColor __fastcall GetBackColor(void);
Graphics::TColor __fastcall GetColor(void);
TRxConsistentAttributes __fastcall GetConsistentAttributes(void);
int __fastcall GetHeight(void);
bool __fastcall GetHidden(void);
bool __fastcall GetDisabled(void);
bool __fastcall GetLink(void);
AnsiString __fastcall GetName();
int __fastcall GetOffset(void);
Graphics::TFontPitch __fastcall GetPitch(void);
bool __fastcall GetProtected(void);
Byte __fastcall GetRevAuthorIndex(void);
int __fastcall GetSize(void);
Graphics::TFontStyles __fastcall GetStyle(void);
TUnderlineType __fastcall GetUnderlineType(void);
void __fastcall SetAttributes(::CHARFORMAT2A &Format);
void __fastcall SetBackColor(Graphics::TColor Value);
void __fastcall SetColor(Graphics::TColor Value);
void __fastcall SetDisabled(bool Value);
void __fastcall SetHeight(int Value);
void __fastcall SetHidden(bool Value);
void __fastcall SetLink(bool Value);
void __fastcall SetName(AnsiString Value);
void __fastcall SetOffset(int Value);
void __fastcall SetPitch(Graphics::TFontPitch Value);
void __fastcall SetProtected(bool Value);
void __fastcall SetRevAuthorIndex(Byte Value);
void __fastcall SetSize(int Value);
void __fastcall SetStyle(Graphics::TFontStyles Value);
void __fastcall SetUnderlineType(TUnderlineType Value);
protected:
void __fastcall InitFormat(::CHARFORMAT2A &Format);
virtual void __fastcall AssignTo(Classes::TPersistent* Dest);
public:
__fastcall TRxTextAttributes(TRxCustomRichEdit* AOwner, TRxAttributeType AttributeType);
virtual void __fastcall Assign(Classes::TPersistent* Source);
__property Graphics::TFontCharset Charset = {read=GetCharset, write=SetCharset, nodefault};
__property Graphics::TColor BackColor = {read=GetBackColor, write=SetBackColor, nodefault};
__property Graphics::TColor Color = {read=GetColor, write=SetColor, nodefault};
__property TRxConsistentAttributes ConsistentAttributes = {read=GetConsistentAttributes, nodefault};
__property bool Disabled = {read=GetDisabled, write=SetDisabled, nodefault};
__property bool Hidden = {read=GetHidden, write=SetHidden, nodefault};
__property bool Link = {read=GetLink, write=SetLink, nodefault};
__property AnsiString Name = {read=GetName, write=SetName};
__property int Offset = {read=GetOffset, write=SetOffset, nodefault};
__property Graphics::TFontPitch Pitch = {read=GetPitch, write=SetPitch, nodefault};
__property bool Protected = {read=GetProtected, write=SetProtected, nodefault};
__property Byte RevAuthorIndex = {read=GetRevAuthorIndex, write=SetRevAuthorIndex, nodefault};
__property TSubscriptStyle SubscriptStyle = {read=GetSubscriptStyle, write=SetSubscriptStyle, nodefault};
__property int Size = {read=GetSize, write=SetSize, nodefault};
__property Graphics::TFontStyles Style = {read=GetStyle, write=SetStyle, nodefault};
__property int Height = {read=GetHeight, write=SetHeight, nodefault};
__property TUnderlineType UnderlineType = {read=GetUnderlineType, write=SetUnderlineType, nodefault};
public:
#pragma option push -w-inl
/* TPersistent.Destroy */ inline __fastcall virtual ~TRxTextAttributes(void) { }
#pragma option pop
};
class DELPHICLASS TOEMConversion;
class PASCALIMPLEMENTATION TOEMConversion : public Comctrls::TConversion
{
typedef Comctrls::TConversion inherited;
public:
virtual int __fastcall ConvertReadStream(Classes::TStream* Stream, char * Buffer, int BufSize);
virtual int __fastcall ConvertWriteStream(Classes::TStream* Stream, char * Buffer, int BufSize);
public:
#pragma option push -w-inl
/* TObject.Create */ inline __fastcall TOEMConversion(void) : Comctrls::TConversion() { }
#pragma option pop
#pragma option push -w-inl
/* TObject.Destroy */ inline __fastcall virtual ~TOEMConversion(void) { }
#pragma option pop
};
struct TRichConversionFormat;
typedef TRichConversionFormat *PRichConversionFormat;
#pragma pack(push, 4)
struct TRichConversionFormat
{
TMetaClass*ConversionClass;
AnsiString Extension;
bool PlainText;
TRichConversionFormat *Next;
} ;
#pragma pack(pop)
class DELPHICLASS TRxRichEdit;
class PASCALIMPLEMENTATION TRxRichEdit : public TRxCustomRichEdit
{
typedef TRxCustomRichEdit inherited;
__published:
__property Align = {default=0};
__property Alignment = {default=0};
__property AutoURLDetect = {default=1};
__property AutoVerbMenu = {default=1};
__property AllowObjects = {default=1};
__property AllowInPlace = {default=1};
__property Anchors = {default=3};
__property BiDiMode ;
__property BorderWidth = {default=0};
__property DragKind = {default=0};
__property BorderStyle = {default=1};
__property Color = {default=-2147483643};
__property Ctl3D ;
__property DragCursor = {default=-12};
__property DragMode = {default=0};
__property Enabled = {default=1};
__property Font ;
__property HideSelection = {default=1};
__property HideScrollBars = {default=1};
__property Title ;
__property ImeMode = {default=3};
__property ImeName ;
__property Constraints ;
__property ParentBiDiMode = {default=1};
__property LangOptions = {default=2};
__property Lines ;
__property MaxLength = {default=0};
__property ParentColor = {default=0};
__property ParentCtl3D = {default=1};
__property ParentFont = {default=1};
__property ParentShowHint = {default=1};
__property PlainText = {default=0};
__property PopupMenu ;
__property ReadOnly = {default=0};
__property ScrollBars = {default=3};
__property SelectionBar = {default=1};
__property ShowHint ;
__property StreamFormat = {default=0};
__property StreamMode = {default=0};
__property TabOrder = {default=-1};
__property TabStop = {default=1};
__property UndoLimit = {default=100};
__property Visible = {default=1};
__property WantTabs = {default=0};
__property WantReturns = {default=1};
__property WordSelection = {default=1};
__property WordWrap = {default=1};
__property OnChange ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnContextPopup ;
__property OnEndDock ;
__property OnStartDock ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnMouseWheel ;
__property OnMouseWheelDown ;
__property OnMouseWheelUp ;
__property OnProtectChange ;
__property OnProtectChangeEx ;
__property OnResizeRequest ;
__property OnSaveClipboard ;
__property OnSelectionChange ;
__property OnStartDrag ;
__property OnTextNotFound ;
__property OnCloseFindDialog ;
__property OnURLClick ;
public:
#pragma option push -w-inl
/* TRxCustomRichEdit.Create */ inline __fastcall virtual TRxRichEdit(Classes::TComponent* AOwner) : TRxCustomRichEdit(AOwner) { }
#pragma option pop
#pragma option push -w-inl
/* TRxCustomRichEdit.Destroy */ inline __fastcall virtual ~TRxRichEdit(void) { }
#pragma option pop
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TRxRichEdit(HWND ParentWindow) : TRxCustomRichEdit(ParentWindow) { }
#pragma option pop
};
//-- var, const, procedure ---------------------------------------------------
extern PACKAGE TRichEditVersion RichEditVersion;
} /* namespace Rxriched */
using namespace Rxriched;
#pragma option pop // -w-
#pragma option pop // -Vx
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // RxRichEd