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.

52 lines
1.4 KiB

  1. #ifndef NTIMAN_DEFINED
  2. #define NTIMAN_DEFINED
  3. #include "lsidefs.h"
  4. #include "tnti.h"
  5. #include "plsdnode.h"
  6. #include "plschcon.h"
  7. #include "plsiocon.h"
  8. #include "lskjust.h"
  9. #include "port.h"
  10. /* MACROS ---------------------------------------------------------------------------*/
  11. #define FApplyNominalToIdeal(plschp)\
  12. (GetNominalToIdealFlagsFromLschp(plschp) != 0)
  13. #define GetNominalToIdealFlags(plschnkcontext) \
  14. (plschnkcontext)->grpfTnti
  15. #define FNominalToIdealBecauseOfParagraphProperties(grpf, lskjust) \
  16. ((grpf) & fFmiPunctStartLine) || \
  17. ((grpf) & fFmiHangingPunct) || \
  18. ((lskjust) == lskjSnapGrid)
  19. /* ROUTINES ---------------------------------------------------------------*/
  20. LSERR ApplyNominalToIdeal(
  21. PLSCHUNKCONTEXT, /* LS chunk context */
  22. PLSIOBJCONTEXT, /* installed objects */
  23. DWORD , /* grpf */
  24. LSKJUST, /* kind of justification */
  25. BOOL, /* fIsSubLineMain */
  26. BOOL, /* fLineContainsAutoNumber*/
  27. PLSDNODE); /* last dnode of text */
  28. LSERR ApplyModWidthToPrecedingChar(
  29. PLSCHUNKCONTEXT, /* LS chunk context */
  30. PLSIOBJCONTEXT, /* installed objects */
  31. DWORD , /* grpf */
  32. LSKJUST, /* kind of justification */
  33. PLSDNODE); /* non-text dnode after text */
  34. LSERR CutPossibleContextViolation(
  35. PLSCHUNKCONTEXT, /* LS chunk context */
  36. PLSDNODE ); /* last dnode of text */
  37. #endif /* NTIMAN_DEFINED */