home *** CD-ROM | disk | FTP | other *** search
/ CD/PC Actual 9 / CDACTUAL9.iso / progs / CB / DATA.Z / RICHEDIT.HPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-06  |  10.0 KB  |  343 lines

  1. //----------------------------------------------------------------------------
  2. // RichEdit.hpp - dcc32 generated hdr (DO NOT EDIT) rev: -2
  3. // From: RichEdit.pas
  4. //----------------------------------------------------------------------------
  5. #ifndef RichEditHPP
  6. #define RichEditHPP
  7. //----------------------------------------------------------------------------
  8. #ifndef WindowsHPP
  9. #include <Windows.hpp>
  10. #endif
  11.  
  12. #ifndef MessagesHPP
  13. #include <Messages.hpp>
  14. #endif
  15.  
  16. #ifndef SystemHPP
  17. #include <System.hpp>
  18. #endif
  19.  
  20. namespace Richedit
  21. {
  22. //-- type declarations -------------------------------------------------------
  23. typedef System::Char TCHAR;
  24.  
  25. struct TCharFormat
  26. {
  27.     System::Integer cbSize;
  28.     System::Longint dwMask;
  29.     System::Longint dwEffects;
  30.     System::Longint yHeight;
  31.     System::Longint yOffset;
  32.     System::Longint crTextColor;
  33.     System::Byte bCharSet;
  34.     System::Byte bPitchAndFamily;
  35.     System::Char szFaceName[32];
  36. } ;
  37.  
  38. struct TCharRange
  39. {
  40.     System::Longint cpMin;
  41.     System::Longint cpMax;
  42. } ;
  43.  
  44. typedef System::Longint __fastcall (*TEditStreamCallBack)(System::Longint dwCookie, Windows::PByte pbBuff
  45.     , System::Longint cb, System::Longint &pcb);
  46.  
  47. struct TTextRange
  48. {
  49.     TCharRange chrg;
  50.     System::Char *lpstrText;
  51. } ;
  52.  
  53. struct TEditStream
  54. {
  55.     System::Longint dwCookie;
  56.     System::Longint dwError;
  57.     TEditStreamCallBack pfnCallback;
  58. } ;
  59.  
  60. struct TFindText
  61. {
  62.     TCharRange chrg;
  63.     System::Char *lpstrText;
  64. } ;
  65.  
  66. struct TFindTextEx
  67. {
  68.     TCharRange chrg;
  69.     System::Char *lpstrText;
  70.     TCharRange chrgText;
  71. } ;
  72.  
  73. struct TFormatRange
  74. {
  75.     System::Integer hdc;
  76.     System::Integer hdcTarget;
  77.     Windows::TRect rc;
  78.     Windows::TRect rcPage;
  79.     TCharRange chrg;
  80. } ;
  81.  
  82. struct TParaFormat
  83. {
  84.     System::Integer cbSize;
  85.     System::Longint dwMask;
  86.     System::Word wNumbering;
  87.     System::Word wReserved;
  88.     System::Longint dxStartIndent;
  89.     System::Longint dxRightIndent;
  90.     System::Longint dxOffset;
  91.     System::Word wAlignment;
  92.     System::Smallint cTabCount;
  93.     System::Longint rgxTabs[32];
  94. } ;
  95.  
  96. struct TMsgFilter;
  97. typedef TMsgFilter *PMsgFilter;
  98.  
  99. struct TMsgFilter
  100. {
  101.     Windows::TNMHdr nmhdr;
  102.     System::Integer msg;
  103.     System::Longint wParam;
  104.     System::Longint lParam;
  105. } ;
  106.  
  107. struct TReqSize
  108. {
  109.     Windows::TNMHdr nmhdr;
  110.     Windows::TRect rc;
  111. } ;
  112.  
  113. typedef TReqSize *PReqSize;
  114.  
  115. struct TSelChange;
  116. typedef TSelChange *PSelChange;
  117.  
  118. struct TSelChange
  119. {
  120.     Windows::TNMHdr nmhdr;
  121.     TCharRange chrg;
  122.     System::Word seltyp;
  123. } ;
  124.  
  125. struct TEndDropFiles
  126. {
  127.     Windows::TNMHdr nmhdr;
  128.     System::Integer hDrop;
  129.     System::Longint cp;
  130.     System::LongBool fProtected;
  131. } ;
  132.  
  133. struct TENProtected;
  134. typedef TENProtected *PENProtected;
  135.  
  136. struct TENProtected
  137. {
  138.     Windows::TNMHdr nmhdr;
  139.     System::Integer msg;
  140.     System::Longint wParam;
  141.     System::Longint lParam;
  142.     TCharRange chrg;
  143. } ;
  144.  
  145. struct TENSaveClipboard;
  146. typedef TENSaveClipboard *PENSaveClipboard;
  147.  
  148. struct TENSaveClipboard
  149. {
  150.     Windows::TNMHdr nmhdr;
  151.     System::Longint cObjectCount;
  152.     System::Longint cch;
  153. } ;
  154.  
  155. struct TENCorrectText
  156. {
  157.     Windows::TNMHdr nmhdr;
  158.     TCharRange chrg;
  159.     System::Word seltyp;
  160. } ;
  161.  
  162. struct TPunctuation
  163. {
  164.     System::Integer iSize;
  165.     System::Char *szPunctuation;
  166. } ;
  167.  
  168. struct TCompColor
  169. {
  170.     System::Longint crText;
  171.     System::Longint crBackground;
  172.     System::Longint dwEffects;
  173. } ;
  174.  
  175. struct TRepasteSpecial
  176. {
  177.     System::Longint dwAspect;
  178.     System::Longint dwParam;
  179. } ;
  180.  
  181. //-- var, const, procedure ---------------------------------------------------
  182. #define cchTextLimitDefault System::Smallint(32767)
  183. #define WM_CONTEXTMENU System::Byte(123)
  184. #define WM_PRINTCLIENT System::Smallint(792)
  185. #define EM_GETLIMITTEXT System::Byte(213)
  186. #define EM_POSFROMCHAR System::Byte(214)
  187. #define EM_CHARFROMPOS System::Byte(215)
  188. #define EM_SCROLLCARET System::Byte(183)
  189. #define EM_CANPASTE System::Smallint(1074)
  190. #define EM_DISPLAYBAND System::Smallint(1075)
  191. #define EM_EXGETSEL System::Smallint(1076)
  192. #define EM_EXLIMITTEXT System::Smallint(1077)
  193. #define EM_EXLINEFROMCHAR System::Smallint(1078)
  194. #define EM_EXSETSEL System::Smallint(1079)
  195. #define EM_FINDTEXT System::Smallint(1080)
  196. #define EM_FORMATRANGE System::Smallint(1081)
  197. #define EM_GETCHARFORMAT System::Smallint(1082)
  198. #define EM_GETEVENTMASK System::Smallint(1083)
  199. #define EM_GETOLEINTERFACE System::Smallint(1084)
  200. #define EM_GETPARAFORMAT System::Smallint(1085)
  201. #define EM_GETSELTEXT System::Smallint(1086)
  202. #define EM_HIDESELECTION System::Smallint(1087)
  203. #define EM_PASTESPECIAL System::Smallint(1088)
  204. #define EM_REQUESTRESIZE System::Smallint(1089)
  205. #define EM_SELECTIONTYPE System::Smallint(1090)
  206. #define EM_SETBKGNDCOLOR System::Smallint(1091)
  207. #define EM_SETCHARFORMAT System::Smallint(1092)
  208. #define EM_SETEVENTMASK System::Smallint(1093)
  209. #define EM_SETOLECALLBACK System::Smallint(1094)
  210. #define EM_SETPARAFORMAT System::Smallint(1095)
  211. #define EM_SETTARGETDEVICE System::Smallint(1096)
  212. #define EM_STREAMIN System::Smallint(1097)
  213. #define EM_STREAMOUT System::Smallint(1098)
  214. #define EM_GETTEXTRANGE System::Smallint(1099)
  215. #define EM_FINDWORDBREAK System::Smallint(1100)
  216. #define EM_SETOPTIONS System::Smallint(1101)
  217. #define EM_GETOPTIONS System::Smallint(1102)
  218. #define EM_FINDTEXTEX System::Smallint(1103)
  219. #define EM_SETPUNCTUATION System::Smallint(1124)
  220. #define EM_GETPUNCTUATION System::Smallint(1125)
  221. #define EM_SETWORDWRAPMODE System::Smallint(1126)
  222. #define EM_GETWORDWRAPMODE System::Smallint(1127)
  223. #define EM_SETIMECOLOR System::Smallint(1128)
  224. #define EM_GETIMECOLOR System::Smallint(1129)
  225. #define EN_MSGFILTER System::Smallint(1792)
  226. #define EN_REQUESTRESIZE System::Smallint(1793)
  227. #define EN_SELCHANGE System::Smallint(1794)
  228. #define EN_DROPFILES System::Smallint(1795)
  229. #define EN_PROTECTED System::Smallint(1796)
  230. #define EN_CORRECTTEXT System::Smallint(1797)
  231. #define EN_STOPNOUNDO System::Smallint(1798)
  232. #define EN_IMECHANGE System::Smallint(1799)
  233. #define EN_SAVECLIPBOARD System::Smallint(1800)
  234. #define ENM_NONE System::Byte(0)
  235. #define ENM_CHANGE System::Byte(1)
  236. #define ENM_UPDATE System::Byte(2)
  237. #define ENM_SCROLL System::Byte(4)
  238. #define ENM_KEYEVENTS System::Integer(65536)
  239. #define ENM_MOUSEEVENTS System::Integer(131072)
  240. #define ENM_REQUESTRESIZE System::Integer(262144)
  241. #define ENM_SELCHANGE System::Integer(524288)
  242. #define ENM_DROPFILES System::Integer(1048576)
  243. #define ENM_PROTECTED System::Integer(2097152)
  244. #define ENM_CORRECTTEXT System::Integer(4194304)
  245. #define ENM_IMECHANGE System::Integer(8388608)
  246. #define ES_SAVESEL System::Integer(32768)
  247. #define ES_SUNKEN System::Smallint(16384)
  248. #define ES_DISABLENOSCROLL System::Smallint(8192)
  249. #define ES_SELECTIONBAR System::Integer(16777216)
  250. #define ES_VERTICAL System::Integer(4194304)
  251. #define ES_NOIME System::Integer(524288)
  252. #define ES_SELFIME System::Integer(262144)
  253. #define ECO_AUTOWORDSELECTION System::Byte(1)
  254. #define ECO_AUTOVSCROLL System::Byte(64)
  255. #define ECO_AUTOHSCROLL System::Byte(128)
  256. #define ECO_NOHIDESEL System::Smallint(256)
  257. #define ECO_READONLY System::Smallint(2048)
  258. #define ECO_WANTRETURN System::Smallint(4096)
  259. #define ECO_SAVESEL System::Integer(32768)
  260. #define ECO_SELECTIONBAR System::Integer(16777216)
  261. #define ECO_VERTICAL System::Integer(4194304)
  262. #define ECOOP_SET System::Byte(1)
  263. #define ECOOP_OR System::Byte(2)
  264. #define ECOOP_AND System::Byte(3)
  265. #define ECOOP_XOR System::Byte(4)
  266. #define WB_CLASSIFY System::Byte(3)
  267. #define WB_MOVEWORDLEFT System::Byte(4)
  268. #define WB_MOVEWORDRIGHT System::Byte(5)
  269. #define WB_LEFTBREAK System::Byte(6)
  270. #define WB_RIGHTBREAK System::Byte(7)
  271. #define WB_MOVEWORDPREV System::Byte(4)
  272. #define WB_MOVEWORDNEXT System::Byte(5)
  273. #define WB_PREVBREAK System::Byte(6)
  274. #define WB_NEXTBREAK System::Byte(7)
  275. #define PC_FOLLOWING System::Byte(1)
  276. #define PC_LEADING System::Byte(2)
  277. #define PC_OVERFLOW System::Byte(3)
  278. #define PC_DELIMITER System::Byte(4)
  279. #define WBF_WORDWRAP System::Byte(16)
  280. #define WBF_WORDBREAK System::Byte(32)
  281. #define WBF_OVERFLOW System::Byte(64)
  282. #define WBF_LEVEL1 System::Byte(128)
  283. #define WBF_LEVEL2 System::Smallint(256)
  284. #define WBF_CUSTOM System::Smallint(512)
  285. #define WBF_CLASS System::Byte(15)
  286. #define WBF_ISWHITE System::Byte(16)
  287. #define WBF_BREAKLINE System::Byte(32)
  288. #define WBF_BREAKAFTER System::Byte(64)
  289. #define FT_MATCHCASE System::Byte(4)
  290. #define FT_WHOLEWORD System::Byte(2)
  291. #define CFM_BOLD System::Byte(1)
  292. #define CFM_ITALIC System::Byte(2)
  293. #define CFM_UNDERLINE System::Byte(4)
  294. #define CFM_STRIKEOUT System::Byte(8)
  295. #define CFM_PROTECTED System::Byte(16)
  296. #define CFM_SIZE System::Integer(-2147483648)
  297. #define CFM_COLOR System::Integer(1073741824)
  298. #define CFM_FACE System::Integer(536870912)
  299. #define CFM_OFFSET System::Integer(268435456)
  300. #define CFM_CHARSET System::Integer(134217728)
  301. #define CFE_BOLD System::Byte(1)
  302. #define CFE_ITALIC System::Byte(2)
  303. #define CFE_UNDERLINE System::Byte(4)
  304. #define CFE_STRIKEOUT System::Byte(8)
  305. #define CFE_PROTECTED System::Byte(16)
  306. #define CFE_AUTOCOLOR System::Integer(1073741824)
  307. #define yHeightCharPtsMost System::Smallint(1638)
  308. #define SCF_SELECTION System::Byte(1)
  309. #define SCF_WORD System::Byte(2)
  310. #define SF_TEXT System::Byte(1)
  311. #define SF_RTF System::Byte(2)
  312. #define SF_RTFNOOBJS System::Byte(3)
  313. #define SF_TEXTIZED System::Byte(4)
  314. #define SFF_SELECTION System::Integer(32768)
  315. #define SFF_PLAINRTF System::Smallint(16384)
  316. #define MAX_TAB_STOPS System::Byte(32)
  317. #define lDefaultTab System::Smallint(720)
  318. #define PFM_STARTINDENT System::Byte(1)
  319. #define PFM_RIGHTINDENT System::Byte(2)
  320. #define PFM_OFFSET System::Byte(4)
  321. #define PFM_ALIGNMENT System::Byte(8)
  322. #define PFM_TABSTOPS System::Byte(16)
  323. #define PFM_NUMBERING System::Byte(32)
  324. #define PFM_OFFSETINDENT System::Integer(-2147483648)
  325. #define PFN_BULLET System::Byte(1)
  326. #define PFA_LEFT System::Byte(1)
  327. #define PFA_RIGHT System::Byte(2)
  328. #define PFA_CENTER System::Byte(3)
  329. #define SEL_EMPTY System::Byte(0)
  330. #define SEL_TEXT System::Byte(1)
  331. #define SEL_OBJECT System::Byte(2)
  332. #define SEL_MULTICHAR System::Byte(4)
  333. #define SEL_MULTIOBJECT System::Byte(8)
  334. #define CF_RTF "Rich Text Format"
  335. #define CF_RETEXTOBJ "RichEdit Text and Objects"
  336.  
  337. }    /* namespace Richedit */
  338. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  339. using namespace Richedit;
  340. #endif
  341. //-- end unit ----------------------------------------------------------------
  342. #endif    // RichEdit
  343.