diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-17 16:40:50 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-17 16:42:29 +0100 |
commit | 04683f14883f4cd64febadd71b327639f1e7edcc (patch) | |
tree | d1195eec7abc45fcf3b28776278f3856638a4a32 /basctl | |
parent | VML import: fix height of textboxes when border distance is non-zero (diff) | |
download | core-04683f14883f4cd64febadd71b327639f1e7edcc.tar.gz core-04683f14883f4cd64febadd71b327639f1e7edcc.zip |
Window::Notify should return bool
Change-Id: I72081b1022582c8b6f95a611e21d9c78f7581efe
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/bastypes.cxx | 8 | ||||
-rw-r--r-- | basctl/source/inc/bastypes.hxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/basctl/source/basicide/bastypes.cxx b/basctl/source/basicide/bastypes.cxx index b175f219e5bd..da1cac7e2a08 100644 --- a/basctl/source/basicide/bastypes.cxx +++ b/basctl/source/basicide/bastypes.cxx @@ -121,9 +121,9 @@ void BaseWindow::ExecuteGlobal (SfxRequest&) { } -long BaseWindow::Notify( NotifyEvent& rNEvt ) +bool BaseWindow::Notify( NotifyEvent& rNEvt ) { - long nDone = 0; + bool nDone = false; if ( rNEvt.GetType() == EVENT_KEYINPUT ) { @@ -140,14 +140,14 @@ long BaseWindow::Notify( NotifyEvent& rNEvt ) { if (Shell* pShell = GetShell()) pShell->NextPage( nCode == KEY_PAGEUP ); - nDone = 1; + nDone = true; } } break; } } - return nDone ? nDone : Window::Notify( rNEvt ); + return nDone || Window::Notify( rNEvt ); } diff --git a/basctl/source/inc/bastypes.hxx b/basctl/source/inc/bastypes.hxx index b5bb4004cac7..eb6d0ac42b3d 100644 --- a/basctl/source/inc/bastypes.hxx +++ b/basctl/source/inc/bastypes.hxx @@ -181,7 +181,7 @@ public: virtual void ExecuteCommand (SfxRequest&); virtual void ExecuteGlobal (SfxRequest&); virtual void GetState (SfxItemSet&) = 0; - virtual long Notify( NotifyEvent& rNEvt ); + virtual bool Notify( NotifyEvent& rNEvt ); virtual void StoreData(); virtual void UpdateData(); |