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
b9542719
Kaydet (Commit)
b9542719
authored
May 03, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use typed TabControl::SetDeactivatePageHdl Link
Change-Id: I487aad5217cb685ece971717445a68b4fb3d2b3a
üst
468e6071
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
26 additions
and
27 deletions
+26
-27
propertyeditor.cxx
extensions/source/propctrlr/propertyeditor.cxx
+3
-3
propertyeditor.hxx
extensions/source/propctrlr/propertyeditor.hxx
+1
-1
xmlfiltertabdialog.cxx
filter/source/xsltdialog/xmlfiltertabdialog.cxx
+2
-2
xmlfiltertabdialog.hxx
filter/source/xsltdialog/xmlfiltertabdialog.hxx
+1
-1
fwktabwindow.hxx
framework/inc/classes/fwktabwindow.hxx
+1
-1
tabwindow.hxx
framework/inc/tabwin/tabwindow.hxx
+1
-1
fwktabwindow.cxx
framework/source/classes/fwktabwindow.cxx
+2
-2
tabwindow.cxx
framework/source/tabwin/tabwindow.cxx
+2
-2
tabdlg.hxx
include/sfx2/tabdlg.hxx
+1
-1
tabctrl.hxx
include/vcl/tabctrl.hxx
+2
-3
CustomAnimationCreateDialog.cxx
sd/source/ui/animations/CustomAnimationCreateDialog.cxx
+2
-2
CustomAnimationCreateDialog.hxx
sd/source/ui/animations/CustomAnimationCreateDialog.hxx
+1
-1
headerfooterdlg.cxx
sd/source/ui/dlg/headerfooterdlg.cxx
+2
-2
headerfooterdlg.hxx
sd/source/ui/inc/headerfooterdlg.hxx
+1
-1
tabdlg.cxx
sfx2/source/dialog/tabdlg.cxx
+4
-4
No files found.
extensions/source/propctrlr/propertyeditor.cxx
Dosyayı görüntüle @
b9542719
...
@@ -516,19 +516,19 @@ namespace pcr
...
@@ -516,19 +516,19 @@ namespace pcr
}
}
IMPL_LINK_NOARG
(
OPropertyEditor
,
OnPageDeactivate
)
IMPL_LINK_NOARG
_TYPED
(
OPropertyEditor
,
OnPageDeactivate
,
TabControl
*
,
bool
)
{
{
// commit the data on the current (to-be-decativated) tab page
// commit the data on the current (to-be-decativated) tab page
// (79404)
// (79404)
sal_Int32
nCurrentId
=
m_aTabControl
->
GetCurPageId
();
sal_Int32
nCurrentId
=
m_aTabControl
->
GetCurPageId
();
OBrowserPage
*
pCurrentPage
=
static_cast
<
OBrowserPage
*>
(
m_aTabControl
->
GetTabPage
((
sal_uInt16
)
nCurrentId
));
OBrowserPage
*
pCurrentPage
=
static_cast
<
OBrowserPage
*>
(
m_aTabControl
->
GetTabPage
((
sal_uInt16
)
nCurrentId
));
if
(
!
pCurrentPage
)
if
(
!
pCurrentPage
)
return
1L
;
return
true
;
if
(
pCurrentPage
->
getListBox
().
IsModified
()
)
if
(
pCurrentPage
->
getListBox
().
IsModified
()
)
pCurrentPage
->
getListBox
().
CommitModified
();
pCurrentPage
->
getListBox
().
CommitModified
();
return
1L
;
return
true
;
}
}
...
...
extensions/source/propctrlr/propertyeditor.hxx
Dosyayı görüntüle @
b9542719
...
@@ -139,7 +139,7 @@ namespace pcr
...
@@ -139,7 +139,7 @@ namespace pcr
void
setHelpLineLimits
(
OBrowserPage
&
_rPage
,
const
void
*
);
void
setHelpLineLimits
(
OBrowserPage
&
_rPage
,
const
void
*
);
protected
:
protected
:
DECL_LINK
(
OnPageDeactivate
,
void
*
);
DECL_LINK
_TYPED
(
OnPageDeactivate
,
TabControl
*
,
bool
);
DECL_LINK
(
OnPageActivate
,
void
*
);
DECL_LINK
(
OnPageActivate
,
void
*
);
};
};
...
...
filter/source/xsltdialog/xmlfiltertabdialog.cxx
Dosyayı görüntüle @
b9542719
...
@@ -305,9 +305,9 @@ IMPL_LINK( XMLFilterTabDialog, ActivatePageHdl, TabControl *, pTabCtrl )
...
@@ -305,9 +305,9 @@ IMPL_LINK( XMLFilterTabDialog, ActivatePageHdl, TabControl *, pTabCtrl )
IMPL_LINK
(
XMLFilterTabDialog
,
DeactivatePageHdl
,
TabControl
*
,
/* pTabCtrl */
)
IMPL_LINK
_NOARG_TYPED
(
XMLFilterTabDialog
,
DeactivatePageHdl
,
TabControl
*
,
bool
)
{
{
return
sal_T
rue
;
return
t
rue
;
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
filter/source/xsltdialog/xmlfiltertabdialog.hxx
Dosyayı görüntüle @
b9542719
...
@@ -46,7 +46,7 @@ private:
...
@@ -46,7 +46,7 @@ private:
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
uno
::
XComponentContext
>
mxContext
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
uno
::
XComponentContext
>
mxContext
;
DECL_LINK
(
ActivatePageHdl
,
TabControl
*
);
DECL_LINK
(
ActivatePageHdl
,
TabControl
*
);
DECL_LINK
(
DeactivatePageHdl
,
TabControl
*
);
DECL_LINK
_TYPED
(
DeactivatePageHdl
,
TabControl
*
,
bool
);
DECL_LINK
(
OkHdl
,
void
*
);
DECL_LINK
(
OkHdl
,
void
*
);
ResMgr
&
mrResMgr
;
ResMgr
&
mrResMgr
;
...
...
framework/inc/classes/fwktabwindow.hxx
Dosyayı görüntüle @
b9542719
...
@@ -105,7 +105,7 @@ private:
...
@@ -105,7 +105,7 @@ private:
bool
RemoveEntry
(
sal_Int32
nIndex
);
bool
RemoveEntry
(
sal_Int32
nIndex
);
DECL_DLLPRIVATE_LINK
(
ActivatePageHdl
,
void
*
);
DECL_DLLPRIVATE_LINK
(
ActivatePageHdl
,
void
*
);
DECL_DLLPRIVATE_LINK
(
DeactivatePageHdl
,
void
*
);
DECL_DLLPRIVATE_LINK
_TYPED
(
DeactivatePageHdl
,
TabControl
*
,
bool
);
public
:
public
:
FwkTabWindow
(
vcl
::
Window
*
pParent
);
FwkTabWindow
(
vcl
::
Window
*
pParent
);
...
...
framework/inc/tabwin/tabwindow.hxx
Dosyayı görüntüle @
b9542719
...
@@ -110,7 +110,7 @@ class TabWindow : public ::com::sun::star::lang::XTypeProvider ,
...
@@ -110,7 +110,7 @@ class TabWindow : public ::com::sun::star::lang::XTypeProvider ,
protected
:
protected
:
DECL_LINK
(
Activate
,
TabControl
*
);
DECL_LINK
(
Activate
,
TabControl
*
);
DECL_LINK
(
Deactivate
,
TabControl
*
);
DECL_LINK
_TYPED
(
Deactivate
,
TabControl
*
,
bool
);
private
:
private
:
...
...
framework/source/classes/fwktabwindow.cxx
Dosyayı görüntüle @
b9542719
...
@@ -278,10 +278,10 @@ IMPL_LINK_NOARG(FwkTabWindow, ActivatePageHdl)
...
@@ -278,10 +278,10 @@ IMPL_LINK_NOARG(FwkTabWindow, ActivatePageHdl)
return
1
;
return
1
;
}
}
IMPL_LINK_NOARG
(
FwkTabWindow
,
DeactivatePageHd
l
)
IMPL_LINK_NOARG
_TYPED
(
FwkTabWindow
,
DeactivatePageHdl
,
TabControl
*
,
boo
l
)
{
{
m_aTabCtrl
->
BroadcastEvent
(
VCLEVENT_TABPAGE_DEACTIVATE
);
m_aTabCtrl
->
BroadcastEvent
(
VCLEVENT_TABPAGE_DEACTIVATE
);
return
1
;
return
true
;
}
}
void
FwkTabWindow
::
AddEventListener
(
const
Link
<>&
rEventListener
)
void
FwkTabWindow
::
AddEventListener
(
const
Link
<>&
rEventListener
)
...
...
framework/source/tabwin/tabwindow.cxx
Dosyayı görüntüle @
b9542719
...
@@ -243,7 +243,7 @@ IMPL_LINK( TabWindow, Activate, TabControl*, pTabControl )
...
@@ -243,7 +243,7 @@ IMPL_LINK( TabWindow, Activate, TabControl*, pTabControl )
return
1
;
return
1
;
}
}
IMPL_LINK
(
TabWindow
,
Deactivate
,
TabControl
*
,
pTabContr
ol
)
IMPL_LINK
_TYPED
(
TabWindow
,
Deactivate
,
TabControl
*
,
pTabControl
,
bo
ol
)
{
{
/* SAFE AREA ----------------------------------------------------------------------------------------------- */
/* SAFE AREA ----------------------------------------------------------------------------------------------- */
SolarMutexClearableGuard
aLock
;
SolarMutexClearableGuard
aLock
;
...
@@ -253,7 +253,7 @@ IMPL_LINK( TabWindow, Deactivate, TabControl*, pTabControl )
...
@@ -253,7 +253,7 @@ IMPL_LINK( TabWindow, Deactivate, TabControl*, pTabControl )
implts_SendNotification
(
NOTIFY_DEACTIVATED
,
nPageId
);
implts_SendNotification
(
NOTIFY_DEACTIVATED
,
nPageId
);
return
1
;
return
true
;
}
}
// XInitilization
// XInitilization
...
...
include/sfx2/tabdlg.hxx
Dosyayı görüntüle @
b9542719
...
@@ -90,7 +90,7 @@ friend class SfxTabDialogController;
...
@@ -90,7 +90,7 @@ friend class SfxTabDialogController;
bool
bStandardPushed
;
bool
bStandardPushed
;
DECL_DLLPRIVATE_LINK
(
ActivatePageHdl
,
TabControl
*
);
DECL_DLLPRIVATE_LINK
(
ActivatePageHdl
,
TabControl
*
);
DECL_DLLPRIVATE_LINK
(
DeactivatePageHdl
,
TabControl
*
);
DECL_DLLPRIVATE_LINK
_TYPED
(
DeactivatePageHdl
,
TabControl
*
,
bool
);
DECL_DLLPRIVATE_LINK
(
OkHdl
,
void
*
);
DECL_DLLPRIVATE_LINK
(
OkHdl
,
void
*
);
DECL_DLLPRIVATE_LINK
(
ResetHdl
,
void
*
);
DECL_DLLPRIVATE_LINK
(
ResetHdl
,
void
*
);
DECL_DLLPRIVATE_LINK
(
BaseFmtHdl
,
void
*
);
DECL_DLLPRIVATE_LINK
(
BaseFmtHdl
,
void
*
);
...
...
include/vcl/tabctrl.hxx
Dosyayı görüntüle @
b9542719
...
@@ -50,7 +50,7 @@ private:
...
@@ -50,7 +50,7 @@ private:
bool
mbSmallInvalidate
;
bool
mbSmallInvalidate
;
bool
mbLayoutDirty
;
bool
mbLayoutDirty
;
Link
<>
maActivateHdl
;
Link
<>
maActivateHdl
;
Link
<
>
maDeactivateHdl
;
Link
<
TabControl
*
,
bool
>
maDeactivateHdl
;
using
Control
::
ImplInitSettings
;
using
Control
::
ImplInitSettings
;
SAL_DLLPRIVATE
void
ImplInitSettings
(
bool
bFont
,
bool
bForeground
,
bool
bBackground
);
SAL_DLLPRIVATE
void
ImplInitSettings
(
bool
bFont
,
bool
bForeground
,
bool
bBackground
);
...
@@ -162,8 +162,7 @@ public:
...
@@ -162,8 +162,7 @@ public:
void
SetActivatePageHdl
(
const
Link
<>&
rLink
)
{
maActivateHdl
=
rLink
;
}
void
SetActivatePageHdl
(
const
Link
<>&
rLink
)
{
maActivateHdl
=
rLink
;
}
const
Link
<>&
GetActivatePageHdl
()
const
{
return
maActivateHdl
;
}
const
Link
<>&
GetActivatePageHdl
()
const
{
return
maActivateHdl
;
}
void
SetDeactivatePageHdl
(
const
Link
<>&
rLink
)
{
maDeactivateHdl
=
rLink
;
}
void
SetDeactivatePageHdl
(
const
Link
<
TabControl
*
,
bool
>&
rLink
)
{
maDeactivateHdl
=
rLink
;
}
const
Link
<>&
GetDeactivatePageHdl
()
const
{
return
maDeactivateHdl
;
}
// returns (control relative) bounding rectangle for the
// returns (control relative) bounding rectangle for the
// character at index nIndex relative to the text of page nPageId
// character at index nIndex relative to the text of page nPageId
...
...
sd/source/ui/animations/CustomAnimationCreateDialog.cxx
Dosyayı görüntüle @
b9542719
...
@@ -599,11 +599,11 @@ IMPL_LINK_NOARG(CustomAnimationCreateDialog, implActivatePagekHdl)
...
@@ -599,11 +599,11 @@ IMPL_LINK_NOARG(CustomAnimationCreateDialog, implActivatePagekHdl)
return
1
;
return
1
;
}
}
IMPL_LINK_NOARG
(
CustomAnimationCreateDialog
,
implDeactivatePagekHd
l
)
IMPL_LINK_NOARG
_TYPED
(
CustomAnimationCreateDialog
,
implDeactivatePagekHdl
,
TabControl
*
,
boo
l
)
{
{
mfDuration
=
getCurrentPage
()
->
getDuration
();
mfDuration
=
getCurrentPage
()
->
getDuration
();
mbIsPreview
=
getCurrentPage
()
->
getIsPreview
();
mbIsPreview
=
getCurrentPage
()
->
getIsPreview
();
return
1
;
return
true
;
}
}
void
CustomAnimationCreateDialog
::
preview
(
const
CustomAnimationPresetPtr
&
pPreset
)
const
void
CustomAnimationCreateDialog
::
preview
(
const
CustomAnimationPresetPtr
&
pPreset
)
const
...
...
sd/source/ui/animations/CustomAnimationCreateDialog.hxx
Dosyayı görüntüle @
b9542719
...
@@ -54,7 +54,7 @@ private:
...
@@ -54,7 +54,7 @@ private:
void
storePosition
();
void
storePosition
();
DECL_LINK
(
implActivatePagekHdl
,
void
*
);
DECL_LINK
(
implActivatePagekHdl
,
void
*
);
DECL_LINK
(
implDeactivatePagekHdl
,
void
*
);
DECL_LINK
_TYPED
(
implDeactivatePagekHdl
,
TabControl
*
,
bool
);
private
:
private
:
VclPtr
<
CustomAnimationPane
>
mpPane
;
VclPtr
<
CustomAnimationPane
>
mpPane
;
...
...
sd/source/ui/dlg/headerfooterdlg.cxx
Dosyayı görüntüle @
b9542719
...
@@ -266,9 +266,9 @@ IMPL_LINK( HeaderFooterDialog, ActivatePageHdl, TabControl *, pTabCtrl )
...
@@ -266,9 +266,9 @@ IMPL_LINK( HeaderFooterDialog, ActivatePageHdl, TabControl *, pTabCtrl )
return
0
;
return
0
;
}
}
IMPL_LINK_NOARG
(
HeaderFooterDialog
,
DeactivatePageHd
l
)
IMPL_LINK_NOARG
_TYPED
(
HeaderFooterDialog
,
DeactivatePageHdl
,
TabControl
*
,
boo
l
)
{
{
return
sal_T
rue
;
return
t
rue
;
}
}
IMPL_LINK_NOARG
(
HeaderFooterDialog
,
ClickApplyToAllHdl
)
IMPL_LINK_NOARG
(
HeaderFooterDialog
,
ClickApplyToAllHdl
)
...
...
sd/source/ui/inc/headerfooterdlg.hxx
Dosyayı görüntüle @
b9542719
...
@@ -38,7 +38,7 @@ class HeaderFooterDialog : public TabDialog
...
@@ -38,7 +38,7 @@ class HeaderFooterDialog : public TabDialog
{
{
private
:
private
:
DECL_LINK
(
ActivatePageHdl
,
TabControl
*
);
DECL_LINK
(
ActivatePageHdl
,
TabControl
*
);
DECL_LINK
(
DeactivatePageHdl
,
void
*
);
DECL_LINK
_TYPED
(
DeactivatePageHdl
,
TabControl
*
,
bool
);
DECL_LINK
(
ClickApplyToAllHdl
,
void
*
);
DECL_LINK
(
ClickApplyToAllHdl
,
void
*
);
DECL_LINK
(
ClickApplyHdl
,
void
*
);
DECL_LINK
(
ClickApplyHdl
,
void
*
);
...
...
sfx2/source/dialog/tabdlg.cxx
Dosyayı görüntüle @
b9542719
...
@@ -1193,7 +1193,7 @@ IMPL_LINK( SfxTabDialog, ActivatePageHdl, TabControl *, pTabCtrl )
...
@@ -1193,7 +1193,7 @@ IMPL_LINK( SfxTabDialog, ActivatePageHdl, TabControl *, pTabCtrl )
IMPL_LINK
(
SfxTabDialog
,
DeactivatePageHdl
,
TabControl
*
,
pTabCtr
l
)
IMPL_LINK
_TYPED
(
SfxTabDialog
,
DeactivatePageHdl
,
TabControl
*
,
pTabCtrl
,
boo
l
)
/* [Description]
/* [Description]
...
@@ -1210,7 +1210,7 @@ IMPL_LINK( SfxTabDialog, DeactivatePageHdl, TabControl *, pTabCtrl )
...
@@ -1210,7 +1210,7 @@ IMPL_LINK( SfxTabDialog, DeactivatePageHdl, TabControl *, pTabCtrl )
SfxTabPage
*
pPage
=
dynamic_cast
<
SfxTabPage
*>
(
pTabCtrl
->
GetTabPage
(
nId
));
SfxTabPage
*
pPage
=
dynamic_cast
<
SfxTabPage
*>
(
pTabCtrl
->
GetTabPage
(
nId
));
DBG_ASSERT
(
pPage
,
"no active Page"
);
DBG_ASSERT
(
pPage
,
"no active Page"
);
if
(
!
pPage
)
if
(
!
pPage
)
return
sal_F
alse
;
return
f
alse
;
#ifdef DBG_UTIL
#ifdef DBG_UTIL
Data_Impl
*
pDataObject
=
Find
(
pImpl
->
aData
,
pTabCtrl
->
GetCurPageId
()
);
Data_Impl
*
pDataObject
=
Find
(
pImpl
->
aData
,
pTabCtrl
->
GetCurPageId
()
);
DBG_ASSERT
(
pDataObject
,
"no Data structure for current page"
);
DBG_ASSERT
(
pDataObject
,
"no Data structure for current page"
);
...
@@ -1272,9 +1272,9 @@ IMPL_LINK( SfxTabDialog, DeactivatePageHdl, TabControl *, pTabCtrl )
...
@@ -1272,9 +1272,9 @@ IMPL_LINK( SfxTabDialog, DeactivatePageHdl, TabControl *, pTabCtrl )
}
}
}
}
if
(
nRet
&
SfxTabPage
::
LEAVE_PAGE
)
if
(
nRet
&
SfxTabPage
::
LEAVE_PAGE
)
return
sal_T
rue
;
return
t
rue
;
else
else
return
sal_F
alse
;
return
f
alse
;
}
}
...
...
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