From 4c0b3129e36d461f4d93ba924075cf6ec3e7ded1 Mon Sep 17 00:00:00 2001 From: Olivier Hallot Date: Wed, 5 Dec 2018 19:07:55 -0200 Subject: Refactor BASIC code layout Change-Id: Ica3743e859f244a2344e0b51848460c5c4f3ead6 Reviewed-on: https://gerrit.libreoffice.org/64651 Tested-by: Jenkins Reviewed-by: Olivier Hallot --- source/text/sbasic/shared/03/lib_tools.xhp | 892 ++++++++++++++++++----------- 1 file changed, 564 insertions(+), 328 deletions(-) (limited to 'source/text/sbasic/shared') diff --git a/source/text/sbasic/shared/03/lib_tools.xhp b/source/text/sbasic/shared/03/lib_tools.xhp index a6480cc4ed..716e29cc3c 100644 --- a/source/text/sbasic/shared/03/lib_tools.xhp +++ b/source/text/sbasic/shared/03/lib_tools.xhp @@ -51,7 +51,9 @@ ActivateReadOnlyFlag - Sub ActivateReadOnlyFlag() + + Sub ActivateReadOnlyFlag() + @@ -59,7 +61,9 @@ DeactivateReadOnlyFlag - Sub DeactivateReadOnlyFlag( + + Sub DeactivateReadOnlyFlag() + @@ -67,7 +71,9 @@ SetBasicReadOnlyFlag - Sub SetBasicReadOnlyFlag(bReadOnly as Boolean) + + Sub SetBasicReadOnlyFlag(bReadOnly as Boolean) + @@ -75,7 +81,9 @@ WritedbgInfo - Sub WritedbgInfo(LocObject as Object) + + Sub WritedbgInfo(LocObject as Object) + @@ -83,7 +91,9 @@ WriteDbgString - Sub WriteDbgString(LocString as string) + + Sub WriteDbgString(LocString as string) + @@ -91,7 +101,9 @@ ShowArray - Sub ShowArray(LocArray()) + + Sub ShowArray(LocArray()) + @@ -99,7 +111,9 @@ ShowPropertyValues - Sub ShowPropertyValues(oLocObject as Object) + + Sub ShowPropertyValues(oLocObject as Object) + @@ -107,7 +121,9 @@ ShowNameValuePair - Sub ShowNameValuePair(Pair()) + + Sub ShowNameValuePair(Pair()) + @@ -117,9 +133,11 @@ ' Retrieves all the Elements of aSequence of an object, with the ' possibility to define a filter(sfilter <> "") - Sub ShowElementNames( - oLocElements() as Object, - Optional sFiltername as String) + + Sub ShowElementNames( + oLocElements() as Object, + Optional sFiltername as String) + @@ -129,9 +147,11 @@ ' Retrieves all the supported servicenames of an object, with the ' possibility to define a filter(sfilter <> "") - Sub ShowSupportedServiceNames( - oLocObject as Object, - Optional sFilterName as String) + + Sub ShowSupportedServiceNames( + oLocObject as Object, + Optional sFilterName as String) + @@ -141,9 +161,11 @@ ' Retrieves all the available Servicenames of an object, with the ' possibility to define a filter(sfilter <> "") - Sub ShowAvailableServiceNames( - oLocObject as Object, - Optional sFilterName as String) + + Sub ShowAvailableServiceNames( + oLocObject as Object, + Optional sFilterName as String) + @@ -151,7 +173,9 @@ ShowCommands - Sub ShowCommands(oLocObject as Object) + + Sub ShowCommands(oLocObject as Object) + @@ -159,7 +183,9 @@ ProtectCurrentSheets - Sub ProtectCurrentSheets() + + Sub ProtectCurrentSheets() + @@ -167,7 +193,9 @@ FillDocument - Sub FillDocument() + + Sub FillDocument() + @@ -200,11 +228,13 @@ RegisterNewDataSource - Function RegisterNewDataSource( - DSName as String, - PropertyList(), - Optional DriverProperties() - as New com.sun.star.beans.PropertyValue) + + Function RegisterNewDataSource( + DSName as String, + PropertyList(), + Optional DriverProperties() + as New com.sun.star.beans.PropertyValue) + @@ -212,13 +242,15 @@ ConnecttoDatabase - Function ConnecttoDatabase( - DSName as String, - UserID as String, - Password as String, - Optional Propertylist(), - Optional DriverProperties() - as New com.sun.star.beans.PropertyValue) + + Function ConnecttoDatabase( + DSName as String, + UserID as String, + Password as String, + Optional Propertylist(), + Optional DriverProperties() + as New com.sun.star.beans.PropertyValue) + @@ -226,8 +258,10 @@ GetStarOfficeLocale - Function GetStarOfficeLocale() - as New com.sun.star.lang.Locale + + Function GetStarOfficeLocale() + as New com.sun.star.lang.Locale + @@ -235,9 +269,11 @@ GetRegistryKeyContent - Function GetRegistryKeyContent( - sKeyName as string, - Optional bforUpdate as Boolean) + + Function GetRegistryKeyContent( + sKeyName as string, + Optional bforUpdate as Boolean) + @@ -245,7 +281,9 @@ GetProductname - Function GetProductname() as String + + Function GetProductname() as String + @@ -254,10 +292,12 @@ ' Opens a Document, checks beforehand, whether it has to be loaded or whether it is already on the desktop. If the parameter bDisposable is set to False then then returned document should not be disposed afterwards, because it is already opened. - Function OpenDocument( - DocPath as String, - Args(), - Optional bDisposable as Boolean) + + Function OpenDocument( + DocPath as String, + Args(), + Optional bDisposable as Boolean) + @@ -265,7 +305,9 @@ TaskonDesktop - Function TaskonDesktop(DocPath as String) as Boolean + + Function TaskonDesktop(DocPath as String) as Boolean + @@ -274,7 +316,9 @@ ' Retrieves a FileName out of a StarOffice-Document - Function RetrieveFileName(LocDoc as Object) + + Function RetrieveFileName(LocDoc as Object) + @@ -283,10 +327,12 @@ ' Gets a special configured PathSetting - Function GetPathSettings( - sPathType as String, - Optional bshowall as Boolean, - Optional ListIndex as integer) as String + + Function GetPathSettings( + sPathType as String, + Optional bshowall as Boolean, + Optional ListIndex as integer) as String + @@ -295,9 +341,11 @@ ' Gets the fully qualified path to a subdirectory of the Template Directory, e. g. with the parameter "wizard/bitmap" The parameter must be passed over in Url-scription. The return-Value is in Urlscription - Function GetOfficeSubPath( - sOfficePath as String, - ByVal sSubDir as String) + + Function GetOfficeSubPath( + sOfficePath as String, + ByVal sSubDir as String) + @@ -305,7 +353,9 @@ ShowNoOfficePathError - Sub ShowNoOfficePathError() + + Sub ShowNoOfficePathError() + @@ -313,9 +363,11 @@ InitResources - Function InitResources( - Description, - ShortDescription as String) as boolean + + Function InitResources( + Description, + ShortDescription as String) as boolean + @@ -323,7 +375,9 @@ GetResText - Function GetResText( nID as integer ) As string + + Function GetResText( nID as integer ) As string + @@ -331,9 +385,11 @@ CutPathView - Function CutPathView( - sDocUrl as String, - Optional PathLen as Integer) + + Function CutPathView( + sDocUrl as String, + Optional PathLen as Integer) + @@ -342,9 +398,11 @@ ' Deletes the content of all cells that are softformatted according to the 'InputStyleName' - Sub DeleteInputCells( - oSheet as Object, - InputStyleName as String) + + Sub DeleteInputCells( + oSheet as Object, + InputStyleName as String) + @@ -353,11 +411,13 @@ ' Inserts a certain String to all cells of a Range that ist passed over either as an object or as the RangeName - Sub ChangeValueofRange( - oSheet as Object, - Range, - ReplaceValue, - Optional StyleName as String) + + Sub ChangeValueofRange( + oSheet as Object, + Range, + ReplaceValue, + Optional StyleName as String) + @@ -365,9 +425,11 @@ ReplaceRangeValues - Sub ReplaceRangeValues( - oRange as Object, - ReplaceValue) + + Sub ReplaceRangeValues( + oRange as Object, + ReplaceValue) + @@ -376,9 +438,11 @@ ' Returns the Value of the first cell of a Range - Function GetValueofCellbyName( - oSheet as Object, - sCellName as String) + + Function GetValueofCellbyName( + oSheet as Object, + sCellName as String) + @@ -386,9 +450,11 @@ DuplicateRow - Function DuplicateRow( - oSheet as Object, - RangeName as String) + + Function DuplicateRow( + oSheet as Object, + RangeName as String) + @@ -397,9 +463,11 @@ ' Returns the String of the first cell of a Range - Function GetStringofCellbyName( - oSheet as Object, - sCellName as String) + + Function GetStringofCellbyName( + oSheet as Object, + sCellName as String) + @@ -408,9 +476,11 @@ ' Returns a named Cell - Function GetCellByName( - oSheet as Object, - sCellName as String) as Object + + Function GetCellByName( + oSheet as Object, + sCellName as String) as Object + @@ -419,9 +489,11 @@ ' Changes the numeric Value of a cell by transmitting the String of the numeric Value - Sub ChangeCellValue( - oCell as Object, - ValueString as String) + + Sub ChangeCellValue( + oCell as Object, + ValueString as String) + @@ -429,7 +501,9 @@ GetDocumentType - Function GetDocumentType(oDocument) + + Function GetDocumentType(oDocument) + @@ -437,9 +511,11 @@ GetNumberFormatType - Function GetNumberFormatType( - oDocFormats, - oFormatObject as Object) as Integer + + Function GetNumberFormatType( + oDocFormats, + oFormatObject as Object) as Integer + @@ -447,7 +523,9 @@ ProtectSheets - Sub ProtectSheets(Optional oSheets as Object) + + Sub ProtectSheets(Optional oSheets as Object) + @@ -455,7 +533,9 @@ UnprotectSheets - Sub UnprotectSheets(Optional oSheets as Object) + + Sub UnprotectSheets(Optional oSheets as Object) + @@ -463,9 +543,11 @@ GetRowIndex - Function GetRowIndex( - oSheet as Object, - RowName as String) + + Function GetRowIndex( + oSheet as Object, + RowName as String) + @@ -473,9 +555,11 @@ GetColumnIndex - Function GetColumnIndex( - oSheet as Object, - ColName as String) + + Function GetColumnIndex( + oSheet as Object, + ColName as String) + @@ -483,11 +567,13 @@ CopySheetbyName - Function CopySheetbyName( - oSheets as Object, - OldName as String, - NewName as String, - DestPos as Integer) as Object + + Function CopySheetbyName( + oSheets as Object, + OldName as String, + NewName as String, + DestPos as Integer) as Object + @@ -496,7 +582,9 @@ ' Dis-or enables a Window and adjusts the mousepointer accordingly - Sub ToggleWindow(bDoEnable as Boolean) + + Sub ToggleWindow(bDoEnable as Boolean) + @@ -504,10 +592,12 @@ CheckNewSheetname - Function CheckNewSheetname( - oSheets as Object, - Sheetname as String, - Optional oLocale) as String + + Function CheckNewSheetname( + oSheets as Object, + Sheetname as String, + Optional oLocale) as String + @@ -515,9 +605,11 @@ AddNewSheetName - Sub AddNewSheetName( - oSheets as Object, - ByVal SheetName as String) + + Sub AddNewSheetName( + oSheets as Object, + ByVal SheetName as String) + @@ -525,7 +617,9 @@ GetSheetIndex - Function GetSheetIndex(oSheets, sName) as Integer + + Function GetSheetIndex(oSheets, sName) as Integer + @@ -533,7 +627,9 @@ GetLastUsedRow - Function GetLastUsedRow(oSheet as Object) as Integer + + Function GetLastUsedRow(oSheet as Object) as Integer + @@ -542,10 +638,12 @@ ' Note To set a one lined frame you have to set the inner width to 0 In the API all Units that refer to pt-Heights are "1/100mm" The convert factor from 1pt to 1/100 mm is approximately 35 - Function ModifyBorderLineWidth( - ByVal oStyleBorder, - iInnerLineWidth as Integer, - iOuterLineWidth as Integer) + + Function ModifyBorderLineWidth( + ByVal oStyleBorder, + iInnerLineWidth as Integer, + iOuterLineWidth as Integer) + @@ -553,10 +651,12 @@ AttachBasicMacroToEvent - Sub AttachBasicMacroToEvent( - oDocument as Object, - EventName as String, - SubPath as String) + + Sub AttachBasicMacroToEvent( + oDocument as Object, + EventName as String, + SubPath as String) + @@ -564,10 +664,12 @@ ModifyPropertyValue - Function ModifyPropertyValue( - oContent() as New com.sun.star.beans.PropertyValue, - TargetProperties() - as New com.sun.star.beans.PropertyValue) + + Function ModifyPropertyValue( + oContent() as New com.sun.star.beans.PropertyValue, + TargetProperties() + as New com.sun.star.beans.PropertyValue) + @@ -575,10 +677,12 @@ GetPropertyValueIndex - Function GetPropertyValueIndex( - SearchName as String, - TargetProperties() - as New com.sun.star.beans.PropertyValue ) as Integer + + Function GetPropertyValueIndex( + SearchName as String, + TargetProperties() + as New com.sun.star.beans.PropertyValue ) as Integer + @@ -586,7 +690,9 @@ DispatchSlot - Sub DispatchSlot(SlotID as Integer) + + Sub DispatchSlot(SlotID as Integer) + @@ -595,7 +701,9 @@ 'returns the type of the office application FatOffice = 0, WebTop = 1 This routine has to be changed if the Product Name is being changed! - Function IsFatOffice() As Boolean + + Function IsFatOffice() As Boolean + @@ -603,9 +711,11 @@ GetLocale - Function GetLocale( - sLanguage as String, - sCountry as String) + + Function GetLocale( + sLanguage as String, + sCountry as String) + @@ -613,7 +723,9 @@ ToggleDesignMode - Sub ToggleDesignMode(oDocument as Object) + + Sub ToggleDesignMode(oDocument as Object) + @@ -621,7 +733,9 @@ isHighContrast - Function isHighContrast(oPeer as Object) + + Function isHighContrast(oPeer as Object) + @@ -629,9 +743,11 @@ CreateNewDocument - Function CreateNewDocument( - sType as String, - Optional sAddMsg as String) as Object + + Function CreateNewDocument( + sType as String, + Optional sAddMsg as String) as Object + @@ -640,7 +756,9 @@ ' This Sub has been used in order to ensure that after disposing a document from the backing window it is returned to the backing window, so the office won't be closed - Sub DisposeDocument(oDocument as Object) + + Sub DisposeDocument(oDocument as Object) + @@ -649,8 +767,10 @@ 'Function to calculate if the year is a leap year - Function CalIsLeapYear( - ByVal iYear as Integer) as Boolean + + Function CalIsLeapYear( + ByVal iYear as Integer) as Boolean + @@ -679,9 +799,11 @@ ' Parameters: ' The 'oContainer' is the Document or a specific sheet of a Calc - Document ' 'CName' is the Name of the Control - Function GetControlShape( - oContainer as Object, - CName as String) + + Function GetControlShape( + oContainer as Object, + CName as String) + @@ -694,10 +816,12 @@ ' The 'oContainer' is the Document or a specific sheet of a Calc - Document ' The 'oController' is always directly attached to the Document ' 'CName' is the Name of the Control - Function getControlView( - oContainer , - oController as Object, - CName as String) as Object + + Function getControlView( + oContainer , + oController as Object, + CName as String) as Object + @@ -708,9 +832,11 @@ ' Parameters: ' The 'oContainer' is the Document or a specific sheet of a Calc - Document ' 'CName' is the Name of the Control - Function DisposeControl( - oContainer as Object, - CName as String) as Boolean + + Function DisposeControl( + oContainer as Object, + CName as String) as Boolean + @@ -721,9 +847,11 @@ ' Returns a sequence of a group of controls like option buttons or checkboxes ' The 'oContainer' is the Document or a specific sheet of a Calc - Document ' 'sGroupName' is the Name of the Controlgroup - Function GetControlGroupModel( - oContainer as Object, - sGroupName as String ) + + Function GetControlGroupModel( + oContainer as Object, + sGroupName as String ) + @@ -733,8 +861,10 @@ ' Returns the Referencevalue of a group of e.g. option buttons or check boxes ' 'oControlGroup' is a sequence of the Control objects - Function GetRefValue( - oControlGroup() as Object) + + Function GetRefValue( + oControlGroup() as Object) + @@ -742,9 +872,11 @@ GetRefValueOfControlGroup - Function GetRefValueOfControlGroup( - oContainer as Object, - GroupName as String) + + Function GetRefValueOfControlGroup( + oContainer as Object, + GroupName as String) + @@ -752,9 +884,11 @@ GetOptionGroupValue - Function GetOptionGroupValue( - oContainer as Object, - OptGroupName as String) as Boolean + + Function GetOptionGroupValue( + oContainer as Object, + OptGroupName as String) as Boolean + @@ -762,11 +896,13 @@ WriteOptValueToCell - Function WriteOptValueToCell( - oSheet as Object, - OptGroupName as String, - iCol as Integer, - iRow as Integer) as Boolean + + Function WriteOptValueToCell( + oSheet as Object, + OptGroupName as String, + iCol as Integer, + iRow as Integer) as Boolean + @@ -774,10 +910,12 @@ LoadDialog - Function LoadDialog( - Libname as String, - DialogName as String, - Optional oLibContainer) + + Function LoadDialog( + Libname as String, + DialogName as String, + Optional oLibContainer) + @@ -785,7 +923,9 @@ GetFolderName - Sub GetFolderName(oRefModel as Object) + + Sub GetFolderName(oRefModel as Object) + @@ -793,9 +933,11 @@ GetFileName - Sub GetFileName( - oRefModel as Object, - Filternames()) + + Sub GetFileName( + oRefModel as Object, + Filternames()) + @@ -803,12 +945,14 @@ StoreDocument - Function StoreDocument( - oDocument as Object, - FilterNames() as String, - DefaultName as String, - DisplayDirectory as String, - Optional iAddProcedure as Integer) as String + + Function StoreDocument( + oDocument as Object, + FilterNames() as String, + DefaultName as String, + DisplayDirectory as String, + Optional iAddProcedure as Integer) as String + @@ -816,9 +960,11 @@ AddFiltersToDialog - Sub AddFiltersToDialog( - FilterNames() as String, - oDialog as Object) + + Sub AddFiltersToDialog( + FilterNames() as String, + oDialog as Object) + @@ -826,9 +972,11 @@ SwitchMousePointer - Sub SwitchMousePointer( - oWindowPeer as Object, - bDoEnable as Boolean) + + Sub SwitchMousePointer( + oWindowPeer as Object, + bDoEnable as Boolean) + @@ -836,9 +984,11 @@ ShowOverwriteAllDialog - Sub ShowOverwriteAllDialog( - FilePath as String, - sTitle as String) + + Sub ShowOverwriteAllDialog( + FilePath as String, + sTitle as String) + @@ -846,7 +996,9 @@ SetOVERWRITEToQuery - Sub SetOVERWRITEToQuery() + + Sub SetOVERWRITEToQuery() + @@ -854,7 +1006,9 @@ SetOVERWRITEToAlways - Sub SetOVERWRITEToAlways() + + Sub SetOVERWRITEToAlways() + @@ -862,7 +1016,9 @@ SetOVERWRITEToNever - Sub SetOVERWRITEToNever() + + Sub SetOVERWRITEToNever() + @@ -887,9 +1043,11 @@ ElimChar - Function ElimChar( - ByVal BigString as String, - ElimArray() as String) + + Function ElimChar( + ByVal BigString as String, + ElimArray() as String) + @@ -898,9 +1056,11 @@ ' Deletes out of a String 'BigString' a possible Partstring 'CompString' - Function DeleteStr( - ByVal BigString, - CompString as String) as String + + Function DeleteStr( + ByVal BigString, + CompString as String) as String + @@ -909,11 +1069,13 @@ ' Finds a PartString, that is framed by the Strings 'Prestring' and 'PostString' - Function FindPartString( - BigString, - PreString, - PostString as String, - SearchPos as Integer) as String + + Function FindPartString( + BigString, + PreString, + PostString as String, + SearchPos as Integer) as String + @@ -923,10 +1085,12 @@ ' Note iCompare = 0 (Binary comparison) ' iCompare = 1 (Text comparison) - Function PartStringInArray( - BigArray(), - SearchString as String, - iCompare as Integer) as Integer + + Function PartStringInArray( + BigArray(), + SearchString as String, + iCompare as Integer) as Integer + @@ -936,9 +1100,11 @@ ' Deletes the String 'SmallString' out of the String 'BigString' ' in case SmallString's Position in BigString is right at the end - Function RtrimStr( - ByVal BigString, - SmallString as String) as String + + Function RtrimStr( + ByVal BigString, + SmallString as String) as String + @@ -948,9 +1114,11 @@ ' Deletes the Char 'CompChar' out of the String 'BigString' ' in case CompChar's Position in BigString is right at the beginning - Function LTRimChar( - ByVal BigString as String, - CompChar as String) as String + + Function LTRimChar( + ByVal BigString as String, + CompChar as String) as String + @@ -962,10 +1130,12 @@ ' The fields of the Array are separated by the parameter 'Separator', that is contained ' in the Array ' The Array MaxIndex delivers the highest Index of this Array - Function ArrayOutOfString( - BigString, - Separator as String, - Optional MaxIndex as Integer) + + Function ArrayOutOfString( + BigString, + Separator as String, + Optional MaxIndex as Integer) + @@ -974,7 +1144,9 @@ ' Deletes all fieldvalues in one-dimensional Array - Sub ClearArray(BigArray) + + Sub ClearArray(BigArray) + @@ -983,9 +1155,11 @@ ' Deletes all fieldvalues in a multidimensional Array - Sub ClearMultiDimArray( - BigArray, - DimCount as integer) + + Sub ClearMultiDimArray( + BigArray, + DimCount as integer) + @@ -995,10 +1169,12 @@ ' Checks if a Field (LocField) is already defined in an Array ' Returns 'True' or 'False' - Function FieldinArray( - LocArray(), - MaxIndex as integer, - LocField as String) As Boolean + + Function FieldinArray( + LocArray(), + MaxIndex as integer, + LocField as String) As Boolean + @@ -1008,9 +1184,11 @@ ' Checks if a Field (LocField) is already defined in an Array ' Returns 'True' or 'False' - Function FieldinList( - LocField, - BigList()) As Boolean + + Function FieldinList( + LocField, + BigList()) As Boolean + @@ -1020,9 +1198,11 @@ ' Retrieves the Index of the delivered String 'SearchString' in ' the Array LocList()' - Function IndexinArray( - SearchString as String, - LocList()) as Integer + + Function IndexinArray( + SearchString as String, + LocList()) as Integer + @@ -1030,11 +1210,13 @@ MultiArrayInListbox - Sub MultiArrayInListbox( - oDialog as Object, - ListboxName as String, - ValList(), - iDim as Integer) + + Sub MultiArrayInListbox( + oDialog as Object, + ListboxName as String, + ValList(), + iDim as Integer) + @@ -1044,12 +1226,14 @@ ' Searches for a String in a two-dimensional Array by querying all Searchindexes of the second dimension ' and delivers the specific String of the ReturnIndex in the second dimension of the Searchlist() - Function StringInMultiArray( - SearchList(), - SearchString as String, - SearchIndex as Integer, - ReturnIndex as Integer, - Optional MaxIndex as Integer) as String + + Function StringInMultiArray( + SearchList(), + SearchString as String, + SearchIndex as Integer, + ReturnIndex as Integer, + Optional MaxIndex as Integer) as String + @@ -1059,10 +1243,12 @@ ' Searches for a Value in multidimensial Array by querying all Searchindices of the passed dimension ' and delivers the Index where it is found. - Function GetIndexInMultiArray( - SearchList(), - SearchValue, - SearchIndex as Integer) as Integer + + Function GetIndexInMultiArray( + SearchList(), + SearchValue, + SearchIndex as Integer) as Integer + @@ -1073,10 +1259,12 @@ ' Searches for a Value in multidimensial Array by querying all Searchindices of the passed dimension ' and delivers the Index where the Searchvalue is found as a part string - Function GetIndexForPartStringinMultiArray( - SearchList(), - SearchValue, - SearchIndex as Integer) as Integer + + Function GetIndexForPartStringinMultiArray( + SearchList(), + SearchValue, + SearchIndex as Integer) as Integer + @@ -1084,9 +1272,11 @@ ArrayfromMultiArray - Function ArrayfromMultiArray( - MultiArray as String, - iDim as Integer) + + Function ArrayfromMultiArray( + MultiArray as String, + iDim as Integer) + @@ -1096,10 +1286,12 @@ ' Replaces the string "OldReplace" through the String "NewReplace" in the String ' 'BigString' - Function ReplaceString( - ByVal Bigstring, - NewReplace, - OldReplace as String) as String + + Function ReplaceString( + ByVal Bigstring, + NewReplace, + OldReplace as String) as String + @@ -1109,9 +1301,11 @@ ' Retrieves the second value for a next to 'SearchString' in ' a two-dimensional string-Array - Function FindSecondValue( - SearchString as String, - TwoDimList() as String ) as String + + Function FindSecondValue( + SearchString as String, + TwoDimList() as String ) as String + @@ -1120,9 +1314,11 @@ ' raises a base to a certain power - Function Power( - Basis as Double, - Exponent as Double) as Double + + Function Power( + Basis as Double, + Exponent as Double) as Double + @@ -1131,9 +1327,11 @@ ' rounds a Real to a given Number of Decimals - Function Round( - BaseValue as Double, - Decimals as Integer) as Double + + Function Round( + BaseValue as Double, + Decimals as Integer) as Double + @@ -1142,9 +1340,11 @@ 'Retrieves the mere filename out of a whole path - Function FileNameoutofPath( - ByVal Path as String, - Optional Separator as String) as String + + Function FileNameoutofPath( + ByVal Path as String, + Optional Separator as String) as String + @@ -1152,8 +1352,10 @@ GetFileNameExtension - Function GetFileNameExtension( - ByVal FileName as String) + + Function GetFileNameExtension( + ByVal FileName as String) + @@ -1161,9 +1363,11 @@ GetFileNameWithoutExtension - Function GetFileNameWithoutExtension( - ByVal FileName as String, - Optional Separator as String) + + Function GetFileNameWithoutExtension( + ByVal FileName as String, + Optional Separator as String) + @@ -1171,9 +1375,11 @@ DirectoryNameoutofPath - Function DirectoryNameoutofPath( - sPath as String, - Separator as String) as String + + Function DirectoryNameoutofPath( + sPath as String, + Separator as String) as String + @@ -1181,10 +1387,12 @@ CountCharsinString - Function CountCharsinString( - BigString, - LocChar as String, - ByVal StartPos as Integer) as Integer + + Function CountCharsinString( + BigString, + LocChar as String, + ByVal StartPos as Integer) as Integer + @@ -1192,9 +1400,11 @@ BubbleSortList - Function BubbleSortList( - ByVal SortList(), - optional sort2ndValue as Boolean) + + Function BubbleSortList( + ByVal SortList(), + optional sort2ndValue as Boolean) + 'This function bubble sorts an array of maximum 2 dimensions. 'The default sorting order is the first dimension 'Only if sort2ndValue is True the second dimension is the relevant for the sorting order @@ -1205,11 +1415,13 @@ GetValueoutofList - Function GetValueoutofList( - SearchValue, - BigList(), - iDim as Integer, - Optional ValueIndex) + + Function GetValueoutofList( + SearchValue, + BigList(), + iDim as Integer, + Optional ValueIndex) + @@ -1217,10 +1429,12 @@ AddListtoList - Function AddListtoList( - ByVal FirstArray(), - ByVal SecondArray(), - Optional StartIndex) + + Function AddListtoList( + ByVal FirstArray(), + ByVal SecondArray(), + Optional StartIndex) + @@ -1228,7 +1442,9 @@ CheckDouble - Function CheckDouble(DoubleString as String) + + Function CheckDouble(DoubleString as String) + @@ -1253,13 +1469,15 @@ ReadDirectories - Function ReadDirectories( - ByVal AnchorDir As String, - bRecursive as Boolean, - bcheckFileType as Boolean, - bGetByTitle as Boolean, - Optional sFileContent(), - Optional sExtension as String) + + Function ReadDirectories( + ByVal AnchorDir As String, + bRecursive as Boolean, + bcheckFileType as Boolean, + bGetByTitle as Boolean, + Optional sFileContent(), + Optional sExtension as String) + @@ -1267,9 +1485,11 @@ AddFoldertoList - Sub AddFoldertoList( - sDirURL as String, - iDirIndex) + + Sub AddFoldertoList( + sDirURL as String, + iDirIndex) + @@ -1277,12 +1497,14 @@ AddFileNameToList - Sub AddFileNameToList( - sFileArray(), - FileName as String, - FileContent as String, - bGetByTitle as Boolean, - CurIndex) + + Sub AddFileNameToList( + sFileArray(), + FileName as String, + FileContent as String, + bGetByTitle as Boolean, + CurIndex) + @@ -1290,9 +1512,11 @@ RetrieveDocTitle - Function RetrieveDocTitle( - oDocProps as Object, - sFileName as String) As String + + Function RetrieveDocTitle( + oDocProps as Object, + sFileName as String) As String + @@ -1302,8 +1526,10 @@ ' Retrieves The Filecontent of a Document by extracting the content ' from the Header of the document - Function GetRealFileContent( - FileName as String) As String + + Function GetRealFileContent( + FileName as String) As String + @@ -1311,10 +1537,12 @@ CopyRecursively - Function CopyRecursively( - SourceFilePath as String, - SourceStemDir as String, - TargetStemDir as String) + + Function CopyRecursively( + SourceFilePath as String, + SourceStemDir as String, + TargetStemDir as String) + @@ -1323,7 +1551,9 @@ ' Opens a help url referenced by a Help ID that is retrieved from the calling button tag - Sub ShowHelperDialog(aEvent) + + Sub ShowHelperDialog(aEvent) + @@ -1331,9 +1561,11 @@ SaveDataToFile - Sub SaveDataToFile( - FilePath as String, - DataList()) + + Sub SaveDataToFile( + FilePath as String, + DataList()) + @@ -1341,9 +1573,11 @@ LoadDataFromFile - Function LoadDataFromFile( - FilePath as String, - DataList()) as Boolean + + Function LoadDataFromFile( + FilePath as String, + DataList()) as Boolean + @@ -1351,7 +1585,9 @@ CreateFolder - Function CreateFolder(sNewFolder) as Boolean + + Function CreateFolder(sNewFolder) as Boolean + -- cgit