diff options
Diffstat (limited to 'wizards/com/sun/star/wizards/common/UCB.py')
-rw-r--r-- | wizards/com/sun/star/wizards/common/UCB.py | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/wizards/com/sun/star/wizards/common/UCB.py b/wizards/com/sun/star/wizards/common/UCB.py index 4d97c01f3cc8..84d951f73f54 100644 --- a/wizards/com/sun/star/wizards/common/UCB.py +++ b/wizards/com/sun/star/wizards/common/UCB.py @@ -47,13 +47,6 @@ class UCB(object): self.fa = FileAccess(xmsf) self.xmsf = xmsf - def deleteDirContent(self, folder): - if (not self.fa.exists(folder, True)): - return - l = self.listFiles(folder, None) - for i in range(len(l)): - self.delete(FileAccess.connectURLs(folder, l[i])) - def delete(self, filename): # System.out.println("UCB.delete(" + filename) self.executeCommand(self.getContent(filename),"delete", True) @@ -71,14 +64,6 @@ class UCB(object): self.fa.xInterface.createFolder(targetDir) self.executeCommand(self.ucb, "globalTransfer", self.copyArg(sourceDir, filename, targetDir, targetName)) - # @deprecated - # @param sourceDir - # @param filename - # @param targetDir - # @throws Exception - def copy3(self, sourceDir, filename, targetDir): - self.copy2(sourceDir, filename, targetDir, "") - # target name can be PropertyNames.EMPTY_STRING, in which case the name stays lige the source name # @param sourceDir # @param sourceFilename @@ -148,24 +133,6 @@ class UCB(object): files.pop(i) # FIXME !!! dangerous return files - def getContentProperty(self, content, propName, classType): - pv = [Property()] - pv[0].Name = propName - pv[0].Handle = -1 - - row = self.executeCommand(content, "getPropertyValues", - uno.Any("[]com.sun.star.beans.Property", tuple(pv))) - if (isinstance(classType, str)): - return row.getString(1) - elif (isinstance(classType, bool)): - return True if (row.getBoolean(1)) else False - elif (isinstance(classType, int)): - return row.getInt(1) - elif (isinstance(classType, int)): - return row.getShort(1) - else: - return None - def getContent(self, path): try: ident = self.ucb.createContentIdentifier(path) |