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
539017f1
Kaydet (Commit)
539017f1
authored
Nis 11, 2014
tarafından
Zolnai Tamás
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#72400: slideshow: display a snapshot of movie until its not started
Change-Id: Ibd81f2aada458dd7437053b59882d3200f78747e
üst
4e939b95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
viewmediashape.cxx
slideshow/source/engine/shapes/viewmediashape.cxx
+10
-7
No files found.
slideshow/source/engine/shapes/viewmediashape.cxx
Dosyayı görüntüle @
539017f1
...
@@ -31,6 +31,7 @@
...
@@ -31,6 +31,7 @@
#include <vcl/canvastools.hxx>
#include <vcl/canvastools.hxx>
#include <vcl/syschild.hxx>
#include <vcl/syschild.hxx>
#include <vcl/window.hxx>
#include <vcl/window.hxx>
#include <vcl/graph.hxx>
#include <basegfx/tools/canvastools.hxx>
#include <basegfx/tools/canvastools.hxx>
#include <basegfx/matrix/b2dhommatrixtools.hxx>
#include <basegfx/matrix/b2dhommatrixtools.hxx>
...
@@ -186,14 +187,16 @@ namespace slideshow
...
@@ -186,14 +187,16 @@ namespace slideshow
if
(
!
mpMediaWindow
.
get
()
&&
!
mxPlayerWindow
.
is
()
)
if
(
!
mpMediaWindow
.
get
()
&&
!
mxPlayerWindow
.
is
()
)
{
{
// draw placeholder for no-video (no window) case
OUString
sURL
;
// no window and player == audio icon
uno
::
Reference
<
beans
::
XPropertySet
>
xPropSet
(
mxShape
,
uno
::
UNO_QUERY
);
// no window and no player == broken icon
if
(
xPropSet
.
is
())
BitmapEx
aAudioLogo
(
mxPlayer
.
is
()
?
xPropSet
->
getPropertyValue
(
"PrivateTempFileURL"
)
>>=
sURL
;
avmedia
::
MediaWindow
::
getAudioLogo
()
:
avmedia
::
MediaWindow
::
getEmptyLogo
()
);
const
Graphic
aGraphic
(
avmedia
::
MediaWindow
::
grabFrame
(
sURL
,
""
,
true
));
const
BitmapEx
aBmp
=
aGraphic
.
GetBitmapEx
();
uno
::
Reference
<
rendering
::
XBitmap
>
xBitmap
(
vcl
::
unotools
::
xBitmapFromBitmapEx
(
uno
::
Reference
<
rendering
::
XBitmap
>
xBitmap
(
vcl
::
unotools
::
xBitmapFromBitmapEx
(
pCanvas
->
getUNOCanvas
()
->
getDevice
(),
a
AudioLogo
));
pCanvas
->
getUNOCanvas
()
->
getDevice
(),
a
Bmp
));
rendering
::
ViewState
aViewState
;
rendering
::
ViewState
aViewState
;
aViewState
.
AffineTransform
=
pCanvas
->
getViewState
().
AffineTransform
;
aViewState
.
AffineTransform
=
pCanvas
->
getViewState
().
AffineTransform
;
...
@@ -201,7 +204,7 @@ namespace slideshow
...
@@ -201,7 +204,7 @@ namespace slideshow
rendering
::
RenderState
aRenderState
;
rendering
::
RenderState
aRenderState
;
::
canvas
::
tools
::
initRenderState
(
aRenderState
);
::
canvas
::
tools
::
initRenderState
(
aRenderState
);
const
::
Size
aBmpSize
(
a
AudioLogo
.
GetSizePixel
()
);
const
::
Size
aBmpSize
(
a
Bmp
.
GetSizePixel
()
);
const
::
basegfx
::
B2DVector
aScale
(
rBounds
.
getWidth
()
/
aBmpSize
.
Width
(),
const
::
basegfx
::
B2DVector
aScale
(
rBounds
.
getWidth
()
/
aBmpSize
.
Width
(),
rBounds
.
getHeight
()
/
aBmpSize
.
Height
()
);
rBounds
.
getHeight
()
/
aBmpSize
.
Height
()
);
...
...
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