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
d7b48d03
Kaydet (Commit)
d7b48d03
authored
Mar 11, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clean up previous commit
Change-Id: I0e0351177fa72b7aeff7e2d61122f4590e8e6311
üst
84206b23
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
33 deletions
+6
-33
soundhandler.cxx
avmedia/source/framework/soundhandler.cxx
+4
-24
soundhandler.hxx
avmedia/source/framework/soundhandler.hxx
+1
-8
avmedia.component
avmedia/util/avmedia.component
+1
-1
No files found.
avmedia/source/framework/soundhandler.cxx
Dosyayı görüntüle @
d7b48d03
...
...
@@ -113,7 +113,7 @@ css::uno::Sequence< css::uno::Type > SAL_CALL SoundHandler::getTypes() throw( cs
/*===========================================================================================================*/
OUString
SAL_CALL
SoundHandler
::
getImplementationName
()
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
{
return
impl_getStaticImplementationName
()
;
return
IMPLEMENTATIONNAME_SOUNDHANDLER
;
}
// XServiceInfo
...
...
@@ -124,28 +124,12 @@ sal_Bool SAL_CALL SoundHandler::supportsService( const OUString& sServiceName )
// XServiceInfo
css
::
uno
::
Sequence
<
OUString
>
SAL_CALL
SoundHandler
::
getSupportedServiceNames
()
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
{
return
impl_getStaticSupportedServiceNames
();
}
// Helper for XServiceInfo
css
::
uno
::
Sequence
<
OUString
>
SoundHandler
::
impl_getStaticSupportedServiceNames
()
{
css
::
uno
::
Sequence
<
OUString
>
seqServiceNames
(
1
);
seqServiceNames
.
getArray
()
[
0
]
=
"com.sun.star.frame.ContentHandler"
;
return
seqServiceNames
;
}
// Helper for XServiceInfo
OUString
SoundHandler
::
impl_getStaticImplementationName
()
{
return
IMPLEMENTATIONNAME_SOUNDHANDLER
;
}
void
SAL_CALL
SoundHandler
::
impl_initService
()
{
}
/*-************************************************************************************************************
@short standard ctor
@descr These initialize a new instance of this class with needed information for work.
...
...
@@ -156,13 +140,12 @@ void SAL_CALL SoundHandler::impl_initService()
@onerror Show an assertion and do nothing else.
@threadsafe yes
*//*-*************************************************************************************************************/
SoundHandler
::
SoundHandler
(
const
css
::
uno
::
Reference
<
css
::
lang
::
XMultiServiceFactory
>&
xFactory
)
SoundHandler
::
SoundHandler
()
// Init baseclasses first
:
ThreadHelpBase
(
)
,
::
cppu
::
OWeakObject
(
)
// Init member
,
m_bError
(
false
)
,
m_xFactory
(
xFactory
)
{
m_aUpdateIdle
.
SetIdleHdl
(
LINK
(
this
,
SoundHandler
,
implts_PlayerNotify
));
}
...
...
@@ -357,13 +340,10 @@ IMPL_LINK_NOARG(SoundHandler, implts_PlayerNotify)
extern
"C"
SAL_DLLPUBLIC_EXPORT
::
com
::
sun
::
star
::
uno
::
XInterface
*
SAL_CALL
com_sun_star_comp_framework_SoundHandler_get_implementation
(
::
com
::
sun
::
star
::
uno
::
XComponentContext
*
context
,
com_sun_star_comp_framework_SoundHandler_get_implementation
(
::
com
::
sun
::
star
::
uno
::
XComponentContext
*
,
::
com
::
sun
::
star
::
uno
::
Sequence
<
css
::
uno
::
Any
>
const
&
)
{
css
::
uno
::
Reference
<
css
::
lang
::
XMultiServiceFactory
>
xSM
(
context
->
getServiceManager
(),
css
::
uno
::
UNO_QUERY_THROW
);
avmedia
::
SoundHandler
*
pClass
=
new
avmedia
::
SoundHandler
(
xSM
);
pClass
->
impl_initService
();
return
cppu
::
acquire
(
pClass
);
return
cppu
::
acquire
(
new
avmedia
::
SoundHandler
);
}
...
...
avmedia/source/framework/soundhandler.hxx
Dosyayı görüntüle @
d7b48d03
...
...
@@ -21,7 +21,6 @@
#define INCLUDED_AVMEDIA_SOURCE_FRAMEWORK_SOUNDHANDLER_HXX
#include <com/sun/star/lang/XTypeProvider.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/frame/XNotifyingDispatch.hpp>
#include <com/sun/star/frame/XStatusListener.hpp>
#include <com/sun/star/frame/XFrame.hpp>
...
...
@@ -74,7 +73,7 @@ class SoundHandler : // interfaces
public
:
// constructor / destructor
SoundHandler
(
const
css
::
uno
::
Reference
<
css
::
lang
::
XMultiServiceFactory
>&
xFactory
);
SoundHandler
();
virtual
~
SoundHandler
(
);
// XInterface, XTypeProvider, XServiceInfo
...
...
@@ -88,11 +87,6 @@ class SoundHandler : // interfaces
virtual
OUString
SAL_CALL
getImplementationName
(
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
sal_Bool
SAL_CALL
supportsService
(
const
OUString
&
sServiceName
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Sequence
<
OUString
>
SAL_CALL
getSupportedServiceNames
(
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
/* Helper for XServiceInfo */
static
css
::
uno
::
Sequence
<
OUString
>
SAL_CALL
impl_getStaticSupportedServiceNames
(
);
static
OUString
SAL_CALL
impl_getStaticImplementationName
(
);
/* Helper for initialization of service by using own reference! */
void
SAL_CALL
impl_initService
(
);
// XNotifyingDispatch
virtual
void
SAL_CALL
dispatchWithNotification
(
const
css
::
util
::
URL
&
aURL
,
...
...
@@ -123,7 +117,6 @@ class SoundHandler : // interfaces
private
:
bool
m_bError
;
css
::
uno
::
Reference
<
css
::
lang
::
XMultiServiceFactory
>
m_xFactory
;
// global uno service factory to create new services
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>
m_xSelfHold
;
// we must protect us against dying during async(!) dispatch() call!
css
::
uno
::
Reference
<
css
::
media
::
XPlayer
>
m_xPlayer
;
// uses avmedia player to play sounds...
...
...
avmedia/util/avmedia.component
Dosyayı görüntüle @
d7b48d03
...
...
@@ -18,7 +18,7 @@
-->
<component
loader=
"com.sun.star.loader.SharedLibrary"
environment=
"@CPPU_ENV@"
prefix=
"avmedia"
xmlns=
"http://openoffice.org/2010/uno-components"
>
xmlns=
"http://openoffice.org/2010/uno-components"
>
<implementation
name=
"com.sun.star.comp.framework.SoundHandler"
constructor=
"com_sun_star_comp_framework_SoundHandler_get_implementation"
>
<service
name=
"com.sun.star.frame.ContentHandler"
/>
...
...
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