summaryrefslogtreecommitdiff
path: root/wizards/source
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2008-05-28 07:25:58 +0000
committerOliver Bolte <obo@openoffice.org>2008-05-28 07:25:58 +0000
commit84726aa1c1abbc734330c78d7faee1393821dc44 (patch)
treed2989c760c5c641ddb13c54b87772671f2b434c5 /wizards/source
parentbbe05eff3cc128d887afe715ac50484108d523c9 (diff)
INTEGRATION: CWS extrasso9 (1.15.20); FILE MERGED
2008/05/05 12:52:40 va 1.15.20.1: #i78503# ReplaceString and ArrayOutOfString Functions in Tools/String module refinement. Issue number: Submitted by: Reviewed by:
Diffstat (limited to 'wizards/source')
-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 48f32e4d1752..436fd551b944 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.StandaloneDocumentInfo&quot;)
+ oDocInfo = CreateUnoService(&quot;com.sun.star.document.DocumentProperties&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.loadFromUrl(sFileName)
+ oDocInfo.Read(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.loadFromUrl(FileName)
+ oDocInfo.Read(FileName)
GetRealFileContent = oDocInfo.MIMEType
NOFILE:
If Err &lt;&gt; 0 Then