home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_2653 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-08-06  |  5.2 KB  |  111 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. makepy_version = '0.4.98'
  5. python_version = 33948144
  6. import win32com.client.CLSIDToClass as win32com
  7. import pythoncom
  8. import win32com.client.util as win32com
  9. from pywintypes import IID
  10. from win32com.client import Dispatch
  11. defaultNamedOptArg = pythoncom.Empty
  12. defaultNamedNotOptArg = pythoncom.Empty
  13. defaultUnnamedArg = pythoncom.Empty
  14. CLSID = IID('{3F4DACA7-160D-11D2-A8E9-00104B365C9F}')
  15. MajorVersion = 5
  16. MinorVersion = 5
  17. LibraryFlags = 8
  18. LCID = 0
  19. from win32com.client import DispatchBaseClass
  20.  
  21. class IMatchCollection2(DispatchBaseClass):
  22.     CLSID = IID('{3F4DACB2-160D-11D2-A8E9-00104B365C9F}')
  23.     coclass_clsid = IID('{3F4DACA6-160D-11D2-A8E9-00104B365C9F}')
  24.     
  25.     def Item(self, index = defaultNamedNotOptArg):
  26.         ret = self._oleobj_.InvokeTypes(0, LCID, 2, (9, 0), ((3, 1),), index)
  27.         if ret is not None:
  28.             ret = Dispatch(ret, u'Item', None, UnicodeToString = 0)
  29.         
  30.         return ret
  31.  
  32.     _prop_map_get_ = {
  33.         'Count': (1, 2, (3, 0), (), 'Count', None) }
  34.     _prop_map_put_ = { }
  35.     
  36.     def __call__(self, index = defaultNamedNotOptArg):
  37.         ret = self._oleobj_.InvokeTypes(0, LCID, 2, (9, 0), ((3, 1),), index)
  38.         if ret is not None:
  39.             ret = Dispatch(ret, '__call__', None, UnicodeToString = 0)
  40.         
  41.         return ret
  42.  
  43.     
  44.     def __unicode__(self, *args):
  45.         
  46.         try:
  47.             return unicode(self.__call__(*args))
  48.         except pythoncom.com_error:
  49.             return repr(self)
  50.  
  51.  
  52.     
  53.     def __str__(self, *args):
  54.         return str(self.__unicode__(*args))
  55.  
  56.     
  57.     def __int__(self, *args):
  58.         return int(self.__call__(*args))
  59.  
  60.     
  61.     def __iter__(self):
  62.         ob = self._oleobj_.InvokeTypes(-4, LCID, 2, (13, 10), ())
  63.         return win32com.client.util.Iterator(ob, None)
  64.  
  65.     
  66.     def _NewEnum(self):
  67.         return win32com.client.util.WrapEnum(self._oleobj_.InvokeTypes(-4, LCID, 2, (13, 10), ()), None)
  68.  
  69.     
  70.     def __getitem__(self, index):
  71.         if not self.__dict__.has_key('_enum_'):
  72.             self.__dict__['_enum_'] = self._NewEnum()
  73.         
  74.         return self._enum_.__getitem__(index)
  75.  
  76.     
  77.     def __len__(self):
  78.         return self._ApplyTypes_(*(1, 2, (3, 0), (), 'Count', None))
  79.  
  80.     
  81.     def __nonzero__(self):
  82.         return True
  83.  
  84.  
  85. win32com.client.CLSIDToClass.RegisterCLSID('{3F4DACB2-160D-11D2-A8E9-00104B365C9F}', IMatchCollection2)
  86. makepy_version = '0.4.98'
  87. python_version = 33948144
  88. import win32com.client.CLSIDToClass as win32com
  89. import pythoncom
  90. import win32com.client.util as win32com
  91. from pywintypes import IID
  92. from win32com.client import Dispatch
  93. defaultNamedOptArg = pythoncom.Empty
  94. defaultNamedNotOptArg = pythoncom.Empty
  95. defaultUnnamedArg = pythoncom.Empty
  96. CLSID = IID('{3F4DACA7-160D-11D2-A8E9-00104B365C9F}')
  97. MajorVersion = 5
  98. MinorVersion = 5
  99. LibraryFlags = 8
  100. LCID = 0
  101. IMatchCollection2_vtables_dispatch_ = 1
  102. IMatchCollection2_vtables_ = [
  103.     ((u'Item', u'index', u'ppMatch'), 0, (0, (), [
  104.         (3, 1, None, None),
  105.         (16393, 10, None, None)], 1, 2, 4, 0, 28, (3, 0, None, None), 0)),
  106.     ((u'Count', u'pCount'), 1, (1, (), [
  107.         (16387, 10, None, None)], 1, 2, 4, 0, 32, (3, 0, None, None), 0)),
  108.     ((u'_NewEnum', u'ppEnum'), -4, (-4, (), [
  109.         (16397, 10, None, None)], 1, 2, 4, 0, 36, (3, 0, None, None), 0))]
  110. win32com.client.CLSIDToClass.RegisterCLSID('{3F4DACB2-160D-11D2-A8E9-00104B365C9F}', IMatchCollection2)
  111.