Update of /cvsroot/pywin32/pywin32/com/win32comext/shell/demos/servers
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15141/demos/servers
Modified Files:
context_menu.py shell_view.py
Log Message:
The list of interface methods are now stored in shellcon.
Index: shell_view.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32comext/shell/demos/servers/shell_view.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** shell_view.py 7 Jan 2008 22:56:38 -0000 1.10
--- shell_view.py 7 Feb 2008 05:24:20 -0000 1.11
***************
*** 97,116 ****
# Our COM interfaces.
- IOleWindow_Methods = "GetWindow ContextSensitiveHelp".split()
- IShellView_Methods = IOleWindow_Methods + \
- """TranslateAccelerator EnableModeless UIActivate
- Refresh CreateViewWindow DestroyViewWindow
- GetCurrentInfo AddPropertySheetPages SaveViewState
- SelectItem GetItemObject""".split()
-
- IShellFolder_Methods = """ParseDisplayName EnumObjects BindToObject
- BindToStorage CompareIDs CreateViewObject
- GetAttributesOf GetUIObjectOf GetDisplayNameOf
- SetNameOf""".split()
-
- IBrowserFrame_Methods = ["GetFrameOptions"]
-
- IPersist_Methods = ["GetClassID"]
- IPersistFolder_Methods = IPersist_Methods + ["Initialize"]
# Base class for a shell folder.
--- 97,100 ----
***************
*** 124,130 ****
]
! _public_methods_ = IBrowserFrame_Methods + \
! IPersistFolder_Methods + \
! IShellFolder_Methods
def GetFrameOptions(self, mask):
--- 108,114 ----
]
! _public_methods_ = shellcon.IBrowserFrame_Methods + \
! shellcon.IPersistFolder_Methods + \
! shellcon.IShellFolder_Methods
def GetFrameOptions(self, mask):
***************
*** 167,171 ****
def GetUIObjectOf(self, hwndOwner, pidls, iid, inout):
# delegate to the shell.
! assert len(pidls)==1, "oops - arent expecting more than one!)"
pidl = pidls[0]
folder, child_pidl = self._GetFolderAndPIDLForPIDL(pidl)
--- 151,155 ----
def GetUIObjectOf(self, hwndOwner, pidls, iid, inout):
# delegate to the shell.
! assert len(pidls)==1, "oops - arent expecting more than one!"
pidl = pidls[0]
folder, child_pidl = self._GetFolderAndPIDLForPIDL(pidl)
***************
*** 356,360 ****
# or filenames.
class FileSystemView:
! _public_methods_ = IShellView_Methods
_com_interfaces_ = [pythoncom.IID_IOleWindow,
shell.IID_IShellView,
--- 340,344 ----
# or filenames.
class FileSystemView:
! _public_methods_ = shellcon.IShellView_Methods
_com_interfaces_ = [pythoncom.IID_IOleWindow,
shell.IID_IShellView,
***************
*** 714,718 ****
# number.
class ScintillaShellView:
! _public_methods_ = IShellView_Methods
_com_interfaces_ = [pythoncom.IID_IOleWindow,
shell.IID_IShellView,
--- 698,702 ----
# number.
class ScintillaShellView:
! _public_methods_ = shellcon.IShellView_Methods
_com_interfaces_ = [pythoncom.IID_IOleWindow,
shell.IID_IShellView,
Index: context_menu.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32comext/shell/demos/servers/context_menu.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** context_menu.py 9 Oct 2003 12:34:35 -0000 1.3
--- context_menu.py 7 Feb 2008 05:24:20 -0000 1.4
***************
*** 14,20 ****
import win32con
- IContextMenu_Methods = ["QueryContextMenu", "InvokeCommand", "GetCommandString"]
- IShellExtInit_Methods = ["Initialize"]
-
class ShellExtension:
_reg_progid_ = "Python.ShellExtension.ContextMenu"
--- 14,17 ----
***************
*** 22,26 ****
_reg_clsid_ = "{CED0336C-C9EE-4a7f-8D7F-C660393C381F}"
_com_interfaces_ = [shell.IID_IShellExtInit, shell.IID_IContextMenu]
! _public_methods_ = IContextMenu_Methods + IShellExtInit_Methods
def Initialize(self, folder, dataobj, hkey):
--- 19,23 ----
_reg_clsid_ = "{CED0336C-C9EE-4a7f-8D7F-C660393C381F}"
_com_interfaces_ = [shell.IID_IShellExtInit, shell.IID_IContextMenu]
! _public_methods_ = shellcon.IContextMenu_Methods + shellcon.IShellExtInit_Methods
def Initialize(self, folder, dataobj, hkey):
|