summaryrefslogtreecommitdiffstats
path: root/wizards
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-01-29 12:58:42 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-01-29 12:58:42 +0000
commit7318c02c362d9ce6c4c6fbfeaeee2af86b9bf626 (patch)
tree93c0da42c41277a769bafbe680a6c2639df00767 /wizards
parentINTEGRATION: CWS c16v002_SRC680 (1.45.114); FILE MERGED (diff)
downloadcore-7318c02c362d9ce6c4c6fbfeaeee2af86b9bf626.tar.gz
core-7318c02c362d9ce6c4c6fbfeaeee2af86b9bf626.zip
INTEGRATION: CWS c16v002_SRC680 (1.14.134); FILE MERGED
2007/12/03 14:42:54 bc 1.14.134.1: #b6633533# Replaced deprecated service call
Diffstat (limited to 'wizards')
-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 436fd551b944..48f32e4d1752 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(&quot;com.sun.star.document.DocumentProperties&quot;)
+ oDocInfo = CreateUnoService(&quot;com.sun.star.document.StandaloneDocumentInfo&quot;)
oUcbObject = createUnoService(&quot;com.sun.star.ucb.SimpleFileAccess&quot;)
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.Read(sFileName)
+ oDocInfo.loadFromUrl(sFileName)
sDocTitle = oDocInfo.Title
NOFILE:
If Err &lt;&gt; 0 Then
@@ -165,7 +165,7 @@ End Function
&apos; from the Header of the document
Function GetRealFileContent(oDocInfo as Object, FileName as String) As String
On Local Error Goto NOFILE
- oDocInfo.Read(FileName)
+ oDocInfo.loadFromUrl(FileName)
GetRealFileContent = oDocInfo.MIMEType
NOFILE:
If Err &lt;&gt; 0 Then