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
facfee75
Kaydet (Commit)
facfee75
authored
Şub 11, 2014
tarafından
Xisco Fauli
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
pywizards: use getResArray instead
Change-Id: I5afd7ad90c23e99be9b3cf81487da6bd7715b416
üst
6beb51ac
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
57 deletions
+14
-57
Resource.py
wizards/com/sun/star/wizards/common/Resource.py
+0
-1
FaxWizardDialogResources.py
wizards/com/sun/star/wizards/fax/FaxWizardDialogResources.py
+8
-32
LetterWizardDialogResources.py
...om/sun/star/wizards/letter/LetterWizardDialogResources.py
+6
-24
No files found.
wizards/com/sun/star/wizards/common/Resource.py
Dosyayı görüntüle @
facfee75
...
@@ -22,7 +22,6 @@ from com.sun.star.awt.VclWindowPeerAttribute import OK
...
@@ -22,7 +22,6 @@ from com.sun.star.awt.VclWindowPeerAttribute import OK
class
Resource
(
object
):
class
Resource
(
object
):
@classmethod
def
__init__
(
self
,
_xMSF
,
_Module
):
def
__init__
(
self
,
_xMSF
,
_Module
):
self
.
xMSF
=
_xMSF
self
.
xMSF
=
_xMSF
self
.
Module
=
_Module
self
.
Module
=
_Module
...
...
wizards/com/sun/star/wizards/fax/FaxWizardDialogResources.py
Dosyayı görüntüle @
facfee75
...
@@ -29,10 +29,6 @@ class FaxWizardDialogResources(Resource):
...
@@ -29,10 +29,6 @@ class FaxWizardDialogResources(Resource):
def
__init__
(
self
,
xmsf
):
def
__init__
(
self
,
xmsf
):
super
(
FaxWizardDialogResources
,
self
)
.
__init__
(
xmsf
,
super
(
FaxWizardDialogResources
,
self
)
.
__init__
(
xmsf
,
FaxWizardDialogResources
.
MODULE_NAME
)
FaxWizardDialogResources
.
MODULE_NAME
)
self
.
RoadmapLabels
=
[]
self
.
SalutationLabels
=
[]
self
.
GreetingLabels
=
[]
self
.
CommunicationLabels
=
[]
self
.
resFaxWizardDialog_title
=
self
.
getResText
(
self
.
resFaxWizardDialog_title
=
self
.
getResText
(
FaxWizardDialogResources
.
RID_FAXWIZARDDIALOG_START
+
1
)
FaxWizardDialogResources
.
RID_FAXWIZARDDIALOG_START
+
1
)
...
@@ -157,32 +153,12 @@ class FaxWizardDialogResources(Resource):
...
@@ -157,32 +153,12 @@ class FaxWizardDialogResources(Resource):
FaxWizardDialogResources
.
RID_RID_COMMON_START
+
19
)
FaxWizardDialogResources
.
RID_RID_COMMON_START
+
19
)
self
.
resTemplateDescription
=
self
.
getResText
(
self
.
resTemplateDescription
=
self
.
getResText
(
FaxWizardDialogResources
.
RID_RID_COMMON_START
+
20
)
FaxWizardDialogResources
.
RID_RID_COMMON_START
+
20
)
self
.
loadRoadmapResources
()
self
.
loadSalutationResources
()
self
.
loadGreetingResources
()
self
.
loadCommunicationResources
()
def
loadRoadmapResources
(
self
):
for
i
in
range
(
5
):
self
.
RoadmapLabels
.
append
(
self
.
getResText
(
FaxWizardDialogResources
.
RID_FAXWIZARDROADMAP_START
+
\
+
i
+
1
))
def
loadSalutationResources
(
self
):
for
i
in
range
(
4
):
self
.
SalutationLabels
.
append
(
self
.
getResText
(
FaxWizardDialogResources
.
RID_FAXWIZARDSALUTATION_START
+
\
i
+
1
))
def
loadGreetingResources
(
self
):
for
i
in
range
(
4
):
self
.
GreetingLabels
.
append
(
self
.
getResText
(
FaxWizardDialogResources
.
RID_FAXWIZARDGREETING_START
+
\
i
+
1
))
def
loadCommunicationResources
(
self
):
self
.
RoadmapLabels
=
self
.
getResArray
(
for
i
in
range
(
3
):
FaxWizardDialogResources
.
RID_FAXWIZARDROADMAP_START
+
1
,
5
)
self
.
CommunicationLabels
.
append
(
self
.
getResText
(
self
.
SalutationLabels
=
self
.
getResArray
(
FaxWizardDialogResources
.
RID_FAXWIZARDCOMMUNICATION_START
+
\
FaxWizardDialogResources
.
RID_FAXWIZARDSALUTATION_START
+
1
,
4
)
i
+
1
))
self
.
GreetingLabels
=
self
.
getResArray
(
FaxWizardDialogResources
.
RID_FAXWIZARDGREETING_START
+
1
,
4
)
self
.
CommunicationLabels
=
self
.
getResArray
(
FaxWizardDialogResources
.
RID_FAXWIZARDCOMMUNICATION_START
+
1
,
3
)
wizards/com/sun/star/wizards/letter/LetterWizardDialogResources.py
Dosyayı görüntüle @
facfee75
...
@@ -30,9 +30,6 @@ class LetterWizardDialogResources(Resource):
...
@@ -30,9 +30,6 @@ class LetterWizardDialogResources(Resource):
def
__init__
(
self
,
xmsf
):
def
__init__
(
self
,
xmsf
):
super
(
LetterWizardDialogResources
,
self
)
.
__init__
(
super
(
LetterWizardDialogResources
,
self
)
.
__init__
(
xmsf
,
LetterWizardDialogResources
.
MODULE_NAME
)
xmsf
,
LetterWizardDialogResources
.
MODULE_NAME
)
self
.
RoadmapLabels
=
[]
self
.
SalutationLabels
=
[]
self
.
GreetingLabels
=
[]
self
.
resLetterWizardDialog_title
=
\
self
.
resLetterWizardDialog_title
=
\
self
.
getResText
(
self
.
getResText
(
...
@@ -248,24 +245,9 @@ class LetterWizardDialogResources(Resource):
...
@@ -248,24 +245,9 @@ class LetterWizardDialogResources(Resource):
self
.
getResText
(
self
.
getResText
(
LetterWizardDialogResources
.
RID_RID_COMMON_START
+
20
)
LetterWizardDialogResources
.
RID_RID_COMMON_START
+
20
)
self
.
loadRoadmapResources
()
self
.
RoadmapLabels
=
self
.
getResArray
(
self
.
loadSalutationResources
()
LetterWizardDialogResources
.
RID_LETTERWIZARDROADMAP_START
+
1
,
6
)
self
.
loadGreetingResources
()
self
.
SalutationLabels
=
self
.
getResArray
(
LetterWizardDialogResources
.
RID_LETTERWIZARDSALUTATION_START
+
1
,
3
)
def
loadRoadmapResources
(
self
):
self
.
GreetingLabels
=
self
.
getResArray
(
for
i
in
range
(
6
):
LetterWizardDialogResources
.
RID_LETTERWIZARDGREETING_START
+
1
,
3
)
self
.
RoadmapLabels
.
append
(
self
.
getResText
(
LetterWizardDialogResources
.
RID_LETTERWIZARDROADMAP_START
+
\
i
+
1
))
def
loadSalutationResources
(
self
):
for
i
in
range
(
3
):
self
.
SalutationLabels
.
append
(
self
.
getResText
(
LetterWizardDialogResources
.
RID_LETTERWIZARDSALUTATION_START
+
\
i
+
1
))
def
loadGreetingResources
(
self
):
for
i
in
range
(
3
):
self
.
GreetingLabels
.
append
(
self
.
getResText
(
LetterWizardDialogResources
.
RID_LETTERWIZARDGREETING_START
+
\
i
+
1
))
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