ยปCore Development>Code coverage>Mac/Tools/Doc/HelpIndexingTool/Help_Indexing_Tool_Suite.py

Python code coverage for Mac/Tools/Doc/HelpIndexingTool/Help_Indexing_Tool_Suite.py

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