Kaydet (Commit) 7318c02c authored tarafından Rüdiger Timm's avatar Rüdiger Timm

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
üst d35659ad
...@@ -40,7 +40,7 @@ Dim sFileArray(StartUbound,1) as String ...@@ -40,7 +40,7 @@ Dim sFileArray(StartUbound,1) as String
DirIndex = 0 DirIndex = 0
sDirArray(iDirIndex) = AnchorDir sDirArray(iDirIndex) = AnchorDir
iDirCount = 1 iDirCount = 1
oDocInfo = CreateUnoService("com.sun.star.document.DocumentProperties") oDocInfo = CreateUnoService("com.sun.star.document.StandaloneDocumentInfo")
oUcbObject = createUnoService("com.sun.star.ucb.SimpleFileAccess") oUcbObject = createUnoService("com.sun.star.ucb.SimpleFileAccess")
If oUcbObject.Exists(AnchorDir) Then If oUcbObject.Exists(AnchorDir) Then
Do Do
...@@ -146,7 +146,7 @@ End Sub ...@@ -146,7 +146,7 @@ End Sub
Function RetrieveDocTitle(oDocInfo as Object, sFileName as String) As String Function RetrieveDocTitle(oDocInfo as Object, sFileName as String) As String
Dim sDocTitle as String Dim sDocTitle as String
On Local Error Goto NOFILE On Local Error Goto NOFILE
oDocInfo.Read(sFileName) oDocInfo.loadFromUrl(sFileName)
sDocTitle = oDocInfo.Title sDocTitle = oDocInfo.Title
NOFILE: NOFILE:
If Err <> 0 Then If Err <> 0 Then
...@@ -165,7 +165,7 @@ End Function ...@@ -165,7 +165,7 @@ End Function
' from the Header of the document ' from the Header of the document
Function GetRealFileContent(oDocInfo as Object, FileName as String) As String Function GetRealFileContent(oDocInfo as Object, FileName as String) As String
On Local Error Goto NOFILE On Local Error Goto NOFILE
oDocInfo.Read(FileName) oDocInfo.loadFromUrl(FileName)
GetRealFileContent = oDocInfo.MIMEType GetRealFileContent = oDocInfo.MIMEType
NOFILE: NOFILE:
If Err <> 0 Then If Err <> 0 Then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment