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
5279616d
Kaydet (Commit)
5279616d
authored
Şub 28, 2012
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
lp#562027: fix logout with quickstarter
üst
478485d1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
1 deletion
+48
-1
desktop.hxx
framework/inc/services/desktop.hxx
+4
-0
desktop.cxx
framework/source/services/desktop.cxx
+30
-0
sessionlistener.cxx
framework/source/services/sessionlistener.cxx
+14
-1
No files found.
framework/inc/services/desktop.hxx
Dosyayı görüntüle @
5279616d
...
@@ -339,6 +339,10 @@ class Desktop : // interfaces
...
@@ -339,6 +339,10 @@ class Desktop : // interfaces
virtual
::
rtl
::
OUString
SAL_CALL
getUntitledPrefix
()
virtual
::
rtl
::
OUString
SAL_CALL
getUntitledPrefix
()
throw
(
css
::
uno
::
RuntimeException
);
throw
(
css
::
uno
::
RuntimeException
);
// we need this wrapped terminate()-call to terminate even the QuickStarter
// non-virtual and non-UNO for now
bool
SAL_CALL
terminateQuickstarterToo
()
throw
(
css
::
uno
::
RuntimeException
);
//-------------------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------------
// protected methods
// protected methods
//-------------------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------------
...
...
framework/source/services/desktop.cxx
Dosyayı görüntüle @
5279616d
...
@@ -401,6 +401,36 @@ sal_Bool SAL_CALL Desktop::terminate()
...
@@ -401,6 +401,36 @@ sal_Bool SAL_CALL Desktop::terminate()
return
bTerminate
;
return
bTerminate
;
}
}
namespace
{
class
QuickstartSuppressor
{
Desktop
*
const
m_pDesktop
;
css
::
uno
::
Reference
<
css
::
frame
::
XTerminateListener
>
m_xQuickLauncher
;
public
:
QuickstartSuppressor
(
Desktop
*
const
pDesktop
,
css
::
uno
::
Reference
<
css
::
frame
::
XTerminateListener
>
xQuickLauncher
)
:
m_pDesktop
(
pDesktop
)
,
m_xQuickLauncher
(
xQuickLauncher
)
{
SAL_INFO
(
"fwk.desktop"
,
"temporary removing Quickstarter"
);
if
(
m_xQuickLauncher
.
is
())
m_pDesktop
->
removeTerminateListener
(
m_xQuickLauncher
);
}
~
QuickstartSuppressor
()
{
SAL_INFO
(
"fwk.desktop"
,
"readding Quickstarter"
);
if
(
m_xQuickLauncher
.
is
())
m_pDesktop
->
addTerminateListener
(
m_xQuickLauncher
);
}
};
}
bool
SAL_CALL
Desktop
::
terminateQuickstarterToo
()
throw
(
css
::
uno
::
RuntimeException
)
{
QuickstartSuppressor
(
this
,
m_xQuickLauncher
);
return
terminate
();
}
//=============================================================================
//=============================================================================
void
SAL_CALL
Desktop
::
addTerminateListener
(
const
css
::
uno
::
Reference
<
css
::
frame
::
XTerminateListener
>&
xListener
)
void
SAL_CALL
Desktop
::
addTerminateListener
(
const
css
::
uno
::
Reference
<
css
::
frame
::
XTerminateListener
>&
xListener
)
...
...
framework/source/services/sessionlistener.cxx
Dosyayı görüntüle @
5279616d
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
// my own includes
// my own includes
#include <services/sessionlistener.hxx>
#include <services/sessionlistener.hxx>
#include <services/desktop.hxx>
#include <threadhelp/readguard.hxx>
#include <threadhelp/readguard.hxx>
#include <threadhelp/resetableguard.hxx>
#include <threadhelp/resetableguard.hxx>
#include <protocols.h>
#include <protocols.h>
...
@@ -326,7 +327,19 @@ void SAL_CALL SessionListener::approveInteraction( sal_Bool bInteractionGranted
...
@@ -326,7 +327,19 @@ void SAL_CALL SessionListener::approveInteraction( sal_Bool bInteractionGranted
StoreSession
(
sal_False
);
StoreSession
(
sal_False
);
css
::
uno
::
Reference
<
css
::
frame
::
XDesktop
>
xDesktop
(
m_xSMGR
->
createInstance
(
SERVICENAME_DESKTOP
),
css
::
uno
::
UNO_QUERY_THROW
);
css
::
uno
::
Reference
<
css
::
frame
::
XDesktop
>
xDesktop
(
m_xSMGR
->
createInstance
(
SERVICENAME_DESKTOP
),
css
::
uno
::
UNO_QUERY_THROW
);
m_bTerminated
=
xDesktop
->
terminate
();
// honestly: how many implementations of XDesktop will we ever have?
// so casting this directly to the implementation
Desktop
*
pDesktop
(
dynamic_cast
<
Desktop
*>
(
xDesktop
.
get
()));
if
(
pDesktop
)
{
SAL_INFO
(
"fwk.session"
,
"XDesktop is a framework::Desktop -- good."
);
m_bTerminated
=
pDesktop
->
terminateQuickstarterToo
();
}
else
{
SAL_WARN
(
"fwk.session"
,
"XDesktop is not a framework::Desktop -- this should never happen."
);
m_bTerminated
=
xDesktop
->
terminate
();
}
if
(
m_rSessionManager
.
is
()
)
if
(
m_rSessionManager
.
is
()
)
{
{
...
...
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