home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tv20cpp.zip / tvision / tv.h < prev    next >
Text File  |  1999-05-26  |  13KB  |  704 lines

  1. /*
  2.  * tv.h
  3.  *
  4.  * Turbo Vision - Version 2.0
  5.  *
  6.  * Copyright (c) 1991, 1994 by Borland International
  7.  * All Rights Reserved.
  8.  *
  9.  
  10. DISCLAIMER AND LIMITATION OF LIABILITY: Borland does not make or give any 
  11. representation or warranty with respect to the usefulness or the efficiency 
  12. of this software, it being understood that the degree of success with which 
  13. equipment, software, modifications, and other materials can be applied to 
  14. data processing is dependent upon many factors, many of which are not under 
  15. Borland's control.  ACCORDINGLY, THIS SOFTWARE IS PROVIDED 'AS IS' WITHOUT 
  16. EXPRESS OR IMPLIED WARRANTIES, INCLUDING NO WARRANTIES OF MERCHANTABILITY, 
  17. FITNESS FOR A PARTICULAR PURPOSE, OR NONINFRINGEMENT.  THIS SOFTWARE IS 
  18. PROVIDED GRATUITOUSLY AND, ACCORDINGLY, BORLAND SHALL NOT BE LIABLE UNDER 
  19. ANY THEORY FOR ANY DAMAGES SUFFERED BY YOU OR ANY USER OF THE SOFTWARE.  
  20. BORLAND WILL NOT SUPPORT THIS SOFTWARE AND IS UNDER NO OBLIGATION TO ISSUE 
  21. UPDATES TO THIS SOFTWARE.  
  22.  
  23. WITHOUT LIMITING THE GENERALITY OF THE FOREGOING, NEITHER BORLAND NOR ITS 
  24. SUPPLIERS SHALL BE LIABLE FOR (a) INCIDENTAL, CONSEQUENTIAL, SPECIAL OR 
  25. INDIRECT DAMAGES OF ANY SORT, WHETHER ARISING IN TORT, CONTRACT OR OTHERWISE, 
  26. EVEN IF BORLAND HAS BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES, OR (b) 
  27. FOR ANY CLAIM BY ANY OTHER PARTY.  SOME STATES DO NOT ALLOW THE EXCLUSION OR 
  28. LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS LIMITATION AND 
  29. EXCLUSION MAY NOT APPLY TO YOU.  Use, duplication or disclosure by the 
  30. Government is subject to restrictions set forth in subparagraphs (a) through 
  31. (d) of the Commercial Computer-Restricted Rights clause at FAR 52.227-19 when 
  32. applicable, or in subparagraph (c) (1) (ii) of the Rights in Technical Data 
  33. and Computer Software clause at DFARS 252.227-7013, and in similar clauses in 
  34. the NASA AR Supplement.  Contractor/ manufacturer is Borland International, 
  35. Inc., 100 Borland Way, Scotts Valley, CA 95066.
  36.  
  37.  *
  38.  * Modified by Sergio Sigala <ssigala@globalnet.it>
  39.  */
  40.  
  41. #define _TV_VERSION 0x0200
  42. #define PATH_MAX    260
  43.  
  44. #define Uses_EventCodes
  45. #define Uses_ViewCommands
  46. #define Uses_ipstream
  47. #define Uses_opstream
  48. #define __INC_STDDLG_H
  49.  
  50. #if defined( Uses_TApplication )
  51. #define Uses_TProgram
  52. #define Uses_TScreen
  53. #define Uses_TEventQueue
  54. #define __INC_APP_H
  55. #endif
  56.  
  57. #if defined( Uses_TProgram )
  58. #define Uses_TEvent
  59. #define Uses_TGroup
  60. #define __INC_APP_H
  61. #endif
  62.  
  63. #if defined( Uses_TDeskTop )
  64. #define Uses_TGroup
  65. #define __INC_APP_H
  66. #endif
  67.  
  68. #if defined( Uses_TBackground )
  69. #define Uses_TView
  70. #define __INC_APP_H
  71. #endif
  72.  
  73. #if defined( Uses_TReplaceDialogRec )
  74. #define __INC_EDITORS_H
  75. #endif
  76.  
  77. #if defined( Uses_TFindDialogRec )
  78. #define __INC_EDITORS_H
  79. #endif
  80.  
  81. #if defined( Uses_TEditWindow )
  82. #define Uses_TWindow
  83. #define __INC_EDITORS_H
  84. #endif
  85.  
  86. #if defined( Uses_TFileEditor )
  87. #define Uses_TEditor
  88. #define __INC_EDITORS_H
  89. #endif
  90.  
  91. #if defined( Uses_TMemo )
  92. #define Uses_TEditor
  93. #define __INC_EDITORS_H
  94. #endif
  95.  
  96. #if defined( Uses_TEditor )
  97. #define Uses_TView
  98. #define Uses_TPoint
  99. #define __INC_EDITORS_H
  100. #endif
  101.  
  102. #if defined( Uses_TIndicator )
  103. #define Uses_TView
  104. #define Uses_TPoint
  105. #define __INC_EDITORS_H
  106. #endif
  107.  
  108. #if defined( Uses_TTerminal )
  109. #define Uses_TTextDevice
  110. #define __INC_TEXTVIEW_H
  111. #endif
  112.  
  113. #if defined( Uses_TOutline )
  114. #define Uses_TOutlineViewer
  115. #endif
  116.  
  117. #if defined( Uses_TOutlineViewer )
  118. #define Uses_TScroller
  119. #define Uses_TScrollBar
  120. #define __INC_OUTLINE_H
  121. #endif
  122.  
  123. #if defined( Uses_TTextDevice )
  124. #define Uses_TScroller
  125. #define __INC_TEXTVIEW_H
  126. #endif
  127.  
  128. #if defined( Uses_TStatusLine )
  129. #define Uses_TView
  130. #define __INC_MENUS_H
  131. #endif
  132.  
  133. #if defined( Uses_TStatusDef )
  134. #define __INC_MENUS_H
  135. #endif
  136.  
  137. #if defined( Uses_TStatusItem )
  138. #define __INC_MENUS_H
  139. #endif
  140.  
  141. #if defined( Uses_TMenuPopup )
  142. #define Uses_TMenuBox
  143. #define __INC_MENUS_H
  144. #endif
  145.  
  146. #if defined( Uses_TMenuBox )
  147. #define Uses_TMenuView
  148. #define __INC_MENUS_H
  149. #endif
  150.  
  151. #if defined( Uses_TMenuBar )
  152. #define Uses_TMenuView
  153. #define __INC_MENUS_H
  154. #endif
  155.  
  156. #if defined( Uses_TMenuView )
  157. #define Uses_TView
  158. #define __INC_MENUS_H
  159. #endif
  160.  
  161. #if defined( Uses_TMenu )
  162. #define __INC_MENUS_H
  163. #endif
  164.  
  165. #if defined( Uses_TSubMenu )
  166. #define Uses_TMenuItem
  167. #define __INC_MENUS_H
  168. #endif
  169.  
  170. #if defined( Uses_TMenuItem )
  171. #define __INC_MENUS_H
  172. #endif
  173.  
  174. #if defined( Uses_TColorDialog )
  175. #define Uses_TColorGroup
  176. #define Uses_TDialog
  177. #define __INC_COLORSEL_H
  178. #endif
  179.  
  180. #if defined( Uses_TColorItemList )
  181. #define Uses_TListViewer
  182. #define __INC_COLORSEL_H
  183. #endif
  184.  
  185. #if defined( Uses_TColorGroupList )
  186. #define Uses_TListViewer
  187. #define __INC_COLORSEL_H
  188. #endif
  189.  
  190. #if defined( Uses_TColorDisplay )
  191. #define Uses_TView
  192. #define __INC_COLORSEL_H
  193. #endif
  194.  
  195. #if defined( Uses_TMonoSelector )
  196. #define __INC_COLORSEL_H
  197. #endif
  198.  
  199. #if defined( Uses_TMonoSelector )
  200. #define Uses_TCluster
  201. #define __INC_COLORSEL_H
  202. #endif
  203.  
  204. #if defined( Uses_TColorSelector )
  205. #define Uses_TView
  206. #define __INC_COLORSEL_H
  207. #endif
  208.  
  209. #if defined( Uses_TColorGroup )
  210. #define __INC_COLORSEL_H
  211. #endif
  212.  
  213. #if defined( Uses_TColorItem )
  214. #define __INC_COLORSEL_H
  215. #endif
  216.  
  217. #if defined( Uses_TChDirDialog )
  218. #define Uses_TDialog
  219. #define __INC_STDDLG_H
  220. #endif
  221.  
  222. #if defined( Uses_TDirListBox )
  223. #define Uses_TListBox
  224. #define __INC_STDDLG_H
  225. #endif
  226.  
  227. #if defined( Uses_TDirCollection )
  228. #define Uses_TCollection
  229. #define Uses_TDirEntry
  230. #define __INC_STDDLG_H
  231. #endif
  232.  
  233. #if defined ( Uses_TRangeValidator )
  234. #define Uses_TFilterValidator
  235. #endif
  236.  
  237. #if defined ( Uses_TFilterValidator )
  238. #define Uses_TValidator
  239. #endif
  240.  
  241. #if defined ( Uses_TStringLookupValidator )
  242. #define Uses_TLookupValidator
  243. #define Uses_TStringCollection
  244. #endif
  245.  
  246. #if defined ( Uses_TLookupValidator )
  247. #define Uses_TValidator
  248. #endif
  249.  
  250. #if defined ( Uses_TPXPictureValidator )
  251. #define Uses_TValidator
  252. #endif
  253.  
  254. #if defined ( Uses_TValidator )
  255. #define Uses_TObject
  256. #define Uses_TStreamable
  257. #define __INC_VALIDATOR_H
  258. #endif
  259.  
  260. #if defined( Uses_TDirEntry )
  261. #define __INC_STDDLG_H
  262. #endif
  263.  
  264. #if defined( Uses_TFileDialog )
  265. #define Uses_TDialog
  266. #define __INC_STDDLG_H
  267. #endif
  268.  
  269. #if defined( Uses_TFileInfoPane )
  270. #define Uses_TView
  271. #define Uses_TSearchRec
  272. #define __INC_STDDLG_H
  273. #endif
  274.  
  275. #if defined( Uses_TFileList )
  276. #define Uses_TSortedListBox
  277. #define Uses_TFileCollection
  278. #define Uses_TSearchRec
  279. #define __INC_STDDLG_H
  280. #endif
  281.  
  282. #if defined( Uses_TSortedListBox )
  283. #define Uses_TListBox
  284. #define __INC_STDDLG_H
  285. #endif
  286.  
  287. #if defined( Uses_TFileCollection )
  288. #define Uses_TSortedCollection
  289. #define Uses_TSearchRec
  290. #define __INC_STDDLG_H
  291. #endif
  292.  
  293. #if defined( Uses_TFileInputLine )
  294. #define Uses_TInputLine
  295. #define __INC_STDDLG_H
  296. #endif
  297.  
  298. #if defined( Uses_TSearchRec )
  299. #define __INC_STDDLG_H
  300. #endif
  301.  
  302. #if defined( Uses_THistory )
  303. #define Uses_TView
  304. #define __INC_DIALOGS_H
  305. #endif
  306.  
  307. #if defined( Uses_THistoryWindow )
  308. #define Uses_TWindow
  309. #define __INC_DIALOGS_H
  310. #endif
  311.  
  312. #if defined( Uses_THistoryViewer )
  313. #define Uses_TListViewer
  314. #define __INC_DIALOGS_H
  315. #endif
  316.  
  317. #if defined( Uses_TLabel )
  318. #define Uses_TStaticText
  319. #define __INC_DIALOGS_H
  320. #endif
  321.  
  322. #if defined( Uses_TParamText )
  323. #define Uses_TStaticText
  324. #define __INC_DIALOGS_H
  325. #endif
  326.  
  327. #if defined( Uses_TStaticText )
  328. #define Uses_TView
  329. #define __INC_DIALOGS_H
  330. #endif
  331.  
  332. #if defined( Uses_TListBox )
  333. #define Uses_TListViewer
  334. #define __INC_DIALOGS_H
  335. #endif
  336.  
  337. #if defined( Uses_TCheckBoxes )
  338. #define Uses_TCluster
  339. #define __INC_DIALOGS_H
  340. #endif
  341.  
  342. #if defined( Uses_TMultiCheckBoxes )
  343. #define Uses_TCluster
  344. #define __INC_DIALOGS_H
  345. #endif
  346.  
  347. #if defined( Uses_TRadioButtons )
  348. #define Uses_TCluster
  349. #define __INC_DIALOGS_H
  350. #endif
  351.  
  352. #if defined( Uses_TCluster )
  353. #define Uses_TView
  354. #define __INC_DIALOGS_H
  355. #endif
  356.  
  357. #if defined( Uses_TSItem )
  358. #define __INC_DIALOGS_H
  359. #endif
  360.  
  361. #if defined( Uses_TButton )
  362. #define Uses_TView
  363. #define __INC_DIALOGS_H
  364. #endif
  365.  
  366. #if defined( Uses_TInputLine )
  367. #define Uses_TView
  368. #define Uses_TValidator
  369. #define __INC_DIALOGS_H
  370. #endif
  371.  
  372. #if defined( Uses_TDialog )
  373. #define Uses_TWindow
  374. #define __INC_DIALOGS_H
  375. #endif
  376.  
  377. #if defined( Uses_TVMemMgr )
  378. #define __INC_BUFFERS_H
  379. #endif
  380.  
  381. #if defined( Uses_TWindow )
  382. #define Uses_TGroup
  383. #define __INC_VIEWS_H
  384. #endif
  385.  
  386. #if defined( Uses_TGroup )
  387. #define Uses_TView
  388. #define Uses_TRect
  389. #define __INC_VIEWS_H
  390. #endif
  391.  
  392. #if defined( Uses_TListViewer )
  393. #define Uses_TView
  394. #define __INC_VIEWS_H
  395. #endif
  396.  
  397. #if defined( Uses_TScroller )
  398. #define Uses_TView
  399. #define Uses_TPoint
  400. #define __INC_VIEWS_H
  401. #endif
  402.  
  403. #if defined( Uses_TScrollBar )
  404. #define Uses_TView
  405. #define __INC_VIEWS_H
  406. #endif
  407.  
  408. #if defined( Uses_TFrame )
  409. #define Uses_TView
  410. #define __INC_VIEWS_H
  411. #endif
  412.  
  413. #if defined( Uses_TView )
  414. #define Uses_TObject
  415. #define Uses_TStreamable
  416. #define Uses_TCommandSet
  417. #define Uses_TPoint
  418. #define Uses_TDrawBuffer
  419. #define Uses_TPalette
  420. #define __INC_VIEWS_H
  421. #endif
  422.  
  423. #if defined( Uses_TPalette )
  424. #define __INC_VIEWS_H
  425. #endif
  426.  
  427. #if defined( Uses_TCommandSet )
  428. #define __INC_VIEWS_H
  429. #endif
  430.  
  431. #if defined( Uses_ViewCommands )
  432. #define __INC_VIEWS_H
  433. #endif
  434.  
  435. #if defined( Uses_TStrListMaker )
  436. #define Uses_TObject
  437. #define Uses_TStreamable
  438. #define Uses_TStrIndexRec
  439. #define __INC_RESOURCE_H
  440. #endif
  441.  
  442. #if defined( Uses_TStringList )
  443. #define Uses_TObject
  444. #define Uses_TStreamable
  445. #define __INC_RESOURCE_H
  446. #endif
  447.  
  448. #if defined( Uses_TStrIndexRec )
  449. #define __INC_RESOURCE_H
  450. #endif
  451.  
  452. #if defined( Uses_TResourceFile )
  453. #define Uses_TObject
  454. #define __INC_RESOURCE_H
  455. #endif
  456.  
  457. #if defined( Uses_TResourceItem )
  458. #define __INC_RESOURCE_H
  459. #endif
  460.  
  461. #if defined( Uses_TResourceCollection )
  462. #define Uses_TStringCollection
  463. #define __INC_RESOURCE_H
  464. #endif
  465.  
  466. #if defined( Uses_TStringCollection )
  467. #define Uses_TSortedCollection
  468. #define __INC_RESOURCE_H
  469. #endif
  470.  
  471. #if defined( Uses_MsgBox )
  472. #define __INC_MSGBOX_H
  473. #endif
  474.  
  475. #if defined( Uses_TSystemError )
  476. #define __INC_SYSTEM_H
  477. #endif
  478.  
  479. #if defined( Uses_TScreen )
  480. #define __INC_SYSTEM_H
  481. #endif
  482.  
  483. #if defined( Uses_TEventQueue )
  484. #define Uses_TEvent
  485. #define __INC_SYSTEM_H
  486. #endif
  487.  
  488. #if defined( Uses_TEvent )
  489. #define Uses_TPoint
  490. #define __INC_SYSTEM_H
  491. #endif
  492.  
  493. #if defined( Uses_THardwareInfo )
  494. #define __INC_HARDWARE_H
  495. #endif
  496.  
  497. #if defined( Uses_EventCodes )
  498. #define __INC_SYSTEM_H
  499. #endif
  500.  
  501. #if defined( Uses_TSortedCollection )
  502. #define Uses_TNSSortedCollection
  503. #define Uses_TCollection
  504. #define __INC_OBJECTS_H
  505. #endif
  506.  
  507. #if defined( Uses_TCollection )
  508. #define Uses_TNSCollection
  509. #define Uses_TStreamable
  510. #define __INC_OBJECTS_H
  511. #endif
  512.  
  513. #if defined( Uses_TRect )
  514. #define Uses_TPoint
  515. #define Uses_ipstream
  516. #define Uses_opstream
  517. #define __INC_OBJECTS_H
  518. #endif
  519.  
  520. #if defined( Uses_TPoint )
  521. #define __INC_OBJECTS_H
  522. #endif
  523.  
  524. #if defined( Uses_TDrawBuffer )
  525. #define __INC_DRAWBUF_H
  526. #endif
  527.  
  528. #if defined( Uses_fpstream )
  529. #define Uses_fpbase
  530. #define Uses_iopstream
  531. #define __INC_TOBJSTRM_H
  532. #endif
  533.  
  534. #if defined( Uses_ofpstream )
  535. #define Uses_fpbase
  536. #define Uses_opstream
  537. #define __INC_TOBJSTRM_H
  538. #endif
  539.  
  540. #if defined( Uses_ifpstream )
  541. #define Uses_fpbase
  542. #define Uses_ipstream
  543. #define __INC_TOBJSTRM_H
  544. #endif
  545.  
  546. #if defined( Uses_fpbase )
  547. #define Uses_pstream
  548. #define __INC_TOBJSTRM_H
  549. #endif
  550.  
  551. #if defined( Uses_iopstream )
  552. #define Uses_ipstream
  553. #define Uses_opstream
  554. #define __INC_TOBJSTRM_H
  555. #endif
  556.  
  557. #if defined( Uses_opstream )
  558. #define Uses_pstream
  559. #define Uses_TPWrittenObjects
  560. #define __INC_TOBJSTRM_H
  561. #endif
  562.  
  563. #if defined( Uses_ipstream )
  564. #define Uses_pstream
  565. #define Uses_TPReadObjects
  566. #define __INC_TOBJSTRM_H
  567. #endif
  568.  
  569. #if defined( Uses_pstream )
  570. #define __INC_TOBJSTRM_H
  571. #endif
  572.  
  573. #if defined( Uses_TPReadObjects )
  574. #define Uses_TNSCollection
  575. #define __INC_TOBJSTRM_H
  576. #endif
  577.  
  578. #if defined( Uses_TPWrittenObjects )
  579. #define Uses_TNSSortedCollection
  580. #define __INC_TOBJSTRM_H
  581. #endif
  582.  
  583. #if defined( Uses_TStreamableTypes )
  584. #define Uses_TNSSortedCollection
  585. #define __INC_TOBJSTRM_H
  586. #endif
  587.  
  588. #if defined( Uses_TStreamableClass )
  589. #define __INC_TOBJSTRM_H
  590. #endif
  591.  
  592. #if defined( Uses_TStreamable )
  593. #define __INC_TOBJSTRM_H
  594. #endif
  595.  
  596. #if defined( Uses_TNSSortedCollection )
  597. #define Uses_TNSCollection
  598. #define __INC_TVOBJS_H
  599. #endif
  600.  
  601. #if defined( Uses_TNSCollection )
  602. #define Uses_TObject
  603. #define __INC_TVOBJS_H
  604. #endif
  605.  
  606. #if defined( Uses_TObject )
  607. #define __INC_TVOBJS_H
  608. #endif
  609.  
  610. #if defined( Uses_TKeys )
  611. #define __INC_TKEYS_H
  612. #endif
  613.  
  614. #include <tvision/tvconfig.h>
  615. #include <tvision/ttypes.h>
  616.  
  617. //#if defined( __INC_HARDWARE_H )
  618. //#include <tvision/hardware.h>
  619. //#endif
  620.  
  621. #if defined( __INC_TKEYS_H )
  622. #include <tvision/tkeys.h>
  623. #endif
  624.  
  625. #include <tvision/util.h>
  626.  
  627. #if defined( __INC_TVOBJS_H )
  628. #include <tvision/tvobjs.h>
  629. #endif
  630.  
  631. #if defined( __INC_TOBJSTRM_H )
  632. #include <tvision/tobjstrm.h>
  633. #endif
  634.  
  635. #if defined( __INC_DRAWBUF_H )
  636. #include <tvision/drawbuf.h>
  637. #endif
  638.  
  639. #if defined( __INC_OBJECTS_H )
  640. #include <tvision/objects.h>
  641. #endif
  642.  
  643. #if defined( __INC_SYSTEM_H )
  644. #include <tvision/system.h>
  645. #endif
  646.  
  647. #if defined( __INC_MSGBOX_H )
  648. #include <tvision/msgbox.h>
  649. #endif
  650.  
  651. #if defined( __INC_RESOURCE_H )
  652. #include <tvision/resource.h>
  653. #endif
  654.  
  655. #if defined( __INC_VIEWS_H )
  656. #include <tvision/views.h>
  657. #endif
  658.  
  659. #if defined( __INC_BUFFERS_H )
  660. #include <tvision/buffers.h>
  661. #endif
  662.  
  663. #if defined( __INC_DIALOGS_H )
  664. #include <tvision/dialogs.h>
  665. #endif
  666.  
  667. #if defined( __INC_VALIDATOR_H )
  668. #include <tvision/validate.h>
  669. #endif
  670.  
  671. #if defined( __INC_STDDLG_H )
  672. #include <tvision/stddlg.h>
  673. #endif
  674.  
  675. #if defined( __INC_COLORSEL_H )
  676. #include <tvision/colorsel.h>
  677. #endif
  678.  
  679. #if defined( __INC_MENUS_H )
  680. #include <tvision/menus.h>
  681. #endif
  682.  
  683. #if defined( __INC_TEXTVIEW_H )
  684. #include <tvision/textview.h>
  685. #endif
  686.  
  687. #if defined( __INC_EDITORS_H )
  688. #include <tvision/editors.h>
  689. #endif
  690.  
  691. #if defined( __INC_OUTLINE_H )
  692. #include <tvision/outline.h>
  693. #endif
  694.  
  695. #if defined( __INC_APP_H )
  696. #include <tvision/app.h>
  697. #endif
  698.  
  699. #define INCL_WINCOUNTRY
  700. #include <os2.h>
  701. extern HAB hab;
  702. extern ULONG Codepage;
  703. extern ULONG Country;
  704.