summaryrefslogtreecommitdiff
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
commit4824404c40456b2d33aa8c54f4e7b35c06f846e9 (patch)
tree691f2de268640b88d42ab3ee4a297b1a12444b02
parent6c8a4a722cfe363042835ee0318e80b6ae6d6a88 (diff)
changed 'LoadLibrary' to 'BasicLibraries.LoadLibrary'
-rw-r--r--wizards/source/euro/AutoPilotRun.xba40
-rw-r--r--wizards/source/euro/ConvertRun.xba30
-rw-r--r--wizards/source/formwizard/FormWizard.xba22
-rw-r--r--wizards/source/gimmicks/AutoText.xba14
-rw-r--r--wizards/source/gimmicks/ChangeAllChars.xba20
-rw-r--r--wizards/source/gimmicks/GetTexts.xba62
-rw-r--r--wizards/source/gimmicks/ReadDir.xba48
-rw-r--r--wizards/source/gimmicks/Userfields.xba18
-rw-r--r--wizards/source/importwizard/Main.xba6
-rw-r--r--wizards/source/schedule/CalendarMain.xba22
-rw-r--r--wizards/source/template/Autotext.xba4
-rw-r--r--wizards/source/template/Correspondence.xba12
-rw-r--r--wizards/source/template/Samples.xba6
-rw-r--r--wizards/source/webwizard/HtmlAutoPilotBasic.xba42
14 files changed, 173 insertions, 173 deletions
diff --git a/wizards/source/euro/AutoPilotRun.xba b/wizards/source/euro/AutoPilotRun.xba
index 37228129c..2f450d6c5 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 0df2eed92..1effb30bc 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>
diff --git a/wizards/source/formwizard/FormWizard.xba b/wizards/source/formwizard/FormWizard.xba
index 015b78044..72d452191 100644
--- a/wizards/source/formwizard/FormWizard.xba
+++ b/wizards/source/formwizard/FormWizard.xba
@@ -34,9 +34,9 @@ Public Tablename as String
Sub MainWithDefault()
&apos;On Local Error Goto GlobalError
- LoadLibrary(&quot;tools&quot;)
- LoadLibrary(&quot;webwizard&quot;)
- bControlsareCreated = False
+ BasicLibraries.LoadLibrary(&quot;Tools&quot;)
+ BasicLibraries.LoadLibrary(&quot;webwizard&quot;)
+ bControlsareCreated = False
If Not InitResources(&quot;Formwizard&quot;,&quot;dbw&quot;) Then
Exit Sub
End If
@@ -73,7 +73,7 @@ Dim i as Integer
oDialogModel.cmdBack.Enabled = False
oDialogModel.cmdGoOn.Enabled = False
oDialogModel.lblTables.Enabled = False
- oDialogModel.lstSelFields.Tag = False
+ oDialogModel.lstSelFields.Tag = False
ToggleListboxControls(oDialogModel, False)
oDialogModel.Step = 1
oDialogModel.lstDatabases.StringItemList()= sDatabaseList()&apos; = AddItem(sDatabaseList(i)
@@ -96,7 +96,7 @@ End Sub
Function AddListtoList(FirstArray(), SecondArray(), Optional StarIndex)
Dim n as Integer
Dim m as Integer
-Dim MaxIndex as Integer
+Dim MaxIndex as Integer
MaxIndex = Ubound(FirstArray()) + Ubound(SecondArray()) + 1
Dim ResultArray(MaxIndex)
For m = 0 To Ubound(FirstArray())
@@ -108,7 +108,7 @@ Dim MaxIndex as Integer
Next n
AddListToList() = ResultArray()
End Function
-
+
Sub FormGetFields()
Dim i as Integer
@@ -171,12 +171,12 @@ Sub NextStep()
Select Case oDialogModel.Step
Case 1
GetTableMetaData()
- CreateDBForm()
+ CreateDBForm()
InitializeLayoutSettings()
oDialogModel.Step = 2
Case 2
oDialogModel.cmdGoOn.Label = Form_5_cmdReady
- ToggleControlsofLastPage()
+ ToggleControlsofLastPage()
oDialogModel.Step = 3
Case 3
HandleCreatedDocument()
@@ -196,10 +196,10 @@ Sub InitializeLayoutSettings()
ToggleAlignGroup(False)
ArrangeControls()
End If
-
+
&apos; Todo: Hier die Grafik Urls der ImageControls setzen.
&apos; Alternativ würde es vielleicht reichen die Border auf 3-D zu setzen
-End Sub
+End Sub
Sub HandleCreatedDocument()
@@ -271,4 +271,4 @@ Sub ToggleDatabasePage(bDoEnable as Boolean)
oDialogModel.optIgnoreBinaries.Enabled = bDoEnable
oDialogModel.optBinariesasGraphics.Enabled = bDoEnable
oDialogModel.cmdHelp.Enabled = bDoEnable
-End Sub</script:module> \ No newline at end of file
+End Sub</script:module>
diff --git a/wizards/source/gimmicks/AutoText.xba b/wizards/source/gimmicks/AutoText.xba
index e40a3f8a7..ee97d0a60 100644
--- a/wizards/source/gimmicks/AutoText.xba
+++ b/wizards/source/gimmicks/AutoText.xba
@@ -11,27 +11,27 @@ Dim oAutoTextContainer, oAutogroup, oAutoText as Object
Dim oCharStyles, oContentStyle, oHeaderStyle, oGroupTitleStyle as Object
Dim n, m, iAutoCount as Integer
- LoadLibrary(&quot;tools&quot;)
+ BasicLibraries.LoadLibrary(&quot;Tools&quot;)
LoadLanguage(StarDesktop.ISOLocale.Language)
- &apos; Open a new empty document
+ &apos; Open a new empty document
oDocument = StarDesktop.LoadComponentFromURL(&quot;staroffice:factory/swriter&quot;,&quot;_blank&quot;,0,NoArgs)
oDocuText = oDocument.Text
&apos; Create The Character-templates
oCharStyles = oDocument.StyleFamilies.GetByName(&quot;CharacterStyles&quot;)
-
+
&apos; The Characterstyle for the Header that describes the Title of Autotextgroups
oGroupTitleStyle = oDocument.createInstance(&quot;com.sun.star.style.CharacterStyle&quot;)
- oGroupTitleStyle.charWeight = com.sun.star.awt.FontWeight.BOLD
+ oGroupTitleStyle.charWeight = com.sun.star.awt.FontWeight.BOLD
oGroupTitleStyle.CharHeight = 14
oCharStyles.InsertbyName(&quot;AutoTextGroupTitle&quot;, oGroupTitleStyle)
&apos; The Characterstyle for the Header that describes the Title of Autotextgroups
oHeaderStyle = oDocument.createInstance(&quot;com.sun.star.style.CharacterStyle&quot;)
- oHeaderStyle.charWeight = com.sun.star.awt.FontWeight.BOLD
+ oHeaderStyle.charWeight = com.sun.star.awt.FontWeight.BOLD
oCharStyles.InsertbyName(&quot;AutoTextHeading&quot;, oHeaderStyle)
-
+
&apos; &quot;Ordinary&quot; Table Content
oContentStyle = oDocument.createInstance(&quot;com.sun.star.style.CharacterStyle&quot;)
oCharStyles.InsertbyName(&quot;TableContent&quot;, oContentStyle)
@@ -80,4 +80,4 @@ Dim oCellCursor as Object
oCellCursor = oCell.CreateTextCursor()
oCellCursor.CharStyle = sCellStyle
oCell.Text.insertString(oCellCursor,sCellString,False)
-End Sub</script:module> \ No newline at end of file
+End Sub</script:module>
diff --git a/wizards/source/gimmicks/ChangeAllChars.xba b/wizards/source/gimmicks/ChangeAllChars.xba
index 69dcd32b1..a7a769de9 100644
--- a/wizards/source/gimmicks/ChangeAllChars.xba
+++ b/wizards/source/gimmicks/ChangeAllChars.xba
@@ -15,7 +15,7 @@ Dim i as Integer
Const MBYES = 6
Const MBABORT = 2
Const MBNO = 7
- LoadLibrary(&quot;tools&quot;)
+ BasicLibraries.LoadLibrary(&quot;Tools&quot;)
Call SetLanguage
On Local Error GoTo NODOCUMENT
@@ -26,13 +26,13 @@ Const MBNO = 7
Exit Sub
End If
On Local Error Goto 0
-
+
sDocType = GetDocumentType(oDocument)
If oDocument.IsModified And oDocument.Url &lt;&gt; &quot;&quot; Then
Status = MsgBox(NOTSAVEDTEXT, 3+32, MSGBOXTITLE)
Select Case Status
- Case MBYES
+ Case MBYES
oDocument.Store
Case MBABORT, MBNO
End
@@ -46,15 +46,15 @@ Const MBNO = 7
Select Case sDocType
Case &quot;sWriter&quot;
- ReplaceAllStrings(oDocument)
+ ReplaceAllStrings(oDocument)
Case Else
- Msgbox(&quot;This Macro only works with Writer-Documents!&quot;, 16, &quot;StarOffice 5.2&quot;)
+ Msgbox(&quot;This Macro only works with Writer-Documents!&quot;, 16, &quot;StarOffice 5.2&quot;)
End Select
End Sub
-Sub ReplaceAllStrings(oContainer as Object)
+Sub ReplaceAllStrings(oContainer as Object)
ReplaceStrings(oContainer, &quot;[a-z]&quot;, LOWERREPLACECHAR)
ReplaceStrings(oContainer, &quot;[à-þ]&quot;, LOWERREPLACECHAR)
ReplaceStrings(oContainer, &quot;[A-Z]&quot;, UPPERREPLACECHAR)
@@ -69,7 +69,7 @@ Sub ReplaceStrings(oContainer as Object, sSearchString, sReplaceString as Strin
oReplaceDesc.SearchRegularExpression = True
oReplaceDesc.Searchstring = sSearchString
oReplaceDesc.ReplaceString = sReplaceString
- oReplCount = oContainer.ReplaceAll(oReplaceDesc)
+ oReplCount = oContainer.ReplaceAll(oReplaceDesc)
End Sub
@@ -87,12 +87,12 @@ Dim ISOLanguage as String
Case &quot;fr&quot;
MSGBOXTITLE = &quot;Remplacer tous les caractères par &apos;&quot; &amp; UPPERREPLACECHAR &amp; &quot;&apos;&quot;
NOTSAVEDTEXT = &quot;Le document a été modifé, la macro remplacera tous les caractères par &apos;&quot; &amp; UPPERREPLACECHAR &amp; &quot;&apos;. Enregistrer avant de procéder?&quot;
- WARNING = &quot;La macro remplacera tous les caractères et nombres par &apos;&quot; &amp; UPPERREPLACECHAR &amp; &quot;&apos; dans le document.&quot;
+ WARNING = &quot;La macro remplacera tous les caractères et nombres par &apos;&quot; &amp; UPPERREPLACECHAR &amp; &quot;&apos; dans le document.&quot;
Case &quot;it&quot;
MSGBOXTITLE = &quot;Sostituire tutti i caratteri &apos;&quot; &amp; UPPERREPLACECHAR &amp; &quot;&apos;&quot;
NOTSAVEDTEXT = &quot;Il documento è stato modificato, la macro sostituerà tutti i caratteri con &apos;&quot; &amp; UPPERREPLACECHAR &amp; &quot;&apos;. Salvare il documento prima di procedere?&quot;
- WARNING = &quot;La macro sostituirà tutti i caratteri e numeri con &apos;&quot; &amp; UPPERREPLACECHAR &amp; &quot;&apos; nel documento attivo.&quot;
+ WARNING = &quot;La macro sostituirà tutti i caratteri e numeri con &apos;&quot; &amp; UPPERREPLACECHAR &amp; &quot;&apos; nel documento attivo.&quot;
Case &quot;es&quot;
MSGBOXTITLE = &quot;Sustituir todos los caracteres por &apos;&quot; &amp; UPPERREPLACECHAR &amp; &quot;&apos;&quot;
@@ -127,4 +127,4 @@ Dim ISOLanguage as String
WARNING = &quot;This macro changes all characters and numbers to an &apos;&quot; &amp; UPPERREPLACECHAR &amp; &quot;&apos; in this document.&quot;
End Select
End Sub
-</script:module> \ No newline at end of file
+</script:module>
diff --git a/wizards/source/gimmicks/GetTexts.xba b/wizards/source/gimmicks/GetTexts.xba
index 0788bec81..eb0fdb442 100644
--- a/wizards/source/gimmicks/GetTexts.xba
+++ b/wizards/source/gimmicks/GetTexts.xba
@@ -11,7 +11,7 @@
&apos; Namen von Notizenseiten mit Peter durchsprechen
&apos; Macro-Description:
-&apos; This Macro extracts the Strings out of the currently activated document und inserts them into a logdocument
+&apos; This Macro extracts the Strings out of the currently activated document und inserts them into a logdocument
&apos; The aim of the macro is to provide the programmer an insight into the StarOffice API
&apos; It focusses on how document-Objects are accessed.
&apos; Therefor not only texts of the document-body are retrieved but also Texts of general
@@ -28,7 +28,7 @@ Dim sDocType as String
Dim oHyperCursor as Object
Dim oCharStyles as Object
- LoadLibrary(&quot;tools&quot;)
+ BasicLibraries.LoadLibrary(&quot;Tools&quot;)
On Local Error GoTo NODOCUMENT
oDocument = StarDesktop.ActiveFrame.Controller.Model
@@ -40,22 +40,22 @@ Dim oCharStyles as Object
Exit Sub
End If
On Local Error Goto 0
-
+
&apos; Open a new document where all the texts are inserted
- oLogDocument = StarDesktop.LoadComponentFromURL( &quot;staroffice:factory/swriter&quot;,&quot;_blank&quot;,0,NoArgs())
+ oLogDocument = StarDesktop.LoadComponentFromURL( &quot;staroffice:factory/swriter&quot;,&quot;_blank&quot;,0,NoArgs())
oLogText = oLogDocument.Text
&apos; create and define the character styles of the Log-document
oCharStyles = oLogDocument.StyleFamilies.GetByName(&quot;CharacterStyles&quot;)
oLogHeaderStyle = oLogDocument.createInstance(&quot;com.sun.star.style.CharacterStyle&quot;)
- oLogHeaderStyle.charWeight = com.sun.star.awt.FontWeight.BOLD
+ oLogHeaderStyle.charWeight = com.sun.star.awt.FontWeight.BOLD
oLogBodyTextStyle = oLogDocument.createInstance(&quot;com.sun.star.style.CharacterStyle&quot;)
oCharStyles.InsertbyName(&quot;LogHeading&quot;, oLogHeaderStyle)
oCharStyles.InsertbyName(&quot;LogBodyText&quot;, oLogBodyTextStyle)
&apos; Insert the title of the activated document as a hyperlink
oHyperCursor = oLogText.createTextCursor()
- oHyperCursor.charWeight = com.sun.star.awt.FontWeight.BOLD
+ oHyperCursor.charWeight = com.sun.star.awt.FontWeight.BOLD
oHyperCursor.gotoStart(False)
oHyperCursor.HyperLinkURL = oDocument.URL
oHyperCursor.HyperLinkTarget = oDocument.URL
@@ -84,7 +84,7 @@ Dim oCharStyles as Object
Case &quot;sDraw&quot;
GetDrawStrings()
Case Else
- Msgbox(&quot;This Macro only works with Writer-, Calc or Draw/Impress-Documents!&quot;, 16, &quot;StarOffice 5.2&quot;)
+ Msgbox(&quot;This Macro only works with Writer-, Calc or Draw/Impress-Documents!&quot;, 16, &quot;StarOffice 5.2&quot;)
End Select
End Sub
@@ -92,7 +92,7 @@ End Sub
&apos; ***********************************************Calc-Documents**************************************************
-Sub GetCalcStrings()
+Sub GetCalcStrings()
Dim i, n as integer
Dim oSheet as Object
Dim SheetName as String
@@ -117,7 +117,7 @@ Dim oSheets as Object
GetChartStrings(oSheet, &quot;Charts of &apos;&quot; &amp; SheetName &amp; &quot;&apos;&quot;)
- GetControlStrings(oSheet.DrawPage, &quot;Controls of &apos;&quot; &amp; SheetName &amp; &quot;&apos;&quot;)
+ GetControlStrings(oSheet.DrawPage, &quot;Controls of &apos;&quot; &amp; SheetName &amp; &quot;&apos;&quot;)
Next
&apos; Pictures
@@ -127,10 +127,10 @@ Dim oSheets as Object
End Sub
-Sub GetCellTexts(oSheet as Object)
+Sub GetCellTexts(oSheet as Object)
Dim BigRange, BigEnum, oCell as Object
BigRange = oDocument.CreateInstance(&quot;com.sun.star.sheet.SheetCellRanges&quot;)
- BigRange.InsertbyName(&quot;&quot;,oSheet)
+ BigRange.InsertbyName(&quot;&quot;,oSheet)
BigEnum = BigRange.GetCells.CreateEnumeration
While BigEnum.hasmoreElements
oCell = BigEnum.NextElement
@@ -147,7 +147,7 @@ Dim n as Integer
oNotes = oSheet.getAnnotations
If oNotes.hasElements() then
MakeLogHeadLine(HeaderLine)
- For n = 0 to oNotes.Count-1
+ For n = 0 to oNotes.Count-1
WriteStringtoLogFile(oNotes.GetbyIndex(n).String)
Next
End if
@@ -185,7 +185,7 @@ Dim i as integer
Dim oCellNames()
Dim oCell as Object
- MakeLogHeadLine(HeadLine)
+ MakeLogHeadLine(HeadLine)
ParaEnum = oParaObject.Text.CreateEnumeration
While ParaEnum.HasMoreElements
@@ -220,7 +220,7 @@ Dim i as Integer
Dim aChartObject as Object
Dim aChartDiagram as Object
- MakeLogHeadLine(HeaderLine)
+ MakeLogHeadLine(HeaderLine)
For i = 0 to oSheet.Charts.Count-1
aChartObject = oSheet.Charts.GetByIndex(i).EmbeddedObject
@@ -263,7 +263,7 @@ Dim oFrameTextPort as Object
oTextFrame = oDocument.TextFrames.GetbyIndex(i)
WriteStringToLogFile(oTextFrame.Name)
- &apos; Is the frame bound to the Page
+ &apos; Is the frame bound to the Page
If oTextFrame.AnchorType = com.sun.star.text.TextContentAnchorType.AT_PAGE Then
GetParagraphTexts(oTextFrame, &quot;Textframe Content&quot;)
End If
@@ -338,14 +338,14 @@ End Sub
Sub GetWriterStrings()
GetParagraphTexts(oDocument, &quot;Document Body&quot;)
- GetGraphicNames()
+ GetGraphicNames()
GetStyles()
- GetControlStrings(oDocument.DrawPage, &quot;Controls&quot;)
+ GetControlStrings(oDocument.DrawPage, &quot;Controls&quot;)
GetTextFieldStrings()
GetSectionNames()
GetFrameTexts()
GetHyperLinks
- GetLinkedFileNames()
+ GetLinkedFileNames()
End Sub
@@ -363,9 +363,9 @@ Dim oPage as Object
&apos; Get the Name of the NotesPage (only relevant for Impress-Documents)
If oDocument.supportsService(&quot;com.sun.star.presentation.PresentationDocument&quot;) then
WriteStringtoLogFile(oPage.NotesPage.Name)
- End If
+ End If
End If
- Next
+ Next
End Sub
@@ -401,7 +401,7 @@ Dim oDPages, oMPages as Object
GetDrawPageTitles(oDPages)
GetDrawPageTitles(oMPages)
- MakeLogHeadLine(&quot;Document Body&quot;)
+ MakeLogHeadLine(&quot;Document Body&quot;)
GetPageStrings(oDPages)
GetPageStrings(oMPages)
End Sub
@@ -467,7 +467,7 @@ End Sub
Sub GetStyles()
Dim m,n as integer
MakeLogHeadLine(&quot;Userdefined Templates&quot;)
-
+
&apos; Check all StyleFamilies(i.e. PageStyles, ParagraphStyles, CharacterStyles, cellStyles)
For n = 0 to oDocument.StyleFamilies.Count - 1
For m = 0 to oDocument.StyleFamilies.getbyIndex(n).Count-1
@@ -482,7 +482,7 @@ End Sub
Sub GetControlStrings(oDPage as Object, HeaderLine as String)
Dim aForm as Object
Dim m,n as integer
- MakeLogHeadLine(HeaderLine)
+ MakeLogHeadLine(HeaderLine)
&apos;SearchFor all possible Controls
For n = 0 to oDPage.Forms.Count - 1
aForm = oDPage.Forms(n)
@@ -541,12 +541,12 @@ End Sub
&apos;Dim LeaveLoop as Boolean
&apos; oSearchDesc = oDocument.createSearchDescriptor()
-&apos; oSearchDesc.SearchRegularExpression = True
-&apos; oSearchDesc.Searchstring = SearchString &amp; &quot;&quot;&quot;&quot; &amp; &quot;*&quot; &amp; &quot;&quot;&quot;&quot;
-&apos; oFoundall = oDocument.FindAll(oSearchDesc)
+&apos; oSearchDesc.SearchRegularExpression = True
+&apos; oSearchDesc.Searchstring = SearchString &amp; &quot;&quot;&quot;&quot; &amp; &quot;*&quot; &amp; &quot;&quot;&quot;&quot;
+&apos; oFoundall = oDocument.FindAll(oSearchDesc)
&apos; For i = 0 to oFoundAll.Count-1
-&apos; oFound = oFoundall(i)
+&apos; oFound = oFoundall(i)
&apos; oTextCursor = oDocument.text.CreateTextCursorbyRange(oFound)
&apos; oTextCursor.GotoNextWord(false)
&apos; oTextCursor.GotoStartofWord(True)
@@ -555,7 +555,7 @@ End Sub
&apos; If Left(TTString,1) = &quot;&quot;&quot;&quot; Then
&apos; LeaveLoop = False
&apos; oTextCursor.GoRight(1,True)
-&apos; Do
+&apos; Do
&apos; oTextCursor.GoRight(1,True)
&apos; TTString = TTString + Right(oTextCursor.String,1)
&apos; If Right(oTextCursor.String,1) = &quot;&quot;&quot;&quot; Then
@@ -579,7 +579,7 @@ End Sub
&apos; FileProperties(0).Value = &quot;swriter: TEXT&quot;
&apos; FilePath = oDocument.URL
&apos; oDocument.Dispose
-&apos;
+&apos;
&apos; oDocument = OpenDocument(FilePath,FileProperties(),StarDesktop) &apos;!!!!!!!
&apos;
&apos; MakeLogHeadLine(&quot;Alternativtexte&quot;)
@@ -606,7 +606,7 @@ Dim oDisp as Object
oUrl.Complete = &quot;slot:6517&quot;
oTrans.parsestrict(oUrl)
- oDisp = StarDesktop.currentFrame.queryDispatch(oUrl, &quot;_self&quot;, 0)
+ oDisp = StarDesktop.currentFrame.queryDispatch(oUrl, &quot;_self&quot;, 0)
oDisp.dispatch(oUrl, oArg())
End Sub
-</script:module> \ No newline at end of file
+</script:module>
diff --git a/wizards/source/gimmicks/ReadDir.xba b/wizards/source/gimmicks/ReadDir.xba
index 806188cc4..60863caf5 100644
--- a/wizards/source/gimmicks/ReadDir.xba
+++ b/wizards/source/gimmicks/ReadDir.xba
@@ -38,8 +38,8 @@ Public oOldArrivingLine As Object
Sub Main
- LoadLibrary(&quot;tools&quot;)
- LoadLibrary(&quot;template&quot;)
+ BasicLibraries.LoadLibrary(&quot;Tools&quot;)
+ BasicLibraries.LoadLibrary(&quot;Template&quot;)
ReadDirDlg.Load
ReadDirDlg.Show
End Sub
@@ -54,7 +54,7 @@ Dim oPage As Object
Dim oOldPage As Object
Dim i, n, s as Integer
Dim bStartUpRun As Boolean
-Dim FileNames(600,2) as String
+Dim FileNames(600,2) as String
Dim CurFile as String
Dim BaseLevel as Integer
Dim oController as Object
@@ -67,25 +67,25 @@ Dim oStatusline as Object
nOldX = SBPAGEX
nOldWidth = SBPAGEX
iCurPage = 0
-
+
oDesktop = createUnoService(&quot;com.sun.star.frame.Desktop&quot;)
oDocument = StarDesktop.ActiveFrame.Controller.Model
oPage = oDocument.DrawPages(iCurPage)
oStatusline = oDocument.GetCurrentController.GetFrame.GetStatusIndicator
oStatusLine.Start(&quot;Fortschritt:&quot;,100)
oController = oDocument.GetCurrentController
- Source = ConvertToURL(ReadDirdlg.Textbox1.Text)
+ Source = ConvertToURL(ReadDirdlg.Textbox1.Text)
BaseLevel = CountCharsInString(Source, &quot;/&quot;, 1)
- oStatusline.SetValue(2)
+ oStatusline.SetValue(2)
FileNames() = ReadSourceDirectory(Source)
oStatusline.SetValue(8)
FileNames() = BubbleSortList(FileNames())
oStatusline.SetValue(10)
-
+
FileCount = Val(FileNames(0,0))
For i = 1 To FileCount
- oStatusLine.SetValue(10 + i/FileCount * 90)
+ oStatusLine.SetValue(10 + i/FileCount * 90)
CurFile = FileNames(i,1)
iCurLevel= CountCharsInString(FileNames(i,0), &quot;/&quot;, 1) - BaseLevel
If iCurLevel &lt;&gt; 0 Then
@@ -117,11 +117,11 @@ REM ck SBNEWENDX, SBNEWENDY)
REM The Current TextShape has To be connected with a TextShape
REM one Level higher
-REM - except For a TextShape In Level 0
+REM - except For a TextShape In Level 0
REM Line Coordinates
- If Not bStartUpRun Then
-
+ If Not bStartUpRun Then
+
REM A leaving Line Is only drawn when level is not 0
If iCurLevel&lt;&gt; 0 Then
REM Determine the Coordinates of the arriving Line
@@ -137,7 +137,7 @@ REM Determine the End-Coordinates of the last leaving Line
iLevelPos(nConnectLevel,SBNEWENDX) = iLevelPos(nConnectLevel,SBNEWSTARTX)
iLevelPos(nConnectLevel,SBNEWENDY) = oCurTextShape.Position.Y + 0.5 * oCurTextShape.Size.Height
Else
-REM On Level 0 the last Leaving Line&apos;s endpoint
+REM On Level 0 the last Leaving Line&apos;s endpoint
REM is the upper edge of the textShape
iLevelPos(nConnectLevel,SBNEWENDY) = oCurTextShape.Position.Y
iLevelPos(nConnectLevel,SBNEWENDX) = iLevelPos(nConnectLevel,SBNEWSTARTX)
@@ -152,7 +152,7 @@ REM StartingPoint of the leaving edge
REM Determine the beginning Coordinates of the leaving Line
iLevelPos(iCurLevel,SBNEWSTARTX) = iLevelPos(iCurLevel,SBBASEX) + 0.5 * oCurTextShape.Size.Width
iLevelPos(iCurLevel,SBNEWSTARTY) = iLevelPos(iCurLevel,SBBASEY) + oCurTextShape.Size.Height
-
+
REM Save the values For the Next run
nOldHeight = oCurTextShape.Size.Height
nOldX = oCurTextShape.Position.X
@@ -174,11 +174,11 @@ Dim PageWidth, BaseX, TextWidth
Dim aPoint As New com.sun.star.awt.Point
Dim aSize As New com.sun.star.awt.Size
- aSize.Width = SBBASEWIDTH
- aSize.Height = SBBASEHEIGHT
+ aSize.Width = SBBASEWIDTH
+ aSize.Height = SBBASEHEIGHT
aPoint.x = CalculateXPoint()
- aPoint.y = nOldY + SBRELDIST * nOldHeight
+ aPoint.y = nOldY + SBRELDIST * nOldHeight
nOldY = aPoint.y
oTextShape = oDocument.createInstance(&quot;com.sun.star.drawing.TextShape&quot;)
@@ -187,7 +187,7 @@ Dim aSize As New com.sun.star.awt.Size
oPage.add(oTextShape)
oTextShape.LineStyle = 1
- oTextShape.Charheight = SBBASECHARHEIGHT
+ oTextShape.Charheight = SBBASECHARHEIGHT
oTextShape.TextAutoGrowWidth = TRUE
oTextShape.TextAutoGrowHeight = TRUE
oTextShape.String = FileName
@@ -206,7 +206,7 @@ REM Configure Size And Position of the TextShape according to its Scripting
End If
oTextShape.Size = aSize
iLevelPos(iCurLevel,SBBASEY) = oTextShape.Position.Y
- CreateTextShape = oTextShape
+ CreateTextShape = oTextShape
End Function
@@ -227,7 +227,7 @@ End Function
-Function DrawLine(nLevel, nStartX, nStartY, nEndX, nEndY As Integer, oPage as Object)
+Function DrawLine(nLevel, nStartX, nStartY, nEndX, nEndY As Integer, oPage as Object)
Dim oConnect As Object
aPoint.X = iLevelPos(nLevel,nStartX)
@@ -262,14 +262,14 @@ Dim FileName as string
Dim FileNameList(2000,1) as String
Dim DirList(200) as String
Dim oUCBobject as Object
-
+
oUcbobject = createUnoService(&quot;com.sun.star.ucb.SimpleFileAccess&quot;)
&apos;isfolder
m = 0
s = 1
DirList(0) = Source
- FileNameList(1,0) = Source
- FileNameList(1,1) = GetFileNameoutofPath(Source)
+ FileNameList(1,0) = Source
+ FileNameList(1,1) = GetFileNameoutofPath(Source)
n = 2
Do
Source = DirList(m)
@@ -282,7 +282,7 @@ Dim oUCBobject as Object
For i = 0 to FilecountinDir -1
FileName = DirContent(i)
FilenameList(n,0) = FileName
- FileNameList(n,1) = GetFileNameOutofPath(FileName)
+ FileNameList(n,1) = GetFileNameOutofPath(FileName)
n = n + 1
If oUcbObject.IsFolder(FileName) Then
DirList(s) = FileName
@@ -295,4 +295,4 @@ Dim oUCBobject as Object
FileNameList(0,0) = n - 1
ReadSourceDirectory = FileNameList()
End Function
-</script:module> \ No newline at end of file
+</script:module>
diff --git a/wizards/source/gimmicks/Userfields.xba b/wizards/source/gimmicks/Userfields.xba
index de7f789d7..c9fd0e374 100644
--- a/wizards/source/gimmicks/Userfields.xba
+++ b/wizards/source/gimmicks/Userfields.xba
@@ -17,7 +17,7 @@ Sub StartChangesUserfields
Dim a as Integer
Dim CurElement, TFMaster as Object
- LoadLibrary(&quot;tools&quot;)
+ BasicLibraries.LoadLibrary(&quot;Tools&quot;)
LoadLanguage(StarDesktop.ISOLocale.Language)
ScrollBarValue = 0
UserFieldDatatype(0) = &quot;COMPANY&quot;
@@ -32,9 +32,9 @@ Dim CurElement, TFMaster as Object
UserFieldDatatype(9) = &quot;POSITION&quot;
UserFieldDatatype(10) = &quot;PHONE_PRIVATE&quot;
UserFieldDatatype(11) = &quot;PHONE_COMPANY&quot;
- UserFieldDatatype(12) = &quot;FAX&quot;
- UserFieldDatatype(13) = &quot;EMAIL&quot;
- UserFieldDatatype(14) = &quot;STATE&quot;
+ UserFieldDatatype(12) = &quot;FAX&quot;
+ UserFieldDatatype(13) = &quot;EMAIL&quot;
+ UserFieldDatatype(14) = &quot;STATE&quot;
On Local Error GoTo NODOCUMENT
oDocument = StarDesktop.ActiveFrame.Controller.Model
@@ -45,7 +45,7 @@ Dim CurElement, TFMaster as Object
Exit Sub
End If
On Local Error Goto 0
-
+
&apos; Define TextFields
aTextfield = oDocument.getTextfields
aTextFieldEnum = aTextField.CreateEnumeration
@@ -111,14 +111,14 @@ End Sub
Sub Dlg_Scroll(ScrollValue)
Call ChangeArray(ScrollBarValue)
- ScrollBarValue = UserfieldDlg.VScrollbar.Value
+ ScrollBarValue = UserfieldDlg.VScrollbar.Value
If (ScrollBarValue + MaxFieldCount) &gt; iUserFieldCount Then
ScrollBarValue = iUserFieldCount - MaxFieldCount
End If
For a = 1 To MaxFieldCount
LabelArray(a).Caption = UserFieldName(a + ScrollBarValue)
- EditArray(a).Text = UserFieldValue(a + ScrollBarValue)
+ EditArray(a).Text = UserFieldValue(a + ScrollBarValue)
Next a
End Sub
@@ -191,6 +191,6 @@ Sub SetDialogText
UserfieldDlg.caption = HeaderLabel
UserfieldDlg.HeaderLabel.Caption = HeaderLabel
UserfieldDlg.CancelChanges.Caption = CancelButton
- UserfieldDlg.SaveChanges.Caption = SaveButton
+ UserfieldDlg.SaveChanges.Caption = SaveButton
End Sub
-</script:module> \ No newline at end of file
+</script:module>
diff --git a/wizards/source/importwizard/Main.xba b/wizards/source/importwizard/Main.xba
index 856a7b74f..019aec152 100644
--- a/wizards/source/importwizard/Main.xba
+++ b/wizards/source/importwizard/Main.xba
@@ -10,7 +10,7 @@ Public ImportDialog as Object
Public ImportDialogArea as Object
Sub Main
- LoadLibrary(&quot;Tools&quot;)
+ BasicLibraries.LoadLibrary(&quot;Tools&quot;)
sCRLF = CHR(10) &amp; CHR(13)
oUcb = createUnoService(&quot;com.sun.star.ucb.SimpleFileAccess&quot;)
If Not bDebugWizard Then
@@ -36,7 +36,7 @@ End Sub
Sub SetStates
- With ImportDialog
+ With ImportDialog
.OptSODocuments.State = 1
.OptMSDocuments.State = 0
.TemplateCheckbox.State = 1
@@ -221,4 +221,4 @@ End Sub
Function ControlStateToBool(iState)
ControlStateToBool = (Val(iState) = 1)
End Function
-</script:module> \ No newline at end of file
+</script:module>
diff --git a/wizards/source/schedule/CalendarMain.xba b/wizards/source/schedule/CalendarMain.xba
index 845416371..50ade34b2 100644
--- a/wizards/source/schedule/CalendarMain.xba
+++ b/wizards/source/schedule/CalendarMain.xba
@@ -70,14 +70,14 @@ Public CONST CalBLThueringen = 16
Sub CalAutopilotTable()
&apos; On Error Goto ErrorHandler
- Application.LoadLibrary(&quot;tools&quot;)
+ Application.BasicLibraries.LoadLibrary(&quot;Tools&quot;)
&apos; HauptRoutine zur Erstellung des Kalenders
Set DlgBuffer = DlgCalendar
DlgBuffer.Load()
sCurLangLocale = StarDesktop.ISOLocale.Language
LoadLanguage(sCurLangLocale)
- &apos; Da modulübergreifende Variablen unsicher sind,
+ &apos; Da modulübergreifende Variablen unsicher sind,
&apos; wird ihre Initialisierung noch einmal explizit
&apos; angegeben.
CalInitGlobalVariablesDate()
@@ -102,7 +102,7 @@ Sub CalAutopilotTable()
DlgBuffer.cmbState.ListIndex = 0
DlgBuffer.CurrentStep = 1
-
+
DlgBuffer.Show()
Exit Sub
@@ -116,7 +116,7 @@ Sub CalChooseCalendar()
DlgBuffer.txtYear.Enabled = True
DlgBuffer.spinButton1.Enabled = True
DlgBuffer.cmbState.Enabled = True
-
+
DlgBuffer.txtMonth.Enabled = DlgBuffer.optMonth.Value
DlgBuffer.lblMonth.Enabled = DlgBuffer.optMonth.Value
DlgBuffer.spinButton3.Enabled = DlgBuffer.optMonth.Value
@@ -147,12 +147,12 @@ Sub CalCmdOk()
End If
End If
- oDocument = StarDesktop.ActiveFrame.Controller.Model
+ oDocument = StarDesktop.ActiveFrame.Controller.Model
oSheets = oDocument.sheets
- If CalOwnDataChanged% Then
+ If CalOwnDataChanged% Then
Call CalSaveOwnData()
End If
-
+
&apos; Unprotect all tables so they can be deleted or modified
For i = 0 To oSheets.Count - 1
oSheets.GetbyIndex(i).unprotect(&quot;&quot;)
@@ -188,14 +188,14 @@ Sub CalCmdOk()
Call CalInsertOwnDataInTables(iSelYear)
oStatusline = oDocument.GetCurrentController.GetFrame.GetStatusIndicator
-
- If optYear.Value Then
+
+ If optYear.Value Then
oSheets.RemovebyName(oSheets.GetbyIndex(0).Name)
oSheet = oSheets.GetbyIndex(0)
oSheet.Name = sCalendarTitle$ + &quot; &quot; + txtYear.Text
oDocument.AddActionLock
Call CalCreateYearTable(iSelYear)
- ElseIf optMonth.Value Then
+ ElseIf optMonth.Value Then
oSheets.RemovebyName(oSheets.GetbyIndex(1).Name)
oSheet = oSheets.GetbyIndex(0)
oSheet.Name = sMonthTitle$ + &quot; &quot; + cCalLongMonthNames$(CalGetIntOfShortMonthName%(txtMonth.Text))
@@ -209,4 +209,4 @@ Sub CalCmdOk()
oStatusLine.End
DlgBuffer.Unload()
End Sub
-</script:module> \ No newline at end of file
+</script:module>
diff --git a/wizards/source/template/Autotext.xba b/wizards/source/template/Autotext.xba
index 96037115d..14b74d3ef 100644
--- a/wizards/source/template/Autotext.xba
+++ b/wizards/source/template/Autotext.xba
@@ -6,7 +6,7 @@ Public BulletList(7) as Integer
Sub Main()
&apos; Initialization...
- LoadLibrary(&quot;Tools&quot;)
+ BasicLibraries.LoadLibrary(&quot;Tools&quot;)
UserfieldDatatype(0) = &quot;COMPANY&quot;
UserfieldDatatype(1) = &quot;FIRSTNAME&quot;
@@ -135,4 +135,4 @@ Dim MaxIndex as Integer
End Sub
-</script:module> \ No newline at end of file
+</script:module>
diff --git a/wizards/source/template/Correspondence.xba b/wizards/source/template/Correspondence.xba
index 9a8883efd..27299a7fc 100644
--- a/wizards/source/template/Correspondence.xba
+++ b/wizards/source/template/Correspondence.xba
@@ -10,7 +10,7 @@ Public DialogExited
Public oDocument, oText, oBookMarks, oBookMark, oBookMarkCursor, oBookText as Object
Sub Main
- LoadLibrary(&quot;tools&quot;)
+ BasicLibraries.LoadLibrary(&quot;Tools&quot;)
TemplateDialog = LoadDialog(&quot;Template&quot;, &quot;TemplateDialog&quot;)
DialogModel = TemplateDialog.Model
DialogModel.Step = 2
@@ -54,13 +54,13 @@ Dim oFields as Object
msgError$ = GetResText(1302)
DialogModel.Title = GetResText(1303)
DialogModel.CmdCancel.Label = GetResText(1102)
- DialogModel.CmdCorrGoOn.Label = GetResText(1103)
+ DialogModel.CmdCorrGoOn.Label = GetResText(1103)
DialogModel.OptSingle.Label = GetResText(1303 + 1)
DialogModel.Optmerge.Label = GetResText(1303 + 2)
LoadLanguageCorrespondence() = True
Else
-&apos; Todo: Meldung, was Passiert wenn Datenbank nicht angelegt werden konnte
- LoadLanguageCorrespondence() = False
+&apos; Todo: Meldung, was Passiert wenn Datenbank nicht angelegt werden konnte
+ LoadLanguageCorrespondence() = False
End If
End Function
@@ -209,7 +209,7 @@ Dim oDisp as Object
oUrl.Complete = &quot;slot:6517&quot;
oTrans.parsestrict(oUrl)
- oDisp = StarDesktop.currentFrame.queryDispatch(oUrl, &quot;_self&quot;, 0)
+ oDisp = StarDesktop.currentFrame.queryDispatch(oUrl, &quot;_self&quot;, 0)
oDisp.dispatch(oUrl, oArg())
End Sub
-</script:module> \ No newline at end of file
+</script:module>
diff --git a/wizards/source/template/Samples.xba b/wizards/source/template/Samples.xba
index d02e2da42..9c71f04d6 100644
--- a/wizards/source/template/Samples.xba
+++ b/wizards/source/template/Samples.xba
@@ -50,7 +50,7 @@ Dim mFileProperties(0) as New com.sun.star.beans.PropertyValue
oNewDocument = StarDesktop.LoadComponentFromURL(DocPath,&quot;_blank&quot;,0, mFileProperties())
PrepareForEditing() = oNewDocument
&apos; If IsFatOffice() Then
- &apos; If opened within a FatOffice Environment close doc.
+ &apos; If opened within a FatOffice Environment close doc.
&apos; Note: Due to a bug in Web office it is not possible to close the doc there
oDocument.Dispose()
&apos; End If
@@ -75,7 +75,7 @@ Dim sFilterName(0) as String
Dim StyleNames() as String
Dim t as Integer
Dim MaxIndex as Integer
- LoadLibrary(&quot;Tools&quot;)
+ BasicLibraries.LoadLibrary(&quot;Tools&quot;)
If InitResources(&quot;&apos;Template&apos;&quot;, &quot;tpl&quot;) then
oDocument = StarDesktop.ActiveFrame.Controller.Model
If oDocument.SupportsService(&quot;com.sun.star.sheet.SpreadsheetDocument&quot;) Then
@@ -176,4 +176,4 @@ Sub KillTempFile()
End If
End Sub
-</script:module> \ No newline at end of file
+</script:module>
diff --git a/wizards/source/webwizard/HtmlAutoPilotBasic.xba b/wizards/source/webwizard/HtmlAutoPilotBasic.xba
index 5009db1ab..c7c3be6e9 100644
--- a/wizards/source/webwizard/HtmlAutoPilotBasic.xba
+++ b/wizards/source/webwizard/HtmlAutoPilotBasic.xba
@@ -42,7 +42,7 @@ Public DialogModel as Object
Sub Main
&apos;On Local Error Goto GlobalErrorHandler
- LoadLibrary(&quot;tools&quot;)
+ BasicLibraries.LoadLibrary(&quot;Tools&quot;)
oUcb = createUnoService(&quot;com.sun.star.ucb.SimpleFileAccess&quot;)
oBaseDocument = StarDesktop.LoadComponentFromURL(&quot;private:factory/swriter/web&quot;, &quot;_blank&quot;, 0, NoArgs())
oViewSettings = oBaseDocument.CurrentController.ViewSettings
@@ -65,7 +65,7 @@ Sub Main
oCursor = oBasedocument.Text.CreateTextCursor
oCursor.InsertDocumentfromURL(FileStr, NoArgs())
SetProgressValue(40)
- DialogModel.optTiled.State = 1
+ DialogModel.optTiled.State = 1
NumberofStyles = FillupWebListbox(oUcb, &quot;/stl&quot;, MainDialog, &quot;lbStyles&quot;, Style())
SetProgressValue(50)
LoadWebPageStyles(oBaseDocument)
@@ -82,7 +82,7 @@ GLOBALERRORHANDLER:
End Sub
-Function SetProgressValue(iValue as Integer)
+Function SetProgressValue(iValue as Integer)
If iValue = 0 Then
ProgressBar.End
End If
@@ -104,7 +104,7 @@ Dim CurInd as Integer
oCursor.GotoEnd(True)
oCursor.InsertDocumentfromURL(FileStr, NoArgs())
SetBulletAndGraphics
- CheckControls(oBaseDocument.DrawPage)
+ CheckControls(oBaseDocument.DrawPage)
ErrorOcurred:
If Err &lt;&gt; 0 Then
MsgBox(WebWiz_gErrWhileReloading$, 16, WebWiz_gWizardName$)
@@ -135,7 +135,7 @@ Dim CurIndex as Integer
End With
SetBulletAndGraphics()
CheckControls(oBaseDocument.DrawPage)
- oViewCursor.GotoStart(False)
+ oViewCursor.GotoStart(False)
oBaseDocument.UnlockControllers
ToggleWindow(True)
End Sub
@@ -195,7 +195,7 @@ End Sub
Sub EndDialog()
If DialogModel.chkSaveasTemplate.State = 1 Then
&apos; Generating template? Set events later!
- AttachBasicMacroToEvent(oBaseDocument,&quot;OnNew&quot;, &quot;WebWizard.HtmlAutoPilotBasic.SetEvent()&quot;)
+ AttachBasicMacroToEvent(oBaseDocument,&quot;OnNew&quot;, &quot;WebWizard.HtmlAutoPilotBasic.SetEvent()&quot;)
&apos; Call the Store template dialog
DispatchSlot(5538)
Else
@@ -220,10 +220,10 @@ Dim oDocument as Object
&apos; from the AutoPilot or from a template. It is not possible to set these
&apos; links for the template created by the AutoPilot because then it is not
&apos; possible to modify the template.
- LoadLibrary(&quot;tools&quot;)
+ BasicLibraries.LoadLibrary(&quot;tools&quot;)
oDocument = StarDesktop.ActiveFrame.Controller.Model
- AttachBasicMacroToEvent(oDocument,&quot;OnSaveDone&quot;, &quot;WebWizard.HtmlAutoPilotBasic.CopyGraphics()&quot;)
- AttachBasicMacroToEvent(oDocument,&quot;OnSaveAsDone&quot;, &quot;WebWizard.HtmlAutoPilotBasic.CopyGraphics()&quot;)
+ AttachBasicMacroToEvent(oDocument,&quot;OnSaveDone&quot;, &quot;WebWizard.HtmlAutoPilotBasic.CopyGraphics()&quot;)
+ AttachBasicMacroToEvent(oDocument,&quot;OnSaveAsDone&quot;, &quot;WebWizard.HtmlAutoPilotBasic.CopyGraphics()&quot;)
End Sub
@@ -236,13 +236,13 @@ Dim i as Integer
Dim GraphicFilePath as String
Dim SavePath$
Dim GraphicFileName as String
- LoadLibrary(&quot;tools&quot;)
- GetPaths()
+ BasicLibraries.LoadLibrary(&quot;tools&quot;)
+ GetPaths()
oBaseDocument = StarDesktop.ActiveFrame.Controller.Model
Msgbox oBaseDocument.Url
SavePath = oBaseDocument.Url
oGraphicObjects = oBaseDocument.GraphicObjects
-
+
For i = 0 to oGraphicObjects.Count-1
oGraphic = oGraphicObjects.GetbyIndex(i)
GraphicFilePath = oGraphic.GraphicURL
@@ -255,7 +255,7 @@ Dim GraphicFileName as String
FileCopy BulletDir &amp; GraphicFileName, SavePath &amp; GraphicFileName
SetBulletGraphics(GraphicFileName)
-
+
&apos; &apos; Copy background graphic
&apos; If ActiveWindow.Page.GrfFilename&lt;&gt;&quot;&quot; Then
&apos; &apos; Set new background graphic
@@ -298,11 +298,11 @@ Dim a as Integer
Dim SelList(0) as Integer
Dim LocMaxIndex as Integer
oListboxControl = oDialog.GetControl(ListboxName)
-
+
oDocInfo = createUnoService(&quot;com.sun.star.document.StandaloneDocumentInfo&quot;)
FilterLen = Len(sFileFilter)
bItemFound = False
- TemplatePath = GetOfficeSubPath(&quot;Template&quot;, &quot;wizard/web/&quot;)
+ TemplatePath = GetOfficeSubPath(&quot;Template&quot;, &quot;wizard/web/&quot;)
DirContent() = oUcb.GetFolderContents(TemplatePath,True)
LocMaxIndex = Ubound(DirContent())
a = 0
@@ -385,7 +385,7 @@ Dim oNewBuffer(1) as New com.sun.star.beans.PropertyValue
oLevel() = oRules.GetByIndex(n)
bDoReplace = ModifyPropertyValue(oLevel(), oNumberingBuffer())
If bDoReplace Then
- oRules.ReplaceByIndex(n, oNumberingBuffer())
+ oRules.ReplaceByIndex(n, oNumberingBuffer())
End If
Next n
oBookmarkCursor.NumberingRules = oRules
@@ -394,7 +394,7 @@ Dim oNewBuffer(1) as New com.sun.star.beans.PropertyValue
oNewBuffer(1).Name = &quot;GraphicSize&quot;
oSize.Height = 300
oSize.Width = 300
- oNewBuffer(1).Value = oSize
+ oNewBuffer(1).Value = oSize
For n = 0 To oRules.Count - 1
oLevel() = oRules.GetByIndex(0)
bDoReplace = ModifyPropertyValue(oLevel(), oNewBuffer())
@@ -444,7 +444,7 @@ Dim BackGroundURL as String
Dim oBackGraph as Object
Dim i, BackColor as Long
Dim oFamilies as Object, oFamily as Object, oStyle as Object
-Dim StylesOptions(0) as New com.sun.star.beans.PropertyValue
+Dim StylesOptions(0) as New com.sun.star.beans.PropertyValue
If SourceFile &lt;&gt; &quot;&quot; Then
StylesOptions(0).Name = &quot;OverwriteStyles&quot;
@@ -463,7 +463,7 @@ Dim StylesOptions(0) as New com.sun.star.beans.PropertyValue
End If
oFamilies = oDocument.StyleFamilies
oFamily = oFamilies.GetbyName(&quot;PageStyles&quot;)
-&apos; oStyle = oDocument.StyleFamilies.GetByName(&quot;PageStyles&quot;).GetByName(&quot;Standard&quot;)
+&apos; oStyle = oDocument.StyleFamilies.GetByName(&quot;PageStyles&quot;).GetByName(&quot;Standard&quot;)
For i = 0 To oFamily.Count - 1
If oFamily.GetByIndex(i).IsInUse Then
oStyle = oFamily.GetbyIndex(i)
@@ -510,7 +510,7 @@ Dim oLocDocument as Object
oFamilies = oLocDocument.StyleFamilies
oFamily = oFamilies.GetbyName(&quot;PageStyles&quot;)
For i = 0 To oFamily.Count - 1
- If oFamily.GetByIndex(i).IsInUse Then
+ If oFamily.GetByIndex(i).IsInUse Then
oStyle = oFamily.GetbyIndex(i)
If oStyle.PropertySetInfo.HasPropertybyName(&quot;BackGraphicURL&quot;) Then
oStyle.BackGraphicLocation = iBackgroundValue
@@ -529,4 +529,4 @@ Sub SetTileBackgroundorNot(DialogModel as Object, oStyle as Object)
End If
End Sub
-</script:module> \ No newline at end of file
+</script:module>