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
929baba5
Kaydet (Commit)
929baba5
authored
Kas 18, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Simplify MediaWindow::mpImpl
Change-Id: Ia466a08a8135a7f2e43278354c767be3a063550a
üst
110bbaf0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
37 deletions
+17
-37
mediawindow.cxx
avmedia/source/viewer/mediawindow.cxx
+11
-25
mediawindow_impl.cxx
avmedia/source/viewer/mediawindow_impl.cxx
+4
-9
mediawindow_impl.hxx
avmedia/source/viewer/mediawindow_impl.hxx
+0
-2
mediawindow.hxx
include/avmedia/mediawindow.hxx
+2
-1
No files found.
avmedia/source/viewer/mediawindow.cxx
Dosyayı görüntüle @
929baba5
...
@@ -52,19 +52,13 @@ MediaWindow::MediaWindow( Window* parent, bool bInternalMediaControl ) :
...
@@ -52,19 +52,13 @@ MediaWindow::MediaWindow( Window* parent, bool bInternalMediaControl ) :
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
MediaWindow
::~
MediaWindow
()
MediaWindow
::~
MediaWindow
()
{}
{
mpImpl
->
cleanUp
();
delete
mpImpl
;
mpImpl
=
NULL
;
}
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
void
MediaWindow
::
setURL
(
const
OUString
&
rURL
)
void
MediaWindow
::
setURL
(
const
OUString
&
rURL
)
{
{
if
(
mpImpl
)
mpImpl
->
setURL
(
rURL
,
OUString
()
);
mpImpl
->
setURL
(
rURL
,
OUString
()
);
}
}
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
...
@@ -78,7 +72,7 @@ const OUString& MediaWindow::getURL() const
...
@@ -78,7 +72,7 @@ const OUString& MediaWindow::getURL() const
bool
MediaWindow
::
isValid
()
const
bool
MediaWindow
::
isValid
()
const
{
{
return
(
mpImpl
!=
NULL
&&
mpImpl
->
isValid
()
);
return
mpImpl
->
isValid
(
);
}
}
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
...
@@ -148,64 +142,56 @@ Size MediaWindow::getPreferredSize() const
...
@@ -148,64 +142,56 @@ Size MediaWindow::getPreferredSize() const
void
MediaWindow
::
setPosSize
(
const
Rectangle
&
rNewRect
)
void
MediaWindow
::
setPosSize
(
const
Rectangle
&
rNewRect
)
{
{
if
(
mpImpl
)
mpImpl
->
setPosSize
(
rNewRect
);
{
mpImpl
->
setPosSize
(
rNewRect
);
}
}
}
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
void
MediaWindow
::
setPointer
(
const
Pointer
&
rPointer
)
void
MediaWindow
::
setPointer
(
const
Pointer
&
rPointer
)
{
{
if
(
mpImpl
)
mpImpl
->
setPointer
(
rPointer
);
mpImpl
->
setPointer
(
rPointer
);
}
}
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
bool
MediaWindow
::
start
()
bool
MediaWindow
::
start
()
{
{
return
(
mpImpl
!=
NULL
&&
mpImpl
->
start
()
);
return
mpImpl
->
start
(
);
}
}
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
void
MediaWindow
::
updateMediaItem
(
MediaItem
&
rItem
)
const
void
MediaWindow
::
updateMediaItem
(
MediaItem
&
rItem
)
const
{
{
if
(
mpImpl
)
mpImpl
->
updateMediaItem
(
rItem
);
mpImpl
->
updateMediaItem
(
rItem
);
}
}
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
void
MediaWindow
::
executeMediaItem
(
const
MediaItem
&
rItem
)
void
MediaWindow
::
executeMediaItem
(
const
MediaItem
&
rItem
)
{
{
if
(
mpImpl
)
mpImpl
->
executeMediaItem
(
rItem
);
mpImpl
->
executeMediaItem
(
rItem
);
}
}
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
void
MediaWindow
::
show
()
void
MediaWindow
::
show
()
{
{
if
(
mpImpl
)
mpImpl
->
Show
();
mpImpl
->
Show
();
}
}
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
void
MediaWindow
::
hide
()
void
MediaWindow
::
hide
()
{
{
if
(
mpImpl
)
mpImpl
->
Hide
();
mpImpl
->
Hide
();
}
}
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
Window
*
MediaWindow
::
getWindow
()
const
Window
*
MediaWindow
::
getWindow
()
const
{
{
return
mpImpl
;
return
mpImpl
.
get
()
;
}
}
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
...
...
avmedia/source/viewer/mediawindow_impl.cxx
Dosyayı görüntüle @
929baba5
...
@@ -175,15 +175,6 @@ MediaWindowImpl::MediaWindowImpl( Window* pParent, MediaWindow* pMediaWindow, bo
...
@@ -175,15 +175,6 @@ MediaWindowImpl::MediaWindowImpl( Window* pParent, MediaWindow* pMediaWindow, bo
// ---------------------------------------------------------------------
// ---------------------------------------------------------------------
MediaWindowImpl
::~
MediaWindowImpl
()
MediaWindowImpl
::~
MediaWindowImpl
()
{
delete
mpEmptyBmpEx
;
delete
mpAudioBmpEx
;
delete
mpMediaWindowControl
;
}
// ---------------------------------------------------------------------
void
MediaWindowImpl
::
cleanUp
()
{
{
uno
::
Reference
<
media
::
XPlayerWindow
>
xPlayerWindow
(
getPlayerWindow
()
);
uno
::
Reference
<
media
::
XPlayerWindow
>
xPlayerWindow
(
getPlayerWindow
()
);
...
@@ -209,6 +200,10 @@ void MediaWindowImpl::cleanUp()
...
@@ -209,6 +200,10 @@ void MediaWindowImpl::cleanUp()
mxPlayer
.
clear
();
mxPlayer
.
clear
();
mpMediaWindow
=
NULL
;
mpMediaWindow
=
NULL
;
delete
mpEmptyBmpEx
;
delete
mpAudioBmpEx
;
delete
mpMediaWindowControl
;
}
}
uno
::
Reference
<
media
::
XPlayer
>
MediaWindowImpl
::
createPlayer
(
const
OUString
&
rURL
)
uno
::
Reference
<
media
::
XPlayer
>
MediaWindowImpl
::
createPlayer
(
const
OUString
&
rURL
)
...
...
avmedia/source/viewer/mediawindow_impl.hxx
Dosyayı görüntüle @
929baba5
...
@@ -91,8 +91,6 @@ namespace avmedia
...
@@ -91,8 +91,6 @@ namespace avmedia
MediaWindowImpl
(
Window
*
parent
,
MediaWindow
*
pMediaWindow
,
bool
bInternalMediaControl
);
MediaWindowImpl
(
Window
*
parent
,
MediaWindow
*
pMediaWindow
,
bool
bInternalMediaControl
);
virtual
~
MediaWindowImpl
();
virtual
~
MediaWindowImpl
();
void
cleanUp
();
static
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
media
::
XPlayer
>
createPlayer
(
const
OUString
&
rURL
);
static
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
media
::
XPlayer
>
createPlayer
(
const
OUString
&
rURL
);
void
setURL
(
const
OUString
&
rURL
,
OUString
const
&
rTempURL
);
void
setURL
(
const
OUString
&
rURL
,
OUString
const
&
rTempURL
);
...
...
include/avmedia/mediawindow.hxx
Dosyayı görüntüle @
929baba5
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
#include <memory>
#include <memory>
#include <vector>
#include <vector>
#include <boost/scoped_ptr.hpp>
#include <tools/gen.hxx>
#include <tools/gen.hxx>
#include <com/sun/star/media/ZoomLevel.hpp>
#include <com/sun/star/media/ZoomLevel.hpp>
#include <com/sun/star/media/XPlayer.hpp>
#include <com/sun/star/media/XPlayer.hpp>
...
@@ -118,7 +119,7 @@ namespace avmedia
...
@@ -118,7 +119,7 @@ namespace avmedia
AVMEDIA_DLLPRIVATE
MediaWindow
&
operator
=
(
const
MediaWindow
&
);
AVMEDIA_DLLPRIVATE
MediaWindow
&
operator
=
(
const
MediaWindow
&
);
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XInterface
>
mxIFace
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XInterface
>
mxIFace
;
priv
::
MediaWindowImpl
*
mpImpl
;
boost
::
scoped_ptr
<
priv
::
MediaWindowImpl
>
mpImpl
;
};
};
}
}
...
...
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