From 84726aa1c1abbc734330c78d7faee1393821dc44 Mon Sep 17 00:00:00 2001 From: Oliver Bolte Date: Wed, 28 May 2008 07:25:58 +0000 Subject: 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: --- wizards/source/tools/UCB.xba | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'wizards/source') 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("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 -- cgit v1.2.3