Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
7364f174
Kaydet (Commit)
7364f174
authored
Kas 08, 2018
tarafından
Matthias Seidel
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Cleaning up Euro Converter wizard, moving graphics from bmp to png
üst
cb4c0a6a
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
44 additions
and
46 deletions
+44
-46
euro_1.bmp
extras/source/templates/wizard/bitmap/euro_1.bmp
+0
-0
euro_1.png
extras/source/templates/wizard/bitmap/euro_1.png
+0
-0
euro_2.bmp
extras/source/templates/wizard/bitmap/euro_2.bmp
+0
-0
euro_2.png
extras/source/templates/wizard/bitmap/euro_2.png
+0
-0
euro_3.bmp
extras/source/templates/wizard/bitmap/euro_3.bmp
+0
-0
euro_3.png
extras/source/templates/wizard/bitmap/euro_3.png
+0
-0
AutoPilotRun.xba
wizards/source/euro/AutoPilotRun.xba
+20
-20
DlgConvert.xdl
wizards/source/euro/DlgConvert.xdl
+1
-1
Init.xba
wizards/source/euro/Init.xba
+23
-25
No files found.
extras/source/templates/wizard/bitmap/euro_1.bmp
deleted
100644 → 0
Dosyayı görüntüle @
cb4c0a6a
22.8 KB
extras/source/templates/wizard/bitmap/euro_1.png
0 → 100644
Dosyayı görüntüle @
7364f174
32.6 KB
extras/source/templates/wizard/bitmap/euro_2.bmp
deleted
100644 → 0
Dosyayı görüntüle @
cb4c0a6a
64.9 KB
extras/source/templates/wizard/bitmap/euro_2.png
0 → 100644
Dosyayı görüntüle @
7364f174
51.1 KB
extras/source/templates/wizard/bitmap/euro_3.bmp
deleted
100644 → 0
Dosyayı görüntüle @
cb4c0a6a
64.9 KB
extras/source/templates/wizard/bitmap/euro_3.png
0 → 100644
Dosyayı görüntüle @
7364f174
38.5 KB
wizards/source/euro/AutoPilotRun.xba
Dosyayı görüntüle @
7364f174
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
<!--***********************************************************
*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
...
...
@@ -9,16 +9,16 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*
***********************************************************-->
<script:module
xmlns:script=
"http://openoffice.org/2000/script"
script:name=
"AutoPilotRun"
script:language=
"StarBasic"
>
Option Explicit
...
...
@@ -54,7 +54,7 @@ Dim oFactoryKey as Object
InitializeConverter(oLocale, 2)
ToggleGoOnButton()
oFactoryKey = GetRegistryKeyContent(
"
org.openoffice.Setup/Office/Factories
"
)
DialogModel.chkTextDocuments.Enabled =
oFactoryKey.hasbyName(
"
com.sun.star.text.TextDocument
"
)
DialogModel.chkTextDocuments.Enabled = oFactoryKey.hasbyName(
"
com.sun.star.text.TextDocument
"
)
DialogModel.cmdGoOn.DefaultButton = True
DialogModel.lstCurrencies.TabIndex = 12
DialogConvert.GetControl(
"
optWholeDir
"
).SetFocus()
...
...
@@ -147,7 +147,7 @@ Dim sExtension as String
bIsReadOnly = False
RetrieveDocumentObjects()
sViewPath = CutPathView(SourceFile, 60)
DialogModel.lblCurDocument.Label = Str(DocIndex+1)
&
"
/
"
&
sTotDocCount
&
"
(
"
&
sViewPath
&
"
)
"
DialogModel.lblCurDocument.Label = Str(DocIndex+1)
&
"
/
"
&
sTotDocCount
&
"
(
"
&
sViewPath
&
"
)
"
End If
InitializeDocument() = Not bIsReadOnly
Else
...
...
@@ -246,7 +246,7 @@ Dim TextBoxText as String
TextBoxText = TextBoxText
&
DeleteStr(sInclusiveSubDir,
"
~
"
)
&
chr(13)
End If
Else
TextBoxText = sSOURCEFILE
&
"
"
&
ConvertFromUrl(Source)
&
chr(13)
TextBoxText = sSOURCEFILE
&
"
"
&
ConvertFromUrl(Source)
&
chr(13)
End If
TextBoxText = TextBoxText
&
sTARGETDIR
&
"
"
&
ConvertFromUrl(TargetDir)
&
chr(13)
If DialogModel.chkProtect.State = 1 Then
...
...
@@ -254,8 +254,8 @@ Dim TextBoxText as String
End If
DialogModel.txtConfig.Text = TextBoxText
ToggleProgressStep()
DialogModel.cmdGoOn.Enabled = False
InitializeThirdStep() = True
DialogModel.cmdGoOn.Enabled = False
InitializeThirdStep() = True
Else
InitializeThirdStep() = False
End If
...
...
@@ -276,7 +276,7 @@ Dim LocStep as Integer
DialogConvert.GetControl(
"
lstCurrencies
"
).Visible = Not bMakeVisible
DialogConvert.GetControl(
"
cmdBack
"
).Visible = bMakeVisible
DialogConvert.GetControl(
"
cmdGoOn
"
).Visible = bMakeVisible
DialogModel.imgPreview.ImageUrl = BitmapDir
&
"
euro_
"
&
DialogModel.Step
&
"
.
bmp
"
DialogModel.imgPreview.ImageUrl = BitmapDir
&
"
euro_
"
&
DialogModel.Step
&
"
.
png
"
End Sub
...
...
@@ -330,8 +330,8 @@ Dim sNoDirMessage as String
If DialogModel.chkTextDocuments.State = 1 Then
If (Instr(1, sLocMimeType,
"
text
"
) = 0) And (Instr(1, sLocMimeType,
"
calc
"
) = 0) Then
Msgbox(sMsgFileInvalid, 48, sMsgDLGTITLE)
bIsValid = False
End If
bIsValid = False
End If
Else
If (Instr(1, sLocMimeType,
"
spreadsheet
"
) = 0) And (Instr(1, sLocMimeType,
"
calc
"
)) = 0 Then
Msgbox(sMsgFileInvalid, 48, sMsgDLGTITLE)
...
...
@@ -350,7 +350,7 @@ Dim sNoDirMessage as String
End If
End if
Else
Msgbox(HeaderString
&
"
'"
&
ConvertFromUrl(sPath)
&
"'
"
&
sMsgNOTTHERE,48, sMsgDLGTITLE)
Msgbox(HeaderString
&
"
'"
&
ConvertFromUrl(sPath)
&
"'
"
&
sMsgNOTTHERE,48, sMsgDLGTITLE)
End If
If bIsValid Then
AssignFileName() = sPath
...
...
@@ -361,7 +361,7 @@ End Function
Sub ToggleGoOnButton()
Dim bDoEnable as Boolean
Dim bDoEnable as Boolean
Dim sLocMimeType as String
Dim sPath as String
bDoEnable = Ubound(DialogModel.lstCurrencies.SelectedItems())
>
-1
...
...
@@ -376,7 +376,7 @@ End Sub
Sub CallFolderPicker()
GetFolderName(DialogModel.txtTarget)
ToggleGoOnButton()
ToggleGoOnButton()
End Sub
...
...
@@ -385,7 +385,7 @@ Sub CallFilePicker()
Dim oMasterKey as Object
Dim oTypes() as Object
Dim oUIKey() as Object
oMasterKey = GetRegistryKeyContent(
"
org.openoffice.TypeDetection.Types
"
)
oTypes() = oMasterKey.Types
oUIKey = GetRegistryKeyContent(
"
org.openoffice.Office.UI/FilterClassification/LocalFilters
"
)
...
...
@@ -406,7 +406,7 @@ Sub CallFilePicker()
Else
ReDim FilterNames(5,1) as String
End If
FilterNames(0,0) = oTypes.GetByName(
"
calc_StarOffice_XML_Calc
"
).UIName
FilterNames(0,0) = oTypes.GetByName(
"
calc_StarOffice_XML_Calc
"
).UIName
Filternames(0,1) =
"
*.sxc
"
FilterNames(1,0) = oTypes.GetByName(
"
calc_StarOffice_XML_Calc_Template
"
).UIName
Filternames(1,1) =
"
*.stc
"
...
...
@@ -414,9 +414,9 @@ Sub CallFilePicker()
FilterNames(2,1) =
"
*.sdc
"
FilterNames(3,0) = oUIKey.Classes.GetByName(
"
sc345templ
"
).DisplayName
Filternames(3,1) =
"
*.vor
"
FilterNames(4,0) = oTypes.GetByName(
"
calc8
"
).UIName
FilterNames(4,0) = oTypes.GetByName(
"
calc8
"
).UIName
Filternames(4,1) =
"
*.ods
"
FilterNames(5,0) = oTypes.GetByName(
"
calc8_template
"
).UIName
FilterNames(5,0) = oTypes.GetByName(
"
calc8_template
"
).UIName
Filternames(5,1) =
"
*.ots
"
GetFileName(DialogModel.txtSource, Filternames())
Else
...
...
@@ -428,7 +428,7 @@ End Sub
Sub PreviousStep()
DialogModel.Step = 2
DialogModel.cmdGoOn.Label =
sGOON
DialogModel.cmdGoOn.Label = sGOON
DialogModel.cmdCancel.Label = sCANCEL
End Sub
</script:module>
wizards/source/euro/DlgConvert.xdl
Dosyayı görüntüle @
7364f174
...
...
@@ -77,7 +77,7 @@
<dlg:text
dlg:id=
"lblRetrieval"
dlg:tab-index=
"24"
dlg:left=
"9"
dlg:top=
"119"
dlg:width=
"216"
dlg:height=
"8"
dlg:page=
"3"
dlg:value=
"lblRetrieval"
/>
<dlg:text
dlg:id=
"lblConfig"
dlg:tab-index=
"25"
dlg:left=
"6"
dlg:top=
"39"
dlg:width=
"94"
dlg:height=
"8"
dlg:page=
"3"
dlg:value=
"lblConfig"
/>
<dlg:text
dlg:id=
"lblCurDocument"
dlg:tab-index=
"26"
dlg:left=
"16"
dlg:top=
"141"
dlg:width=
"208"
dlg:height=
"8"
dlg:page=
"3"
/>
<dlg:img
dlg:id=
"imgPreview"
dlg:tab-index=
"27"
dlg:left=
"6"
dlg:top=
"6"
dlg:width=
"258"
dlg:height=
"26"
dlg:src=
"file:///D:/office630np/share/template/german/wizard/bitmap/euro_2.
bmp
"
/>
<dlg:img
dlg:id=
"imgPreview"
dlg:tab-index=
"27"
dlg:left=
"6"
dlg:top=
"6"
dlg:width=
"258"
dlg:height=
"26"
dlg:src=
"file:///D:/office630np/share/template/german/wizard/bitmap/euro_2.
png
"
/>
<dlg:fixedline
dlg:id=
"hlnSelection"
dlg:tab-index=
"28"
dlg:left=
"7"
dlg:top=
"72"
dlg:width=
"258"
dlg:height=
"8"
dlg:page=
"1"
dlg:value=
"hlnSelection"
/>
<dlg:fixedline
dlg:id=
"hlnExtent"
dlg:tab-index=
"29"
dlg:left=
"6"
dlg:top=
"39"
dlg:width=
"156"
dlg:height=
"8"
dlg:page=
"2"
dlg:value=
"hlnExtent"
/>
<dlg:fixedline
dlg:id=
"hlnProgress"
dlg:tab-index=
"30"
dlg:left=
"6"
dlg:top=
"108"
dlg:width=
"258"
dlg:height=
"8"
dlg:page=
"3"
dlg:value=
"hlnProgress"
/>
...
...
wizards/source/euro/Init.xba
Dosyayı görüntüle @
7364f174
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
<!--***********************************************************
*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
...
...
@@ -9,21 +9,19 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*
***********************************************************-->
<script:module
xmlns:script=
"http://openoffice.org/2000/script"
script:name=
"Init"
script:language=
"StarBasic"
>
Option Explicit
REM ***** BASIC *****
REM ***** BASIC *****
Public Const SBRANGEUBOUND = 20
Public StyleRangeAssignmentList(SBRANGEUBOUND)as String
...
...
@@ -217,13 +215,13 @@ Dim LocWorkPath as String
sCurrSLOVAK = GetResText(1515)
sCurrUNKNOWN = GetResText(1516)
sCurrSYSUNKNOWN = GetResText(1517)
.cmdCancel.Label =
sCANCEL
.cmdHelp.Label =
sHELP
.cmdBack.Label =
GetResText(1002)
.cmdGoOn.Label =
sGOON
.lblHint.Label =
GetResText(1004)
.cmdCancel.Label = sCANCEL
.cmdHelp.Label = sHELP
.cmdBack.Label = GetResText(1002)
.cmdGoOn.Label = sGOON
.lblHint.Label = GetResText(1004)
.lblCurrencies.Label = GetResText(1006)
.cmdBack.Enabled = False
.cmdBack.Enabled = False
If .Step = 1 Then
.chkComplete.Label = GetResText(1100)
.hlnSelection.Label = GetResText(1101)
...
...
@@ -236,10 +234,10 @@ Dim LocWorkPath as String
Else
.lblProgress.Label = sStsPROGRESS
.hlnExtent.Label = GetResText(1200)
.optSingleFile.Label = GetResText(1201)
.optSingleFile.Label = GetResText(1201)
.optWholeDir.Label = GetResText(1202)
.chkProtect.Label = GetResText(1207)
.chkTextDocuments.Label = GetResText(1210)
.chkTextDocuments.Label = GetResText(1210)
sSOURCEFILE = GetResText(1203)
sSOURCEDIR = GetResText(1204)
...
...
@@ -247,8 +245,8 @@ Dim LocWorkPath as String
sInclusiveSubDir = GetResText(1205)
.chkRecursive.Label = sInclusiveSubDir
sTARGETDIR = GetResText(1206)
.lblTarget.Label = STARGETDIR
.lblTarget.Label = STARGETDIR
LocWorkPath = GetPathSettings(
"
Work
"
)
If Not oUcb.Exists(LocWorkPath) Then
ShowNoOfficePathError()
...
...
@@ -256,7 +254,7 @@ Dim LocWorkPath as String
End If
.txtSource.Text = ConvertfromUrl(LocWorkPath)
SubstDir = .txtSource.Text
.txtTarget.Text = .txtSource.Text
.hlnProgress.Label = GetResText(1600)
...
...
@@ -290,7 +288,7 @@ Sub InitializeLanguages()
LangIDValue(3,0,0) =
"
es
"
LangIDValue(3,0,1) =
""
LangIDValue(3,0,2) =
"
-40A
"
'
Spanish modern
LangIDValue(3,1,0) =
"
es
"
LangIDValue(3,1,1) =
""
...
...
@@ -333,7 +331,7 @@ Sub InitializeLanguages()
LangIDValue(8,0,0) =
"
fr
"
LangIDValue(8,0,1) =
"
LU
"
LangIDValue(8,0,2) =
"
-140C
"
LangIDValue(8,1,0) =
"
de
"
LangIDValue(8,1,1) =
"
LU
"
LangIDValue(8,1,2) =
"
-1007
"
...
...
@@ -544,7 +542,7 @@ Sub InitializeControls()
EnableStep2DialogControls(True)
End If
End If
End Sub
End Sub
Sub InitializeConverter(oLocale, iDialogPage as Integer)
...
...
@@ -558,7 +556,7 @@ Dim Isthere as Boolean
If sDocType =
"
sCalc
"
Then
bDocHasProtectedSheets = CheckSheetProtection(oSheets)
End If
oStatusline = ThisComponent.GetCurrentController.GetFrame.CreateStatusIndicator()
oStatusline = ThisComponent.GetCurrentController.GetFrame.CreateStatusIndicator()
End If
DialogConvert = LoadDialog(
"
Euro
"
,
"
DlgConvert
"
)
DialogModel = DialogConvert.Model
...
...
@@ -575,9 +573,9 @@ Dim Isthere as Boolean
Stop
End If
FillUpCurrencyListbox()
DialogModel.imgPreview.ImageUrl = BitmapDir
&
"
euro_
"
&
DialogModel.Step
&
"
.
bmp
"
DialogModel.imgPreview.ImageUrl = BitmapDir
&
"
euro_
"
&
DialogModel.Step
&
"
.
png
"
DialogConvert.Title = sMsgDLGTITLE
DialogModel.cmdGoOn.DefaultButton = True
DialogModel.cmdGoOn.DefaultButton = True
If iDialogPage = 1 Then
ToggleWindow(True)
End If
...
...
@@ -592,7 +590,7 @@ Sub InitializeCurrencyValues(CurrIndex)
CurrSymbolList(1) = CurrValue(CurrIndex,4)
CurrSymbolList(2) = CurrValue(CurrIndex,5)
End If
End Sub
End Sub
Function InitializeLocales(oLocale) as Boolean
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment