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
d8910d12
Kaydet (Commit)
d8910d12
authored
Mar 20, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use an osl::Mutex directly
Change-Id: I4adad36de95c022a7945b61a44bb6166ad87a8a7
üst
81140558
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
16 deletions
+4
-16
oxt_handler.hxx
framework/inc/dispatch/oxt_handler.hxx
+2
-6
oxt_handler.cxx
framework/source/dispatch/oxt_handler.cxx
+2
-10
No files found.
framework/inc/dispatch/oxt_handler.hxx
Dosyayı görüntüle @
d8910d12
...
@@ -20,7 +20,6 @@
...
@@ -20,7 +20,6 @@
#ifndef INCLUDED_FRAMEWORK_INC_DISPATCH_OXT_HANDLER_HXX
#ifndef INCLUDED_FRAMEWORK_INC_DISPATCH_OXT_HANDLER_HXX
#define INCLUDED_FRAMEWORK_INC_DISPATCH_OXT_HANDLER_HXX
#define INCLUDED_FRAMEWORK_INC_DISPATCH_OXT_HANDLER_HXX
#include <threadhelp/threadhelpbase.hxx>
#include <macros/xinterface.hxx>
#include <macros/xinterface.hxx>
#include <macros/xtypeprovider.hxx>
#include <macros/xtypeprovider.hxx>
#include <macros/xserviceinfo.hxx>
#include <macros/xserviceinfo.hxx>
...
@@ -53,11 +52,7 @@ namespace framework{
...
@@ -53,11 +52,7 @@ namespace framework{
@devstatus ready
@devstatus ready
@threadsafe yes
@threadsafe yes
*//*-*************************************************************************************************************/
*//*-*************************************************************************************************************/
class
Oxt_Handler
:
// baseclasses
class
Oxt_Handler
:
public
::
cppu
::
WeakImplHelper3
<
// Order is necessary for right initialization!
private
ThreadHelpBase
// interfaces
,
public
::
cppu
::
WeakImplHelper3
<
css
::
lang
::
XServiceInfo
,
css
::
lang
::
XServiceInfo
,
css
::
frame
::
XNotifyingDispatch
,
// => XDispatch
css
::
frame
::
XNotifyingDispatch
,
// => XDispatch
css
::
document
::
XExtendedFilterDetection
>
css
::
document
::
XExtendedFilterDetection
>
...
@@ -114,6 +109,7 @@ class Oxt_Handler : // baseclasses
...
@@ -114,6 +109,7 @@ class Oxt_Handler : // baseclasses
// (should be private everyway!)
// (should be private everyway!)
private
:
private
:
osl
::
Mutex
m_mutex
;
css
::
uno
::
Reference
<
css
::
lang
::
XMultiServiceFactory
>
m_xFactory
;
/// global uno service factory to create new services
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 dieing during async(!) dispatch() call!
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>
m_xSelfHold
;
/// we must protect us against dieing during async(!) dispatch() call!
...
...
framework/source/dispatch/oxt_handler.cxx
Dosyayı görüntüle @
d8910d12
...
@@ -18,7 +18,6 @@
...
@@ -18,7 +18,6 @@
*/
*/
#include <dispatch/oxt_handler.hxx>
#include <dispatch/oxt_handler.hxx>
#include <threadhelp/guard.hxx>
#include <threadhelp/transactionguard.hxx>
#include <threadhelp/transactionguard.hxx>
#include <services.h>
#include <services.h>
#include <unotools/mediadescriptor.hxx>
#include <unotools/mediadescriptor.hxx>
...
@@ -60,10 +59,7 @@ DEFINE_INIT_SERVICE ( Oxt_Handler,
...
@@ -60,10 +59,7 @@ DEFINE_INIT_SERVICE ( Oxt_Handler,
@threadsafe yes
@threadsafe yes
*//*-*************************************************************************************************************/
*//*-*************************************************************************************************************/
Oxt_Handler
::
Oxt_Handler
(
const
css
::
uno
::
Reference
<
css
::
lang
::
XMultiServiceFactory
>&
xFactory
)
Oxt_Handler
::
Oxt_Handler
(
const
css
::
uno
::
Reference
<
css
::
lang
::
XMultiServiceFactory
>&
xFactory
)
// Init baseclasses first
:
m_xFactory
(
xFactory
)
:
ThreadHelpBase
(
)
// Init member
,
m_xFactory
(
xFactory
)
{
{
}
}
...
@@ -117,8 +113,7 @@ void SAL_CALL Oxt_Handler::dispatchWithNotification( const css::util::URL& aURL,
...
@@ -117,8 +113,7 @@ void SAL_CALL Oxt_Handler::dispatchWithNotification( const css::util::URL& aURL,
const
css
::
uno
::
Reference
<
css
::
frame
::
XDispatchResultListener
>&
xListener
)
const
css
::
uno
::
Reference
<
css
::
frame
::
XDispatchResultListener
>&
xListener
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
{
{
// SAFE {
osl
::
MutexGuard
g
(
m_mutex
);
Guard
aLock
(
m_aLock
);
OUString
sServiceName
=
"com.sun.star.deployment.ui.PackageManagerDialog"
;
OUString
sServiceName
=
"com.sun.star.deployment.ui.PackageManagerDialog"
;
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>
lParams
(
1
);
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>
lParams
(
1
);
...
@@ -137,9 +132,6 @@ void SAL_CALL Oxt_Handler::dispatchWithNotification( const css::util::URL& aURL,
...
@@ -137,9 +132,6 @@ void SAL_CALL Oxt_Handler::dispatchWithNotification( const css::util::URL& aURL,
aEvent
.
State
=
css
::
frame
::
DispatchResultState
::
SUCCESS
;
aEvent
.
State
=
css
::
frame
::
DispatchResultState
::
SUCCESS
;
xListener
->
dispatchFinished
(
aEvent
);
xListener
->
dispatchFinished
(
aEvent
);
}
}
// } SAFE
aLock
.
unlock
();
}
}
void
SAL_CALL
Oxt_Handler
::
dispatch
(
const
css
::
util
::
URL
&
aURL
,
void
SAL_CALL
Oxt_Handler
::
dispatch
(
const
css
::
util
::
URL
&
aURL
,
...
...
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