summaryrefslogtreecommitdiff
path: root/wizards/source/euro/Common.xba
diff options
context:
space:
mode:
authorBehrend Cornelius <bc@openoffice.org>2002-07-11 14:36:57 +0000
committerBehrend Cornelius <bc@openoffice.org>2002-07-11 14:36:57 +0000
commitd3af685a4997d8634db0545a9472101b3eb1621a (patch)
treeb215adf472f513e9a79e3fb02df63c53e5db23cd /wizards/source/euro/Common.xba
parent1d777c6a0debcd0733a8f369f6c3777fb5b67597 (diff)
#95686# Progressbar now in Dialog inserted
Diffstat (limited to 'wizards/source/euro/Common.xba')
-rw-r--r--wizards/source/euro/Common.xba27
1 files changed, 22 insertions, 5 deletions
diff --git a/wizards/source/euro/Common.xba b/wizards/source/euro/Common.xba
index 51e3f1d70c5c..e82ed658ed94 100644
--- a/wizards/source/euro/Common.xba
+++ b/wizards/source/euro/Common.xba
@@ -61,12 +61,12 @@ Function ConvertDocument()
bRangeListDefined = False
End If
Else
- oStatusline.SetValue(10)
+ DialogModel.ProgressBar.ProgressValue = 10 &apos; oStatusline.SetValue(10)
ConvertTextFields()
- oStatusline.SetValue(80)
+ DialogModel.ProgressBar.ProgressValue = 80 &apos; oStatusline.SetValue(80)
ConvertWriterTables()
End If
- oStatusline.End
+ EndStatusLine()
On Local Error Goto 0
End Function
@@ -201,7 +201,11 @@ End Sub
Sub IncreaseStatusValue(AddStatusValue as Integer)
StatusValue = Int(StatusValue + AddStatusValue)
- oStatusline.SetValue(StatusValue)
+ If DialogModel.Step = 3 Then
+ DialogModel.ProgressBar.ProgressValue = StatusValue
+ Else
+ oStatusline.SetValue(StatusValue)
+ End If
End Sub
@@ -255,6 +259,19 @@ End Sub
Sub InitializeProgressbar()
CurCellCount = 0
- oStatusline.Start(sStsPROGRESS,100) &apos;&quot;Konvertierungsfortschritt:&quot;
+ If Not IsNull(oStatusLine) Then
+ oStatusline.Start(sStsPROGRESS, 100)
+ Else
+ DialogModel.ProgressBar.ProgressValue = 0
+ End If
StatusValue = 0
+End Sub
+
+
+Sub EndStatusLine()
+ If Not IsNull(oStatusLine) Then
+ oStatusline.End
+ Else
+ DialogModel.ProgressBar.ProgressValue = 100
+ End If
End Sub</script:module> \ No newline at end of file