Window::Notify should return bool, redux
Change-Id: Ib41ed9ace428081e1948cf109de095ea9e7c45c2
This commit is contained in:
parent
ed1878d27e
commit
00d0a50e3b
@ -441,7 +441,7 @@ long EditBox::PreNotify( NotifyEvent& rNEvt )
|
|||||||
sal_uInt16 nKey=aKeyCode.GetCode();
|
sal_uInt16 nKey=aKeyCode.GetCode();
|
||||||
if( (nKey==KEY_RETURN && !aKeyCode.IsShift()) || nKey==KEY_TAB )
|
if( (nKey==KEY_RETURN && !aKeyCode.IsShift()) || nKey==KEY_TAB )
|
||||||
{
|
{
|
||||||
nResult=GetParent()->Notify(rNEvt);
|
nResult=long(GetParent()->Notify(rNEvt));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1719,7 +1719,7 @@ bool SvtFileDialog::Notify( NotifyEvent& rNEvt )
|
|||||||
|
|
||||||
{
|
{
|
||||||
sal_uInt16 nType = rNEvt.GetType();
|
sal_uInt16 nType = rNEvt.GetType();
|
||||||
long nRet = false;
|
bool nRet = false;
|
||||||
|
|
||||||
if ( EVENT_KEYINPUT == nType && rNEvt.GetKeyEvent() )
|
if ( EVENT_KEYINPUT == nType && rNEvt.GetKeyEvent() )
|
||||||
{
|
{
|
||||||
|
@ -185,7 +185,7 @@ public:
|
|||||||
virtual void MouseButtonDown(const MouseEvent& rMEvt, ::sd::Window* pWin);
|
virtual void MouseButtonDown(const MouseEvent& rMEvt, ::sd::Window* pWin);
|
||||||
virtual void Command(const CommandEvent& rCEvt, ::sd::Window* pWin);
|
virtual void Command(const CommandEvent& rCEvt, ::sd::Window* pWin);
|
||||||
virtual sal_Bool RequestHelp( const HelpEvent& rEvt, ::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);
|
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
|
// handle scroll commands when they arrived at child windows
|
||||||
long nRet = sal_False;
|
bool nRet = false;
|
||||||
if( rNEvt.GetType() == EVENT_COMMAND )
|
if( rNEvt.GetType() == EVENT_COMMAND )
|
||||||
{
|
{
|
||||||
// note: dynamic_cast is not possible as GetData() returns a void*
|
// note: dynamic_cast is not possible as GetData() returns a void*
|
||||||
|
@ -30,7 +30,7 @@ void NumEditAction::Action()
|
|||||||
|
|
||||||
bool NumEditAction::Notify( NotifyEvent& rNEvt )
|
bool NumEditAction::Notify( NotifyEvent& rNEvt )
|
||||||
{
|
{
|
||||||
long nHandled = false;
|
bool nHandled = false;
|
||||||
|
|
||||||
if ( rNEvt.GetType() == EVENT_KEYINPUT )
|
if ( rNEvt.GetType() == EVENT_KEYINPUT )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user