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
a615abcd
Kaydet (Commit)
a615abcd
authored
Kas 24, 2012
tarafından
Xisco Fauli
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
pywizards: sort lists again
Change-Id: I9b3f1faba3eb3ffc59294b6bfe6816a19fc05185
üst
63510b3c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
18 deletions
+25
-18
AgendaWizardDialogImpl.py
...rds/com/sun/star/wizards/agenda/AgendaWizardDialogImpl.py
+2
-2
FileAccess.py
wizards/com/sun/star/wizards/common/FileAccess.py
+13
-5
OfficeDocument.py
wizards/com/sun/star/wizards/document/OfficeDocument.py
+0
-1
FaxWizardDialogImpl.py
wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py
+4
-4
LetterWizardDialogImpl.py
...rds/com/sun/star/wizards/letter/LetterWizardDialogImpl.py
+6
-6
No files found.
wizards/com/sun/star/wizards/agenda/AgendaWizardDialogImpl.py
Dosyayı görüntüle @
a615abcd
...
@@ -155,7 +155,7 @@ class AgendaWizardDialogImpl(AgendaWizardDialog):
...
@@ -155,7 +155,7 @@ class AgendaWizardDialogImpl(AgendaWizardDialog):
self
.
setControlProperty
(
self
.
setControlProperty
(
"listPageDesign"
,
"StringItemList"
,
"listPageDesign"
,
"StringItemList"
,
tuple
(
self
.
agendaTemplates
.
keys
()
))
tuple
(
self
.
agendaTemplates
[
0
]
))
UnoDataAware
.
attachListBox
(
UnoDataAware
.
attachListBox
(
self
.
agenda
,
"cp_AgendaType"
,
self
.
listPageDesign
,
True
)
.
updateUI
()
self
.
agenda
,
"cp_AgendaType"
,
self
.
listPageDesign
,
True
)
.
updateUI
()
UnoDataAware
.
attachCheckBox
(
UnoDataAware
.
attachCheckBox
(
...
@@ -252,7 +252,7 @@ class AgendaWizardDialogImpl(AgendaWizardDialog):
...
@@ -252,7 +252,7 @@ class AgendaWizardDialogImpl(AgendaWizardDialog):
if
AgendaWizardDialogImpl
.
pageDesign
is
not
SelectedItemPos
:
if
AgendaWizardDialogImpl
.
pageDesign
is
not
SelectedItemPos
:
AgendaWizardDialogImpl
.
pageDesign
=
SelectedItemPos
AgendaWizardDialogImpl
.
pageDesign
=
SelectedItemPos
self
.
agendaTemplate
.
load
(
self
.
agendaTemplate
.
load
(
self
.
agendaTemplates
.
values
()
[
SelectedItemPos
],
self
.
agendaTemplates
[
1
]
[
SelectedItemPos
],
self
.
topicsControl
.
scrollfields
)
self
.
topicsControl
.
scrollfields
)
except
Exception
:
except
Exception
:
traceback
.
print_exc
()
traceback
.
print_exc
()
...
...
wizards/com/sun/star/wizards/common/FileAccess.py
Dosyayı görüntüle @
a615abcd
...
@@ -150,7 +150,7 @@ class FileAccess(object):
...
@@ -150,7 +150,7 @@ class FileAccess(object):
def
getFolderTitles
(
self
,
xMSF
,
FilterName
,
FolderName
,
resDict
=
None
):
def
getFolderTitles
(
self
,
xMSF
,
FilterName
,
FolderName
,
resDict
=
None
):
#Returns and ordered dict containing the template's name and path
#Returns and ordered dict containing the template's name and path
LocLayoutFiles
=
{}
locLayoutFiles
=
[]
try
:
try
:
xDocInterface
=
xMSF
.
createInstance
(
xDocInterface
=
xMSF
.
createInstance
(
"com.sun.star.document.DocumentProperties"
)
"com.sun.star.document.DocumentProperties"
)
...
@@ -162,6 +162,7 @@ class FileAccess(object):
...
@@ -162,6 +162,7 @@ class FileAccess(object):
else
:
else
:
FilterName
+=
"-"
FilterName
+=
"-"
locLayoutDict
=
{}
for
i
in
nameList
:
for
i
in
nameList
:
fileName
=
self
.
getFilename
(
i
)
fileName
=
self
.
getFilename
(
i
)
if
FilterName
is
None
or
fileName
.
startswith
(
FilterName
):
if
FilterName
is
None
or
fileName
.
startswith
(
FilterName
):
...
@@ -174,13 +175,20 @@ class FileAccess(object):
...
@@ -174,13 +175,20 @@ class FileAccess(object):
title
=
resDict
[
xDocInterface
.
Title
]
title
=
resDict
[
xDocInterface
.
Title
]
else
:
else
:
title
=
xDocInterface
.
Title
title
=
xDocInterface
.
Title
LocLayoutFiles
[
title
]
=
i
locLayoutDict
[
title
]
=
i
#sort the dictionary and create a list containing the
#keys list and the values list
keysList
=
sorted
(
locLayoutDict
.
keys
())
valuesList
=
[]
for
i
in
keysList
:
valuesList
.
append
(
locLayoutDict
[
i
])
locLayoutFiles
.
append
(
keysList
)
locLayoutFiles
.
append
(
valuesList
)
except
Exception
:
except
Exception
:
traceback
.
print_exc
()
traceback
.
print_exc
()
#TODO: return it sorted
return
locLayoutFiles
return
LocLayoutFiles
@classmethod
@classmethod
def
addPath
(
self
,
_sPath
,
_sPath2
):
def
addPath
(
self
,
_sPath
,
_sPath2
):
...
...
wizards/com/sun/star/wizards/document/OfficeDocument.py
Dosyayı görüntüle @
a615abcd
...
@@ -277,7 +277,6 @@ class OfficeDocument(object):
...
@@ -277,7 +277,6 @@ class OfficeDocument(object):
"com.sun.star.document.TypeDetection"
)
"com.sun.star.document.TypeDetection"
)
return
typeDetect
.
getByName
(
type
)
return
typeDetect
.
getByName
(
type
)
def
showMessageBox
(
def
showMessageBox
(
self
,
xMSF
,
windowServiceName
,
windowAttribute
,
MessageText
):
self
,
xMSF
,
windowServiceName
,
windowAttribute
,
MessageText
):
...
...
wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py
Dosyayı görüntüle @
a615abcd
...
@@ -280,9 +280,9 @@ class FaxWizardDialogImpl(FaxWizardDialog):
...
@@ -280,9 +280,9 @@ class FaxWizardDialogImpl(FaxWizardDialog):
self
.
sFaxPath
,
self
.
resources
.
dictPrivateTemplate
)
self
.
sFaxPath
,
self
.
resources
.
dictPrivateTemplate
)
self
.
setControlProperty
(
"lstBusinessStyle"
,
"StringItemList"
,
self
.
setControlProperty
(
"lstBusinessStyle"
,
"StringItemList"
,
tuple
(
self
.
BusinessFiles
.
keys
()
))
tuple
(
self
.
BusinessFiles
[
0
]
))
self
.
setControlProperty
(
"lstPrivateStyle"
,
"StringItemList"
,
self
.
setControlProperty
(
"lstPrivateStyle"
,
"StringItemList"
,
tuple
(
self
.
PrivateFiles
.
keys
()
))
tuple
(
self
.
PrivateFiles
[
0
]
))
self
.
setControlProperty
(
"lstBusinessStyle"
,
"SelectedItems"
,
(
0
,))
self
.
setControlProperty
(
"lstBusinessStyle"
,
"SelectedItems"
,
(
0
,))
self
.
setControlProperty
(
"lstPrivateStyle"
,
"SelectedItems"
,
(
0
,))
self
.
setControlProperty
(
"lstPrivateStyle"
,
"SelectedItems"
,
(
0
,))
return
True
return
True
...
@@ -433,7 +433,7 @@ class FaxWizardDialogImpl(FaxWizardDialog):
...
@@ -433,7 +433,7 @@ class FaxWizardDialogImpl(FaxWizardDialog):
if
self
.
lstBusinessStylePos
!=
selectedItemPos
:
if
self
.
lstBusinessStylePos
!=
selectedItemPos
:
self
.
lstBusinessStylePos
=
selectedItemPos
self
.
lstBusinessStylePos
=
selectedItemPos
self
.
myFaxDoc
.
loadAsPreview
(
self
.
myFaxDoc
.
loadAsPreview
(
self
.
BusinessFiles
.
values
()
[
selectedItemPos
],
False
)
self
.
BusinessFiles
[
1
]
[
selectedItemPos
],
False
)
self
.
initializeElements
()
self
.
initializeElements
()
self
.
setElements
()
self
.
setElements
()
self
.
drawConstants
()
self
.
drawConstants
()
...
@@ -458,7 +458,7 @@ class FaxWizardDialogImpl(FaxWizardDialog):
...
@@ -458,7 +458,7 @@ class FaxWizardDialogImpl(FaxWizardDialog):
if
self
.
lstPrivateStylePos
!=
selectedItemPos
:
if
self
.
lstPrivateStylePos
!=
selectedItemPos
:
self
.
lstPrivateStylePos
=
selectedItemPos
self
.
lstPrivateStylePos
=
selectedItemPos
self
.
myFaxDoc
.
loadAsPreview
(
self
.
myFaxDoc
.
loadAsPreview
(
self
.
PrivateFiles
.
values
()
[
selectedItemPos
],
False
)
self
.
PrivateFiles
[
1
]
[
selectedItemPos
],
False
)
self
.
initializeElements
()
self
.
initializeElements
()
self
.
setElements
()
self
.
setElements
()
...
...
wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py
Dosyayı görüntüle @
a615abcd
...
@@ -381,7 +381,7 @@ class LetterWizardDialogImpl(LetterWizardDialog):
...
@@ -381,7 +381,7 @@ class LetterWizardDialogImpl(LetterWizardDialog):
if
self
.
lstBusinessStylePos
!=
selectedItemPos
:
if
self
.
lstBusinessStylePos
!=
selectedItemPos
:
self
.
lstBusinessStylePos
=
selectedItemPos
self
.
lstBusinessStylePos
=
selectedItemPos
self
.
myLetterDoc
.
loadAsPreview
(
self
.
myLetterDoc
.
loadAsPreview
(
self
.
BusinessFiles
.
values
()
[
selectedItemPos
],
False
)
self
.
BusinessFiles
[
1
]
[
selectedItemPos
],
False
)
self
.
initializeElements
()
self
.
initializeElements
()
self
.
chkBusinessPaperItemChanged
()
self
.
chkBusinessPaperItemChanged
()
self
.
setElements
(
False
)
self
.
setElements
(
False
)
...
@@ -392,7 +392,7 @@ class LetterWizardDialogImpl(LetterWizardDialog):
...
@@ -392,7 +392,7 @@ class LetterWizardDialogImpl(LetterWizardDialog):
if
self
.
lstPrivOfficialStylePos
!=
selectedItemPos
:
if
self
.
lstPrivOfficialStylePos
!=
selectedItemPos
:
self
.
lstPrivOfficialStylePos
=
selectedItemPos
self
.
lstPrivOfficialStylePos
=
selectedItemPos
self
.
myLetterDoc
.
loadAsPreview
(
self
.
myLetterDoc
.
loadAsPreview
(
self
.
OfficialFiles
.
values
()
[
selectedItemPos
],
False
)
self
.
OfficialFiles
[
1
]
[
selectedItemPos
],
False
)
self
.
initializeElements
()
self
.
initializeElements
()
self
.
setPossibleSenderData
(
True
)
self
.
setPossibleSenderData
(
True
)
self
.
setElements
(
False
)
self
.
setElements
(
False
)
...
@@ -404,7 +404,7 @@ class LetterWizardDialogImpl(LetterWizardDialog):
...
@@ -404,7 +404,7 @@ class LetterWizardDialogImpl(LetterWizardDialog):
self
.
lstPrivateStylePos
=
selectedItemPos
self
.
lstPrivateStylePos
=
selectedItemPos
self
.
myLetterDoc
.
xTextDocument
=
\
self
.
myLetterDoc
.
xTextDocument
=
\
self
.
myLetterDoc
.
loadAsPreview
(
self
.
myLetterDoc
.
loadAsPreview
(
self
.
PrivateFiles
.
values
()
[
selectedItemPos
],
False
)
self
.
PrivateFiles
[
1
]
[
selectedItemPos
],
False
)
self
.
initializeElements
()
self
.
initializeElements
()
self
.
setElements
(
True
)
self
.
setElements
(
True
)
...
@@ -916,13 +916,13 @@ class LetterWizardDialogImpl(LetterWizardDialog):
...
@@ -916,13 +916,13 @@ class LetterWizardDialogImpl(LetterWizardDialog):
xMSF
,
"pri"
,
sLetterPath
,
self
.
resources
.
dictPrivateTemplate
)
xMSF
,
"pri"
,
sLetterPath
,
self
.
resources
.
dictPrivateTemplate
)
self
.
setControlProperty
(
self
.
setControlProperty
(
"lstBusinessStyle"
,
"StringItemList"
,
"lstBusinessStyle"
,
"StringItemList"
,
tuple
(
self
.
BusinessFiles
.
keys
()
))
tuple
(
self
.
BusinessFiles
[
0
]
))
self
.
setControlProperty
(
self
.
setControlProperty
(
"lstPrivOfficialStyle"
,
"StringItemList"
,
"lstPrivOfficialStyle"
,
"StringItemList"
,
tuple
(
self
.
OfficialFiles
.
keys
()
))
tuple
(
self
.
OfficialFiles
[
0
]
))
self
.
setControlProperty
(
self
.
setControlProperty
(
"lstPrivateStyle"
,
"StringItemList"
,
"lstPrivateStyle"
,
"StringItemList"
,
tuple
(
self
.
PrivateFiles
.
keys
()
))
tuple
(
self
.
PrivateFiles
[
0
]
))
self
.
setControlProperty
(
self
.
setControlProperty
(
"lstBusinessStyle"
,
"SelectedItems"
,
(
0
,))
"lstBusinessStyle"
,
"SelectedItems"
,
(
0
,))
self
.
setControlProperty
(
self
.
setControlProperty
(
...
...
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