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
d1f01dd4
Kaydet (Commit)
d1f01dd4
authored
Eki 12, 2016
tarafından
Samuel Mehrbrodt
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SafeModeDialog: Handle quit button event
Change-Id: Id24e9cb526bc0143a663e8d39a5dda59f929f8bf
üst
ad067cb0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
SafeModeDialog.cxx
svx/source/dialog/SafeModeDialog.cxx
+13
-1
SafeModeDialog.hxx
svx/source/dialog/SafeModeDialog.hxx
+2
-0
No files found.
svx/source/dialog/SafeModeDialog.cxx
Dosyayı görüntüle @
d1f01dd4
...
...
@@ -12,8 +12,14 @@
#include <config_folders.h>
#include <rtl/bootstrap.hxx>
#include <osl/file.hxx>
#include <comphelper/processfactory.hxx>
#include <sfx2/safemode.hxx>
#include <com/sun/star/frame/Desktop.hpp>
#include <com/sun/star/frame/XDesktop2.hpp>
using
namespace
css
;
SafeModeDialog
::
SafeModeDialog
(
vcl
::
Window
*
pParent
)
:
Dialog
(
pParent
,
"SafeModeDialog"
,
"svx/ui/safemodedialog.ui"
)
{
...
...
@@ -54,6 +60,12 @@ bool SafeModeDialog::Close()
return
Dialog
::
Close
();
}
void
SafeModeDialog
::
terminateOffice
()
{
uno
::
Reference
<
frame
::
XDesktop2
>
xDesktop
=
frame
::
Desktop
::
create
(
comphelper
::
getProcessComponentContext
()
);
xDesktop
->
terminate
();
}
IMPL_LINK
(
SafeModeDialog
,
BtnHdl
,
Button
*
,
pBtn
,
void
)
{
if
(
pBtn
==
mpBtnContinue
.
get
())
...
...
@@ -62,7 +74,7 @@ IMPL_LINK(SafeModeDialog, BtnHdl, Button*, pBtn, void)
}
else
if
(
pBtn
==
mpBtnQuit
.
get
())
{
Clos
e
();
terminateOffic
e
();
}
else
if
(
pBtn
==
mpBtnRestart
.
get
())
{
...
...
svx/source/dialog/SafeModeDialog.hxx
Dosyayı görüntüle @
d1f01dd4
...
...
@@ -38,6 +38,8 @@ private:
VclPtr
<
CheckBox
>
mpCBCustomizations
;
VclPtr
<
CheckBox
>
mpCBFull
;
static
void
terminateOffice
();
DECL_LINK
(
BtnHdl
,
Button
*
,
void
);
};
...
...
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