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
98236528
Kaydet (Commit)
98236528
authored
Eyl 15, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert Link<> to typed
Change-Id: I5c4021c9cb3fdeace7f7d99d580dc7fe2f7c354a
üst
662084d5
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
16 additions
and
18 deletions
+16
-18
closedispatcher.cxx
framework/source/dispatch/closedispatcher.cxx
+1
-1
syswin.hxx
include/vcl/syswin.hxx
+2
-2
prevwsh.hxx
sc/source/ui/inc/prevwsh.hxx
+1
-1
prevwsh.cxx
sc/source/ui/view/prevwsh.cxx
+2
-3
RemoteDialog.cxx
sd/source/ui/dlg/RemoteDialog.cxx
+3
-4
RemoteDialog.hxx
sd/source/ui/dlg/RemoteDialog.hxx
+1
-1
syswin.cxx
vcl/source/window/syswin.cxx
+4
-4
winproc.cxx
vcl/source/window/winproc.cxx
+2
-2
No files found.
framework/source/dispatch/closedispatcher.cxx
Dosyayı görüntüle @
98236528
...
...
@@ -186,7 +186,7 @@ void SAL_CALL CloseDispatcher::dispatchWithNotification(const css::util::URL&
if
(
m_pSysWindow
&&
m_pSysWindow
->
GetCloseHdl
().
IsSet
())
{
// The closing frame has its own close handler. Call it instead.
m_pSysWindow
->
GetCloseHdl
().
Call
(
m_pSysWindow
);
m_pSysWindow
->
GetCloseHdl
().
Call
(
*
m_pSysWindow
);
return
;
}
...
...
include/vcl/syswin.hxx
Dosyayı görüntüle @
98236528
...
...
@@ -279,8 +279,8 @@ public:
void
SetApplicationID
(
const
OUString
&
rApplicationID
);
void
SetCloseHdl
(
const
Link
<>&
rLink
);
const
Link
<>&
GetCloseHdl
()
const
;
void
SetCloseHdl
(
const
Link
<
SystemWindow
&
,
void
>&
rLink
);
const
Link
<
SystemWindow
&
,
void
>&
GetCloseHdl
()
const
;
SAL_DLLPRIVATE
bool
hasPendingLayout
()
const
{
return
maLayoutIdle
.
IsActive
();
}
...
...
sc/source/ui/inc/prevwsh.hxx
Dosyayı görüntüle @
98236528
...
...
@@ -56,7 +56,7 @@ class ScPreviewShell: public SfxViewShell
private
:
void
Construct
(
vcl
::
Window
*
pParent
);
DECL_LINK_TYPED
(
ScrollHandler
,
ScrollBar
*
,
void
);
DECL_LINK
(
CloseHdl
,
SystemWindow
*
);
DECL_LINK
_TYPED
(
CloseHdl
,
SystemWindow
&
,
void
);
void
DoScroll
(
sal_uInt16
nMode
);
void
ExitPreview
();
...
...
sc/source/ui/view/prevwsh.cxx
Dosyayı görüntüle @
98236528
...
...
@@ -184,7 +184,7 @@ ScPreviewShell::ScPreviewShell( SfxViewFrame* pViewFrame,
ScPreviewShell
::~
ScPreviewShell
()
{
if
(
mpFrameWindow
)
mpFrameWindow
->
SetCloseHdl
(
Link
<>
());
// Remove close handler.
mpFrameWindow
->
SetCloseHdl
(
Link
<
SystemWindow
&
,
void
>
());
// Remove close handler.
// #108333#; notify Accessibility that Shell is dying and before destroy all
BroadcastAccessibility
(
SfxSimpleHint
(
SFX_HINT_DYING
)
);
...
...
@@ -480,10 +480,9 @@ IMPL_LINK_TYPED( ScPreviewShell, ScrollHandler, ScrollBar*, pScroll, void )
}
}
IMPL_LINK
(
ScPreviewShell
,
CloseHdl
,
SystemWindow
*
,
)
IMPL_LINK
_NOARG_TYPED
(
ScPreviewShell
,
CloseHdl
,
SystemWindow
&
,
void
)
{
ExitPreview
();
return
0
;
}
bool
ScPreviewShell
::
ScrollCommand
(
const
CommandEvent
&
rCEvt
)
...
...
sd/source/ui/dlg/RemoteDialog.cxx
Dosyayı görüntüle @
98236528
...
...
@@ -55,22 +55,21 @@ IMPL_LINK_NOARG_TYPED(RemoteDialog, HandleConnectButton, Button*, void)
OUString
aPin
(
m_pClientBox
->
getPin
()
);
if
(
RemoteServer
::
connectClient
(
aEntry
->
m_pClientInfo
,
aPin
)
)
{
CloseHdl
(
0
);
CloseHdl
(
*
this
);
}
#endif
}
IMPL_LINK_NOARG_TYPED
(
RemoteDialog
,
CloseClickHdl
,
Button
*
,
void
)
{
CloseHdl
(
NULL
);
CloseHdl
(
*
this
);
}
IMPL_LINK_NOARG
(
RemoteDialog
,
CloseHdl
)
IMPL_LINK_NOARG
_TYPED
(
RemoteDialog
,
CloseHdl
,
SystemWindow
&
,
void
)
{
#ifdef ENABLE_SDREMOTE
RemoteServer
::
restoreDiscoverable
();
#endif
Close
();
return
0
;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sd/source/ui/dlg/RemoteDialog.hxx
Dosyayı görüntüle @
98236528
...
...
@@ -29,7 +29,7 @@ private:
VclPtr
<
ClientBox
>
m_pClientBox
;
DECL_DLLPRIVATE_LINK_TYPED
(
HandleConnectButton
,
Button
*
,
void
);
DECL_LINK
(
CloseHdl
,
void
*
);
DECL_LINK
_TYPED
(
CloseHdl
,
SystemWindow
&
,
void
);
DECL_LINK_TYPED
(
CloseClickHdl
,
Button
*
,
void
);
public
:
RemoteDialog
(
vcl
::
Window
*
pWindow
);
...
...
vcl/source/window/syswin.cxx
Dosyayı görüntüle @
98236528
...
...
@@ -50,8 +50,8 @@ public:
TaskPaneList
*
mpTaskPaneList
;
Size
maMaxOutSize
;
OUString
maRepresentedURL
;
Link
<>
maCloseHdl
;
OUString
maRepresentedURL
;
Link
<
SystemWindow
&
,
void
>
maCloseHdl
;
};
SystemWindow
::
ImplData
::
ImplData
()
...
...
@@ -1001,12 +1001,12 @@ void SystemWindow::SetApplicationID(const OUString &rApplicationID)
mpWindowImpl
->
mpFrame
->
SetApplicationID
(
rApplicationID
);
}
void
SystemWindow
::
SetCloseHdl
(
const
Link
<>&
rLink
)
void
SystemWindow
::
SetCloseHdl
(
const
Link
<
SystemWindow
&
,
void
>&
rLink
)
{
mpImplData
->
maCloseHdl
=
rLink
;
}
const
Link
<>&
SystemWindow
::
GetCloseHdl
()
const
const
Link
<
SystemWindow
&
,
void
>&
SystemWindow
::
GetCloseHdl
()
const
{
return
mpImplData
->
maCloseHdl
;
}
...
...
vcl/source/window/winproc.cxx
Dosyayı görüntüle @
98236528
...
...
@@ -1981,10 +1981,10 @@ void ImplHandleClose( vcl::Window* pWindow )
if
(
pSysWin
)
{
// See if the custom close handler is set.
const
Link
<>&
rLink
=
pSysWin
->
GetCloseHdl
();
const
Link
<
SystemWindow
&
,
void
>&
rLink
=
pSysWin
->
GetCloseHdl
();
if
(
rLink
.
IsSet
())
{
rLink
.
Call
(
pSysWin
);
rLink
.
Call
(
*
pSysWin
);
return
;
}
}
...
...
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