/Lib/plat-mac/lib-scriptpackages/StdSuites/Standard_Suite.py

http://unladen-swallow.googlecode.com/ · Python · 738 lines · 467 code · 111 blank · 160 comment · 50 complexity · 04d8498da7dea7f50b981cbdf50d393b MD5 · raw file

  1. """Suite Standard Suite: Common terms for most applications
  2. Level 1, version 1
  3. Generated from /Volumes/Sap/System Folder/Extensions/AppleScript
  4. AETE/AEUT resource version 1/0, language 0, script 0
  5. """
  6. import aetools
  7. import MacOS
  8. _code = 'core'
  9. from _builtinSuites.builtin_Suite import *
  10. class Standard_Suite_Events(builtin_Suite_Events):
  11. _argmap_class_info = {
  12. 'in_' : 'wrcd',
  13. }
  14. def class_info(self, _object=None, _attributes={}, **_arguments):
  15. """class info: (optional) Get information about an object class
  16. Required argument: the object class about which information is requested
  17. Keyword argument in_: the human language and script system in which to return information
  18. Keyword argument _attributes: AppleEvent attribute dictionary
  19. Returns: a record containing the object\xd5s properties and elements
  20. """
  21. _code = 'core'
  22. _subcode = 'qobj'
  23. aetools.keysubst(_arguments, self._argmap_class_info)
  24. _arguments['----'] = _object
  25. _reply, _arguments, _attributes = self.send(_code, _subcode,
  26. _arguments, _attributes)
  27. if _arguments.get('errn', 0):
  28. raise aetools.Error, aetools.decodeerror(_arguments)
  29. # XXXX Optionally decode result
  30. if _arguments.has_key('----'):
  31. return _arguments['----']
  32. _argmap_close = {
  33. 'saving' : 'savo',
  34. 'saving_in' : 'kfil',
  35. }
  36. def close(self, _object, _attributes={}, **_arguments):
  37. """close: Close an object
  38. Required argument: the object to close
  39. Keyword argument saving: specifies whether changes should be saved before closing
  40. Keyword argument saving_in: the file or alias in which to save the object
  41. Keyword argument _attributes: AppleEvent attribute dictionary
  42. """
  43. _code = 'core'
  44. _subcode = 'clos'
  45. aetools.keysubst(_arguments, self._argmap_close)
  46. _arguments['----'] = _object
  47. aetools.enumsubst(_arguments, 'savo', _Enum_savo)
  48. _reply, _arguments, _attributes = self.send(_code, _subcode,
  49. _arguments, _attributes)
  50. if _arguments.get('errn', 0):
  51. raise aetools.Error, aetools.decodeerror(_arguments)
  52. # XXXX Optionally decode result
  53. if _arguments.has_key('----'):
  54. return _arguments['----']
  55. _argmap_count = {
  56. 'each' : 'kocl',
  57. }
  58. def count(self, _object, _attributes={}, **_arguments):
  59. """count: Return the number of elements of an object
  60. Required argument: the object whose elements are to be counted
  61. Keyword argument each: if specified, restricts counting to objects of this class
  62. Keyword argument _attributes: AppleEvent attribute dictionary
  63. Returns: the number of elements
  64. """
  65. _code = 'core'
  66. _subcode = 'cnte'
  67. aetools.keysubst(_arguments, self._argmap_count)
  68. _arguments['----'] = _object
  69. _reply, _arguments, _attributes = self.send(_code, _subcode,
  70. _arguments, _attributes)
  71. if _arguments.get('errn', 0):
  72. raise aetools.Error, aetools.decodeerror(_arguments)
  73. # XXXX Optionally decode result
  74. if _arguments.has_key('----'):
  75. return _arguments['----']
  76. _argmap_data_size = {
  77. 'as' : 'rtyp',
  78. }
  79. def data_size(self, _object, _attributes={}, **_arguments):
  80. """data size: (optional) Return the size in bytes of an object
  81. Required argument: the object whose data size is to be returned
  82. Keyword argument as: the data type for which the size is calculated
  83. Keyword argument _attributes: AppleEvent attribute dictionary
  84. Returns: the size of the object in bytes
  85. """
  86. _code = 'core'
  87. _subcode = 'dsiz'
  88. aetools.keysubst(_arguments, self._argmap_data_size)
  89. _arguments['----'] = _object
  90. _reply, _arguments, _attributes = self.send(_code, _subcode,
  91. _arguments, _attributes)
  92. if _arguments.get('errn', 0):
  93. raise aetools.Error, aetools.decodeerror(_arguments)
  94. # XXXX Optionally decode result
  95. if _arguments.has_key('----'):
  96. return _arguments['----']
  97. def delete(self, _object, _attributes={}, **_arguments):
  98. """delete: Delete an object from its container. Note this does not work on script variables, only on elements of application classes.
  99. Required argument: the element to delete
  100. Keyword argument _attributes: AppleEvent attribute dictionary
  101. """
  102. _code = 'core'
  103. _subcode = 'delo'
  104. if _arguments: raise TypeError, 'No optional args expected'
  105. _arguments['----'] = _object
  106. _reply, _arguments, _attributes = self.send(_code, _subcode,
  107. _arguments, _attributes)
  108. if _arguments.get('errn', 0):
  109. raise aetools.Error, aetools.decodeerror(_arguments)
  110. # XXXX Optionally decode result
  111. if _arguments.has_key('----'):
  112. return _arguments['----']
  113. _argmap_duplicate = {
  114. 'to' : 'insh',
  115. 'with_properties' : 'prdt',
  116. }
  117. def duplicate(self, _object, _attributes={}, **_arguments):
  118. """duplicate: Duplicate one or more objects
  119. Required argument: the object(s) to duplicate
  120. Keyword argument to: the new location for the object(s)
  121. Keyword argument with_properties: the initial values for properties of the new object that are to be different from the original
  122. Keyword argument _attributes: AppleEvent attribute dictionary
  123. Returns: to the duplicated object(s)
  124. """
  125. _code = 'core'
  126. _subcode = 'clon'
  127. aetools.keysubst(_arguments, self._argmap_duplicate)
  128. _arguments['----'] = _object
  129. _reply, _arguments, _attributes = self.send(_code, _subcode,
  130. _arguments, _attributes)
  131. if _arguments.get('errn', 0):
  132. raise aetools.Error, aetools.decodeerror(_arguments)
  133. # XXXX Optionally decode result
  134. if _arguments.has_key('----'):
  135. return _arguments['----']
  136. _argmap_event_info = {
  137. 'in_' : 'wrcd',
  138. }
  139. def event_info(self, _object, _attributes={}, **_arguments):
  140. """event info: (optional) Get information about the Apple events in a suite
  141. Required argument: the event class of the Apple events for which to return information
  142. Keyword argument in_: the human language and script system in which to return information
  143. Keyword argument _attributes: AppleEvent attribute dictionary
  144. Returns: a record containing the events and their parameters
  145. """
  146. _code = 'core'
  147. _subcode = 'gtei'
  148. aetools.keysubst(_arguments, self._argmap_event_info)
  149. _arguments['----'] = _object
  150. _reply, _arguments, _attributes = self.send(_code, _subcode,
  151. _arguments, _attributes)
  152. if _arguments.get('errn', 0):
  153. raise aetools.Error, aetools.decodeerror(_arguments)
  154. # XXXX Optionally decode result
  155. if _arguments.has_key('----'):
  156. return _arguments['----']
  157. def exists(self, _object, _attributes={}, **_arguments):
  158. """exists: Verify if an object exists
  159. Required argument: the object in question
  160. Keyword argument _attributes: AppleEvent attribute dictionary
  161. Returns: true if it exists, false if not
  162. """
  163. _code = 'core'
  164. _subcode = 'doex'
  165. if _arguments: raise TypeError, 'No optional args expected'
  166. _arguments['----'] = _object
  167. _reply, _arguments, _attributes = self.send(_code, _subcode,
  168. _arguments, _attributes)
  169. if _arguments.get('errn', 0):
  170. raise aetools.Error, aetools.decodeerror(_arguments)
  171. # XXXX Optionally decode result
  172. if _arguments.has_key('----'):
  173. return _arguments['----']
  174. def handleBreakpoint(self, _object, _attributes={}, **_arguments):
  175. """handleBreakpoint: return true to stop at a breakpoint
  176. Required argument: the call frame of the breakpoint
  177. Keyword argument _attributes: AppleEvent attribute dictionary
  178. Returns: true to stop, false if not
  179. """
  180. _code = 'core'
  181. _subcode = 'brak'
  182. if _arguments: raise TypeError, 'No optional args expected'
  183. _arguments['----'] = _object
  184. _reply, _arguments, _attributes = self.send(_code, _subcode,
  185. _arguments, _attributes)
  186. if _arguments.get('errn', 0):
  187. raise aetools.Error, aetools.decodeerror(_arguments)
  188. # XXXX Optionally decode result
  189. if _arguments.has_key('----'):
  190. return _arguments['----']
  191. _argmap_make = {
  192. 'new' : 'kocl',
  193. 'at' : 'insh',
  194. 'with_data' : 'data',
  195. 'with_properties' : 'prdt',
  196. }
  197. def make(self, _no_object=None, _attributes={}, **_arguments):
  198. """make: Make a new element
  199. Keyword argument new: the class of the new element
  200. Keyword argument at: the location at which to insert the element
  201. Keyword argument with_data: the initial data for the element
  202. Keyword argument with_properties: the initial values for the properties of the element
  203. Keyword argument _attributes: AppleEvent attribute dictionary
  204. Returns: to the new object(s)
  205. """
  206. _code = 'core'
  207. _subcode = 'crel'
  208. aetools.keysubst(_arguments, self._argmap_make)
  209. if _no_object is not None: raise TypeError, 'No direct arg expected'
  210. _reply, _arguments, _attributes = self.send(_code, _subcode,
  211. _arguments, _attributes)
  212. if _arguments.get('errn', 0):
  213. raise aetools.Error, aetools.decodeerror(_arguments)
  214. # XXXX Optionally decode result
  215. if _arguments.has_key('----'):
  216. return _arguments['----']
  217. _argmap_move = {
  218. 'to' : 'insh',
  219. }
  220. def move(self, _object, _attributes={}, **_arguments):
  221. """move: Move object(s) to a new location
  222. Required argument: the object(s) to move
  223. Keyword argument to: the new location for the object(s)
  224. Keyword argument _attributes: AppleEvent attribute dictionary
  225. Returns: to the object(s) after they have been moved
  226. """
  227. _code = 'core'
  228. _subcode = 'move'
  229. aetools.keysubst(_arguments, self._argmap_move)
  230. _arguments['----'] = _object
  231. _reply, _arguments, _attributes = self.send(_code, _subcode,
  232. _arguments, _attributes)
  233. if _arguments.get('errn', 0):
  234. raise aetools.Error, aetools.decodeerror(_arguments)
  235. # XXXX Optionally decode result
  236. if _arguments.has_key('----'):
  237. return _arguments['----']
  238. def open(self, _object, _attributes={}, **_arguments):
  239. """open: Open the specified object(s)
  240. Required argument: list of objects to open
  241. Keyword argument _attributes: AppleEvent attribute dictionary
  242. """
  243. _code = 'aevt'
  244. _subcode = 'odoc'
  245. if _arguments: raise TypeError, 'No optional args expected'
  246. _arguments['----'] = _object
  247. _reply, _arguments, _attributes = self.send(_code, _subcode,
  248. _arguments, _attributes)
  249. if _arguments.get('errn', 0):
  250. raise aetools.Error, aetools.decodeerror(_arguments)
  251. # XXXX Optionally decode result
  252. if _arguments.has_key('----'):
  253. return _arguments['----']
  254. def print_(self, _object, _attributes={}, **_arguments):
  255. """print: Print the specified object(s)
  256. Required argument: list of objects to print
  257. Keyword argument _attributes: AppleEvent attribute dictionary
  258. """
  259. _code = 'aevt'
  260. _subcode = 'pdoc'
  261. if _arguments: raise TypeError, 'No optional args expected'
  262. _arguments['----'] = _object
  263. _reply, _arguments, _attributes = self.send(_code, _subcode,
  264. _arguments, _attributes)
  265. if _arguments.get('errn', 0):
  266. raise aetools.Error, aetools.decodeerror(_arguments)
  267. # XXXX Optionally decode result
  268. if _arguments.has_key('----'):
  269. return _arguments['----']
  270. _argmap_quit = {
  271. 'saving' : 'savo',
  272. }
  273. def quit(self, _no_object=None, _attributes={}, **_arguments):
  274. """quit: Quit an application
  275. Keyword argument saving: specifies whether to save currently open documents
  276. Keyword argument _attributes: AppleEvent attribute dictionary
  277. """
  278. _code = 'aevt'
  279. _subcode = 'quit'
  280. aetools.keysubst(_arguments, self._argmap_quit)
  281. if _no_object is not None: raise TypeError, 'No direct arg expected'
  282. aetools.enumsubst(_arguments, 'savo', _Enum_savo)
  283. _reply, _arguments, _attributes = self.send(_code, _subcode,
  284. _arguments, _attributes)
  285. if _arguments.get('errn', 0):
  286. raise aetools.Error, aetools.decodeerror(_arguments)
  287. # XXXX Optionally decode result
  288. if _arguments.has_key('----'):
  289. return _arguments['----']
  290. def reopen(self, _no_object=None, _attributes={}, **_arguments):
  291. """reopen: Reactivate a running application. Some applications will open a new untitled window if no window is open.
  292. Keyword argument _attributes: AppleEvent attribute dictionary
  293. """
  294. _code = 'aevt'
  295. _subcode = 'rapp'
  296. if _arguments: raise TypeError, 'No optional args expected'
  297. if _no_object is not None: raise TypeError, 'No direct arg expected'
  298. _reply, _arguments, _attributes = self.send(_code, _subcode,
  299. _arguments, _attributes)
  300. if _arguments.get('errn', 0):
  301. raise aetools.Error, aetools.decodeerror(_arguments)
  302. # XXXX Optionally decode result
  303. if _arguments.has_key('----'):
  304. return _arguments['----']
  305. def run(self, _no_object=None, _attributes={}, **_arguments):
  306. """run: Run an application. Most applications will open an empty, untitled window.
  307. Keyword argument _attributes: AppleEvent attribute dictionary
  308. """
  309. _code = 'aevt'
  310. _subcode = 'oapp'
  311. if _arguments: raise TypeError, 'No optional args expected'
  312. if _no_object is not None: raise TypeError, 'No direct arg expected'
  313. _reply, _arguments, _attributes = self.send(_code, _subcode,
  314. _arguments, _attributes)
  315. if _arguments.get('errn', 0):
  316. raise aetools.Error, aetools.decodeerror(_arguments)
  317. # XXXX Optionally decode result
  318. if _arguments.has_key('----'):
  319. return _arguments['----']
  320. _argmap_save = {
  321. 'in_' : 'kfil',
  322. 'as' : 'fltp',
  323. }
  324. def save(self, _object, _attributes={}, **_arguments):
  325. """save: Save an object
  326. Required argument: the object to save, usually a document or window
  327. Keyword argument in_: the file or alias in which to save the object
  328. Keyword argument as: the file type of the document in which to save the data
  329. Keyword argument _attributes: AppleEvent attribute dictionary
  330. """
  331. _code = 'core'
  332. _subcode = 'save'
  333. aetools.keysubst(_arguments, self._argmap_save)
  334. _arguments['----'] = _object
  335. _reply, _arguments, _attributes = self.send(_code, _subcode,
  336. _arguments, _attributes)
  337. if _arguments.get('errn', 0):
  338. raise aetools.Error, aetools.decodeerror(_arguments)
  339. # XXXX Optionally decode result
  340. if _arguments.has_key('----'):
  341. return _arguments['----']
  342. def select(self, _object, _attributes={}, **_arguments):
  343. """select: Make a selection
  344. Required argument: the object to select
  345. Keyword argument _attributes: AppleEvent attribute dictionary
  346. """
  347. _code = 'misc'
  348. _subcode = 'slct'
  349. if _arguments: raise TypeError, 'No optional args expected'
  350. _arguments['----'] = _object
  351. _reply, _arguments, _attributes = self.send(_code, _subcode,
  352. _arguments, _attributes)
  353. if _arguments.get('errn', 0):
  354. raise aetools.Error, aetools.decodeerror(_arguments)
  355. # XXXX Optionally decode result
  356. if _arguments.has_key('----'):
  357. return _arguments['----']
  358. _argmap_suite_info = {
  359. 'in_' : 'wrcd',
  360. }
  361. def suite_info(self, _object, _attributes={}, **_arguments):
  362. """suite info: (optional) Get information about event suite(s)
  363. Required argument: the suite for which to return information
  364. Keyword argument in_: the human language and script system in which to return information
  365. Keyword argument _attributes: AppleEvent attribute dictionary
  366. Returns: a record containing the suites and their versions
  367. """
  368. _code = 'core'
  369. _subcode = 'gtsi'
  370. aetools.keysubst(_arguments, self._argmap_suite_info)
  371. _arguments['----'] = _object
  372. _reply, _arguments, _attributes = self.send(_code, _subcode,
  373. _arguments, _attributes)
  374. if _arguments.get('errn', 0):
  375. raise aetools.Error, aetools.decodeerror(_arguments)
  376. # XXXX Optionally decode result
  377. if _arguments.has_key('----'):
  378. return _arguments['----']
  379. class alias(aetools.ComponentItem):
  380. """alias - a file on a disk or server. The file must exist when you check the syntax of your script. """
  381. want = 'alis'
  382. class _Prop_POSIX_path(aetools.NProperty):
  383. """POSIX path - the POSIX path of the file """
  384. which = 'psxp'
  385. want = 'TEXT'
  386. aliases = alias
  387. class application(aetools.ComponentItem):
  388. """application - An application program """
  389. want = 'capp'
  390. class _Prop_clipboard(aetools.NProperty):
  391. """clipboard - the contents of the clipboard for this application """
  392. which = 'pcli'
  393. want = '****'
  394. clipboard = _Prop_clipboard()
  395. class _Prop_frontmost(aetools.NProperty):
  396. """frontmost - Is this the frontmost application? """
  397. which = 'pisf'
  398. want = 'bool'
  399. frontmost = _Prop_frontmost()
  400. class _Prop_name(aetools.NProperty):
  401. """name - the name of the application """
  402. which = 'pnam'
  403. want = 'itxt'
  404. name = _Prop_name()
  405. class _Prop_selection(aetools.NProperty):
  406. """selection - the selection visible to the user. Use the \xd4select\xd5 command to set a new selection; use \xd4contents of selection\xd5 to get or change information in the document. """
  407. which = 'sele'
  408. want = 'csel'
  409. selection = _Prop_selection()
  410. class _Prop_version(aetools.NProperty):
  411. """version - the version of the application """
  412. which = 'vers'
  413. want = 'vers'
  414. version = _Prop_version()
  415. applications = application
  416. class insertion_points(aetools.ComponentItem):
  417. """insertion points - """
  418. want = 'cins'
  419. insertion_point = insertion_points
  420. class selection_2d_object(aetools.ComponentItem):
  421. """selection-object - A way to refer to the state of the current of the selection. Use the \xd4select\xd5 command to make a new selection. """
  422. want = 'csel'
  423. class _Prop_contents(aetools.NProperty):
  424. """contents - the information currently selected. Use \xd4contents of selection\xd5 to get or change information in a document. """
  425. which = 'pcnt'
  426. want = '****'
  427. class window(aetools.ComponentItem):
  428. """window - A window """
  429. want = 'cwin'
  430. class _Prop_bounds(aetools.NProperty):
  431. """bounds - the boundary rectangle for the window """
  432. which = 'pbnd'
  433. want = 'qdrt'
  434. class _Prop_closeable(aetools.NProperty):
  435. """closeable - Does the window have a close box? """
  436. which = 'hclb'
  437. want = 'bool'
  438. class _Prop_floating(aetools.NProperty):
  439. """floating - Does the window float? """
  440. which = 'isfl'
  441. want = 'bool'
  442. class _Prop_index(aetools.NProperty):
  443. """index - the number of the window """
  444. which = 'pidx'
  445. want = 'long'
  446. class _Prop_modal(aetools.NProperty):
  447. """modal - Is the window modal? """
  448. which = 'pmod'
  449. want = 'bool'
  450. class _Prop_resizable(aetools.NProperty):
  451. """resizable - Is the window resizable? """
  452. which = 'prsz'
  453. want = 'bool'
  454. class _Prop_titled(aetools.NProperty):
  455. """titled - Does the window have a title bar? """
  456. which = 'ptit'
  457. want = 'bool'
  458. class _Prop_visible(aetools.NProperty):
  459. """visible - Is the window visible? """
  460. which = 'pvis'
  461. want = 'bool'
  462. class _Prop_zoomable(aetools.NProperty):
  463. """zoomable - Is the window zoomable? """
  464. which = 'iszm'
  465. want = 'bool'
  466. class _Prop_zoomed(aetools.NProperty):
  467. """zoomed - Is the window zoomed? """
  468. which = 'pzum'
  469. want = 'bool'
  470. windows = window
  471. class document(aetools.ComponentItem):
  472. """document - A document of a scriptable application """
  473. want = 'docu'
  474. class _Prop_modified(aetools.NProperty):
  475. """modified - Has the document been modified since the last save? """
  476. which = 'imod'
  477. want = 'bool'
  478. documents = document
  479. class file(aetools.ComponentItem):
  480. """file - a file on a disk or server """
  481. want = 'file'
  482. files = file
  483. alias._superclassnames = []
  484. alias._privpropdict = {
  485. 'POSIX_path' : _Prop_POSIX_path,
  486. }
  487. alias._privelemdict = {
  488. }
  489. application._superclassnames = []
  490. application._privpropdict = {
  491. 'clipboard' : _Prop_clipboard,
  492. 'frontmost' : _Prop_frontmost,
  493. 'name' : _Prop_name,
  494. 'selection' : _Prop_selection,
  495. 'version' : _Prop_version,
  496. }
  497. application._privelemdict = {
  498. }
  499. insertion_points._superclassnames = []
  500. insertion_points._privpropdict = {
  501. }
  502. insertion_points._privelemdict = {
  503. }
  504. selection_2d_object._superclassnames = []
  505. selection_2d_object._privpropdict = {
  506. 'contents' : _Prop_contents,
  507. }
  508. selection_2d_object._privelemdict = {
  509. }
  510. window._superclassnames = []
  511. window._privpropdict = {
  512. 'bounds' : _Prop_bounds,
  513. 'closeable' : _Prop_closeable,
  514. 'floating' : _Prop_floating,
  515. 'index' : _Prop_index,
  516. 'modal' : _Prop_modal,
  517. 'resizable' : _Prop_resizable,
  518. 'titled' : _Prop_titled,
  519. 'visible' : _Prop_visible,
  520. 'zoomable' : _Prop_zoomable,
  521. 'zoomed' : _Prop_zoomed,
  522. }
  523. window._privelemdict = {
  524. }
  525. document._superclassnames = []
  526. document._privpropdict = {
  527. 'modified' : _Prop_modified,
  528. }
  529. document._privelemdict = {
  530. }
  531. file._superclassnames = []
  532. file._privpropdict = {
  533. 'POSIX_path' : _Prop_POSIX_path,
  534. }
  535. file._privelemdict = {
  536. }
  537. class _3c_(aetools.NComparison):
  538. """< - Less than """
  539. class _3d_(aetools.NComparison):
  540. """= - Equal """
  541. class _3e_(aetools.NComparison):
  542. """> - Greater than """
  543. class contains(aetools.NComparison):
  544. """contains - Contains """
  545. class ends_with(aetools.NComparison):
  546. """ends with - Ends with """
  547. class starts_with(aetools.NComparison):
  548. """starts with - Starts with """
  549. class _b2_(aetools.NComparison):
  550. """\xb2 - Less than or equal to """
  551. class _b3_(aetools.NComparison):
  552. """\xb3 - Greater than or equal to """
  553. _Enum_kfrm = {
  554. 'index' : 'indx', # keyform designating indexed access
  555. 'named' : 'name', # keyform designating named access
  556. 'id' : 'ID ', # keyform designating access by unique identifier
  557. }
  558. _Enum_savo = {
  559. 'yes' : 'yes ', # Save objects now
  560. 'no' : 'no ', # Do not save objects
  561. 'ask' : 'ask ', # Ask the user whether to save
  562. }
  563. _Enum_styl = {
  564. 'plain' : 'plan', # Plain
  565. 'bold' : 'bold', # Bold
  566. 'italic' : 'ital', # Italic
  567. 'outline' : 'outl', # Outline
  568. 'shadow' : 'shad', # Shadow
  569. 'underline' : 'undl', # Underline
  570. 'superscript' : 'spsc', # Superscript
  571. 'subscript' : 'sbsc', # Subscript
  572. 'strikethrough' : 'strk', # Strikethrough
  573. 'small_caps' : 'smcp', # Small caps
  574. 'all_caps' : 'alcp', # All capital letters
  575. 'all_lowercase' : 'lowc', # Lowercase
  576. 'condensed' : 'cond', # Condensed
  577. 'expanded' : 'pexp', # Expanded
  578. 'hidden' : 'hidn', # Hidden
  579. }
  580. #
  581. # Indices of types declared in this module
  582. #
  583. _classdeclarations = {
  584. 'alis' : alias,
  585. 'capp' : application,
  586. 'cins' : insertion_points,
  587. 'csel' : selection_2d_object,
  588. 'cwin' : window,
  589. 'docu' : document,
  590. 'file' : file,
  591. }
  592. _propdeclarations = {
  593. 'hclb' : _Prop_closeable,
  594. 'imod' : _Prop_modified,
  595. 'isfl' : _Prop_floating,
  596. 'iszm' : _Prop_zoomable,
  597. 'pbnd' : _Prop_bounds,
  598. 'pcli' : _Prop_clipboard,
  599. 'pcnt' : _Prop_contents,
  600. 'pidx' : _Prop_index,
  601. 'pisf' : _Prop_frontmost,
  602. 'pmod' : _Prop_modal,
  603. 'pnam' : _Prop_name,
  604. 'prsz' : _Prop_resizable,
  605. 'psxp' : _Prop_POSIX_path,
  606. 'ptit' : _Prop_titled,
  607. 'pvis' : _Prop_visible,
  608. 'pzum' : _Prop_zoomed,
  609. 'sele' : _Prop_selection,
  610. 'vers' : _Prop_version,
  611. }
  612. _compdeclarations = {
  613. '< ' : _3c_,
  614. '<= ' : _b2_,
  615. '= ' : _3d_,
  616. '> ' : _3e_,
  617. '>= ' : _b3_,
  618. 'bgwt' : starts_with,
  619. 'cont' : contains,
  620. 'ends' : ends_with,
  621. }
  622. _enumdeclarations = {
  623. 'kfrm' : _Enum_kfrm,
  624. 'savo' : _Enum_savo,
  625. 'styl' : _Enum_styl,
  626. }