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
f003eba0
Kaydet (Commit)
f003eba0
authored
Kas 23, 2017
tarafından
Pranav Kant
Kaydeden (comit)
Jan Holesovsky
Kas 28, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
lokdialog: Let all modal dialogs notify about creation, disposal
Change-Id: I8ec0ad81abcf1adf628906b02f7f94ab74a550b5
üst
533e23cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
basedlgs.hxx
include/sfx2/basedlgs.hxx
+2
-0
basedlgs.cxx
sfx2/source/dialog/basedlgs.cxx
+24
-0
No files found.
include/sfx2/basedlgs.hxx
Dosyayı görüntüle @
f003eba0
...
...
@@ -71,6 +71,8 @@ protected:
public
:
virtual
~
SfxModalDialog
()
override
;
virtual
void
dispose
()
override
;
virtual
short
Execute
()
override
;
const
SfxItemSet
*
GetOutputItemSet
()
const
{
return
pOutputSet
;
}
const
SfxItemSet
*
GetInputItemSet
()
const
{
return
pInputSet
;
}
};
...
...
sfx2/source/dialog/basedlgs.cxx
Dosyayı görüntüle @
f003eba0
...
...
@@ -166,9 +166,33 @@ void SfxModalDialog::dispose()
{
SetDialogData_Impl
();
delete
pOutputSet
;
SfxViewShell
*
pViewShell
=
SfxViewShell
::
Current
();
if
(
comphelper
::
LibreOfficeKit
::
isActive
()
&&
pViewShell
)
{
pViewShell
->
notifyDialog
(
maID
,
"close"
);
pViewShell
->
UnregisterDlg
(
maID
);
}
ModalDialog
::
dispose
();
}
short
SfxModalDialog
::
Execute
()
{
SfxViewShell
*
pViewShell
=
SfxViewShell
::
Current
();
if
(
comphelper
::
LibreOfficeKit
::
isActive
()
&&
pViewShell
)
{
pViewShell
->
RegisterDlg
(
maID
,
this
);
registerDialogNotifier
(
static_cast
<
vcl
::
IDialogNotifier
*>
(
pViewShell
));
const
Size
aSize
=
GetOptimalSize
();
std
::
vector
<
vcl
::
LOKPayloadItem
>
aItems
;
aItems
.
emplace_back
(
std
::
make_pair
(
"size"
,
aSize
.
toString
()));
pViewShell
->
notifyDialog
(
maID
,
"created"
,
aItems
);
}
return
ModalDialog
::
Execute
();
}
void
SfxModalDialog
::
CreateOutputItemSet
(
SfxItemPool
&
rPool
)
{
DBG_ASSERT
(
!
pOutputSet
,
"Double creation of OutputSet!"
);
...
...
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