Fixed the indent from 4 spaces to tabs.
This commit is contained in:
parent
f0c756b917
commit
035c455a84
@ -19,7 +19,7 @@ Option Explicit
|
||||
|
||||
' fnLoadParamDialog: Loads the parameter dialog.
|
||||
Function fnLoadParamDialog As Object
|
||||
Dim oDialog As Object
|
||||
Dim oDialog As Object
|
||||
|
||||
DialogLibraries.loadLibrary "PokemonGoIV"
|
||||
oDialog = CreateUnoDialog (DialogLibraries.PokemonGoIV.DlgMain)
|
||||
@ -199,7 +199,7 @@ End Sub
|
||||
|
||||
' subUpdateBestStatAppraisal: Updates the text of the best stat appraisal.
|
||||
Sub subUpdateBestStatAppraisal (oDialog As Object, _
|
||||
sAppraisal As String, nHeadWidth As Integer)
|
||||
sAppraisal As String, nHeadWidth As Integer)
|
||||
Dim oText As Object, oList As Object, nX As Integer
|
||||
Dim sHead As String, sTail As String, nTailWidth As Integer
|
||||
Dim nDialogWidth As Integer
|
||||
@ -209,7 +209,7 @@ Sub subUpdateBestStatAppraisal (oDialog As Object, _
|
||||
nPos = InStr (sAppraisal, "[Stat]")
|
||||
sHead = Left (sAppraisal, nPos - 1)
|
||||
sTail = Right (sAppraisal, _
|
||||
Len (sAppraisal) - nPos - Len ("[Stat]") + 1)
|
||||
Len (sAppraisal) - nPos - Len ("[Stat]") + 1)
|
||||
nDialogWidth = oDialog.getModel.getPropertyValue ("Width")
|
||||
|
||||
oText = oDialog.getControl ("txtBestHead")
|
||||
@ -227,7 +227,7 @@ Sub subUpdateBestStatAppraisal (oDialog As Object, _
|
||||
oList.addItems (mItems, 0)
|
||||
oList.getModel.setPropertyValue ("PositionX", nX)
|
||||
oList.getModel.setPropertyValue ("Width", _
|
||||
CInt (fnGetResString ("BestStatWidth")))
|
||||
CInt (fnGetResString ("BestStatWidth")))
|
||||
oList.setVisible (True)
|
||||
nX = nX + oList.getModel.getPropertyValue ("Width")
|
||||
|
||||
|
@ -8,7 +8,7 @@ Const BASE_KEY As String = "/org.openoffice.Office.Addons.PokemonGoIV.AddonConfi
|
||||
' fnGetImageUrl: Returns the image URL for the UNO image controls.
|
||||
Function fnGetImageUrl (sName As String) As String
|
||||
BasicLibraries.loadLibrary "Tools"
|
||||
Dim oRegKey As Object
|
||||
Dim oRegKey As Object
|
||||
|
||||
oRegKey = GetRegistryKeyContent (BASE_KEY & "FileResources/" & sName)
|
||||
fnGetImageUrl = fnExpandMacroFieldExpression (oRegKey.Url)
|
||||
@ -25,15 +25,15 @@ End Function
|
||||
|
||||
' fnExpandMacroFieldExpression
|
||||
Function fnExpandMacroFieldExpression (sURL As String) As String
|
||||
Dim sTemp As String
|
||||
Dim oSM As Object
|
||||
Dim oMacroExpander As Object
|
||||
Dim sTemp As String
|
||||
Dim oSM As Object
|
||||
Dim oMacroExpander As Object
|
||||
|
||||
' Gets the service manager
|
||||
oSM = getProcessServiceManager
|
||||
' Gets the macro expander
|
||||
oMacroExpander = oSM.DefaultContext.getValueByName ( _
|
||||
"/singletons/com.sun.star.util.theMacroExpander")
|
||||
"/singletons/com.sun.star.util.theMacroExpander")
|
||||
|
||||
'cut the vnd.sun.star.expand: part
|
||||
sTemp = Join (Split (sURL, "vnd.sun.star.expand:"))
|
||||
|
@ -21,7 +21,7 @@ Option Explicit
|
||||
|
||||
' fnLoadParamDialog: Loads the parameter dialog.
|
||||
Function fnLoadParamDialog As Object
|
||||
Dim oDialog As Object
|
||||
Dim oDialog As Object
|
||||
|
||||
DialogLibraries.loadLibrary "PokemonGoIV"
|
||||
oDialog = CreateUnoDialog (DialogLibraries.PokemonGoIV.DlgMain)
|
||||
@ -201,7 +201,7 @@ End Sub
|
||||
|
||||
' subUpdateBestStatAppraisal: Updates the text of the best stat appraisal.
|
||||
Sub subUpdateBestStatAppraisal (oDialog As Object, _
|
||||
sAppraisal As String, nHeadWidth As Integer)
|
||||
sAppraisal As String, nHeadWidth As Integer)
|
||||
Dim oText As Object, oList As Object, nX As Integer
|
||||
Dim sHead As String, sTail As String, nTailWidth As Integer
|
||||
Dim nDialogWidth As Integer
|
||||
@ -211,7 +211,7 @@ Sub subUpdateBestStatAppraisal (oDialog As Object, _
|
||||
nPos = InStr (sAppraisal, "[Stat]")
|
||||
sHead = Left (sAppraisal, nPos - 1)
|
||||
sTail = Right (sAppraisal, _
|
||||
Len (sAppraisal) - nPos - Len ("[Stat]") + 1)
|
||||
Len (sAppraisal) - nPos - Len ("[Stat]") + 1)
|
||||
nDialogWidth = oDialog.getModel.getPropertyValue ("Width")
|
||||
|
||||
oText = oDialog.getControl ("txtBestHead")
|
||||
@ -229,7 +229,7 @@ Sub subUpdateBestStatAppraisal (oDialog As Object, _
|
||||
oList.addItems (mItems, 0)
|
||||
oList.getModel.setPropertyValue ("PositionX", nX)
|
||||
oList.getModel.setPropertyValue ("Width", _
|
||||
CInt (fnGetResString ("BestStatWidth")))
|
||||
CInt (fnGetResString ("BestStatWidth")))
|
||||
oList.setVisible (True)
|
||||
nX = nX + oList.getModel.getPropertyValue ("Width")
|
||||
|
||||
|
@ -10,7 +10,7 @@ Const BASE_KEY As String = "/org.openoffice.Office.Addons.PokemonGoIV.Addon
|
||||
' fnGetImageUrl: Returns the image URL for the UNO image controls.
|
||||
Function fnGetImageUrl (sName As String) As String
|
||||
BasicLibraries.loadLibrary "Tools"
|
||||
Dim oRegKey As Object
|
||||
Dim oRegKey As Object
|
||||
|
||||
oRegKey = GetRegistryKeyContent (BASE_KEY & "FileResources/" & sName)
|
||||
fnGetImageUrl = fnExpandMacroFieldExpression (oRegKey.Url)
|
||||
@ -27,15 +27,15 @@ End Function
|
||||
|
||||
' fnExpandMacroFieldExpression
|
||||
Function fnExpandMacroFieldExpression (sURL As String) As String
|
||||
Dim sTemp As String
|
||||
Dim oSM As Object
|
||||
Dim oMacroExpander As Object
|
||||
Dim sTemp As String
|
||||
Dim oSM As Object
|
||||
Dim oMacroExpander As Object
|
||||
|
||||
' Gets the service manager
|
||||
oSM = getProcessServiceManager
|
||||
' Gets the macro expander
|
||||
oMacroExpander = oSM.DefaultContext.getValueByName ( _
|
||||
"/singletons/com.sun.star.util.theMacroExpander")
|
||||
"/singletons/com.sun.star.util.theMacroExpander")
|
||||
|
||||
'cut the vnd.sun.star.expand: part
|
||||
sTemp = Join (Split (sURL, "vnd.sun.star.expand:"))
|
||||
|
Loading…
Reference in New Issue
Block a user