/Mac/Tools/Doc/HelpIndexingTool/Help_Indexing_Tool_Suite.py

http://unladen-swallow.googlecode.com/ · Python · 110 lines · 61 code · 22 blank · 27 comment · 8 complexity · c026147699133987c01e2508edd9e69b MD5 · raw file

  1. """Suite Help Indexing Tool Suite: Special events that just the Help Indexing Tool supports.
  2. Level 0, version 0
  3. Generated from /Developer/Applications/Apple Help Indexing Tool.app
  4. AETE/AEUT resource version 1/1, language 0, script 0
  5. """
  6. import aetools
  7. import MacOS
  8. _code = 'HIT '
  9. class Help_Indexing_Tool_Suite_Events:
  10. def turn_anchor_indexing(self, _object, _attributes={}, **_arguments):
  11. """turn anchor indexing: Turns anchor indexing on or off.
  12. Required argument: \xd2on\xd3 or \xd2off\xd3, to turn anchor indexing on or off
  13. Keyword argument _attributes: AppleEvent attribute dictionary
  14. """
  15. _code = 'HIT '
  16. _subcode = 'tAnc'
  17. if _arguments: raise TypeError, 'No optional args expected'
  18. _arguments['----'] = _object
  19. _reply, _arguments, _attributes = self.send(_code, _subcode,
  20. _arguments, _attributes)
  21. if _arguments.get('errn', 0):
  22. raise aetools.Error, aetools.decodeerror(_arguments)
  23. # XXXX Optionally decode result
  24. if _arguments.has_key('----'):
  25. return _arguments['----']
  26. _argmap_turn_remote_root = {
  27. 'with_root_url' : 'rURL',
  28. }
  29. def turn_remote_root(self, _object, _attributes={}, **_arguments):
  30. """turn remote root: Turn usage of remote root for content on the web on or off. If turning \xd2on\xd3, supply a string as second parameter.
  31. Required argument: \xd2on\xd3 or \xd2off\xd3, to turn remote root on or off
  32. Keyword argument with_root_url: The remote root to use, in the form of \xd2http://www.apple.com/help/\xd3.
  33. Keyword argument _attributes: AppleEvent attribute dictionary
  34. """
  35. _code = 'HIT '
  36. _subcode = 'tRem'
  37. aetools.keysubst(_arguments, self._argmap_turn_remote_root)
  38. _arguments['----'] = _object
  39. _reply, _arguments, _attributes = self.send(_code, _subcode,
  40. _arguments, _attributes)
  41. if _arguments.get('errn', 0):
  42. raise aetools.Error, aetools.decodeerror(_arguments)
  43. # XXXX Optionally decode result
  44. if _arguments.has_key('----'):
  45. return _arguments['----']
  46. def use_tokenizer(self, _object, _attributes={}, **_arguments):
  47. """use tokenizer: Tells the indexing tool which tokenizer to use.
  48. Required argument: Specify \xd2English\xd3, \xd2European\xd3, \xd2Japanese\xd3, \xd2Korean\xd3, or \xd2Simple\xd3.
  49. Keyword argument _attributes: AppleEvent attribute dictionary
  50. """
  51. _code = 'HIT '
  52. _subcode = 'uTok'
  53. if _arguments: raise TypeError, 'No optional args expected'
  54. _arguments['----'] = _object
  55. _reply, _arguments, _attributes = self.send(_code, _subcode,
  56. _arguments, _attributes)
  57. if _arguments.get('errn', 0):
  58. raise aetools.Error, aetools.decodeerror(_arguments)
  59. # XXXX Optionally decode result
  60. if _arguments.has_key('----'):
  61. return _arguments['----']
  62. class application(aetools.ComponentItem):
  63. """application - Application class """
  64. want = 'capp'
  65. class _Prop_idleStatus(aetools.NProperty):
  66. """idleStatus - """
  67. which = 'sIdl'
  68. want = 'bool'
  69. application._superclassnames = []
  70. application._privpropdict = {
  71. 'idleStatus' : _Prop_idleStatus,
  72. }
  73. application._privelemdict = {
  74. }
  75. #
  76. # Indices of types declared in this module
  77. #
  78. _classdeclarations = {
  79. 'capp' : application,
  80. }
  81. _propdeclarations = {
  82. 'sIdl' : _Prop_idleStatus,
  83. }
  84. _compdeclarations = {
  85. }
  86. _enumdeclarations = {
  87. }