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.

66 lines
1.5 KiB

  1. #ifndef TXTOBJ_DEFINED
  2. #define TXTOBJ_DEFINED
  3. #include "lsidefs.h"
  4. #include "plsdnode.h"
  5. #include "plnobj.h"
  6. #define txtkindRegular 0
  7. #define txtkindHardHyphen 1
  8. #define txtkindTab 2
  9. #define txtkindNonReqHyphen 3
  10. #define txtkindYsrChar 4
  11. #define txtkindNonBreakSpace 5 /* Used in decimal tab logic */
  12. #define txtkindNonBreakHyphen 6
  13. #define txtkindOptNonBreak 7
  14. #define txtkindSpecSpace 8
  15. #define txtkindOptBreak 9
  16. #define txtkindEOL 10
  17. #define txtfMonospaced 1
  18. #define txtfVisi 2
  19. #define txtfModWidthClassed 4
  20. #define txtfGlyphBased 8
  21. #define txtfSkipAtNti 16
  22. #define txtfSkipAtWysi 32
  23. #define txtfFirstShaping 64
  24. #define txtfLastShaping 128
  25. struct txtobj
  26. {
  27. PLSDNODE plsdnUpNode; /* upper DNode */
  28. PLNOBJ plnobj;
  29. long iwchFirst; /* index of the first char of dobj in rgwch */
  30. long iwchLim; /* index of the lim char of dobj in rgwch */
  31. WORD txtkind;
  32. WORD txtf;
  33. union
  34. {
  35. struct
  36. {
  37. long iwSpacesFirst; /* index of the first Space-index in wSpaces*/
  38. long iwSpacesLim; /* index of the lim Space-index in wSpaces */
  39. } reg;
  40. struct
  41. {
  42. WCHAR wch; /* char code for Tab or Visi Tab */
  43. WCHAR wchTabLeader; /* leaders info */
  44. } tab; /* use this for the txtkindTab */
  45. } u;
  46. long igindFirst; /* index of the first glyph of dobj in rgwch*/
  47. long igindLim; /* index of the lim glyph of dobj in rgwch */
  48. long dupBefore;
  49. };
  50. typedef struct txtobj TXTOBJ;
  51. typedef TXTOBJ* PTXTOBJ;
  52. #endif /* !TXTOBJ_DEFINED */