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
017cdba2
Kaydet (Commit)
017cdba2
authored
Agu 29, 2012
tarafından
Andre Fischer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added options to create subset of full animation set.
üst
c81ee161
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
mktransitions.pl
slideshow/qa/tools/mktransitions.pl
+17
-1
No files found.
slideshow/qa/tools/mktransitions.pl
Dosyayı görüntüle @
017cdba2
...
@@ -31,6 +31,8 @@ use File::Temp;
...
@@ -31,6 +31,8 @@ use File::Temp;
use
File::
Path
;
use
File::
Path
;
$TempDir
=
""
;
$TempDir
=
""
;
my
$FirstTransitionIndex
=
0
;
my
$LastTransitionIndex
=
-
1
;
# all the XML package generation is a blatant rip from AF's
# all the XML package generation is a blatant rip from AF's
...
@@ -98,7 +100,7 @@ sub zip_dirtree
...
@@ -98,7 +100,7 @@ sub zip_dirtree
# Remove .. directories from the middle of the path.
# Remove .. directories from the middle of the path.
while
(
$zip_name
=~
/\/[^\/][^\.\/][^\/]*\/\.\.\//
)
while
(
$zip_name
=~
/\/[^\/][^\.\/][^\/]*\/\.\.\//
)
{
{
$zip_name
=
$`
.
"/"
.
$'
;
$zip_name
=
$`
.
"/"
.
$'
;
# $'
}
}
}
}
...
@@ -143,6 +145,8 @@ sub writeSlideStyles
...
@@ -143,6 +145,8 @@ sub writeSlideStyles
my
$transitionType
=
pop
@_
;
my
$transitionType
=
pop
@_
;
my
$slideNum
=
pop
@_
;
my
$slideNum
=
pop
@_
;
return
if
$slideNum
<
$FirstTransitionIndex
||
(
$LastTransitionIndex
>=
0
&&
$slideNum
>
$LastTransitionIndex
);
print
$OUT
" <style:style style:name=\"dp"
,
$slideNum
,
"\" style:family=\"drawing-page\">\n"
;
print
$OUT
" <style:style style:name=\"dp"
,
$slideNum
,
"\" style:family=\"drawing-page\">\n"
;
print
$OUT
" <style:drawing-page-properties presentation:transition-type=\"automatic\" presentation:duration=\"PT00H00M01S\" presentation:background-visible=\"true\" presentation:background-objects-visible=\"true\" draw:fill=\"solid\" draw:fill-color=\"#ff"
,
$slideNum
%
2
?
"ff99"
:
"cc99"
,
"\" smil:type=\""
,
$transitionType
,
"\" smil:subtype=\""
,
$transitionSubType
,
"\" "
,
$direction
==
0
?
""
:
"smil:direction=\"reverse\" "
,
$mode
==
0
?
""
:
"smil:mode=\"out\""
,
"/>\n"
;
print
$OUT
" <style:drawing-page-properties presentation:transition-type=\"automatic\" presentation:duration=\"PT00H00M01S\" presentation:background-visible=\"true\" presentation:background-objects-visible=\"true\" draw:fill=\"solid\" draw:fill-color=\"#ff"
,
$slideNum
%
2
?
"ff99"
:
"cc99"
,
"\" smil:type=\""
,
$transitionType
,
"\" smil:subtype=\""
,
$transitionSubType
,
"\" "
,
$direction
==
0
?
""
:
"smil:direction=\"reverse\" "
,
$mode
==
0
?
""
:
"smil:mode=\"out\""
,
"/>\n"
;
print
$OUT
" </style:style>\n"
;
print
$OUT
" </style:style>\n"
;
...
@@ -217,6 +221,8 @@ sub writeSlide
...
@@ -217,6 +221,8 @@ sub writeSlide
my
$transitionType
=
pop
@_
;
my
$transitionType
=
pop
@_
;
my
$slideNum
=
pop
@_
;
my
$slideNum
=
pop
@_
;
return
if
$slideNum
<
$FirstTransitionIndex
||
(
$LastTransitionIndex
>=
0
&&
$slideNum
>
$LastTransitionIndex
);
print
$OUT
" <draw:page draw:name=\"page"
,
$slideNum
,
"\" draw:style-name=\"dp"
,
$slideNum
,
"\" draw:master-page-name=\"Default\" presentation:presentation-page-layout-name=\"AL1T19\">"
;
print
$OUT
" <draw:page draw:name=\"page"
,
$slideNum
,
"\" draw:style-name=\"dp"
,
$slideNum
,
"\" draw:master-page-name=\"Default\" presentation:presentation-page-layout-name=\"AL1T19\">"
;
print
$OUT
" <draw:frame presentation:style-name=\"pr1\" draw:layer=\"layout\" svg:width=\"25.199cm\" svg:height=\"3.256cm\" svg:x=\"1.4cm\" svg:y=\"0.962cm\" presentation:class=\"title\">\n"
;
print
$OUT
" <draw:frame presentation:style-name=\"pr1\" draw:layer=\"layout\" svg:width=\"25.199cm\" svg:height=\"3.256cm\" svg:x=\"1.4cm\" svg:y=\"0.962cm\" presentation:class=\"title\">\n"
;
...
@@ -555,6 +561,8 @@ output-file-name defaults to alltransitions.odp.
...
@@ -555,6 +561,8 @@ output-file-name defaults to alltransitions.odp.
options: -a Generate _all_ combinations of type, subtype,
options: -a Generate _all_ combinations of type, subtype,
direction, and mode
direction, and mode
-h Print this usage information.
-h Print this usage information.
-f First transition to include, defaults to 0
-l Last transition to include
END_OF_USAGE
END_OF_USAGE
}
}
...
@@ -582,6 +590,14 @@ sub process_command_line
...
@@ -582,6 +590,14 @@ sub process_command_line
{
{
$global_gen_all
=
1
;
$global_gen_all
=
1
;
}
}
elsif
(
$ARGV
[
$i
]
eq
"-f"
)
{
$FirstTransitionIndex
=
$ARGV
[
++
$i
];
}
elsif
(
$ARGV
[
$i
]
eq
"-l"
)
{
$LastTransitionIndex
=
$ARGV
[
++
$i
];
}
elsif
(
$ARGV
[
$i
]
=~
/^-/
)
elsif
(
$ARGV
[
$i
]
=~
/^-/
)
{
{
print
"Unknown option $ARGV[$i]\n"
;
print
"Unknown option $ARGV[$i]\n"
;
...
...
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