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.

84 lines
2.9 KiB

  1. #ifndef LSTXTJST_DEFINED
  2. #define LSTXTJST_DEFINED
  3. #include "lsidefs.h"
  4. #include "plnobj.h"
  5. #include "lskjust.h"
  6. #include "plocchnk.h"
  7. #include "pposichn.h"
  8. #include "lsgrchnk.h"
  9. #include "lstflow.h"
  10. LSERR AdjustText(
  11. LSKJUST, /* IN: justification type */
  12. long, /* IN: durColumnMax (from the last
  13. tab position) */
  14. long, /* IN: durTotal (from the last tab
  15. position without trailing area) */
  16. long, /* IN: dup available */
  17. const LSGRCHNK*, /* IN: Group of chunks */
  18. PCPOSICHNK pposichnkBeforeTrailing,
  19. /* Information about last
  20. cp before trailing area */
  21. LSTFLOW, /* IN: Text flow */
  22. BOOL, /* IN: compression? */
  23. DWORD, /* IN: Number of non-text objects */
  24. BOOL, /* IN: Suppress wiggling? */
  25. BOOL, /* IN: Exact synchronization? */
  26. BOOL, /* IN: fForcedBreak? */
  27. BOOL, /* IN: Suppress trailing spaces? */
  28. long*, /* OUT: dup of text in chunk */
  29. long*, /* OUT: dup of trailing part */
  30. long*, /* OUT: additional dup of non-text */
  31. DWORD*); /* OUT: pcExtNonTextObjects */
  32. void GetTrailInfoText(
  33. PDOBJ, /* IN: pdobj */
  34. LSDCP, /* IN: dcp in dobj */
  35. DWORD*, /* OUT: number of trailing spaces */
  36. long*); /* OUT: dur of the trailing area */
  37. BOOL FSuspectDeviceDifferent(
  38. PLNOBJ); /* IN: Text plnobj
  39. */
  40. /* Returns True if: no dangerous Visi Characters, no non-req hyphens, opt. non-break, opt. break */
  41. BOOL FQuickScaling(
  42. PLNOBJ, /* IN: Text plnobj */
  43. BOOL, /* IN: fVertical */
  44. long); /* IN: durTotal */
  45. /* Returns True if: no dangerous Visi Characters, no additional allocations for DOBJ's, durTotal is
  46. less than accepatable for fast scaling
  47. */
  48. void QuickAdjustExact(
  49. PDOBJ*, /* IN: array of PDOBJs */
  50. DWORD, /* IN: number of elements in array */
  51. DWORD, /* IN: number of trailing spaces */
  52. BOOL, /* IN: fVertical */
  53. long*, /* OUT: dup of text in chunk */
  54. long*); /* OUT: dup of trailing part */
  55. LSERR CanCompressText(
  56. const LSGRCHNK*, /* IN: Group of chunks */
  57. PCPOSICHNK pposichnkBeforeTrailing,
  58. /* Information about last
  59. cp before trailing area */
  60. LSTFLOW, /* IN: Text flow */
  61. long, /* IN: dur to compress */
  62. BOOL*, /* OUT: can compress? */
  63. BOOL*, /* OUT: actual compression? */
  64. long*); /* OUT: pdurNonSufficient */
  65. LSERR DistributeInText( /* */
  66. const LSGRCHNK*, /* IN: group chunk of text */
  67. LSTFLOW, /* IN: Text flow */
  68. DWORD, /* IN: Number of non-text objects */
  69. long, /* IN: durToDistribute */
  70. long*); /*OUT: additional dur of non-text */
  71. #endif /* !LSTXTJST_DEFINED */