summaryrefslogtreecommitdiff
path: root/wizards/source/importwizard/Main.xba
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2003-03-27 16:59:30 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2003-03-27 16:59:30 +0000
commit092636c56efb6b857c0e1dacecd921a2cc120268 (patch)
treef3ba43a18cb1cefeade90b15154a6aa49269af21 /wizards/source/importwizard/Main.xba
parent707c086de02557fd47d0a0b9434c8e4277fe4f29 (diff)
MWS_SRX644: migrate branch mws_srx644 -> HEAD
Diffstat (limited to 'wizards/source/importwizard/Main.xba')
-rw-r--r--wizards/source/importwizard/Main.xba37
1 files changed, 28 insertions, 9 deletions
diff --git a/wizards/source/importwizard/Main.xba b/wizards/source/importwizard/Main.xba
index ea1b12875..ad4ac88ba 100644
--- a/wizards/source/importwizard/Main.xba
+++ b/wizards/source/importwizard/Main.xba
@@ -11,7 +11,7 @@ Public oFactoryKey as Object
&apos; If the ProgressPage ist already on Top The Dialog will be immediately closed when this flag is
&apos; set to False
-Public bConversionIsRunnig as Boolean
+Public bConversionIsRunning as Boolean
Public RetValue as Integer
Sub Main()
@@ -20,13 +20,13 @@ Sub Main()
End If
BasicLibraries.LoadLibrary(&quot;Tools&quot;)
RetValue = 10
- bConversionIsRunnig = False
+ bConversionIsRunning = False
sCRLF = CHR(13) &amp; CHR(10)
oUcb = createUnoService(&quot;com.sun.star.ucb.SimpleFileAccess&quot;)
oFactoryKey = GetRegistryKeyContent(&quot;org.openoffice.Setup/Office/Factories&quot;)
- SOBitmapPath = GetOfficeSubPath(&quot;Template&quot;, &quot;wizard/bitmap&quot;)
- SOWorkPath = GetPathSettings(&quot;Work&quot;, False)
- SOTemplatePath = GetPathSettings(&quot;Template&quot;,False,1)
+ If GetImportWizardPaths() = False Then
+ Exit Sub
+ End If
bCancelTask = False
bDoKeepApplValues = False
CurOffice = 0
@@ -37,6 +37,7 @@ Sub Main()
MaxApplCount = 4
FillStep_Welcome()
RepaintHeaderPreview()
+ ImportDialog.ImportPreview.BackGroundColor = RGB(0,60,126)
ImportDialog.cmdGoOn.DefaultButton = True
ImportDialogArea.GetControl(&quot;optSODocuments&quot;).SetFocus()
RetValue = ImportDialogArea.Execute()
@@ -57,7 +58,7 @@ Dim iCurStep as Integer
If Not bDebugWizard Then
On Error Goto RTError
End If
- bConversionIsRunnig = False
+ bConversionIsRunning = False
iCurStep = ImportDialog.Step
Select Case iCurStep
Case 1
@@ -102,7 +103,7 @@ Dim iCurStep as Integer
If Not bDebugWizard Then
On Error Goto RTError
End If
- bConversionIsRunnig = False
+ bConversionIsRunning = False
iCurStep = ImportDialog.Step
Select Case iCurStep
Case 4
@@ -130,9 +131,10 @@ End Sub
Sub CancelTask()
- If bConversionIsRunnig Then
+ If bConversionIsRunning Then
If Msgbox(sConvertError1, 36, sConvertError2) = 6 Then
bCancelTask = True
+ bInterruptSearch = True
Else
bCancelTask = False
ImportDialog.cmdCancel.Enabled = True
@@ -255,4 +257,21 @@ Sub TakeOverPathSettings()
Applications(CurOffice,SBTEMPLTARGET) = Applications(0,SBTEMPLTARGET)
End If
End If
-End Sub</script:module> \ No newline at end of file
+End Sub
+
+
+Function GetImportWizardPaths() as Boolean
+ SOBitmapPath = GetOfficeSubPath(&quot;Template&quot;, &quot;wizard/bitmap&quot;)
+ If SOBitmapPath &lt;&gt; &quot;&quot; Then
+ SOWorkPath = GetPathSettings(&quot;Work&quot;, False)
+ If SOWorkPath &lt;&gt; &quot;&quot; Then
+ SOTemplatePath = GetPathSettings(&quot;Template&quot;,False,1)
+ If SOTemplatePath &lt;&gt; &quot;&quot; Then
+ GetImportWizardPaths() = True
+ Exit Function
+ End If
+ End If
+ End If
+ GetImportWizardPaths() = False
+End Function
+</script:module> \ No newline at end of file