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.

46 lines
1.7 KiB

  1. #ifndef SOBJHELP_DEFINED
  2. #define SOBJHELP_DEFINED
  3. /*
  4. * sobjhelp.h
  5. *
  6. * This file contains interface that help simple objects (objects
  7. * which don't break internally) handle breaking and queries. All objects
  8. * that use these routines must as the first entry in their dobj
  9. * structure define an SObjCommon entry which these routines
  10. * will cast dobj's to. Current users of this interface are
  11. * HIH, Ruby and Tatenakayoko.
  12. *
  13. */
  14. typedef struct SOBJHELP
  15. {
  16. OBJDIM objdimAll; /* dimensions of object */
  17. LSDCP dcp; /* characters contained in objects */
  18. long durModAfter; /* Mod width after - need if we break to remove
  19. the character following we naturally have to
  20. remove the space modification it caused. */
  21. } SOBJHELP, *PSOBJHELP;
  22. LSERR WINAPI SobjTruncateChunk(
  23. PCLOCCHNK plocchnk, /* (IN): locchnk to truncate */
  24. PPOSICHNK posichnk); /* (OUT): truncation point */
  25. LSERR WINAPI SobjFindPrevBreakChunk(
  26. PCLOCCHNK pclocchnk, /* (IN): locchnk to break */
  27. PCPOSICHNK pcpoischnk, /* (IN): place to start looking for break */
  28. BRKCOND brkcond, /* (IN): recommmendation about the break after chunk */
  29. PBRKOUT pbrkout); /* (OUT): results of breaking */
  30. LSERR WINAPI SobjFindNextBreakChunk(
  31. PCLOCCHNK pclocchnk, /* (IN): locchnk to break */
  32. PCPOSICHNK pcpoischnk, /* (IN): place to start looking for break */
  33. BRKCOND brkcond, /* (IN): recommmendation about the break before chunk */
  34. PBRKOUT pbrkout); /* (OUT): results of breaking */
  35. LSERR WINAPI SobjForceBreakChunk(
  36. PCLOCCHNK pclocchnk, /* (IN): locchnk to break */
  37. PCPOSICHNK pcposichnk, /* (IN): place to start looking for break */
  38. PBRKOUT pbrkout); /* (OUT): results of breaking */
  39. #endif /* SOBJHELP_DEFINED */