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.

100 lines
3.5 KiB

  1. #ifndef BREAK_DEFINED
  2. #define BREAK_DEFINED
  3. #include "lsdefs.h"
  4. #include "fmtres.h"
  5. #include "objdim.h"
  6. #include "plssubl.h"
  7. #include "breakrec.h"
  8. #include "brkpos.h"
  9. #include "brkkind.h"
  10. #include "endres.h"
  11. #include "plsdnode.h"
  12. LSERR BreakGeneralCase(
  13. PLSC, /* IN: LineServices context */
  14. BOOL, /* fHardStop */
  15. DWORD, /* IN: size of the output array */
  16. BREAKREC*, /* OUT: output array of break records */
  17. DWORD*, /* OUT:actual number of records in array*/
  18. LSDCP*, /* OUT: dcpDepend */
  19. LSCP*, /* OUT: cpLim */
  20. ENDRES*, /* OUT: how line ended */
  21. BOOL*); /* OUT fSuccessful: false means insufficient fetch */
  22. LSERR BreakQuickCase(
  23. PLSC, /* IN: LineServices context */
  24. BOOL, /* fHardStop */
  25. LSDCP*, /* OUT: dcpDepend */
  26. LSCP*, /* OUT: cpLim */
  27. BOOL* , /* OUT: fSuccessful? */
  28. ENDRES*); /* OUT: how line ended */
  29. LSERR TruncateSublineCore(
  30. PLSSUBL, /* IN: subline context */
  31. long, /* IN: urColumnMax */
  32. LSCP*); /* OUT: cpTruncate */
  33. LSERR FindPrevBreakSublineCore(
  34. PLSSUBL, /* IN: subline context */
  35. BOOL, /* IN: fFirstSubline */
  36. LSCP, /* IN: truncation cp */
  37. long, /* IN: urColumnMax */
  38. BOOL*, /* OUT: fSuccessful? */
  39. LSCP*, /* OUT: cpBreak */
  40. POBJDIM, /* OUT: objdimSub up to break */
  41. BRKPOS*); /* OUT: Before/Inside/After */
  42. LSERR FindNextBreakSublineCore(
  43. PLSSUBL, /* IN: subline context */
  44. BOOL, /* IN: fFirstSubline */
  45. LSCP, /* IN: truncation cp */
  46. long, /* IN: urColumnMax */
  47. BOOL*, /* OUT: fSuccessful? */
  48. LSCP*, /* OUT: cpBreak */
  49. POBJDIM, /* OUT: objdimSub up to break */
  50. BRKPOS*); /* OUT: Before/Inside/After */
  51. LSERR ForceBreakSublineCore(
  52. PLSSUBL, /* IN: subline context */
  53. BOOL, /* IN: fFirstSubline */
  54. LSCP, /* IN: truncation cp */
  55. long, /* IN: urColumnMax */
  56. LSCP*, /* OUT: cpBreak */
  57. POBJDIM, /* OUT: objdimSub up to break */
  58. BRKPOS*); /* OUT: Before/Inside/After */
  59. LSERR SetBreakSublineCore(
  60. PLSSUBL, /* IN: subline context */
  61. BRKKIND, /* IN: Prev/Next/Force/Imposed */
  62. DWORD, /* IN: size of the output array */
  63. BREAKREC*, /* OUT: output array of break records */
  64. DWORD*); /* OUT:actual number of records in array*/
  65. LSERR WINAPI SqueezeSublineCore(
  66. PLSSUBL, /* IN: subline context */
  67. long, /* IN: durTarget */
  68. BOOL*, /* OUT: fSuccessful? */
  69. long*); /* OUT: if nof successful,
  70. extra dur */
  71. LSERR GetMinDurBreaksCore (PLSC plsc, /* IN: LineServices context */
  72. long* pdurMinInclTrail, /* OUT: min dur between breaks including trailing area */
  73. long* pdurMinExclTrail);/* OUT: min dur between breaks excluding trailing area */
  74. LSERR GetLineDurCore (PLSC plsc, /* IN: LineServices context */
  75. long* pdurInclTrail, /* OUT: dur of line incl. trailing area */
  76. long* pdurExclTrail);/* OUT: dur of line excl. trailing area */
  77. LSERR FCanBreakBeforeNextChunkCore(PLSC plsc, /* IN: LineServices context */
  78. PLSDNODE plsdn, /* IN: Last DNODE of the current chunk */
  79. BOOL* pfCanBreakBeforeNextChunk); /* OUT: Can break before next chunk ? */
  80. #endif /* BREAK_DEFINED */