api_locales.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. // ----------------------------------------------------------------------------
  2. // Generated by InterfaceFactory [Fri Oct 17 16:03:31 2003]
  3. //
  4. // File : api_locales.h
  5. // Class : api_locales
  6. // class layer : Dispatchable Interface
  7. // ----------------------------------------------------------------------------
  8. #ifndef __API_LOCALES_H
  9. #define __API_LOCALES_H
  10. #include <bfc/dispatch.h>
  11. #include <bfc/common.h>
  12. // ----------------------------------------------------------------------------
  13. class NOVTABLE api_locales: public Dispatchable {
  14. protected:
  15. api_locales() {}
  16. ~api_locales() {}
  17. public:
  18. const wchar_t *locales_getTranslation(const wchar_t *str);
  19. void locales_addTranslation(const wchar_t *from, const wchar_t *to);
  20. const wchar_t *locales_getBindFromAction(int action);
  21. int locales_getNumEntries();
  22. const wchar_t *locales_enumEntry(int n);
  23. void locales_registerAcceleratorSection(const wchar_t *name, ifc_window *wnd, int global = 0);
  24. protected:
  25. enum {
  26. API_LOCALES_LOCALES_GETTRANSLATION = 10,
  27. API_LOCALES_LOCALES_ADDTRANSLATION = 20,
  28. API_LOCALES_LOCALES_GETBINDFROMACTION = 30,
  29. API_LOCALES_LOCALES_GETNUMENTRIES = 40,
  30. API_LOCALES_LOCALES_ENUMENTRY = 50,
  31. API_LOCALES_LOCALES_REGISTERACCELERATORSECTION = 60,
  32. };
  33. };
  34. // ----------------------------------------------------------------------------
  35. inline const wchar_t *api_locales::locales_getTranslation(const wchar_t *str) {
  36. const wchar_t *__retval = _call(API_LOCALES_LOCALES_GETTRANSLATION, (const wchar_t *)0, str);
  37. return __retval;
  38. }
  39. inline void api_locales::locales_addTranslation(const wchar_t *from, const wchar_t *to)
  40. {
  41. _voidcall(API_LOCALES_LOCALES_ADDTRANSLATION, from, to);
  42. }
  43. inline const wchar_t *api_locales::locales_getBindFromAction(int action) {
  44. const wchar_t *__retval = _call(API_LOCALES_LOCALES_GETBINDFROMACTION, (const wchar_t *)0, action);
  45. return __retval;
  46. }
  47. inline int api_locales::locales_getNumEntries() {
  48. int __retval = _call(API_LOCALES_LOCALES_GETNUMENTRIES, (int)0);
  49. return __retval;
  50. }
  51. inline const wchar_t *api_locales::locales_enumEntry(int n)
  52. {
  53. const wchar_t *__retval = _call(API_LOCALES_LOCALES_ENUMENTRY, (const wchar_t *)0, n);
  54. return __retval;
  55. }
  56. inline void api_locales::locales_registerAcceleratorSection(const wchar_t *name, ifc_window *wnd, int global) {
  57. _voidcall(API_LOCALES_LOCALES_REGISTERACCELERATORSECTION, name, wnd, global);
  58. }
  59. // ----------------------------------------------------------------------------
  60. // {C1251318-A6F5-4cd2-9142-A4CEAA08B846}
  61. static const GUID localesApiServiceGuid =
  62. { 0xc1251318, 0xa6f5, 0x4cd2, { 0x91, 0x42, 0xa4, 0xce, 0xaa, 0x8, 0xb8, 0x46 } };
  63. extern api_locales *localesApi;
  64. #endif // __API_LOCALES_H