summaryrefslogtreecommitdiff
path: root/wizards/source/tools/UCB.xba
diff options
context:
space:
mode:
Diffstat (limited to 'wizards/source/tools/UCB.xba')
-rw-r--r--wizards/source/tools/UCB.xba6
1 files changed, 3 insertions, 3 deletions
diff --git a/wizards/source/tools/UCB.xba b/wizards/source/tools/UCB.xba
index 48f32e4d1..436fd551b 100644
--- a/wizards/source/tools/UCB.xba
+++ b/wizards/source/tools/UCB.xba
@@ -40,7 +40,7 @@ Dim sFileArray(StartUbound,1) as String
DirIndex = 0
sDirArray(iDirIndex) = AnchorDir
iDirCount = 1
- oDocInfo = CreateUnoService("com.sun.star.document.StandaloneDocumentInfo")
+ oDocInfo = CreateUnoService("com.sun.star.document.DocumentProperties")
oUcbObject = createUnoService("com.sun.star.ucb.SimpleFileAccess")
If oUcbObject.Exists(AnchorDir) Then
Do
@@ -146,7 +146,7 @@ End Sub
Function RetrieveDocTitle(oDocInfo as Object, sFileName as String) As String
Dim sDocTitle as String
On Local Error Goto NOFILE
- oDocInfo.loadFromUrl(sFileName)
+ oDocInfo.Read(sFileName)
sDocTitle = oDocInfo.Title
NOFILE:
If Err <> 0 Then
@@ -165,7 +165,7 @@ End Function
' from the Header of the document
Function GetRealFileContent(oDocInfo as Object, FileName as String) As String
On Local Error Goto NOFILE
- oDocInfo.loadFromUrl(FileName)
+ oDocInfo.Read(FileName)
GetRealFileContent = oDocInfo.MIMEType
NOFILE:
If Err <> 0 Then