Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

148 lines
4.4 KiB

  1. /************************************************************/
  2. /* Windows Write, Copyright 1985-1992 Microsoft Corporation */
  3. /************************************************************/
  4. #define cchInsBlock 32 /* Length of quick insert block */
  5. struct SEL
  6. {
  7. typeCP cpFirst;
  8. typeCP cpLim;
  9. unsigned fForward : 1; /* Only needs 1 bit */
  10. unsigned fEndOfLine : 1;
  11. };
  12. #define cwSEL (sizeof (struct SEL) / sizeof (int))
  13. #define cbSEL (sizeof (struct SEL))
  14. #define styNil 0
  15. #define styChar 1
  16. #define styWord 2
  17. #define stySent 3
  18. #define styPara 4
  19. #define styLine 5
  20. #define styDoc 6
  21. #ifndef NOUAC
  22. /* UNDO Action Codes: */
  23. #define uacNil 0 /* Nothing to UNDO */
  24. #define uacInsert 1 /* Insert text <--> UInsert */
  25. #define uacReplNS 2 /* Replace text, no scrap <--> UReplNS */
  26. #define uacDelNS 3 /* Delete text, no scrap <--> UDelNS */
  27. #define uacMove 4 /* Move text <--> Move */
  28. #define uacDelScrap 5 /* Delete to scrap <--> UDelScrap */
  29. #define uacUDelScrap 6 /* Undo of Delete <--> DelScrap */
  30. #define uacReplScrap 7 /* Replace with del to scrap
  31. <--> UReplScrap */
  32. #define uacUReplScrap 8 /* Undo of ReplScrap <--> ReplScrap */
  33. #define uacDelBuf 9 /* Delete to buffer <--> UDelBuf */
  34. #define uacUDelBuf 10 /* Undo of DelBuf <--> DelBuf */
  35. #define uacReplBuf 11 /* Replace with del to buf <--> UReplBuf */
  36. #define uacUReplBuf 12 /* Undo of ReplBuf <--> ReplBuf */
  37. #define uacCopyBuf 13 /* Copy to buf <--> UCopyBuf */
  38. #define uacUInsert 14 /* undo of Insert <--> Insert */
  39. #define uacUDelNS 15 /* undo of DelNS <--> DelNS */
  40. #define uacUReplNS 16 /* undo of ReplNS <--> ReplNS */
  41. #define uacUCopyBuf 17 /* Undo of CopyBuf <--> CopyBuf */
  42. #define uacReplGlobal 18
  43. #define uacFormatCStyle 19
  44. #define uacChLook 20
  45. #define uacChLookSect 21
  46. #define uacFormatChar 22
  47. #define uacFormatPara 23
  48. #define uacGalFormatChar 24
  49. #define uacGalFormatPara 25
  50. #define uacFormatSection 26
  51. #define uacGalFormatSection 27
  52. #define uacFormatPStyle 28
  53. #define uacFormatSStyle 29
  54. #define uacFormatRHText 30
  55. #define uacLookCharMouse 31
  56. #define uacLookParaMouse 32
  57. #define uacClearAllTab 33
  58. #define uacFormatTabs 34
  59. #define uacClearTab 35
  60. #define uacOvertype 36
  61. #define uacPictSel 37
  62. #define uacInsertFtn 38
  63. #define uacReplPic 39
  64. #define uacUReplPic 40
  65. #ifndef CASHMERE
  66. #define uacRulerChange 41
  67. #define uacRepaginate 42
  68. #endif /* not CASHMERE */
  69. #endif /* NOUAC */
  70. #if defined(OLE)
  71. #define uacObjUpdate 43
  72. #define uacUObjUpdate 44
  73. #endif
  74. /* Units */
  75. #define utInch 0
  76. #define utCm 1
  77. #define utP10 2
  78. #define utP12 3
  79. #define utPoint 4
  80. #define utLine 5
  81. #define utMax 6
  82. #define czaInch 1440
  83. #define czaP10 144
  84. #define czaPoint 20
  85. #define czaCm 567
  86. #define czaP12 120
  87. #define czaLine 240
  88. #define ZaFromMm(mm) (unsigned)MultDiv(mm, 14400, 254);
  89. #ifdef KOREA /* Dum Write doesn't accept it's default value!! 90.12.29 */
  90. #define FUserZaLessThanZa(zaUser, za) ((zaUser) + (7 * czaInch) / 1000 < (za))
  91. #else
  92. #define FUserZaLessThanZa(zaUser, za) ((zaUser) + (5 * czaInch) / 1000 < (za))
  93. #endif
  94. /* Modes -- see menu.mod */
  95. #define ifldEdit 0
  96. #define ifldGallery 1
  97. #define ecrSuccess 1
  98. #define ecrCancelled 2
  99. #define ecrMouseKilled 4
  100. typeCP CpFirstSty(), CpLastStyChar();
  101. #define psmNil 0
  102. #define psmCopy 1
  103. #define psmMove 2
  104. #define psmLookChar 3
  105. #define psmLookPara 4
  106. #define psmLooks 3
  107. #define crcAbort 0
  108. #define crcNo 1
  109. #define crcYes 2
  110. /* FWrite checks */
  111. #define fwcNil 0
  112. #define fwcInsert 1
  113. #define fwcDelete 2
  114. #define fwcReplace 3
  115. #define fwcEMarkOK 4 /* Additive -- must be a bit */
  116. /* Dialog item parsing variants */
  117. #define wNormal 0x1
  118. #define wBlank 0x2
  119. #ifdef AUTO_SPACING
  120. #define wAuto 0x4
  121. #endif /* AUTO_SPACING */
  122. #define wDouble 0x8
  123. /* wSpaces means treat string of all spaces as a null string */
  124. #define wSpaces 0x10
  125. /* page bound */
  126. #define pgnMin 1
  127. #define pgnMax 32767
  128.