summaryrefslogtreecommitdiff
path: root/wizards/source/gimmicks
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/gimmicks
parenta73f0bfad51f25f370e9e52c11b5074e8fcc35f5 (diff)
changed 'LoadLibrary' to 'BasicLibraries.LoadLibrary'
Diffstat (limited to 'wizards/source/gimmicks')
-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
5 files changed, 81 insertions, 81 deletions
diff --git a/wizards/source/gimmicks/AutoText.xba b/wizards/source/gimmicks/AutoText.xba
index e40a3f8a7c75..ee97d0a6084d 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 69dcd32b12c3..a7a769de9ff6 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 0788bec81f50..eb0fdb442e8f 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 806188cc45fb..60863caf5723 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 de7f789d7009..c9fd0e374475 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>