diff options
author | Behrend Cornelius <bc@openoffice.org> | 2002-09-17 12:09:36 +0000 |
---|---|---|
committer | Behrend Cornelius <bc@openoffice.org> | 2002-09-17 12:09:36 +0000 |
commit | 8216b4034e231dddfd613a8af9a9ef3a9f1a0c72 (patch) | |
tree | 43707f949c2c046feebda5aa868b318ca764ca33 /wizards/source/euro | |
parent | a89e3eb4c8acf0cfea53073ff78a25f6e1f12100 (diff) |
#99839# german comments translated
Diffstat (limited to 'wizards/source/euro')
-rw-r--r-- | wizards/source/euro/AutoPilotRun.xba | 6 | ||||
-rw-r--r-- | wizards/source/euro/Common.xba | 8 | ||||
-rw-r--r-- | wizards/source/euro/ConvertRun.xba | 4 | ||||
-rw-r--r-- | wizards/source/euro/Hard.xba | 25 | ||||
-rw-r--r-- | wizards/source/euro/Init.xba | 71 | ||||
-rw-r--r-- | wizards/source/euro/Protect.xba | 6 | ||||
-rw-r--r-- | wizards/source/euro/Soft.xba | 15 | ||||
-rw-r--r-- | wizards/source/euro/Writer.xba | 6 |
8 files changed, 58 insertions, 83 deletions
diff --git a/wizards/source/euro/AutoPilotRun.xba b/wizards/source/euro/AutoPilotRun.xba index c5bdc455db7d..90820d1f443a 100644 --- a/wizards/source/euro/AutoPilotRun.xba +++ b/wizards/source/euro/AutoPilotRun.xba @@ -180,13 +180,13 @@ End Function Sub SwapExtent() DialogModel.chkRecursive.Enabled = DialogModel.optWholeDir.State = 1 If DialogModel.optWholeDir.State = 1 Then - DialogModel.lblSource.Label = sSOURCEDIR '"Quellverzeichnis:" + DialogModel.lblSource.Label = sSOURCEDIR If Not IsNull(SubstFile) Then SubstFile = DialogModel.txtSource.Text DialogModel.txtSource.Text = SubstDir End If Else - DialogModel.LblSource.Label = sSOURCEFILE '"Quelldatei:" + DialogModel.LblSource.Label = sSOURCEFILE If Not IsNull(SubstDir) Then SubstDir = DialogModel.txtSource.Text DialogModel.txtSource.Text = SubstFile @@ -211,7 +211,7 @@ Dim TextBoxText as String DialogModel.lblRetrieval.Label = sPrgsRETRIEVAL DialogModel.lblCurProgress.Label = sPrgsCONVERTING If DialogModel.optWholeDir.State = 1 Then - TextBoxText = sSOURCEDIR & " " & ConvertFromUrl(Source) & chr(13) '& " " + TextBoxText = sSOURCEDIR & " " & ConvertFromUrl(Source) & chr(13) If DialogModel.chkRecursive.State = 1 Then TextBoxText = TextBoxText & DeleteStr(sInclusiveSubDir,"~") & chr(13) End If diff --git a/wizards/source/euro/Common.xba b/wizards/source/euro/Common.xba index e82ed658ed94..9c92e30f2ff7 100644 --- a/wizards/source/euro/Common.xba +++ b/wizards/source/euro/Common.xba @@ -95,10 +95,8 @@ Dim sOldCurrSymbol as String aSimpleStr = "0 [$" & sEuroSign & aFormat.CurrencyExtension & "]" End If - ' Numberformat mit dem neuen Symbol als Basis für generateFormat nSimpleKey = Numberformat(oFormats, aSimpleStr, oLocale) - ' Typ und Währungssymbol des Numberformats heraussuchen - ' neues Währungsformat mit passenden Einstellungen setzen + ' set new Currency format with according settings nFormatDecimals = 2 nFormatLeading = aFormat.LeadingZeros bFormatNegRed = aFormat.NegativeRed @@ -128,9 +126,6 @@ Dim c as String End Function -' Funktion findet den Formattyp einer Vorlage, Zelle oder eines Bereiches heraus und schreibt das Ergebnis -' in die globale Variable nFormatType; Ist ein Währungssymbol gesetzt, wird dieses in den globalen String -' sFormatCurrency geschrieben. Function CheckFormatType( FormatObject as object) Dim i as Integer Dim LocCurrIndex as Integer @@ -143,7 +138,6 @@ Dim oFormatofObject() as Object On Local Error GoTo NOKEY oFormatofObject = oFormats.getByKey(FormatObject.NumberFormat) On Local Error GoTo 0 - ' Typ und Währungssymbol des Numberformats heraussuchen If NOT INT(oFormatofObject.Type) AND com.sun.star.util.NumberFormat.CURRENCY Then CheckFormatType = False Exit Function diff --git a/wizards/source/euro/ConvertRun.xba b/wizards/source/euro/ConvertRun.xba index 0582b0c6f4ff..8e90ed3a9d95 100644 --- a/wizards/source/euro/ConvertRun.xba +++ b/wizards/source/euro/ConvertRun.xba @@ -98,7 +98,7 @@ Dim MaxIndex as Integer End Sub -' Prozedur that is called by an event +' Procedure that is called by an event Sub RetrieveEnableValue() Dim EnableValue as Boolean EnableValue = Not DialogModel.lstSelection.Enabled @@ -196,7 +196,7 @@ Dim s as Integer End Sub -' Alles was selektiert wurde wird deselektiert +' Everything previously selected will be deselected Sub EmptySelection() Dim RangeName as String Dim i as Integer diff --git a/wizards/source/euro/Hard.xba b/wizards/source/euro/Hard.xba index b2e0d5d3c785..e00609ee92f0 100644 --- a/wizards/source/euro/Hard.xba +++ b/wizards/source/euro/Hard.xba @@ -9,11 +9,11 @@ Dim MaxIndex as Integer MaxIndex = -1 EnableStep1DialogControls(False, False, False) EmptySelection() - DialogModel.lblSelection.Label = sCURRRANGES '"Währungsbereiche:" + DialogModel.lblSelection.Label = sCURRRANGES EmptyListbox(DialogModel.lstSelection) oDocument.CurrentController.Select(oSelRanges) If (DialogModel.optSheetRanges.State = 1) AND (DialogModel.chkComplete.State <> 1) Then - ' Ist das Sheet Grundlage für die Bearbeitung? + ' Conversion on a sheet? SetStatusLineText(sStsRELRANGES) osheet = oDocument.CurrentController.GetActiveSheet oRanges = osheet.CellFormatRanges.createEnumeration() @@ -36,7 +36,7 @@ Dim MaxIndex as integer Dim sStatustext as String MaxIndex = -1 If Not bRangeListDefined Then - ' Die Ranges sind noch nicht definiert + ' Cellranges are not yet defined oSheets = oDocument.Sheets For i = 0 To oSheets.Count-1 oSheet = oSheets.GetbyIndex(i) @@ -53,7 +53,7 @@ Dim sStatustext as String Else If Not bAutoPilot Then SetStatusLineText(sStsRELRANGES) - ' Die Ranges sind schon definiert + ' cellranges already defined For i = 0 To Ubound(RangeList()) If RangeList(i) <> "" Then AddSingleItemToListBox(DialogModel.lstSelection, RangeList(i)) @@ -100,7 +100,7 @@ Dim MaxIndex as Integer End Function -' Fügt einen Bereich zur selektierten Kollektion hinzu +' adds a section to the collection Sub SelectRange() Dim i as Integer Dim RangeName as String @@ -129,7 +129,7 @@ End Sub Sub ConvertThehardWay(ListboxList(), SwitchFormat as Boolean, bRemove as Boolean) -Dim i as Integer ' r, a +Dim i as Integer Dim AddCells as Long Dim OldStatusValue as Single Dim RangeName as String @@ -140,7 +140,7 @@ Dim oSelListbox as Object Lastindex = Ubound(ListboxList()) If TotCellCount > 0 Then OldStatusValue = StatusValue - ' Harte Formatierung + ' hard format For i = 0 To LastIndex RangeName = ListboxList(i) oRange = RetrieveRangeoutofRangeName(RangeName) @@ -153,11 +153,11 @@ Dim oSelListbox as Object End If If SwitchFormat Then If oRange.getPropertyState("NumberFormat") <> 1 Then - ' Range Ist hart formatiert - SwitchNumberFormat(oRange, oFormats, sEuroSign)' "€") + ' Range is hard formatted + SwitchNumberFormat(oRange, oFormats, sEuroSign)) End If Else - SwitchNumberFormat(oRange, oFormats, sEuroSign) '"€" + SwitchNumberFormat(oRange, oFormats, sEuroSign) End If AddCells = CountRangeCells(oRange) CurCellCount = AddCells @@ -198,10 +198,7 @@ Dim oFormatofObject() as Object On Local Error GoTo NOKEY oFormatofObject() = oFormats.getByKey(FormatObject.NumberFormat) On Local Error GoTo 0 - - ' Typ und Währungssymbol des Numberformats heraussuchen - ' Todo: Überprüfe, ob diese beiden Zeilen nicht eleganter gehen - CheckIfRangeIsCurrency = INT(oFormatofObject.Type) AND com.sun.star.util.NumberFormat.CURRENCY + CheckIfRangeIsCurrency = INT(oFormatofObject.Type) AND com.sun.star.util.NumberFormat.CURRENCY Exit Function NOKEY: CheckIfRangeisCurrency = False diff --git a/wizards/source/euro/Init.xba b/wizards/source/euro/Init.xba index b52ed371d716..fcecc8d64aa8 100644 --- a/wizards/source/euro/Init.xba +++ b/wizards/source/euro/Init.xba @@ -3,14 +3,7 @@ <script:module xmlns:script="http://openoffice.org/2000/script" script:name="Init" script:language="StarBasic">Option Explicit REM ***** BASIC ***** -' Zu diskutieren: -' Autopilot von Werkzeugleiste für Textdokumente mit eigener Konverterseite? -' Konvertierung von Datenbankfeldern '- Problematik der Formatierung mit FS durchsprechen!? -' Option des einleitenden Welcome-Text, der erklärt, was eigentlich Sache ist (wie beim Dokumenten Konverter) -' Option der Checkbox-Gruppe in der die zu konvertierenden Dokumenttypen aufgeführt sind -' -> bei den letztgenannten Optionen müsste der Dialog in seiner Höhe vergrößert werden. -' Wir sollten informiert werden, ob und wie oder wann das Standard - Währungsformat für die Euroländer umgesetzt -' wird. + Public Const SBRANGEUBOUND = 20 Public StyleRangeAssignmentList(SBRANGEUBOUND)as String @@ -129,14 +122,10 @@ Public sEuroSign as String Public oPointer as Object Public sDocType as String Public bPreSelected as Boolean -'Public DocDisposed as Boolean -'Public bMacroStopped as Boolean Public bRecursive as Boolean Public bCancelProtection as Boolean Public CurrRoundMode as Boolean Public bRangeListDefined as Boolean -' Note the variable bDocHasProtectedSheets does not contain information -' wether sheets have to be reprotected Public bDocHasProtectedSheets as Boolean Public sGOON as String Public sHELP as String @@ -218,10 +207,10 @@ Sub InitializeResources() Else .lblProgress.Label = sStsPROGRESS .hlnExtent.Label = GetResText(1200) - .optSingleFile.Label = GetResText(1201) '"Einzelnes StarOffice -Dokument"'GetResText(1201) + .optSingleFile.Label = GetResText(1201) .optWholeDir.Label = GetResText(1202) .chkProtect.Label = GetResText(1207) - .chkTextDocuments.Label = GetResText(1210) ' "Auch Feldbefehle und Tabellen in Textdokumenten konvertieren"' Todo: Dieses Model später am Control unsichtbar machen + .chkTextDocuments.Label = GetResText(1210) sSOURCEFILE = GetResText(1203) sSOURCEDIR = GetResText(1204) @@ -336,109 +325,108 @@ Dim i as Integer GoOn = True CurrValue(0,0) = sCurrPORTUGUESE - ' Wahrer Umrechnungskurs + ' real conversion rate CurrValue(0,1) = 200.482 - ' Gerundeter Umrechnungskurs + ' rounded conversion rate CurrValue(0,2) = 200 CurrValue(0,3) = "Esc." CurrValue(0,4) = "Esc." CurrValue(0,5) = "PTE" CurrValue(1,0) = sCurrDUTCH - ' Wahrer Umrechnungskurs + ' real conversion rate CurrValue(1,1) = 2.20371 - ' Gerundeter Umrechnungskurs + ' rounded conversion rate CurrValue(1,2) = 2 CurrValue(1,3) = "F" CurrValue(1,4) = "fl" CurrValue(1,5) = "NLG" CurrValue(2,0) = sCurrFRENCH - ' Wahrer Umrechnungskurs + ' real conversion rate CurrValue(2,1) = 6.55957 - ' Gerundeter Umrechnungskurs + ' rounded conversion rate CurrValue(2,2) = 7 CurrValue(2,3) = "F" CurrValue(2,4) = "F" CurrValue(2,5) = "FRF" CurrValue(3,0) = sCurrSPANISH - ' Wahrer Umrechnungskurs + ' real conversion rate CurrValue(3,1) = 166.386 - ' Gerundeter Umrechnungskurs + ' rounded conversion rate CurrValue(3,2) = 170 CurrValue(3,3) = "Pts" CurrValue(3,4) = "Pts" CurrValue(3,5) = "ESP" CurrValue(4,0) = sCurrITALIAN - ' Wahrer Umrechnungskurs + ' real conversion rate CurrValue(4,1) = 1936.27 - ' Gerundeter Umrechnungskurs + ' rounded conversion rate CurrValue(4,2) = 2000 CurrValue(4,3) = "L." CurrValue(4,4) = "L." CurrValue(4,5) = "ITL" CurrValue(5,0) = sCurrGERMAN - ' Wahrer Umrechnungskurs + ' real conversion rate CurrValue(5,1) = 1.95583 - ' Gerundeter Umrechnungskurs + ' rounded conversion rate CurrValue(5,2) = 2 CurrValue(5,3) = "DM" CurrValue(5,4) = "DM" CurrValue(5,5) = "DEM" CurrValue(6,0) = sCurrBELGIAN - ' Wahrer Umrechnungskurs + ' real conversion rate CurrValue(6,1) = 40.3399 - ' Gerundeter Umrechnungskurs + ' rounded conversion rate CurrValue(6,2) = 40 CurrValue(6,3) = "FB" CurrValue(6,4) = "BF" CurrValue(6,5) = "BEF" CurrValue(7,0) = sCurrIRISH - ' Wahrer Umrechnungskurs + ' real conversion rate CurrValue(7,1) = 0.787564 - ' Gerundeter Umrechnungskurs + ' rounded conversion rate CurrValue(7,2) = 0.8 CurrValue(7,3) = "IR£" - CurrValue(7,4) = "£" ' Todo: This is only for backwards compatibility. Follow Bug #92049 + CurrValue(7,4) = "£" CurrValue(7,5) = "IEP" CurrValue(8,0) = sCurrLUXEMBOURG - ' Wahrer Umrechnungskurs + ' real conversion rate CurrValue(8,1) = 40.3399 - ' Gerundeter Umrechnungskurs + ' rounded conversion rate CurrValue(8,2) = 40 CurrValue(8,3) = "F" CurrValue(8,4) = "F" CurrValue(8,5) = "LUF" CurrValue(9,0) = sCurrAUSTRIAN - ' Wahrer Umrechnungskurs + ' real conversion rate CurrValue(9,1) = 13.7603 - ' Gerundeter Umrechnungskurs + ' rounded conversion rate CurrValue(9,2) = 15 CurrValue(9,3) = "öS" CurrValue(9,4) = "S" CurrValue(9,5) = "ATS" CurrValue(10,0) = sCurrFINNISH - ' Wahrer Umrechnungskurs + ' real conversion rate CurrValue(10,1) = 5.94573 - ' Gerundeter Umrechnungskurs + ' rounded conversion rate CurrValue(10,2) = 6 CurrValue(10,3) = "mk" CurrValue(10,4) = "mk" CurrValue(10,5) = "FIM" -' Todo: Werte verlorengegangen? CurrValue(11,0) = sCurrGREEK - ' Wahrer Umrechnungskurs + ' real conversion rate CurrValue(11,1) = 340.750 - ' Gerundeter Umrechnungskurs + ' rounded conversion rate CurrValue(11,2) = 400 CurrValue(11,3) = chr(916) & chr(961) & chr(967) CurrValue(11,4) = chr(916) & chr(961) & chr(967) @@ -463,7 +451,6 @@ End Sub Sub InitializeConverter(oLocale, iDialogPage as Integer) Dim Isthere as Boolean bCancelProtection = False -' bMacroStopped = False bRangeListDefined = False PWIndex = -1 If iDialogPage = 1 Then @@ -517,7 +504,7 @@ Dim bTakeThisLocale as Boolean If DialogModel.Step = 2 Then bTakeThisLocale = LangIDValue(n,m,0) = sLanguage Else - bTakeThisLocale = LangIDValue(n,m,0) = sLanguage' AND LangIDValue(n,m,1) = sCountry + bTakeThisLocale = LangIDValue(n,m,0) = sLanguage End If If bTakeThisLocale Then CurrIndex = n diff --git a/wizards/source/euro/Protect.xba b/wizards/source/euro/Protect.xba index a1ae708ace6b..8a852e9c3e5c 100644 --- a/wizards/source/euro/Protect.xba +++ b/wizards/source/euro/Protect.xba @@ -68,13 +68,13 @@ Dim PWIsCorrect as Boolean Dim QueryText as String oDocument.CurrentController.SetActiveSheet(oListSheet) QueryText = ReplaceString(sMsgPWPROTECT,"'" & ListSheetName & "'", "%1TableName%1") - '"Geben Sie das Kennwort zum Entschützen der Tabelle '" & ListSheetName & " ein:'" + '"Please insert the password to unprotect the sheet '" & ListSheetName'" Do ExecutePasswordDialog(QueryText) If bCancelProtection Then bCancelProtection = False Msgbox (sMsgSHEETSNOPROTECT, 64, sMsgDLGTITLE) - UnprotectSheetWithDialog() = False '"Tabelle wird nicht entschützt!" + UnprotectSheetWithDialog() = False exit Function End If oListSheet.Unprotect(Password) @@ -87,7 +87,7 @@ Dim QueryText as String PWIsCorrect = True End If Loop Until PWIsCorrect - UnprotectSheetWithDialog() = True '"Tabelle wird nicht entschützt!" + UnprotectSheetWithDialog() = True End Function diff --git a/wizards/source/euro/Soft.xba b/wizards/source/euro/Soft.xba index 77880ffb2db5..b4088e931156 100644 --- a/wizards/source/euro/Soft.xba +++ b/wizards/source/euro/Soft.xba @@ -9,7 +9,7 @@ Sub CreateStyleEnumeration() EmptyListbox(DialogModel.lstSelection) CurSheetName = oDocument.CurrentController.GetActiveSheet.Name MakeStyleEnumeration(False) - DialogModel.lblSelection.Label = sTEMPLATES ' "Vorlagen:" + DialogModel.lblSelection.Label = sTEMPLATES End Sub @@ -120,7 +120,7 @@ Dim CellCountString as String End Sub -' löscht eine Stilvorlage aus der Kollektion, die die Ranges selektiert +' deletes a styletemplate from the Collection that selects the ranges Sub DeselectStyle(DeSelStyleName as String, n as Integer) Dim i as Integer Dim RangeName as String @@ -156,21 +156,21 @@ Dim oAddressRanges as Object End Function -' Erzeugt eine Sheetobjekt aus einem entsprechenden Bereichsnamen +' creates a sheet object from an according sectionname Function RetrieveSheetoutofRangeName(TableText as String) Dim DescriptionList() as String Dim SheetName as String Dim MaxIndex as integer - ' Herausfinden, in welchem Sheet sich der Range befindet + ' find out in which sheet the range is DescriptionList() = ArrayOutofString(TableText,".",MaxIndex) SheetName = DescriptionList(0) SheetName = DeleteStr(SheetName,"'") - ' Und den ViewCursor auf dieses Sheet setzen + ' set the viewcursor on this sheet RetrieveSheetoutofRangeName = oSheets.GetbyName(SheetName) End Function -' Erzeugt eine Rangeobjekt aus einem entsprechenden Bereichsnamen +' creates a rangeobject from an according rangename Function RetrieveRangeoutofRangeName(TableText as String) oSheet = RetrieveSheetoutofRangeName(TableText) oRange = oSheet.GetCellRangebyName(TableText) @@ -202,7 +202,7 @@ Dim MaxIndex as Integer RangeName = StyleRangeList(s) oRange = RetrieveRangeoutofRangeName(RangeName) If oRange.getPropertyState("NumberFormat") = 1 Then - ' Range Ist hart formatiert + ' Range is hard formatted ConvertCellCurrencies(oRange) CurCellCount = CountRangeCells(oRange) End If @@ -216,7 +216,6 @@ Dim MaxIndex as Integer End If Next s SwitchNumberFormat(ostyle, oFormats, sEuroSign) -' oStatusline.SetValue(100) StyleRangeAssignmentList(n) = "" l = GetItemPos(oSelListBox.Model, CurStyleName) oSelListbox.RemoveItems(l,1) diff --git a/wizards/source/euro/Writer.xba b/wizards/source/euro/Writer.xba index 27dc3a0ba40d..8d9683cda3eb 100644 --- a/wizards/source/euro/Writer.xba +++ b/wizards/source/euro/Writer.xba @@ -10,14 +10,12 @@ Dim oPara as Object Dim i as integer Dim sCellNames() Dim oCell as Object -' oDocument = StarDesktop.ActiveFrame.Controller.Model -' oFormats = oDocument.NumberFormats oParagraphs = oDocument.Text.CreateEnumeration While oParagraphs.HasMoreElements oPara = oParagraphs.NextElement If NOT oPara.supportsService("com.sun.star.text.Paragraph") Then - ' Note: Da Zellen gesplittet oder zusammengefügt werden können - ' kann man die Zellen nicht über ihre Indizes ansprechen. + ' Note: As cells might be splitted or merged + ' you cannot refer to them via their indices sCellNames = oPara.CellNames For i = 0 To Ubound(sCellNames) If sCellNames(i) <> "" Then |