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.

93 lines
2.4 KiB

  1. /*
  2. * _LS.H
  3. *
  4. * Purpose:
  5. * Line Services wrapper object class used to connect RichEdit with
  6. * Line Services.
  7. *
  8. * Author:
  9. * Murray Sargent
  10. *
  11. * Copyright (c) 1997-1998, Microsoft Corporation. All rights reserved.
  12. */
  13. #ifndef _LS_H
  14. #define _LS_H
  15. extern "C" {
  16. #define ols COls
  17. #define lsrun CLsrun
  18. #define lscontext CLineServices
  19. #include "lscbk.h"
  20. #include "lsdnfin.h"
  21. #include "lsdnset.h"
  22. #include "lstxtcfg.h"
  23. #include "lsimeth.h"
  24. #include "plsline.h"
  25. #include "lslinfo.h"
  26. #include "lschp.h"
  27. #include "lspap.h"
  28. #include "plspap.h"
  29. #include "lstxm.h"
  30. #include "lsdevres.h"
  31. #include "lscontxt.h"
  32. #include "lscrline.h"
  33. #include "lsqline.h"
  34. #include "lssetdoc.h"
  35. #include "lsdsply.h"
  36. #include "heights.h"
  37. #include "lsstinfo.H"
  38. #include "lsulinfo.H"
  39. #include "plsstinf.h"
  40. #include "plsulinf.h"
  41. #include "plstabs.h"
  42. #include "lstabs.h"
  43. #include "robj.h"
  44. #include "ruby.h"
  45. #include "tatenak.h"
  46. #include "warichu.h"
  47. #include "lsffi.h"
  48. #include "lstfset.h"
  49. #include "lsqsinfo.h"
  50. #include "lscell.h"
  51. #include "lshyph.h"
  52. #include "lskysr.h"
  53. }
  54. struct CLineServices
  55. {
  56. public:
  57. LSERR WINAPI CreateLine(LSCP cp, long duaWidth,
  58. BREAKREC *pBreakRecIn, DWORD cBreakRecIn, DWORD cMaxOut,
  59. BREAKREC *pBreakRecOut, DWORD *pcBreakRecOut,
  60. LSLINFO* plsinfo, PLSLINE* pplsline)
  61. {return LsCreateLine(this, cp, duaWidth,
  62. pBreakRecIn, cBreakRecIn, cMaxOut,
  63. pBreakRecOut, pcBreakRecOut,
  64. plsinfo, pplsline);}
  65. LSERR WINAPI SetBreaking(DWORD cLsBrk, const LSBRK* rgLsBrk,
  66. DWORD cKinsokuCat, const BYTE *prgbrkpairsKinsoku)
  67. {return LsSetBreaking(this, cLsBrk, rgLsBrk,
  68. cKinsokuCat, prgbrkpairsKinsoku);}
  69. LSERR WINAPI SetDoc(BOOL fDisplay, BOOL fEqualRes, const LSDEVRES* plsdevres)
  70. {return LsSetDoc(this, fDisplay, fEqualRes, plsdevres);}
  71. LSERR WINAPI DestroyLine(PLSLINE plsline)
  72. {return LsDestroyLine(this, plsline);}
  73. LSERR WINAPI dnFinishRegular(LSDCP cp, PLSRUN plsrun, PCLSCHP pclschp, PDOBJ pdobj, PCOBJDIM pcobjdim)
  74. {return LsdnFinishRegular(this, cp, plsrun, pclschp, pdobj, pcobjdim);}
  75. LSERR WINAPI dnQueryObjDimRange(PLSDNODE plsdnode1, PLSDNODE plsdnode2, POBJDIM pobjdim)
  76. {return LsdnQueryObjDimRange(this, plsdnode1, plsdnode2, pobjdim);}
  77. LSERR WINAPI dnSetRigidDup(PLSDNODE plsdnode, LONG dup)
  78. {return LsdnSetRigidDup(this, plsdnode, dup);}
  79. };
  80. #endif