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.

91 lines
2.3 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. }
  52. struct CLineServices
  53. {
  54. public:
  55. LSERR WINAPI CreateLine(LSCP cp, long duaWidth,
  56. BREAKREC *pBreakRecIn, DWORD cBreakRecIn, DWORD cMaxOut,
  57. BREAKREC *pBreakRecOut, DWORD *pcBreakRecOut,
  58. LSLINFO* plsinfo, PLSLINE* pplsline)
  59. {return LsCreateLine(this, cp, duaWidth,
  60. pBreakRecIn, cBreakRecIn, cMaxOut,
  61. pBreakRecOut, pcBreakRecOut,
  62. plsinfo, pplsline);}
  63. LSERR WINAPI SetBreaking(DWORD cLsBrk, const LSBRK* rgLsBrk,
  64. DWORD cKinsokuCat, const BYTE *prgbrkpairsKinsoku)
  65. {return LsSetBreaking(this, cLsBrk, rgLsBrk,
  66. cKinsokuCat, prgbrkpairsKinsoku);}
  67. LSERR WINAPI SetDoc(BOOL fDisplay, BOOL fEqualRes, const LSDEVRES* plsdevres)
  68. {return LsSetDoc(this, fDisplay, fEqualRes, plsdevres);}
  69. LSERR WINAPI DestroyLine(PLSLINE plsline)
  70. {return LsDestroyLine(this, plsline);}
  71. LSERR WINAPI dnFinishRegular(LSDCP cp, PLSRUN plsrun, PCLSCHP pclschp, PDOBJ pdobj, PCOBJDIM pcobjdim)
  72. {return LsdnFinishRegular(this, cp, plsrun, pclschp, pdobj, pcobjdim);}
  73. LSERR WINAPI dnQueryObjDimRange(PLSDNODE plsdnode1, PLSDNODE plsdnode2, POBJDIM pobjdim)
  74. {return LsdnQueryObjDimRange(this, plsdnode1, plsdnode2, pobjdim);}
  75. LSERR WINAPI dnSetRigidDup(PLSDNODE plsdnode, LONG dup)
  76. {return LsdnSetRigidDup(this, plsdnode, dup);}
  77. };
  78. #endif