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
d7ae4dfd
Kaydet (Commit)
d7ae4dfd
authored
Nis 18, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
map the modules and special names back manually
Change-Id: Ie80e2ef74932b9dd46b2f709e181c00aac4d4f9c
üst
fa8e3464
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
4 deletions
+28
-4
test-hid-vs-ui.py
bin/test-hid-vs-ui.py
+28
-4
No files found.
bin/test-hid-vs-ui.py
Dosyayı görüntüle @
d7ae4dfd
...
...
@@ -58,7 +58,7 @@ def init_core_files():
elif
not
args
[
'git_static'
]:
subprocess
.
call
([
'git'
,
'fetch'
,
'origin'
])
allfiles
=
subprocess
.
check_output
([
'git'
,
'ls-tree'
,
'--name-only'
,
'--full-name'
,
'-r'
,
'master'
])
return
'
\n
'
.
join
(
re
.
findall
(
'.*
\
.ui'
,
allfiles
)
)
return
re
.
findall
(
'.*
\
.ui'
,
allfiles
)
if
__name__
==
"__main__"
:
...
...
@@ -83,7 +83,31 @@ if __name__ == "__main__":
hid
=
rawtext
.
split
(
'hid="'
)[
1
]
.
split
(
'"'
)[
0
]
if
hid
.
startswith
(
'.uno'
):
continue
uifileraw
,
compname
=
hid
.
rsplit
(
'/'
,
1
)
uifile
=
uifileraw
.
split
(
'/'
,
1
)[
1
]
+
".ui"
# remove modules/ which exist only in install
uifile
=
uifileraw
+
".ui"
# map modules/ etc, which exist only in install
# back to their source location
if
uifile
.
startswith
(
"modules/scalc"
):
uifile
=
"sc/scalc"
+
uifile
[
13
:]
elif
uifile
.
startswith
(
"modules/swriter"
):
uifile
=
"sw/swriter"
+
uifile
[
15
:]
elif
uifile
.
startswith
(
"modules/schart"
):
uifile
=
"chart2"
+
uifile
[
14
:]
elif
uifile
.
startswith
(
"modules/smath"
):
uifile
=
"starmath/smath"
+
uifile
[
13
:]
elif
uifile
.
startswith
(
"modules/sdraw"
):
uifile
=
"sd/sdraw"
+
uifile
[
13
:]
elif
uifile
.
startswith
(
"modules/simpress"
):
uifile
=
"sd/simpress"
+
uifile
[
16
:]
elif
uifile
.
startswith
(
"modules/BasicIDE"
):
uifile
=
"basctl/basicide"
+
uifile
[
16
:]
elif
uifile
.
startswith
(
"modules/spropctrlr"
):
uifile
=
"extensions/spropctrlr"
+
uifile
[
18
:]
elif
uifile
.
startswith
(
"sfx"
):
uifile
=
"sfx2"
+
uifile
[
3
:]
elif
uifile
.
startswith
(
"svt"
):
uifile
=
"svtools"
+
uifile
[
3
:]
components
=
uifile
.
split
(
'/'
,
1
);
uifile
=
components
[
0
]
+
'/uiconfig/'
+
components
[
1
]
targets
[
uifile
]
.
add
(
compname
.
split
(
':'
)[
0
])
origin
[
uifile
]
.
add
(
fname
)
# help file(s)
...
...
@@ -96,10 +120,10 @@ if __name__ == "__main__":
errors
+=
'
\n
From '
+
origin
[
uikey
]
.
pop
()
else
:
errors
+=
'
\n
From one of '
+
str
(
origin
[
uikey
])
.
replace
(
'set('
,
''
)
.
replace
(
')'
,
''
)
errors
+=
', we did not f
ou
nd file '
+
uikey
+
'.'
errors
+=
', we did not f
i
nd file '
+
uikey
+
'.'
continue
full_path
=
os
.
path
.
join
(
core_repo_dir
,
re
.
search
(
'(.*'
+
uikey
+
')'
,
uifileslist
)
.
group
(
1
)
)
full_path
=
os
.
path
.
join
(
core_repo_dir
,
uikey
)
# print full_path
root
=
ET
.
parse
(
full_path
)
.
getroot
()
ids
=
[
element
.
attrib
[
'id'
]
.
split
(
':'
)[
0
]
for
element
in
root
.
findall
(
'.//object[@id]'
)]
...
...
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