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
82f02d72
Kaydet (Commit)
82f02d72
authored
Ock 09, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
boost::scoped_ptr->std::unique_ptr
Change-Id: I844532d08123ed0c91ccec73cc806277fd821089
üst
31498259
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
19 deletions
+17
-19
mediawindow.cxx
avmedia/source/viewer/mediawindow.cxx
+7
-7
mediawindow_impl.hxx
avmedia/source/viewer/mediawindow_impl.hxx
+1
-1
vlcmanager.hxx
avmedia/source/vlc/vlcmanager.hxx
+3
-4
mediaitem.hxx
include/avmedia/mediaitem.hxx
+2
-3
mediawindow.hxx
include/avmedia/mediawindow.hxx
+2
-2
bitmapdevice.hxx
include/basebmp/bitmapdevice.hxx
+2
-2
No files found.
avmedia/source/viewer/mediawindow.cxx
Dosyayı görüntüle @
82f02d72
...
@@ -20,7 +20,6 @@
...
@@ -20,7 +20,6 @@
#include <stdio.h>
#include <stdio.h>
#include <avmedia/mediawindow.hxx>
#include <avmedia/mediawindow.hxx>
#include <boost/scoped_ptr.hpp>
#include "mediawindow_impl.hxx"
#include "mediawindow_impl.hxx"
#include "mediamisc.hxx"
#include "mediamisc.hxx"
#include "mediawindow.hrc"
#include "mediawindow.hrc"
...
@@ -34,6 +33,7 @@
...
@@ -34,6 +33,7 @@
#include "com/sun/star/ui/dialogs/ExtendedFilePickerElementIds.hpp"
#include "com/sun/star/ui/dialogs/ExtendedFilePickerElementIds.hpp"
#include "com/sun/star/ui/dialogs/TemplateDescription.hpp"
#include "com/sun/star/ui/dialogs/TemplateDescription.hpp"
#include "com/sun/star/ui/dialogs/XFilePickerControlAccess.hpp"
#include "com/sun/star/ui/dialogs/XFilePickerControlAccess.hpp"
#include <memory>
#define AVMEDIA_FRAMEGRABBER_DEFAULTFRAME_MEDIATIME 3.0
#define AVMEDIA_FRAMEGRABBER_DEFAULTFRAME_MEDIATIME 3.0
...
@@ -404,7 +404,7 @@ uno::Reference< graphic::XGraphic > MediaWindow::grabFrame( const OUString& rURL
...
@@ -404,7 +404,7 @@ uno::Reference< graphic::XGraphic > MediaWindow::grabFrame( const OUString& rURL
{
{
uno
::
Reference
<
media
::
XPlayer
>
xPlayer
(
createPlayer
(
rURL
,
rReferer
,
&
sMimeType
)
);
uno
::
Reference
<
media
::
XPlayer
>
xPlayer
(
createPlayer
(
rURL
,
rReferer
,
&
sMimeType
)
);
uno
::
Reference
<
graphic
::
XGraphic
>
xRet
;
uno
::
Reference
<
graphic
::
XGraphic
>
xRet
;
boost
::
scoped_ptr
<
Graphic
>
ap
Graphic
;
std
::
unique_ptr
<
Graphic
>
x
Graphic
;
if
(
xPlayer
.
is
()
)
if
(
xPlayer
.
is
()
)
{
{
...
@@ -428,19 +428,19 @@ uno::Reference< graphic::XGraphic > MediaWindow::grabFrame( const OUString& rURL
...
@@ -428,19 +428,19 @@ uno::Reference< graphic::XGraphic > MediaWindow::grabFrame( const OUString& rURL
if
(
!
aPrefSize
.
Width
&&
!
aPrefSize
.
Height
)
if
(
!
aPrefSize
.
Width
&&
!
aPrefSize
.
Height
)
{
{
const
BitmapEx
aBmpEx
(
getAudioLogo
()
);
const
BitmapEx
aBmpEx
(
getAudioLogo
()
);
ap
Graphic
.
reset
(
new
Graphic
(
aBmpEx
)
);
x
Graphic
.
reset
(
new
Graphic
(
aBmpEx
)
);
}
}
}
}
}
}
if
(
!
xRet
.
is
()
&&
!
ap
Graphic
.
get
()
)
if
(
!
xRet
.
is
()
&&
!
x
Graphic
.
get
()
)
{
{
const
BitmapEx
aBmpEx
(
getEmptyLogo
()
);
const
BitmapEx
aBmpEx
(
getEmptyLogo
()
);
ap
Graphic
.
reset
(
new
Graphic
(
aBmpEx
)
);
x
Graphic
.
reset
(
new
Graphic
(
aBmpEx
)
);
}
}
if
(
ap
Graphic
.
get
()
)
if
(
x
Graphic
.
get
()
)
xRet
=
ap
Graphic
->
GetXGraphic
();
xRet
=
x
Graphic
->
GetXGraphic
();
return
xRet
;
return
xRet
;
}
}
...
...
avmedia/source/viewer/mediawindow_impl.hxx
Dosyayı görüntüle @
82f02d72
...
@@ -173,7 +173,7 @@ namespace avmedia
...
@@ -173,7 +173,7 @@ namespace avmedia
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XInterface
>
mxEventsIf
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XInterface
>
mxEventsIf
;
MediaEventListenersImpl
*
mpEvents
;
MediaEventListenersImpl
*
mpEvents
;
bool
mbEventTransparent
;
bool
mbEventTransparent
;
boost
::
scoped_ptr
<
MediaChildWindow
>
mpChildWindow
;
std
::
unique_ptr
<
MediaChildWindow
>
mpChildWindow
;
MediaWindowControl
*
mpMediaWindowControl
;
MediaWindowControl
*
mpMediaWindowControl
;
BitmapEx
*
mpEmptyBmpEx
;
BitmapEx
*
mpEmptyBmpEx
;
BitmapEx
*
mpAudioBmpEx
;
BitmapEx
*
mpAudioBmpEx
;
...
...
avmedia/source/vlc/vlcmanager.hxx
Dosyayı görüntüle @
82f02d72
...
@@ -19,10 +19,10 @@
...
@@ -19,10 +19,10 @@
#ifndef INCLUDED_AVMEDIA_SOURCE_VLC_VLCMANAGER_HXX
#ifndef INCLUDED_AVMEDIA_SOURCE_VLC_VLCMANAGER_HXX
#define INCLUDED_AVMEDIA_SOURCE_VLC_VLCMANAGER_HXX
#define INCLUDED_AVMEDIA_SOURCE_VLC_VLCMANAGER_HXX
#include <boost/scoped_ptr.hpp>
#include <com/sun/star/media/XManager.hpp>
#include <com/sun/star/media/XManager.hpp>
#include "vlccommon.hxx"
#include "vlccommon.hxx"
#include "wrapper/Wrapper.hxx"
#include "wrapper/Wrapper.hxx"
#include <memory>
namespace
avmedia
{
namespace
avmedia
{
namespace
vlc
{
namespace
vlc
{
...
@@ -30,7 +30,7 @@ namespace vlc {
...
@@ -30,7 +30,7 @@ namespace vlc {
class
Manager
:
public
::
cppu
::
WeakImplHelper2
<
::
com
::
sun
::
star
::
media
::
XManager
,
class
Manager
:
public
::
cppu
::
WeakImplHelper2
<
::
com
::
sun
::
star
::
media
::
XManager
,
::
com
::
sun
::
star
::
lang
::
XServiceInfo
>
::
com
::
sun
::
star
::
lang
::
XServiceInfo
>
{
{
boost
::
scoped
_ptr
<
wrapper
::
Instance
>
mInstance
;
std
::
unique
_ptr
<
wrapper
::
Instance
>
mInstance
;
wrapper
::
EventHandler
mEventHandler
;
wrapper
::
EventHandler
mEventHandler
;
public
:
public
:
Manager
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>&
rxMgr
);
Manager
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>&
rxMgr
);
...
@@ -55,4 +55,4 @@ private:
...
@@ -55,4 +55,4 @@ private:
#endif
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file
include/avmedia/mediaitem.hxx
Dosyayı görüntüle @
82f02d72
...
@@ -20,14 +20,13 @@
...
@@ -20,14 +20,13 @@
#ifndef INCLUDED_AVMEDIA_MEDIAITEM_HXX
#ifndef INCLUDED_AVMEDIA_MEDIAITEM_HXX
#define INCLUDED_AVMEDIA_MEDIAITEM_HXX
#define INCLUDED_AVMEDIA_MEDIAITEM_HXX
#include <boost/scoped_ptr.hpp>
#include <tools/rtti.hxx>
#include <tools/rtti.hxx>
#include <svl/poolitem.hxx>
#include <svl/poolitem.hxx>
#include <com/sun/star/media/ZoomLevel.hpp>
#include <com/sun/star/media/ZoomLevel.hpp>
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/embed/XStorage.hpp>
#include <com/sun/star/embed/XStorage.hpp>
#include <avmedia/avmediadllapi.h>
#include <avmedia/avmediadllapi.h>
#include <memory>
#define AVMEDIA_SETMASK_NONE ((sal_uInt32)(0x00000000))
#define AVMEDIA_SETMASK_NONE ((sal_uInt32)(0x00000000))
#define AVMEDIA_SETMASK_STATE ((sal_uInt32)(0x00000001))
#define AVMEDIA_SETMASK_STATE ((sal_uInt32)(0x00000001))
...
@@ -120,7 +119,7 @@ public:
...
@@ -120,7 +119,7 @@ public:
private
:
private
:
struct
Impl
;
struct
Impl
;
::
boost
::
scoped
_ptr
<
Impl
>
m_pImpl
;
std
::
unique
_ptr
<
Impl
>
m_pImpl
;
};
};
typedef
::
avmedia
::
MediaItem
avmedia_MediaItem
;
typedef
::
avmedia
::
MediaItem
avmedia_MediaItem
;
...
...
include/avmedia/mediawindow.hxx
Dosyayı görüntüle @
82f02d72
...
@@ -20,8 +20,8 @@
...
@@ -20,8 +20,8 @@
#ifndef INCLUDED_AVMEDIA_MEDIAWINDOW_HXX
#ifndef INCLUDED_AVMEDIA_MEDIAWINDOW_HXX
#define INCLUDED_AVMEDIA_MEDIAWINDOW_HXX
#define INCLUDED_AVMEDIA_MEDIAWINDOW_HXX
#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>
...
@@ -117,7 +117,7 @@ namespace avmedia
...
@@ -117,7 +117,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
;
boost
::
scoped
_ptr
<
priv
::
MediaWindowImpl
>
mpImpl
;
std
::
unique
_ptr
<
priv
::
MediaWindowImpl
>
mpImpl
;
};
};
}
}
...
...
include/basebmp/bitmapdevice.hxx
Dosyayı görüntüle @
82f02d72
...
@@ -25,11 +25,11 @@
...
@@ -25,11 +25,11 @@
#include <basebmp/scanlineformats.hxx>
#include <basebmp/scanlineformats.hxx>
#include <basebmp/basebmpdllapi.h>
#include <basebmp/basebmpdllapi.h>
#include <boost/scoped_ptr.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/shared_array.hpp>
#include <boost/shared_array.hpp>
#include <boost/enable_shared_from_this.hpp>
#include <boost/enable_shared_from_this.hpp>
#include <boost/noncopyable.hpp>
#include <boost/noncopyable.hpp>
#include <memory>
#include <vector>
#include <vector>
namespace
basegfx
namespace
basegfx
...
@@ -656,7 +656,7 @@ private:
...
@@ -656,7 +656,7 @@ private:
BitmapDeviceSharedPtr
getGenericRenderer
()
const
;
BitmapDeviceSharedPtr
getGenericRenderer
()
const
;
boost
::
scoped
_ptr
<
ImplBitmapDevice
>
mpImpl
;
std
::
unique
_ptr
<
ImplBitmapDevice
>
mpImpl
;
};
};
/** Function to create a BitmapDevice for given scanline format
/** Function to create a BitmapDevice for given scanline format
...
...
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