Kaydet (Commit) 4f28b0cf authored tarafından Rüdiger Timm's avatar Rüdiger Timm

INTEGRATION: CWS nativefixer7 (1.43.22); FILE MERGED

2005/05/09 12:01:48 ih 1.43.22.1: write into logfile only if this file exists
üst 840f0015
...@@ -437,7 +437,7 @@ Dim s as Integer ...@@ -437,7 +437,7 @@ Dim s as Integer
FirstList(i,1) = SecList(s,1) FirstList(i,1) = SecList(s,1)
sLocExtension = lcase(FirstList(i,1)) sLocExtension = lcase(FirstList(i,1))
Select Case sLocExtension Select Case sLocExtension
Case "sdw", "sdc", "sda", "sdd", "smf", "sgl", "doc", "xls", "ppt", "sxi" , "sxw" , "sxd" , "sxg" , "sxm" , "sxc" Case "sdw", "sdc", "sda", "sdd", "smf", "sgl", "doc", "xls", "ppt", "sxi" , "sxw" , "sxd" , "sxg" , "sxm" , "sxc" , "pps"
AbsDocuFound = AbsDocuFound + 1 AbsDocuFound = AbsDocuFound + 1
Case else Case else
AbsTemplateFound = AbsTemplateFound + 1 AbsTemplateFound = AbsTemplateFound + 1
...@@ -517,6 +517,9 @@ Dim FilterIndex as Integer ...@@ -517,6 +517,9 @@ Dim FilterIndex as Integer
Dim sDocumentType as String Dim sDocumentType as String
Dim oTextCursor Dim oTextCursor
Dim oCell Dim oCell
If Not bLogExists Then
Exit Sub
End If
bFilterTracerIsinsideTable = False bFilterTracerIsinsideTable = False
FilterIndex = GetIndexForPartStringinMultiArray(sFilterName(), CurFileContent, 0) FilterIndex = GetIndexForPartStringinMultiArray(sFilterName(), CurFileContent, 0)
sDocumentType = sFiltername(FilterIndex,3) sDocumentType = sFiltername(FilterIndex,3)
...@@ -609,14 +612,14 @@ Dim bLogIsThere as Boolean ...@@ -609,14 +612,14 @@ Dim bLogIsThere as Boolean
OpenProperties(0).Name = "Hidden" OpenProperties(0).Name = "Hidden"
OpenProperties(0).Value = True OpenProperties(0).Value = True
oLogDocument = StarDesktop.LoadComponentFromURL("private:factory/swriter", "_default", 4, OpenProperties()) oLogDocument = StarDesktop.LoadComponentFromURL("private:factory/swriter", "_default", 4, OpenProperties())
sLogUrl = SOWorkPath & "/Logfile.sxw" sLogUrl = SOWorkPath & "/Logfile.odt"
Do Do
bLogIsThere = oUcb.Exists(sLogUrl) bLogIsThere = oUcb.Exists(sLogUrl)
If bLogIsThere Then If bLogIsThere Then
If i = 2 Then If i = 2 Then
sLogUrl = ReplaceString(sLogUrl, "/Logfile_2.sxw", "/Logfile.sxw") sLogUrl = ReplaceString(sLogUrl, "/Logfile_2.odt", "/Logfile.odt")
Else Else
sLogUrl = ReplaceString(sLogUrl, "/Logfile_" & cStr(i) & ".sxw", "/Logfile_" & cStr(i-1) & ".sxw") sLogUrl = ReplaceString(sLogUrl, "/Logfile_" & cStr(i) & ".odt", "/Logfile_" & cStr(i-1) & ".odt")
End If End If
i = i + 1 i = i + 1
End If End If
......
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