PageRenderTime 866ms CodeModel.GetById 663ms app.highlight 9ms RepoModel.GetById 193ms app.codeStats 0ms

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