Kaydet (Commit) 00d0a50e authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Window::Notify should return bool, redux

Change-Id: Ib41ed9ace428081e1948cf109de095ea9e7c45c2
üst ed1878d2
......@@ -441,7 +441,7 @@ long EditBox::PreNotify( NotifyEvent& rNEvt )
sal_uInt16 nKey=aKeyCode.GetCode();
if( (nKey==KEY_RETURN && !aKeyCode.IsShift()) || nKey==KEY_TAB )
{
nResult=GetParent()->Notify(rNEvt);
nResult=long(GetParent()->Notify(rNEvt));
}
else
{
......
......@@ -1719,7 +1719,7 @@ bool SvtFileDialog::Notify( NotifyEvent& rNEvt )
{
sal_uInt16 nType = rNEvt.GetType();
long nRet = false;
bool nRet = false;
if ( EVENT_KEYINPUT == nType && rNEvt.GetKeyEvent() )
{
......
......@@ -185,7 +185,7 @@ public:
virtual void MouseButtonDown(const MouseEvent& rMEvt, ::sd::Window* pWin);
virtual void Command(const CommandEvent& rCEvt, ::sd::Window* pWin);
virtual sal_Bool RequestHelp( const HelpEvent& rEvt, ::sd::Window* pWin );
virtual long Notify( NotifyEvent& rNEvt, ::sd::Window* pWin );
virtual bool Notify( NotifyEvent& rNEvt, ::sd::Window* pWin );
virtual bool HandleScrollCommand(const CommandEvent& rCEvt, ::sd::Window* pWin);
......
......@@ -623,10 +623,10 @@ void ViewShell::Command(const CommandEvent& rCEvt, ::sd::Window* pWin)
}
}
long ViewShell::Notify(NotifyEvent& rNEvt, ::sd::Window* pWin)
bool ViewShell::Notify(NotifyEvent& rNEvt, ::sd::Window* pWin)
{
// handle scroll commands when they arrived at child windows
long nRet = sal_False;
bool nRet = false;
if( rNEvt.GetType() == EVENT_COMMAND )
{
// note: dynamic_cast is not possible as GetData() returns a void*
......
......@@ -30,7 +30,7 @@ void NumEditAction::Action()
bool NumEditAction::Notify( NotifyEvent& rNEvt )
{
long nHandled = false;
bool nHandled = false;
if ( rNEvt.GetType() == EVENT_KEYINPUT )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment