home *** CD-ROM | disk | FTP | other *** search
- //----------------------------------------------------------------------------
- // RichEdit.hpp - dcc32 generated hdr (DO NOT EDIT) rev: -2
- // From: RichEdit.pas
- //----------------------------------------------------------------------------
- #ifndef RichEditHPP
- #define RichEditHPP
- //----------------------------------------------------------------------------
- #ifndef WindowsHPP
- #include <Windows.hpp>
- #endif
-
- #ifndef MessagesHPP
- #include <Messages.hpp>
- #endif
-
- #ifndef SystemHPP
- #include <System.hpp>
- #endif
-
- namespace Richedit
- {
- //-- type declarations -------------------------------------------------------
- typedef System::Char TCHAR;
-
- struct TCharFormat
- {
- System::Integer cbSize;
- System::Longint dwMask;
- System::Longint dwEffects;
- System::Longint yHeight;
- System::Longint yOffset;
- System::Longint crTextColor;
- System::Byte bCharSet;
- System::Byte bPitchAndFamily;
- System::Char szFaceName[32];
- } ;
-
- struct TCharRange
- {
- System::Longint cpMin;
- System::Longint cpMax;
- } ;
-
- typedef System::Longint __fastcall (*TEditStreamCallBack)(System::Longint dwCookie, Windows::PByte pbBuff
- , System::Longint cb, System::Longint &pcb);
-
- struct TTextRange
- {
- TCharRange chrg;
- System::Char *lpstrText;
- } ;
-
- struct TEditStream
- {
- System::Longint dwCookie;
- System::Longint dwError;
- TEditStreamCallBack pfnCallback;
- } ;
-
- struct TFindText
- {
- TCharRange chrg;
- System::Char *lpstrText;
- } ;
-
- struct TFindTextEx
- {
- TCharRange chrg;
- System::Char *lpstrText;
- TCharRange chrgText;
- } ;
-
- struct TFormatRange
- {
- System::Integer hdc;
- System::Integer hdcTarget;
- Windows::TRect rc;
- Windows::TRect rcPage;
- TCharRange chrg;
- } ;
-
- struct TParaFormat
- {
- System::Integer cbSize;
- System::Longint dwMask;
- System::Word wNumbering;
- System::Word wReserved;
- System::Longint dxStartIndent;
- System::Longint dxRightIndent;
- System::Longint dxOffset;
- System::Word wAlignment;
- System::Smallint cTabCount;
- System::Longint rgxTabs[32];
- } ;
-
- struct TMsgFilter;
- typedef TMsgFilter *PMsgFilter;
-
- struct TMsgFilter
- {
- Windows::TNMHdr nmhdr;
- System::Integer msg;
- System::Longint wParam;
- System::Longint lParam;
- } ;
-
- struct TReqSize
- {
- Windows::TNMHdr nmhdr;
- Windows::TRect rc;
- } ;
-
- typedef TReqSize *PReqSize;
-
- struct TSelChange;
- typedef TSelChange *PSelChange;
-
- struct TSelChange
- {
- Windows::TNMHdr nmhdr;
- TCharRange chrg;
- System::Word seltyp;
- } ;
-
- struct TEndDropFiles
- {
- Windows::TNMHdr nmhdr;
- System::Integer hDrop;
- System::Longint cp;
- System::LongBool fProtected;
- } ;
-
- struct TENProtected;
- typedef TENProtected *PENProtected;
-
- struct TENProtected
- {
- Windows::TNMHdr nmhdr;
- System::Integer msg;
- System::Longint wParam;
- System::Longint lParam;
- TCharRange chrg;
- } ;
-
- struct TENSaveClipboard;
- typedef TENSaveClipboard *PENSaveClipboard;
-
- struct TENSaveClipboard
- {
- Windows::TNMHdr nmhdr;
- System::Longint cObjectCount;
- System::Longint cch;
- } ;
-
- struct TENCorrectText
- {
- Windows::TNMHdr nmhdr;
- TCharRange chrg;
- System::Word seltyp;
- } ;
-
- struct TPunctuation
- {
- System::Integer iSize;
- System::Char *szPunctuation;
- } ;
-
- struct TCompColor
- {
- System::Longint crText;
- System::Longint crBackground;
- System::Longint dwEffects;
- } ;
-
- struct TRepasteSpecial
- {
- System::Longint dwAspect;
- System::Longint dwParam;
- } ;
-
- //-- var, const, procedure ---------------------------------------------------
- #define cchTextLimitDefault System::Smallint(32767)
- #define WM_CONTEXTMENU System::Byte(123)
- #define WM_PRINTCLIENT System::Smallint(792)
- #define EM_GETLIMITTEXT System::Byte(213)
- #define EM_POSFROMCHAR System::Byte(214)
- #define EM_CHARFROMPOS System::Byte(215)
- #define EM_SCROLLCARET System::Byte(183)
- #define EM_CANPASTE System::Smallint(1074)
- #define EM_DISPLAYBAND System::Smallint(1075)
- #define EM_EXGETSEL System::Smallint(1076)
- #define EM_EXLIMITTEXT System::Smallint(1077)
- #define EM_EXLINEFROMCHAR System::Smallint(1078)
- #define EM_EXSETSEL System::Smallint(1079)
- #define EM_FINDTEXT System::Smallint(1080)
- #define EM_FORMATRANGE System::Smallint(1081)
- #define EM_GETCHARFORMAT System::Smallint(1082)
- #define EM_GETEVENTMASK System::Smallint(1083)
- #define EM_GETOLEINTERFACE System::Smallint(1084)
- #define EM_GETPARAFORMAT System::Smallint(1085)
- #define EM_GETSELTEXT System::Smallint(1086)
- #define EM_HIDESELECTION System::Smallint(1087)
- #define EM_PASTESPECIAL System::Smallint(1088)
- #define EM_REQUESTRESIZE System::Smallint(1089)
- #define EM_SELECTIONTYPE System::Smallint(1090)
- #define EM_SETBKGNDCOLOR System::Smallint(1091)
- #define EM_SETCHARFORMAT System::Smallint(1092)
- #define EM_SETEVENTMASK System::Smallint(1093)
- #define EM_SETOLECALLBACK System::Smallint(1094)
- #define EM_SETPARAFORMAT System::Smallint(1095)
- #define EM_SETTARGETDEVICE System::Smallint(1096)
- #define EM_STREAMIN System::Smallint(1097)
- #define EM_STREAMOUT System::Smallint(1098)
- #define EM_GETTEXTRANGE System::Smallint(1099)
- #define EM_FINDWORDBREAK System::Smallint(1100)
- #define EM_SETOPTIONS System::Smallint(1101)
- #define EM_GETOPTIONS System::Smallint(1102)
- #define EM_FINDTEXTEX System::Smallint(1103)
- #define EM_SETPUNCTUATION System::Smallint(1124)
- #define EM_GETPUNCTUATION System::Smallint(1125)
- #define EM_SETWORDWRAPMODE System::Smallint(1126)
- #define EM_GETWORDWRAPMODE System::Smallint(1127)
- #define EM_SETIMECOLOR System::Smallint(1128)
- #define EM_GETIMECOLOR System::Smallint(1129)
- #define EN_MSGFILTER System::Smallint(1792)
- #define EN_REQUESTRESIZE System::Smallint(1793)
- #define EN_SELCHANGE System::Smallint(1794)
- #define EN_DROPFILES System::Smallint(1795)
- #define EN_PROTECTED System::Smallint(1796)
- #define EN_CORRECTTEXT System::Smallint(1797)
- #define EN_STOPNOUNDO System::Smallint(1798)
- #define EN_IMECHANGE System::Smallint(1799)
- #define EN_SAVECLIPBOARD System::Smallint(1800)
- #define ENM_NONE System::Byte(0)
- #define ENM_CHANGE System::Byte(1)
- #define ENM_UPDATE System::Byte(2)
- #define ENM_SCROLL System::Byte(4)
- #define ENM_KEYEVENTS System::Integer(65536)
- #define ENM_MOUSEEVENTS System::Integer(131072)
- #define ENM_REQUESTRESIZE System::Integer(262144)
- #define ENM_SELCHANGE System::Integer(524288)
- #define ENM_DROPFILES System::Integer(1048576)
- #define ENM_PROTECTED System::Integer(2097152)
- #define ENM_CORRECTTEXT System::Integer(4194304)
- #define ENM_IMECHANGE System::Integer(8388608)
- #define ES_SAVESEL System::Integer(32768)
- #define ES_SUNKEN System::Smallint(16384)
- #define ES_DISABLENOSCROLL System::Smallint(8192)
- #define ES_SELECTIONBAR System::Integer(16777216)
- #define ES_VERTICAL System::Integer(4194304)
- #define ES_NOIME System::Integer(524288)
- #define ES_SELFIME System::Integer(262144)
- #define ECO_AUTOWORDSELECTION System::Byte(1)
- #define ECO_AUTOVSCROLL System::Byte(64)
- #define ECO_AUTOHSCROLL System::Byte(128)
- #define ECO_NOHIDESEL System::Smallint(256)
- #define ECO_READONLY System::Smallint(2048)
- #define ECO_WANTRETURN System::Smallint(4096)
- #define ECO_SAVESEL System::Integer(32768)
- #define ECO_SELECTIONBAR System::Integer(16777216)
- #define ECO_VERTICAL System::Integer(4194304)
- #define ECOOP_SET System::Byte(1)
- #define ECOOP_OR System::Byte(2)
- #define ECOOP_AND System::Byte(3)
- #define ECOOP_XOR System::Byte(4)
- #define WB_CLASSIFY System::Byte(3)
- #define WB_MOVEWORDLEFT System::Byte(4)
- #define WB_MOVEWORDRIGHT System::Byte(5)
- #define WB_LEFTBREAK System::Byte(6)
- #define WB_RIGHTBREAK System::Byte(7)
- #define WB_MOVEWORDPREV System::Byte(4)
- #define WB_MOVEWORDNEXT System::Byte(5)
- #define WB_PREVBREAK System::Byte(6)
- #define WB_NEXTBREAK System::Byte(7)
- #define PC_FOLLOWING System::Byte(1)
- #define PC_LEADING System::Byte(2)
- #define PC_OVERFLOW System::Byte(3)
- #define PC_DELIMITER System::Byte(4)
- #define WBF_WORDWRAP System::Byte(16)
- #define WBF_WORDBREAK System::Byte(32)
- #define WBF_OVERFLOW System::Byte(64)
- #define WBF_LEVEL1 System::Byte(128)
- #define WBF_LEVEL2 System::Smallint(256)
- #define WBF_CUSTOM System::Smallint(512)
- #define WBF_CLASS System::Byte(15)
- #define WBF_ISWHITE System::Byte(16)
- #define WBF_BREAKLINE System::Byte(32)
- #define WBF_BREAKAFTER System::Byte(64)
- #define FT_MATCHCASE System::Byte(4)
- #define FT_WHOLEWORD System::Byte(2)
- #define CFM_BOLD System::Byte(1)
- #define CFM_ITALIC System::Byte(2)
- #define CFM_UNDERLINE System::Byte(4)
- #define CFM_STRIKEOUT System::Byte(8)
- #define CFM_PROTECTED System::Byte(16)
- #define CFM_SIZE System::Integer(-2147483648)
- #define CFM_COLOR System::Integer(1073741824)
- #define CFM_FACE System::Integer(536870912)
- #define CFM_OFFSET System::Integer(268435456)
- #define CFM_CHARSET System::Integer(134217728)
- #define CFE_BOLD System::Byte(1)
- #define CFE_ITALIC System::Byte(2)
- #define CFE_UNDERLINE System::Byte(4)
- #define CFE_STRIKEOUT System::Byte(8)
- #define CFE_PROTECTED System::Byte(16)
- #define CFE_AUTOCOLOR System::Integer(1073741824)
- #define yHeightCharPtsMost System::Smallint(1638)
- #define SCF_SELECTION System::Byte(1)
- #define SCF_WORD System::Byte(2)
- #define SF_TEXT System::Byte(1)
- #define SF_RTF System::Byte(2)
- #define SF_RTFNOOBJS System::Byte(3)
- #define SF_TEXTIZED System::Byte(4)
- #define SFF_SELECTION System::Integer(32768)
- #define SFF_PLAINRTF System::Smallint(16384)
- #define MAX_TAB_STOPS System::Byte(32)
- #define lDefaultTab System::Smallint(720)
- #define PFM_STARTINDENT System::Byte(1)
- #define PFM_RIGHTINDENT System::Byte(2)
- #define PFM_OFFSET System::Byte(4)
- #define PFM_ALIGNMENT System::Byte(8)
- #define PFM_TABSTOPS System::Byte(16)
- #define PFM_NUMBERING System::Byte(32)
- #define PFM_OFFSETINDENT System::Integer(-2147483648)
- #define PFN_BULLET System::Byte(1)
- #define PFA_LEFT System::Byte(1)
- #define PFA_RIGHT System::Byte(2)
- #define PFA_CENTER System::Byte(3)
- #define SEL_EMPTY System::Byte(0)
- #define SEL_TEXT System::Byte(1)
- #define SEL_OBJECT System::Byte(2)
- #define SEL_MULTICHAR System::Byte(4)
- #define SEL_MULTIOBJECT System::Byte(8)
- #define CF_RTF "Rich Text Format"
- #define CF_RETEXTOBJ "RichEdit Text and Objects"
-
- } /* namespace Richedit */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Richedit;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // RichEdit
-