summaryrefslogtreecommitdiff
path: root/wizards/source/importwizard/Main.xba
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-01-14 19:58:02 +0100
committerMichael Stahl <mstahl@redhat.com>2013-01-14 20:06:24 +0100
commit8bab53a19828b888ca689dafaf98aa3ba82228a8 (patch)
tree7e1a6bdeff4dab9aa3d973c8fbcb43f8fa846317 /wizards/source/importwizard/Main.xba
parent907b63a0f3f754d4a975717ffec9cbc03214f0f3 (diff)
wizards: Document Conversion: remove StarOffice mode:
With the removal of binfilter, legacy StarOffice format documents cannot be converted any more, so remove the associated code. Change-Id: I49da6b56eb893acebce0de43846128abaede6a71
Diffstat (limited to 'wizards/source/importwizard/Main.xba')
-rw-r--r--wizards/source/importwizard/Main.xba45
1 files changed, 5 insertions, 40 deletions
diff --git a/wizards/source/importwizard/Main.xba b/wizards/source/importwizard/Main.xba
index 875fd36b62d0..37475a05045e 100644
--- a/wizards/source/importwizard/Main.xba
+++ b/wizards/source/importwizard/Main.xba
@@ -25,7 +25,6 @@ Public ImportDialog as Object
Public ImportDialogArea as Object
Public oFactoryKey as Object
Public bShowLogFile as Boolean
-Public oBinFilterComp as Object
&apos; If the ProgressPage ist already on Top The Dialog will be immediately closed when this flag is
&apos; set to False
@@ -54,14 +53,13 @@ Sub Main()
ImportDialogArea = LoadDialog(&quot;ImportWizard&quot;,&quot;ImportDialog&quot;)
ImportDialog = ImportDialogArea.Model
LoadLanguage()
- WizardMode = SBXMLMODE
- MaxApplCount = 4
+ WizardMode = SBMICROSOFTMODE
+ MaxApplCount = 3
FillStep_Welcome()
RepaintHeaderPreview()
ImportDialog.ImportPreview.BackGroundColor = RGB(0,60,126)
ImportDialog.cmdGoOn.DefaultButton = True
ImportDialogArea.GetControl(&quot;optMSDocuments&quot;).SetFocus()
- oBinFilterComp = createBF_MigrateFilterIfPossible()
ToggleCheckboxesWithBoolean(True)
RetValue = ImportDialogArea.Execute()
@@ -106,8 +104,6 @@ Dim iCurStep as Integer
Select Case WizardMode
Case SBMICROSOFTMODE
Call ConvertAllDocuments(MSFilterName())
- CASE SBXMLMODE
- Call ConvertAllDocuments(XMLFilterName())
End Select
Case 4
CancelTask(True)
@@ -203,17 +199,6 @@ Dim i as Integer
End Sub
-Function createBF_MigrateFilterIfPossible()
-Dim oService
- On Error Goto RTError
- oService = createUnoService(&quot;com.sun.star.comp.office.BF_MigrateFilter&quot;)
- getBinFilterCompIfItExists = oService
- Exit Function
-RTError:
- createBF_MigrateFilterIfPossible = Nothing
-End Function
-
-
Function CheckInstalledModule(Index as Integer) as Boolean
Dim ModuleName as String
Dim NameList() as String
@@ -247,22 +232,9 @@ Sub ToggleCheckboxesWithBoolean(bMSEnable as Boolean)
WizardMode = SBMICROSOFTMODE
MaxApplCount = 3
Else
- WizardMode = SBXMLMODE
- MaxApplCount = 4
+ &apos;Not supposed to happen - is there an assert in BASIC...
End If
With ImportDialogArea
- If (isNull(oBinFilterComp)) Then
- .GetControl(&quot;optSODocuments&quot;).Visible = False
- .GetControl(&quot;chkSOApplication1&quot;).Visible = False
- .GetControl(&quot;chkSOApplication2&quot;).Visible = False
- .GetControl(&quot;chkSOApplication3&quot;).Visible = False
- .GetControl(&quot;chkSOApplication4&quot;).Visible = False
- Else
- .GetControl(&quot;chkSOApplication1&quot;).Model.Enabled = Not bMSEnable
- .GetControl(&quot;chkSOApplication2&quot;).Model.Enabled = Not bMSEnable
- .GetControl(&quot;chkSOApplication3&quot;).Model.Enabled = Not bMSEnable
- .GetControl(&quot;chkSOApplication4&quot;).Model.Enabled = Not bMSEnable
- End if
.GetControl(&quot;chkMSApplication1&quot;).Model.Enabled = bMSEnable
.GetControl(&quot;chkMSApplication2&quot;).Model.Enabled = bMSEnable
.GetControl(&quot;chkMSApplication3&quot;).Model.Enabled = bMSEnable
@@ -283,8 +255,6 @@ Dim i as Integer
With ImportDialog
If .optMSDocuments.State = 1 Then
bDoEnable = .chkMSApplication1.State = 1 Or .chkMSApplication2.State = 1 Or .chkMSApplication3.State = 1
- Else
- bDoEnable = .chkSOApplication1.State = 1 Or .chkSOApplication2.State = 1 Or .chkSOApplication3.State = 1 Or .chkSOApplication4.State = 1
End If
End With
bDoKeepApplValues = False
@@ -301,13 +271,8 @@ Sub TakeOverPathSettings()
If Applications(CurOffice,SBDOCSOURCE) = &quot;&quot; Then
Applications(CurOffice,SBDOCSOURCE) = Applications(0,SBDOCSOURCE)
Applications(CurOffice,SBDOCTARGET) = Applications(0,SBDOCTARGET)
- If WizardMode = SBXMLMODE AND Applications(CurOffice,SBAPPLKEY) = 3 Then
- Applications(CurOffice,SBTEMPLSOURCE) = Applications(CurOffice,SBDOCSOURCE)
- Applications(CurOffice,SBTEMPLTARGET) = Applications(CurOffice,SBDOCTARGET)
- Else
- Applications(CurOffice,SBTEMPLSOURCE) = Applications(0,SBTEMPLSOURCE)
- Applications(CurOffice,SBTEMPLTARGET) = Applications(0,SBTEMPLTARGET)
- End If
+ Applications(CurOffice,SBTEMPLSOURCE) = Applications(0,SBTEMPLSOURCE)
+ Applications(CurOffice,SBTEMPLTARGET) = Applications(0,SBTEMPLTARGET)
End If
End Sub