summaryrefslogtreecommitdiff
path: root/wizards/source/euro
diff options
context:
space:
mode:
authorTom Verbeek <tv@openoffice.org>2001-04-25 09:10:51 +0000
committerTom Verbeek <tv@openoffice.org>2001-04-25 09:10:51 +0000
commit374faa1fe260c75d507dc59553a6b4be53d94247 (patch)
tree280a3620cc7223cbdf0f992554a0231caf59b703 /wizards/source/euro
parenta73f0bfad51f25f370e9e52c11b5074e8fcc35f5 (diff)
changed 'LoadLibrary' to 'BasicLibraries.LoadLibrary'
Diffstat (limited to 'wizards/source/euro')
-rw-r--r--wizards/source/euro/AutoPilotRun.xba40
-rw-r--r--wizards/source/euro/ConvertRun.xba30
2 files changed, 35 insertions, 35 deletions
diff --git a/wizards/source/euro/AutoPilotRun.xba b/wizards/source/euro/AutoPilotRun.xba
index 37228129c2ca..2f450d6c56d4 100644
--- a/wizards/source/euro/AutoPilotRun.xba
+++ b/wizards/source/euro/AutoPilotRun.xba
@@ -19,7 +19,7 @@ Public UnprotectList(50,1) as String
Public DoUnprotect as Integer
Public Password as String
Public DocIndex as Integer
-Public oPathSettings as Object
+Public oPathSettings as Object
Public oDocInfo as Object
Public oUcb as Object
Public TotDocCount as Integer
@@ -27,7 +27,7 @@ Public sTotDocCount as String
Sub StartAutoPilot()
Dim i As Integer
- LoadLibrary(&quot;tools&quot;)
+ BasicLibraries.LoadLibrary(&quot;Tools&quot;)
If InitResources(&quot;Euro Converter&quot;, &quot;eur&quot;) Then
oDocInfo = CreateUnoService(&quot;com.sun.star.document.StandaloneDocumentInfo&quot;)
oUcb = createUnoService(&quot;com.sun.star.ucb.SimpleFileAccess&quot;)
@@ -39,7 +39,7 @@ Dim i As Integer
End Sub
-Sub ConvertDocuments()
+Sub ConvertDocuments()
Dim FilesList()
Msgbox DialogModel.lblSource.Label
Source = AssignFileName(DialogModel.txtSource.Text, DialogModel.lblSource.Label, True)
@@ -115,7 +115,7 @@ Function StoreDocument()
If TargetFile &lt;&gt; &quot;&quot; Then
On Local Error Goto NOSAVING
If TargetFile &lt;&gt; SourceFile Then
- oDocument.StoreToUrl(TargetFile,NoArgs)
+ oDocument.StoreToUrl(TargetFile,NoArgs)
Else
oDocument.Store
End If
@@ -152,7 +152,7 @@ End Sub
Sub SourceSearchDialog()
If DialogModel.optWholeDir.State = 1 Then
- &apos;Konvertierung eines gesamten Verzeichnisses
+ &apos;Konvertierung eines gesamten Verzeichnisses
Source = Application.FileDialog( &quot;P&quot;, sMsgSELDIR, DialogModel.txtSource.Text ) &apos; &quot;Wählen Sie ein Verzeichnis&quot;
Else
Source = Application.FileDialog( &quot;O&quot;, sMsgSELFILE, DialogModel.txtSource.Text ) &apos; &quot;Wählen Sie eine Datei&quot;
@@ -195,14 +195,14 @@ Dim sNoDirMessage as String
End If
End if
Else
- Msgbox(HeaderString &amp; &quot; &apos;&quot; &amp; sPath &amp; &quot;&apos; &quot; &amp; sMsgNOTTHERE,48, sMsgDLGTITLE)
+ Msgbox(HeaderString &amp; &quot; &apos;&quot; &amp; sPath &amp; &quot;&apos; &quot; &amp; sMsgNOTTHERE,48, sMsgDLGTITLE)
End If
If bIsValid Then
AssignFileName() = sPath
Else
AssignFilename() = &quot;&quot;
End If
-End Function
+End Function
@@ -227,8 +227,8 @@ Dim sStatustext as String
If oListSheet.IsProtected Then
&apos; Sheet is protected by a Password
oDocument.CurrentController.SetActiveSheet(oListSheet)
-
- QueryText = ReplaceString(sMsgPWPROTECT,&quot;&apos;&quot; &amp; ListSheetName &amp; &quot;&apos;&quot;, &quot;%1TableName%1&quot;)
+
+ QueryText = ReplaceString(sMsgPWPROTECT,&quot;&apos;&quot; &amp; ListSheetName &amp; &quot;&apos;&quot;, &quot;%1TableName%1&quot;)
&apos;&quot;Geben Sie das Kennwort zum Entschützen der Tabelle &apos;&quot; &amp; ListSheetName &amp; &quot; ein:&apos;&quot;
Do
InitializePasswordDialog()
@@ -256,7 +256,7 @@ Dim sStatustext as String
End If
Else
&apos; The Answer is &apos;No&apos; (Tables shall not be unprotected)
- If OldDoUnprotect = 0 Then
+ If OldDoUnprotect = 0 Then
Msgbox (sMsgSHEETSNOPROTECT, 64, sMsgDLGTITLE)
End If &apos;&quot;Tabellen werden nicht entschützt!&quot;
Unprotectsheet = False
@@ -315,11 +315,11 @@ End Sub
&apos; unprotected
Sub AddSheettoUnprotectionlist(ListSheetName,Password)
UnprotectList(Int(UnProtectList(0,0))+ 1,0) = ListSheetName
- UnprotectList(Int(UnProtectList(0,0))+ 1,1) = Password
+ UnprotectList(Int(UnProtectList(0,0))+ 1,1) = Password
&apos; The first Field contains the highest Index of the list
&apos; and therefor has to be incremented
UnprotectList(0,0) = Str(Val(UnProtectList(0,0)) + 1)
-End Sub
+End Sub
Sub HelperDialog()
@@ -331,7 +331,7 @@ End Sub
Sub InitializeThirdStep()
Dim TextBoxText as String
DialogModel.lblCurrencies.Visible = False
- DialogModel.lstCurrencies.Visible = False
+ DialogModel.lstCurrencies.Visible = False
DialogModel.cmdBack.Label = sBACK
DialogModel.LabelRetrieval.FontBold = True
DialogModel.LabelRetrieval.Label = sPrgsRETRIEVAL
@@ -339,14 +339,14 @@ Dim TextBoxText as String
DialogModel.cmdGoOn.Visible = False
DialogModel.Step = 3
If DialogModel.optWholeDir.State = 1 Then
- TextBoxText = sSOURCEDIR &amp; &quot; &quot; &amp; Source &amp; chr(13) &apos;&amp; &quot; &quot;
+ TextBoxText = sSOURCEDIR &amp; &quot; &quot; &amp; Source &amp; chr(13) &apos;&amp; &quot; &quot;
If DialogModel.chkRecursive.State = 1 Then
- TextBoxText = TextBoxText &amp; DeleteStr(sSUBDIR,&quot;&amp;&quot;) &amp; chr(13)&apos; &amp; &quot; &quot;
+ TextBoxText = TextBoxText &amp; DeleteStr(sSUBDIR,&quot;&amp;&quot;) &amp; chr(13)&apos; &amp; &quot; &quot;
End If
Else
- TextBoxText = sSOURCEFILE &amp; &quot; &quot; &amp; Source &amp; chr(13) &apos;&amp; &quot; &quot;
+ TextBoxText = sSOURCEFILE &amp; &quot; &quot; &amp; Source &amp; chr(13) &apos;&amp; &quot; &quot;
End If
- TextBoxText = TextBoxText &amp; sTARGETDIR &amp; &quot; &quot; &amp; TargetDir &amp; chr(13)&apos; &amp; &quot; &quot;
+ TextBoxText = TextBoxText &amp; sTARGETDIR &amp; &quot; &quot; &amp; TargetDir &amp; chr(13)&apos; &amp; &quot; &quot;
If DialogModel.chkProtect.State = 1 Then
TextBoxText = TextboxText &amp; sPrgsUNPROTECT
End If
@@ -358,9 +358,9 @@ End Sub
Sub SwitchBack()
DialogModel.Step = 2
DialogModel.lblCurrencies.Visible = True
- DialogModel.lstCurrencies.Visible = True
+ DialogModel.lstCurrencies.Visible = True
DialogModel.cmdBack.Visible = False
- DialogModel.cmdGoOn.Visible = True
+ DialogModel.cmdGoOn.Visible = True
End Sub
@@ -395,4 +395,4 @@ Sub InitializeProgressPage()
DialogModel.LabelCurProgress.FontBold = True
DialogModel.LabelRetrieval.Visible = True
DialogModel.LabelCurProgress.Visible = True
-End Sub</script:module> \ No newline at end of file
+End Sub</script:module>
diff --git a/wizards/source/euro/ConvertRun.xba b/wizards/source/euro/ConvertRun.xba
index 0df2eed92417..1effb30bc575 100644
--- a/wizards/source/euro/ConvertRun.xba
+++ b/wizards/source/euro/ConvertRun.xba
@@ -2,13 +2,13 @@
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="ConvertRun" script:language="StarBasic">Option Explicit
&apos; Todo Den Bug mit der Statuszeilengeschichte überprüfen
-&apos; Todo Vorselektion der Listbox
+&apos; Todo Vorselektion der Listbox
&apos; Mauspointer umschalten:
&apos; Todo: Sinnigkeit von &apos;DocDisposed&apos; noch einmal überprüfen
Sub Main()
- LoadLibrary(&quot;tools&quot;)
+ BasicLibraries.LoadLibrary(&quot;Tools&quot;)
If InitResources(&quot;Euro Converter&quot;, &quot;eur&quot;) Then
DoUnProtect = 0
bPreSelected = True
@@ -78,7 +78,7 @@ Dim AddStyle as Boolean
oSheetRanges = oCursheet.CellFormatRanges.createEnumeration
While oSheetRanges.hasMoreElements
oRange = oSheetRanges.NextElement
- If oRange.getPropertyState(&quot;NumberFormat&quot;) = 1 Then
+ If oRange.getPropertyState(&quot;NumberFormat&quot;) = 1 Then
If oRange.CellStyle = CurStyleName Then
oSelRanges.InsertbyName(&quot;&quot;,oRange)
End If
@@ -94,7 +94,7 @@ Dim AddStyle as Boolean
For n = 0 To Ubound(Listbox.SelectedItems())
m = Listbox.SelectedItems(n)
RangeName = Listbox.StringItemList(m)
- oListSheet = RetrieveSheetoutofRangeName(RangeName)
+ oListSheet = RetrieveSheetoutofRangeName(RangeName)
AddRange = UnprotectSheet(oListSheet)
&apos; Todo: Klären wie das am besten geht!
If Not AddRange Then
@@ -103,9 +103,9 @@ Dim AddStyle as Boolean
SelRangeList(a) = RangeName
SelRangeList(0) = Str(a)
a = a + 1
- If oListSheet.Name = sCurSheetName Then
+ If oListSheet.Name = sCurSheetName Then
oRange = RetrieveRangeoutofRangeName(RangeName)
- oSelRanges.InsertbyName(&quot;&quot;,oRange)
+ oSelRanges.InsertbyName(&quot;&quot;,oRange)
End If
End If
Next n
@@ -158,7 +158,7 @@ Dim bNoLBSelection as Boolean
End Sub
-Sub ConvertRangesOrStylesOfDocument()
+Sub ConvertRangesOrStylesOfDocument()
Dim i as Integer
Dim Listbox as Object
Dim ItemName as String
@@ -229,10 +229,10 @@ Dim OldCurrIndex as Integer
If DialogModel.Step = 1 Then
If OldCurrIndex = -1 Then
DialogModel.chkComplete.State = 1
- EnableStep1DialogControls(True,False, True)
+ EnableStep1DialogControls(True,False, True)
SetOptionValuestoNull()
Else
- EnableStep1DialogControls(False,False, False)
+ EnableStep1DialogControls(False,False, False)
If DialogModel.optCellTemplates.State = 1 Then
EnableStep1DialogControls(False, False, False)
CreateStyleEnumeration()
@@ -243,9 +243,9 @@ Dim OldCurrIndex as Integer
CreateRangeEnumeration(False)
ElseIf DialogModel.optSelRange.State= 1 Then
&apos;Preselected Range
- CheckRangeSelection()
+ CheckRangeSelection()
End If
- EnableStep1DialogControls(True, True, True)
+ EnableStep1DialogControls(True, True, True)
End If
ElseIf DialogModel.Step = 2 Then
EnableStep2DialogControls(True)
@@ -311,8 +311,8 @@ Dim OldCurExtension(1) as String
AddSelectedRangeToSelRangesEnum()
bPreSelected = CheckIfRangeisCurrency(oRange)
If bPreSelected Then
-&apos; Todo: Array als ganzes übergeben!
- OldCurrSymbolList() = CurrSymbolList()
+&apos; Todo: Array als ganzes übergeben!
+ OldCurrSymbolList() = CurrSymbolList()
OldCurExtension() = CurExtension()
OldCurrIndex = CurrIndex
For i = 0 To 10
@@ -389,7 +389,7 @@ Dim LocCountry as String
Dim LocLanguage as String
LocCountry = oLocale.Country
LocLanguage = oLocale.Language
- For i = 0 To 1
+ For i = 0 To 1
If LocLanguage = LangIDValue(CurrIndex,i,0) AND LocCountry = LangIDValue(CurrIndex,i,1) Then
CheckLocale = True
Exit Function
@@ -405,4 +405,4 @@ Sub SetOptionValuestoNull()
DialogModel.optDocRanges.State = 0
DialogModel.optSelRange.State = 0
End Sub
-</script:module> \ No newline at end of file
+</script:module>