diff options
author | Behrend Cornelius <bc@openoffice.org> | 2002-09-17 12:01:46 +0000 |
---|---|---|
committer | Behrend Cornelius <bc@openoffice.org> | 2002-09-17 12:01:46 +0000 |
commit | a5241716a4c425776bea1c1f2a393e4a7a297da5 (patch) | |
tree | 3528c3b22735adbbe037ad54f852d80438a31d02 /wizards/source/depot | |
parent | a70f969df9e915b34cc52c8341ef4f456ea7af8e (diff) |
#99839# german comments removed
Diffstat (limited to 'wizards/source/depot')
-rw-r--r-- | wizards/source/depot/Currency.xba | 11 | ||||
-rw-r--r-- | wizards/source/depot/Depot.xba | 10 | ||||
-rw-r--r-- | wizards/source/depot/Internet.xba | 6 | ||||
-rw-r--r-- | wizards/source/depot/Lang_de.xba | 3 | ||||
-rw-r--r-- | wizards/source/depot/Lang_en.xba | 3 | ||||
-rw-r--r-- | wizards/source/depot/Lang_es.xba | 2 | ||||
-rw-r--r-- | wizards/source/depot/Lang_fr.xba | 2 | ||||
-rw-r--r-- | wizards/source/depot/Lang_it.xba | 3 | ||||
-rw-r--r-- | wizards/source/depot/Lang_sv.xba | 3 | ||||
-rw-r--r-- | wizards/source/depot/Lang_tw.xba | 2 | ||||
-rw-r--r-- | wizards/source/depot/Lang_zh.xba | 2 | ||||
-rw-r--r-- | wizards/source/depot/tools.xba | 19 |
12 files changed, 7 insertions, 59 deletions
diff --git a/wizards/source/depot/Currency.xba b/wizards/source/depot/Currency.xba index 20a0112db3cc..654e916e84fc 100644 --- a/wizards/source/depot/Currency.xba +++ b/wizards/source/depot/Currency.xba @@ -65,7 +65,7 @@ Dim bIsDocCountry as Boolean Else Index = oInternetModel.Tag End If - oMarketModel = GetControlModel(oDocument.Sheets(0), "CmdHistory") 'getControlView(oDocument.Sheets(0), oController, "CmdHistory") + oMarketModel = GetControlModel(oDocument.Sheets(0), "CmdHistory") sCurCurrency = sMarket(Index,1) If Index = 0 Then HistoryChartSource = sMarket(Index,4) @@ -130,7 +130,7 @@ Dim sSimpleStr as String Dim nSimpleKey as Long Dim aFormat() Dim oLocale as New com.sun.star.lang.Locale - ' Numberformat mit dem neuen Symbol als Basis für generateFormat + ' Numberformat with the new Symbol as Base for new Format sSimpleStr = "0 [$" & sNewSymbol & "-" & sNewExtension & "]" nSimpleKey = Numberformat(oFormats, sSimpleStr, oDocLocale) On Local Error Resume Next @@ -143,8 +143,7 @@ Dim oLocale as New com.sun.star.lang.Locale On Local Error GoTo NOKEY aFormat() = oFormats.getByKey(iNumberFormat) On Local Error GoTo 0 - ' Typ und Währungssymbol des Numberformats heraussuchen - ' neues Währungsformat mit passenden Einstellungen setzen + ' set new currency format with according settings nFormatDecimals = aFormat.Decimals nFormatLeading = aFormat.LeadingZeros bFormatNegRed = aFormat.NegativeRed @@ -173,10 +172,6 @@ End Function Function CheckFormatType(oStyle as Object) Dim oFormatofObject as Object - ' Retrieve the Format of the Object -'On Local Error GoTo NOKEY oFormatofObject = oDocFormats.getByKey(oStyle.NumberFormat) -' On Local Error GoTo 0 - ' Typ und Währungssymbol des Numberformats heraussuchen CheckFormatType = INT(oFormatOfObject.Type) AND com.sun.star.util.NumberFormat.CURRENCY End Function</script:module>
\ No newline at end of file diff --git a/wizards/source/depot/Depot.xba b/wizards/source/depot/Depot.xba index c500a89c66ac..324fe2e4ba41 100644 --- a/wizards/source/depot/Depot.xba +++ b/wizards/source/depot/Depot.xba @@ -110,7 +110,6 @@ Dim LocStockName as String CurRate = TransactModel.txtRate.Value TransactDate = CDateFromISO(TransactModel.txtDate.Date) DlgTransaction.EndExecute() -' oDocument.AddActionLock UnprotectSheets(oSheets) iNewRow = DuplicateRow(oMovementSheet, "HiddenRow3") @@ -130,7 +129,7 @@ Dim LocStockName as String oMovementSheet.GetCellByPosition(SBCOLUMNDATE2, iNewRow).Value = CDateFromISO(TransactModel.txtDate.Date) oMovementSheet.GetCellByPosition(SBCOLUMNRATE2, iNewRow).Value = TransactModel.txtRate.Value - oMovementSheet.GetCellByPosition(SBCOLUMNPROVPERCENT2, iNewRow).Value = TransactModel.txtCommission.EffectiveValue ' Todo: Zellinhalt überprüfen! + oMovementSheet.GetCellByPosition(SBCOLUMNPROVPERCENT2, iNewRow).Value = TransactModel.txtCommission.EffectiveValue oMovementSheet.GetCellByPosition(SBCOLUMNPROVMIN2, iNewRow).Value = TransactModel.txtMinimum.Value oMovementSheet.GetCellByPosition(SBCOLUMNPROVFIX2, iNewRow).Value = TransactModel.txtFix.Value @@ -202,7 +201,6 @@ Dim LocStockName as String End If InsertCurrentValue(CurRate, iStockRow,TransactDate) ProtectSheets(oSheets) -' oDocument.RemoveActionLock() End Sub @@ -301,7 +299,6 @@ Dim oModel as Object SplitCellValue(oMovementSheet, NewNumber, OldNumber, SBCOLUMNQUANTITY2, iRow, NoteText) SplitCellValue(oMovementSheet, OldNumber, NewNumber, SBCOLUMNRATE2, iRow, "") SplitCellValue(oMovementSheet, NewNumber, OldNumber, SBCOLUMNQTYSOLD2, iRow, "") - ' Todo: Muss die Zelle auf der ersten Seite in der 8 ten Spalte nicht auch geupdated werden? End Select End If iRow = iRow + 1 @@ -375,11 +372,10 @@ End Sub Sub SetupTransactionControls(CurStep as Integer) DlgReference = DlgTransaction With TransactModel -' Todo: Wie kriege ich das aktuelle Datum in das nachfolgende Format konvertiert? .txtDate.Date = CDateToISO(Date()) .txtDate.DateMax = CDateToISO(Date()) - .txtStockID.Enabled = False ' Curstep = SBDIALOGBUY - .lblStockID.Enabled = False ' Curstep = SBDIALOGBUY + .txtStockID.Enabled = False + .lblStockID.Enabled = False .lblStockID.Label = sCurStockIDLabel .txtRate.CurrencySymbol = sCurCurrency .txtFix.CurrencySymbol = sCurCurrency diff --git a/wizards/source/depot/Internet.xba b/wizards/source/depot/Internet.xba index 9f7d2239a31f..9d2315f484a6 100644 --- a/wizards/source/depot/Internet.xba +++ b/wizards/source/depot/Internet.xba @@ -14,8 +14,6 @@ Dim LastDate as Date If bLocGoOn Then If FirstDate >= LastDate Then Msgbox(sMsgStartDatebeforeEndDate,16, sProductname) -' Todo: Hier müsste eigentlich der Fokus auf die Textbox gelegt werden -' StockRatesModel.txtStartDate.Text = "" bLocGoOn = False End If End If @@ -164,7 +162,6 @@ Dim bLeaveLoop as Boolean Dim RemoveCount as Integer Dim iLastRow as Integer Dim iLastLinkRow as Integer -'Dim sDate as String Dim dDate as Date Dim CurDate as Date Dim oLinkSheet as Object @@ -204,7 +201,7 @@ Dim iCellValue as Long oSheet.Rows.RemoveByIndex(iCurRow, RemoveCount-1) End If CurDate = EndDate - For i = 1 To iLastLinkRow ' To 1 Step -1 + For i = 1 To iLastLinkRow oCell = oSheet.GetCellbyPosition(SBDATECOLUMN,iCurRow) iCellValue = oLinkSheet.GetCellByPosition(0,i).Value If iCellValue > 0 Then @@ -340,7 +337,6 @@ Dim bLeaveLoop as Boolean End If Loop Until bLeaveLoop oDateCell = oSheet.GetCellbyPosition(SBDATECOLUMN, SBSTARTROW + i-1) -' CellDate = oDateCell.Value oDateCell.Annotation.SetString(NoteText) End If End Sub</script:module>
\ No newline at end of file diff --git a/wizards/source/depot/Lang_de.xba b/wizards/source/depot/Lang_de.xba index feb8fd8e6e92..bcb479e8f11e 100644 --- a/wizards/source/depot/Lang_de.xba +++ b/wizards/source/depot/Lang_de.xba @@ -3,8 +3,6 @@ <script:module xmlns:script="http://openoffice.org/2000/script" script:name="Lang_de" script:language="StarBasic">Option Explicit Sub LoadGermanLanguage() -'Dim LocaleLangList() -'Dim LocaleCountryList() sProductname = GetProductname sOK = "~OK" @@ -13,7 +11,6 @@ Sub LoadGermanLanguage() sInsertStockName = "Bitte fügen Sie zunächst einige Aktien in Ihr Depot ein!" sTitle = "<PRODUCTNAME>: Aktienverwaltung" sTitle = ReplaceString(sTitle, sProductName, "<PRODUCTNAME>") -' sInsertStocks = "Fügen Sie zunächst einige Aktien ein!" sMsgError = "Eingabefehler" sMsgNoName = sInsertStockname sMsgNoQuantity = "Bitte geben Sie eine Stückzahl größer als 0 ein" diff --git a/wizards/source/depot/Lang_en.xba b/wizards/source/depot/Lang_en.xba index 471e436e08e2..de3bf132539e 100644 --- a/wizards/source/depot/Lang_en.xba +++ b/wizards/source/depot/Lang_en.xba @@ -3,8 +3,6 @@ <script:module xmlns:script="http://openoffice.org/2000/script" script:name="Lang_en" script:language="StarBasic">Option Explicit Sub LoadEnglishLanguage() -'Dim LocaleLangList() -'Dim LocaleCountryList() sProductname = GetProductname sOK = "~OK" @@ -13,7 +11,6 @@ Sub LoadEnglishLanguage() sInsertStockName = "Please enter shares in your portfolio." sTitle = "<PRODUCTNAME><PRODUCTNAME>: Stocks Manager" sTitle = ReplaceString(sTitle, sProductName, "<PRODUCTNAME>") -' sInsertStocks = "Fügen Sie zunächst einige Aktien ein!" sMsgError = "Input Error" sMsgNoName = sInsertStockname sMsgNoQuantity = "Please enter a quantity larger than 0" diff --git a/wizards/source/depot/Lang_es.xba b/wizards/source/depot/Lang_es.xba index 50b78a1d04d3..83a0996c5bd4 100644 --- a/wizards/source/depot/Lang_es.xba +++ b/wizards/source/depot/Lang_es.xba @@ -3,8 +3,6 @@ <script:module xmlns:script="http://openoffice.org/2000/script" script:name="Lang_es" script:language="StarBasic">Option Explicit Sub LoadSpanishLanguage() -'Dim LocaleLangList() -'Dim LocaleCountryList() sProductname = GetProductname sOK = "~Aceptar" diff --git a/wizards/source/depot/Lang_fr.xba b/wizards/source/depot/Lang_fr.xba index a27569596f97..8e2523251d35 100644 --- a/wizards/source/depot/Lang_fr.xba +++ b/wizards/source/depot/Lang_fr.xba @@ -3,8 +3,6 @@ <script:module xmlns:script="http://openoffice.org/2000/script" script:name="Lang_fr" script:language="StarBasic">Option Explicit Sub LoadFrenchLanguage() -'Dim LocaleLangList() -'Dim LocaleCountryList() sProductname = GetProductname sOK = "~OK" diff --git a/wizards/source/depot/Lang_it.xba b/wizards/source/depot/Lang_it.xba index a1b1f87b6bab..3b3d302e4e6e 100644 --- a/wizards/source/depot/Lang_it.xba +++ b/wizards/source/depot/Lang_it.xba @@ -3,8 +3,6 @@ <script:module xmlns:script="http://openoffice.org/2000/script" script:name="Lang_it" script:language="StarBasic">Option Explicit Sub LoadItalianLanguage() -'Dim LocaleLangList() -'Dim LocaleCountryList() sProductname = GetProductname sOK = "~OK" @@ -13,7 +11,6 @@ Sub LoadItalianLanguage() sInsertStockName = "Inserite un nome di azioni" sTitle = "<PRODUCTNAME><PRODUCTNAME>: Gestione delle azioni" sTitle = ReplaceString(sTitle, sProductName, "<PRODUCTNAME>") -' sInsertStocks = "Fügen Sie zunächst einige Aktien ein!" sMsgError = "Errore dati immessi" sMsgNoName = sInsertStockname sMsgNoQuantity = "Inserite il numero delle azioni" diff --git a/wizards/source/depot/Lang_sv.xba b/wizards/source/depot/Lang_sv.xba index 3d86013dc76e..afa1146620e3 100644 --- a/wizards/source/depot/Lang_sv.xba +++ b/wizards/source/depot/Lang_sv.xba @@ -3,9 +3,6 @@ <script:module xmlns:script="http://openoffice.org/2000/script" script:name="Lang_sv" script:language="StarBasic">Option Explicit Sub LoadSwedishLanguage() -'Dim LocaleLangList() -'Dim LocaleCountryList() - sProductname = GetProductname sOK = "~OK" sCancel = "Avbryt" diff --git a/wizards/source/depot/Lang_tw.xba b/wizards/source/depot/Lang_tw.xba index f4a71e591caf..8b471e59b496 100644 --- a/wizards/source/depot/Lang_tw.xba +++ b/wizards/source/depot/Lang_tw.xba @@ -3,8 +3,6 @@ <script:module xmlns:script="http://openoffice.org/2000/script" script:name="Lang_tw" script:language="StarBasic">Option Explicit Sub LoadChineseTradLanguage() -'Dim LocaleLangList() -'Dim LocaleCountryList() sProductname = GetProductname sOK = "確定" diff --git a/wizards/source/depot/Lang_zh.xba b/wizards/source/depot/Lang_zh.xba index 5de53e1c27f8..2a677e89176c 100644 --- a/wizards/source/depot/Lang_zh.xba +++ b/wizards/source/depot/Lang_zh.xba @@ -3,8 +3,6 @@ <script:module xmlns:script="http://openoffice.org/2000/script" script:name="Lang_zh" script:language="StarBasic">Option Explicit Sub LoadChineseSimpleLanguage() -'Dim LocaleLangList() -'Dim LocaleCountryList() sProductname = GetProductname sOK = "确定" diff --git a/wizards/source/depot/tools.xba b/wizards/source/depot/tools.xba index 2b5533715131..19ca8eda1ec1 100644 --- a/wizards/source/depot/tools.xba +++ b/wizards/source/depot/tools.xba @@ -197,23 +197,4 @@ Dim bIsDocCountry as Boolean bIsDocCountry = Instr(1, LocCountry, sDocCountry, SBBINARY) <> 0 OR SDocCountry = "" CheckDocLocale = (bIsDocLanguage And bIsDocCountry) End Function - - -'Sub Dividend() -'Dim i, StockCount, iStartRow as Integer -'Dim oCell as Object -'Dim ListboxControl as Object -' OpenStockRatePage(1) -' -' StockRatesModel.lstStockNames.StringItemList() = NullList() -' StockCount = GetStocksCount(iStartRow) -' ListboxControl = DlgStockRates.GetControl("lstStockNames") -' For i = 1 To StockCount -' oCell = oFirstSheet.GetCellByPosition(SBCOLUMNNAME1, iStartRow + i) -' ListBoxControl.AddItem(oCell.String, i-1) ' Add stock name to list -' oCell = oFirstSheet.GetCellByPosition(SBCOLUMNQUANTITY1, iStartRow + i) -' Todo: Is this really necessary???????????????????? -' StockRatesModel.lstStockNames.ItemData(StockRatesModel.lstStockNames.NewIndex) = oCell.Value ' Store quantity for later use -' Next i -'End Sub </script:module>
\ No newline at end of file |