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.

96 lines
2.0 KiB

  1. /* Vertical ruby interfaces */
  2. /* Contact: antons */
  3. #ifndef VRUBY_DEFINED
  4. #define VRUBY_DEFINED
  5. #include "lsimeth.h"
  6. /* Only valid version number for Ruby initialization */
  7. #define VRUBY_VERSION 0x300
  8. /* Used for intialization to tell Ruby object which line comes first */
  9. typedef enum vrubysyntax { VRubyPronunciationLineFirst, VRubyMainLineFirst } VRUBYSYNTAX;
  10. /*
  11. *
  12. * Vertical Ruby Object callbacks to client application
  13. *
  14. */
  15. typedef struct VRUBYCBK
  16. {
  17. LSERR (WINAPI *pfnFetchVRubyPosition)
  18. (
  19. /* in */
  20. POLS pols,
  21. LSCP cp,
  22. LSTFLOW lstflow,
  23. PLSRUN plsrun,
  24. PCHEIGHTS pcheightsRefMain,
  25. PCHEIGHTS pcheightsPresMain,
  26. long dvrRuby,
  27. /* out */
  28. PHEIGHTS pheightsPresRubyT,
  29. PHEIGHTS pheightsRefRubyT,
  30. LONG* pdurAdjust
  31. );
  32. LSERR (WINAPI* pfnVRubyEnum)
  33. (
  34. POLS pols,
  35. PLSRUN plsrun,
  36. PCLSCHP plschp,
  37. LSCP cp,
  38. LSDCP dcp,
  39. LSTFLOW lstflow,
  40. BOOL fReverse,
  41. BOOL fGeometryNeeded,
  42. const POINT* pt,
  43. PCHEIGHTS pcheights,
  44. long dupRun,
  45. const POINT *ptMain,
  46. PCHEIGHTS pcheightsMain,
  47. long dupMain,
  48. const POINT *ptRuby,
  49. PCHEIGHTS pcheightsRuby,
  50. long dupRuby,
  51. PLSSUBL plssublMain,
  52. PLSSUBL plssublRuby
  53. );
  54. } VRUBYCBK;
  55. /*
  56. *
  57. * Ruby Object initialization data that the client application must return
  58. * when the Ruby object handler calls the GetObjectHandlerInfo callback.
  59. *
  60. */
  61. typedef struct VRUBYINIT
  62. {
  63. DWORD dwVersion; /* Version of the structure (must be VRUBY_VERSION) */
  64. VRUBYSYNTAX vrubysyntax; /* Used to determine order of lines during format */
  65. WCHAR wchEscRuby; /* Escape char for end of Ruby pronunciation line */
  66. WCHAR wchEscMain; /* Escape char for end of main text */
  67. VRUBYCBK vrcbk; /* Ruby callbacks */
  68. } VRUBYINIT;
  69. LSERR WINAPI LsGetVRubyLsimethods ( LSIMETHODS *plsim );
  70. /* GetRubyLsimethods
  71. *
  72. * plsim (OUT): Ruby object methods for Line Services.
  73. *
  74. */
  75. #endif /* VRUBY_DEFINED */