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
d2d58644
Kaydet (Commit)
d2d58644
authored
Şub 06, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
TabControl::DeactivatePage should return bool
Change-Id: I9fb774a235db2b9bc759976d2d3f84363ed944ec
üst
697e84f5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
14 deletions
+6
-14
dlg_DataSource.cxx
chart2/source/controller/dialogs/dlg_DataSource.cxx
+3
-8
tabctrl.hxx
include/vcl/tabctrl.hxx
+1
-1
tabctrl.cxx
vcl/source/control/tabctrl.cxx
+2
-5
No files found.
chart2/source/controller/dialogs/dlg_DataSource.cxx
Dosyayı görüntüle @
d2d58644
...
...
@@ -86,7 +86,7 @@ class DataSourceTabControl : public TabControl
public
:
DataSourceTabControl
(
Window
*
pParent
);
virtual
long
DeactivatePage
()
;
virtual
bool
DeactivatePage
()
SAL_OVERRIDE
;
void
DisableTabToggling
();
void
EnableTabToggling
();
...
...
@@ -101,14 +101,9 @@ DataSourceTabControl::DataSourceTabControl(Window* pParent)
{
}
// Note that the result is long, but is intended to be a bool
long
DataSourceTabControl
::
DeactivatePage
()
bool
DataSourceTabControl
::
DeactivatePage
()
{
bool
bCanDeactivate
(
TabControl
::
DeactivatePage
()
!=
0
);
bCanDeactivate
=
(
bCanDeactivate
&&
m_bTogglingEnabled
);
return
(
bCanDeactivate
?
1
:
0
);
return
TabControl
::
DeactivatePage
()
&&
m_bTogglingEnabled
;
}
void
DataSourceTabControl
::
DisableTabToggling
()
...
...
include/vcl/tabctrl.hxx
Dosyayı görüntüle @
d2d58644
...
...
@@ -100,7 +100,7 @@ public:
virtual
bool
PreNotify
(
NotifyEvent
&
rNEvt
);
virtual
void
ActivatePage
();
virtual
long
DeactivatePage
();
virtual
bool
DeactivatePage
();
virtual
Size
GetOptimalSize
()
const
;
...
...
vcl/source/control/tabctrl.cxx
Dosyayı görüntüle @
d2d58644
...
...
@@ -1698,12 +1698,9 @@ void TabControl::ActivatePage()
// -----------------------------------------------------------------------
long
TabControl
::
DeactivatePage
()
bool
TabControl
::
DeactivatePage
()
{
if
(
maDeactivateHdl
.
IsSet
()
)
return
maDeactivateHdl
.
Call
(
this
);
else
return
sal_True
;
return
!
maDeactivateHdl
.
IsSet
()
||
maDeactivateHdl
.
Call
(
this
);
}
// -----------------------------------------------------------------------
...
...
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