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
309951d6
Kaydet (Commit)
309951d6
authored
Mar 18, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Access safe data members directly
Change-Id: Ide204709c54fa476b9cc4f6a9446a8fb2730950c
üst
093df487
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
23 deletions
+7
-23
startmoduledispatcher.hxx
framework/inc/dispatch/startmoduledispatcher.hxx
+2
-4
startmoduledispatcher.cxx
framework/source/dispatch/startmoduledispatcher.cxx
+5
-19
No files found.
framework/inc/dispatch/startmoduledispatcher.hxx
Dosyayı görüntüle @
309951d6
...
...
@@ -20,7 +20,6 @@
#ifndef INCLUDED_FRAMEWORK_INC_DISPATCH_STARTMODULEDISPATCHER_HXX
#define INCLUDED_FRAMEWORK_INC_DISPATCH_STARTMODULEDISPATCHER_HXX
#include <threadhelp/threadhelpbase.hxx>
#include <macros/xinterface.hxx>
#include <macros/xtypeprovider.hxx>
#include <macros/generic.hxx>
...
...
@@ -48,9 +47,7 @@ namespace framework{
/**
@short helper to handle all URLs related to the StartModule
*/
class
StartModuleDispatcher
:
// baseclasses ... order is necessary for right initialization!
private
ThreadHelpBase
,
public
::
cppu
::
WeakImplHelper2
<
class
StartModuleDispatcher
:
public
::
cppu
::
WeakImplHelper2
<
css
::
frame
::
XNotifyingDispatch
,
// => XDispatch
css
::
frame
::
XDispatchInformationProvider
>
{
...
...
@@ -75,6 +72,7 @@ class StartModuleDispatcher : // baseclasses ... order is necessary for right in
/** @short list of registered status listener */
osl
::
Mutex
m_mutex
;
ListenerHash
m_lStatusListener
;
...
...
framework/source/dispatch/startmoduledispatcher.cxx
Dosyayı görüntüle @
309951d6
...
...
@@ -21,7 +21,6 @@
#include <dispatch/startmoduledispatcher.hxx>
#include <pattern/frame.hxx>
#include <threadhelp/guard.hxx>
#include <framework/framelistanalyzer.hxx>
#include <dispatchcommands.h>
#include <targets.h>
...
...
@@ -56,11 +55,10 @@ namespace fpf = ::framework::pattern::frame;
StartModuleDispatcher
::
StartModuleDispatcher
(
const
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>&
rxContext
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
xFrame
,
const
OUString
&
sTarget
)
:
ThreadHelpBase
(
&
Application
::
GetSolarMutex
()
)
,
m_xContext
(
rxContext
)
:
m_xContext
(
rxContext
)
,
m_xOwner
(
xFrame
)
,
m_sDispatchTarget
(
sTarget
)
,
m_lStatusListener
(
m_
aLock
.
getShareableOslMutex
()
)
,
m_lStatusListener
(
m_
mutex
)
{
}
...
...
@@ -131,14 +129,8 @@ void SAL_CALL StartModuleDispatcher::removeStatusListener(const css::uno::Refere
if
(
!
SvtModuleOptions
().
IsModuleInstalled
(
SvtModuleOptions
::
E_SSTARTMODULE
))
return
sal_False
;
// SAFE -> ----------------------------------
Guard
aReadLock
(
m_aLock
);
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
xContext
=
m_xContext
;
aReadLock
.
unlock
();
// <- SAFE ----------------------------------
css
::
uno
::
Reference
<
css
::
frame
::
XFramesSupplier
>
xDesktop
(
css
::
frame
::
Desktop
::
create
(
xContext
),
css
::
uno
::
UNO_QUERY
);
css
::
frame
::
Desktop
::
create
(
m_
xContext
),
css
::
uno
::
UNO_QUERY
);
FrameListAnalyzer
aCheck
(
xDesktop
,
...
...
@@ -162,17 +154,11 @@ void SAL_CALL StartModuleDispatcher::removeStatusListener(const css::uno::Refere
::
sal_Bool
StartModuleDispatcher
::
implts_establishBackingMode
()
{
// SAFE -> ----------------------------------
Guard
aReadLock
(
m_aLock
);
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
xContext
=
m_xContext
;
aReadLock
.
unlock
();
// <- SAFE ----------------------------------
css
::
uno
::
Reference
<
css
::
frame
::
XDesktop2
>
xDesktop
=
css
::
frame
::
Desktop
::
create
(
xContext
);
css
::
uno
::
Reference
<
css
::
frame
::
XDesktop2
>
xDesktop
=
css
::
frame
::
Desktop
::
create
(
m_xContext
);
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>
xFrame
=
xDesktop
->
findFrame
(
SPECIALTARGET_BLANK
,
0
);
css
::
uno
::
Reference
<
css
::
awt
::
XWindow
>
xContainerWindow
=
xFrame
->
getContainerWindow
();
css
::
uno
::
Reference
<
css
::
frame
::
XController
>
xStartModule
=
css
::
frame
::
StartModule
::
createWithParentWindow
(
xContext
,
xContainerWindow
);
css
::
uno
::
Reference
<
css
::
frame
::
XController
>
xStartModule
=
css
::
frame
::
StartModule
::
createWithParentWindow
(
m_
xContext
,
xContainerWindow
);
css
::
uno
::
Reference
<
css
::
awt
::
XWindow
>
xComponentWindow
(
xStartModule
,
css
::
uno
::
UNO_QUERY
);
xFrame
->
setComponent
(
xComponentWindow
,
xStartModule
);
xStartModule
->
attachFrame
(
xFrame
);
...
...
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