Leaked source code of windows server 2003
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.

154 lines
5.0 KiB

  1. #ifndef LSCFMTFL_DEFINED
  2. #define LSCFMTFL_DEFINED
  3. #include "port.h"
  4. #define TurnOnAllSimpleText(plsc) \
  5. (plsc)->plslineCur->fAllSimpleText = fTrue;
  6. #define TurnOffAllSimpleText(plsc) \
  7. (plsc)->plslineCur->fAllSimpleText = fFalse;
  8. #define FAllSimpleText(plsc) \
  9. (plsc)->plslineCur->fAllSimpleText
  10. //---------------------------------------------------------------
  11. #define TurnOnLineCompressed(plsc) \
  12. (plsc)->lsadjustcontext.fLineCompressed = fTrue;
  13. #define TurnOffLineCompressed(plsc) \
  14. (plsc)->lsadjustcontext.fLineCompressed = fFalse;
  15. #define FLineCompressed(plsc) \
  16. (plsc)->lsadjustcontext.fLineCompressed
  17. #define SetLineCompressed(plsc,f) \
  18. (plsc)->lsadjustcontext.fLineCompressed = (f);
  19. //---------------------------------------------------------------
  20. #define FLineContainsAutoNumber(plsc) \
  21. (plsc)->lsadjustcontext.fLineContainsAutoNumber
  22. #define SetLineLineContainsAutoNumber(plsc,f) \
  23. (plsc)->lsadjustcontext.fLineContainsAutoNumber = (f);
  24. //---------------------------------------------------------------
  25. #define FUnderlineTrailSpacesRM(plsc) \
  26. (plsc)->lsadjustcontext.fUnderlineTrailSpacesRM
  27. #define SetUnderlineTrailSpacesRM(plsc,f) \
  28. (plsc)->lsadjustcontext.fUnderlineTrailSpacesRM = (f);
  29. //---------------------------------------------------------------
  30. #define FForgetLastTabAlignment(plsc) \
  31. (plsc)->lsadjustcontext.ForgetLastTabAlignment
  32. #define SetForgetLastTabAlignment(plsc,f) \
  33. (plsc)->lsadjustcontext.fForgetLastTabAlignment = (f);
  34. //---------------------------------------------------------------
  35. #define TurnOnNonRealDnodeEncounted(plsc) \
  36. (plsc)->plslineCur->fNonRealDnodeEncounted = fTrue;
  37. #define TurnOffNonRealDnodeEncounted(plsc) \
  38. (plsc)->plslineCur->fNonRealDnodeEncounted = fFalse;
  39. #define FNonRealDnodeEncounted(plsc) \
  40. (plsc)->plslineCur->fNonRealDnodeEncounted
  41. //---------------------------------------------------------------
  42. #define TurnOnNonZeroDvpPosEncounted(plsc) \
  43. (plsc)->plslineCur->fNonZeroDvpPosEncounted = fTrue;
  44. #define TurnOffNonZeroDvpPosEncounted(plsc) \
  45. (plsc)->plslineCur->fNonZeroDvpPosEncounted = fFalse;
  46. #define FNonZeroDvpPosEncounted(plsc) \
  47. (plsc)->plslineCur->fNonZeroDvpPosEncounted
  48. //---------------------------------------------------------------
  49. #define FlushAggregatedDisplayFlags(plsc) \
  50. (plsc)->plslineCur->AggregatedDisplayFlags = 0;
  51. #define AddToAggregatedDisplayFlags(plsc, plschp) \
  52. AddDisplayFlags((plsc)->plslineCur->AggregatedDisplayFlags, (plschp))
  53. #define AggregatedDisplayFlags(plsc) \
  54. (plsc)->plslineCur->AggregatedDisplayFlags
  55. //---------------------------------------------------------------
  56. #define TurnOnNominalToIdealEncounted(plsc) \
  57. (plsc)->lsadjustcontext.fNominalToIdealEncounted = fTrue;
  58. #define TurnOffNominalToIdealEncounted(plsc) \
  59. (plsc)->lsadjustcontext.fNominalToIdealEncounted = fFalse;
  60. #define FNominalToIdealEncounted(plsc) \
  61. (plsc)->lsadjustcontext.fNominalToIdealEncounted
  62. //---------------------------------------------------------------
  63. #define TurnOnForeignObjectEncounted(plsc) \
  64. (plsc)->lsadjustcontext.fForeignObjectEncounted = fTrue;
  65. #define TurnOffForeignObjectEncounted(plsc) \
  66. (plsc)->lsadjustcontext.fForeignObjectEncounted = fFalse;
  67. #define FForeignObjectEncounted(plsc) \
  68. (plsc)->lsadjustcontext.fForeignObjectEncounted
  69. //---------------------------------------------------------------
  70. #define TurnOnTabEncounted(plsc) \
  71. (plsc)->lsadjustcontext.fTabEncounted = fTrue;
  72. #define TurnOffTabEncounted(plsc) \
  73. (plsc)->lsadjustcontext.fTabEncounted = fFalse;
  74. #define FTabEncounted(plsc) \
  75. (plsc)->lsadjustcontext.fTabEncounted
  76. //---------------------------------------------------------------
  77. #define TurnOnNonLeftTabEncounted(plsc) \
  78. (plsc)->lsadjustcontext.fNonLeftTabEncounted = fTrue;
  79. #define TurnOffNonLeftTabEncounted(plsc) \
  80. (plsc)->lsadjustcontext.fNonLeftTabEncounted = fFalse;
  81. #define FNonLeftTabEncounted(plsc) \
  82. (plsc)->lsadjustcontext.fNonLeftTabEncounted
  83. //---------------------------------------------------------------
  84. #define TurnOnSubmittedSublineEncounted(plsc) \
  85. (plsc)->lsadjustcontext.fSubmittedSublineEncounted = fTrue;
  86. #define TurnOffSubmittedSublineEncounted(plsc) \
  87. (plsc)->lsadjustcontext.fSubmittedSublineEncounted = fFalse;
  88. #define FSubmittedSublineEncounted(plsc) \
  89. (plsc)->lsadjustcontext.fSubmittedSublineEncounted
  90. //---------------------------------------------------------------
  91. #define TurnOnAutodecimalTabPresent(plsc) \
  92. (plsc)->lsadjustcontext.fAutodecimalTabPresent = fTrue;
  93. #define TurnOffAutodecimalTabPresent(plsc) \
  94. (plsc)->lsadjustcontext.fAutodecimalTabPresent = fFalse;
  95. #define FAutodecimalTabPresent(plsc) \
  96. (plsc)->lsadjustcontext.fAutodecimalTabPresent
  97. //---------------------------------------------------------------
  98. #define FBorderEncounted(plsc) \
  99. (AggregatedDisplayFlags(plsc) & fPortDisplayBorder)
  100. #endif /* LSCFMTFL_DEFINED */