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