summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-17 16:40:50 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-17 16:42:29 +0100
commit04683f14883f4cd64febadd71b327639f1e7edcc (patch)
treed1195eec7abc45fcf3b28776278f3856638a4a32 /reportdesign
parent734cf8395d745db73f52fd6d625d7deb77ba6d40 (diff)
Window::Notify should return bool
Change-Id: I72081b1022582c8b6f95a611e21d9c78f7581efe
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/ui/inc/ScrollHelper.hxx2
-rw-r--r--reportdesign/source/ui/report/ScrollHelper.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/reportdesign/source/ui/inc/ScrollHelper.hxx b/reportdesign/source/ui/inc/ScrollHelper.hxx
index c2b0816cd921..51e178a904df 100644
--- a/reportdesign/source/ui/inc/ScrollHelper.hxx
+++ b/reportdesign/source/ui/inc/ScrollHelper.hxx
@@ -68,7 +68,7 @@ namespace rptui
virtual void DataChanged( const DataChangedEvent& rDCEvt );
// window
virtual void Resize();
- virtual long Notify( NotifyEvent& rNEvt );
+ virtual bool Notify( NotifyEvent& rNEvt );
// OPropertyChangeListener
virtual void _propertyChanged(const ::com::sun::star::beans::PropertyChangeEvent& _rEvent) throw( ::com::sun::star::uno::RuntimeException);
public:
diff --git a/reportdesign/source/ui/report/ScrollHelper.cxx b/reportdesign/source/ui/report/ScrollHelper.cxx
index ca153c51a2f0..ac9ae7a12776 100644
--- a/reportdesign/source/ui/report/ScrollHelper.cxx
+++ b/reportdesign/source/ui/report/ScrollHelper.cxx
@@ -317,7 +317,7 @@ void OScrollWindowHelper::collapseSections(const uno::Sequence< ::com::sun::star
m_aReportWindow.collapseSections(_aCollpasedSections);
}
//------------------------------------------------------------------------------
-long OScrollWindowHelper::Notify( NotifyEvent& rNEvt )
+bool OScrollWindowHelper::Notify( NotifyEvent& rNEvt )
{
const CommandEvent* pCommandEvent = rNEvt.GetCommandEvent();
if ( pCommandEvent &&
@@ -334,7 +334,7 @@ long OScrollWindowHelper::Notify( NotifyEvent& rNEvt )
pVScrBar = &m_aVScroll;
if ( HandleScrollCommand( *pCommandEvent, pHScrBar, pVScrBar ) )
- return 1L;
+ return true;
}
return OScrollWindowHelper_BASE::Notify(rNEvt);
}