summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2011-06-22 10:09:44 +0200
committerXisco Fauli <anistenis@gmail.com>2011-06-22 10:09:44 +0200
commitac66ba37628ee086b5fce783ff98d1f275adb7fb (patch)
treea792e713d35b17c9df4b13952504f2eb215fef0d /wizards
parent89f17de5c68479a8b20047b85cbab913bafb71ce (diff)
Remove deprecated method
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/common/FileAccess.py68
1 files changed, 0 insertions, 68 deletions
diff --git a/wizards/com/sun/star/wizards/common/FileAccess.py b/wizards/com/sun/star/wizards/common/FileAccess.py
index 7506336fc208..3a1797e4ebca 100644
--- a/wizards/com/sun/star/wizards/common/FileAccess.py
+++ b/wizards/com/sun/star/wizards/common/FileAccess.py
@@ -484,74 +484,6 @@ class FileAccess(object):
return sTitle
- @classmethod
- def getFolderTitles2(self, xMSF, _sStartFilterName, FolderName,
- _sEndFilterName=""):
-
- LocLayoutFiles = [[2],[]]
- if FolderName.size() == 0:
- raise NoValidPathException (None, "Path not given.");
-
- TitleVector = []
- URLVector = []
- xInterface = None
- try:
- xInterface = xMSF.createInstance(
- "com.sun.star.ucb.SimpleFileAccess")
- except com.sun.star.uno.Exception, e:
- traceback.print_exc()
- raise NoValidPathException (None, "Internal error.");
-
- j = 0
- while j < FolderName.size():
- sFolderName = FolderName.get(j)
- try:
- nameList = xInterface.getFolderContents(sFolderName, False)
- if _sStartFilterName == None or _sStartFilterName.equals(""):
- _sStartFilterName = None
- else:
- _sStartFilterName = _sStartFilterName + "-"
-
- fileName = ""
- i = 0
- while i < nameList.length:
- fileName = self.getFilename(i)
- if _sStartFilterName == None or \
- fileName.startsWith(_sStartFilterName):
- if _sEndFilterName.equals(""):
- sTitle = getTitle(xMSF, nameList[i])
- elif fileName.endsWith(_sEndFilterName):
- fileName = fileName.replaceAll(
- _sEndFilterName + "$", "")
- sTitle = fileName
- else:
- # no or wrong (start|end) filter
- continue
-
- URLVector.add(nameList[i])
- TitleVector.add(sTitle)
-
- i += 1
- except CommandAbortedException, exception:
- traceback.print_exc()
- except com.sun.star.uno.Exception, e:
- pass
-
- j += 1
- LocNameList = [URLVector.size()]
- LocTitleList = [TitleVector.size()]
- # LLA: we have to check if this works
- URLVector.toArray(LocNameList)
-
- TitleVector.toArray(LocTitleList)
-
- LocLayoutFiles[1] = LocNameList
- LocLayoutFiles[0] = LocTitleList
-
- #COMMENTED
- #JavaTools.bubblesortList(LocLayoutFiles);
- return LocLayoutFiles
-
def __init__(self, xmsf):
#get a simple file access...
self.fileAccess = xmsf.createInstance(