diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-18 00:18:52 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-18 00:37:49 +0100 |
commit | 602c87b4259d118e5db6d8a990c4695103f916dd (patch) | |
tree | 1cbc6cf8309b680476f5116cd5320f8f6a99c32a /include | |
parent | 849482c0ea88c4aa70ec56adfefe7e59b6060950 (diff) |
Window::PreNotify should return bool
Change-Id: Ic9903fd887f2c3fab2630ebeb20df39392177c8d
Diffstat (limited to 'include')
27 files changed, 50 insertions, 50 deletions
diff --git a/include/dbaccess/dataview.hxx b/include/dbaccess/dataview.hxx index a8f3fb1e7eca..94cfa9399c0d 100644 --- a/include/dbaccess/dataview.hxx +++ b/include/dbaccess/dataview.hxx @@ -53,7 +53,7 @@ namespace dbaui // initialize will be called when after the controller finished his initialize method virtual void initialize(){} // window overridables - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual void StateChanged( StateChangedType nStateChange ); virtual void DataChanged( const DataChangedEvent& rDCEvt ); diff --git a/include/formula/formula.hxx b/include/formula/formula.hxx index fc0c8b3f00b4..683a9e3f93d0 100644 --- a/include/formula/formula.hxx +++ b/include/formula/formula.hxx @@ -64,7 +64,7 @@ private: protected: - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); ::std::pair<RefButton*,RefEdit*> RefInputStartBefore( RefEdit* pEdit, RefButton* pButton = NULL ); void RefInputStartAfter( RefEdit* pEdit, RefButton* pButton = NULL ); void RefInputDoneAfter( sal_Bool bForced = sal_False ); @@ -108,7 +108,7 @@ protected: protected: - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); ::std::pair<RefButton*,RefEdit*> RefInputStartBefore( RefEdit* pEdit, RefButton* pButton = NULL ); void RefInputStartAfter( RefEdit* pEdit, RefButton* pButton = NULL ); void RefInputDoneAfter( sal_Bool bForced = sal_False ); diff --git a/include/svtools/addresstemplate.hxx b/include/svtools/addresstemplate.hxx index 254318777a3d..7985bd6817fe 100644 --- a/include/svtools/addresstemplate.hxx +++ b/include/svtools/addresstemplate.hxx @@ -108,7 +108,7 @@ namespace svt void implConstruct(); // Window overridables - virtual long PreNotify( NotifyEvent& _rNEvt ); + virtual bool PreNotify( NotifyEvent& _rNEvt ); // implementations void implScrollFields(sal_Int32 _nPos, sal_Bool _bAdjustFocus, sal_Bool _bAdjustScrollbar); diff --git a/include/svtools/editbrowsebox.hxx b/include/svtools/editbrowsebox.hxx index e28513efdc29..6d36aeaa8267 100644 --- a/include/svtools/editbrowsebox.hxx +++ b/include/svtools/editbrowsebox.hxx @@ -203,7 +203,7 @@ namespace svt protected: // Window overridables - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); // MultiLineEdit overridables virtual void Modify(); @@ -288,7 +288,7 @@ namespace svt ~CheckBoxControl(); virtual void GetFocus(); - virtual long PreNotify(NotifyEvent& rEvt); + virtual bool PreNotify(NotifyEvent& rEvt); virtual void Paint(const Rectangle& rClientRect); virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags ); virtual void StateChanged( StateChangedType nStateChange ); @@ -337,7 +337,7 @@ namespace svt ComboBoxControl(Window* pParent, WinBits nWinStyle = 0); protected: - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); }; //================================================================== @@ -370,7 +370,7 @@ namespace svt ListBoxControl(Window* pParent, WinBits nWinStyle = 0); protected: - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); }; //================================================================== @@ -528,7 +528,7 @@ namespace svt using BrowseBox::MouseButtonUp; using BrowseBox::MouseButtonDown; - virtual long PreNotify(NotifyEvent& rNEvt ); + virtual bool PreNotify(NotifyEvent& rNEvt ); virtual bool Notify(NotifyEvent& rNEvt); virtual void EndScroll(); diff --git a/include/svtools/editsyntaxhighlighter.hxx b/include/svtools/editsyntaxhighlighter.hxx index 6f1444c93a74..2276e0132644 100644 --- a/include/svtools/editsyntaxhighlighter.hxx +++ b/include/svtools/editsyntaxhighlighter.hxx @@ -36,7 +36,7 @@ class SVT_DLLPUBLIC MultiLineEditSyntaxHighlight : public MultiLineEdit virtual void DoBracketHilight(sal_uInt16 aKey); protected: - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); public: MultiLineEditSyntaxHighlight( Window* pParent, WinBits nWinStyle = WB_LEFT | WB_BORDER , HighlighterLanguage aLanguage = HIGHLIGHT_SQL); diff --git a/include/svtools/fileurlbox.hxx b/include/svtools/fileurlbox.hxx index 7ff42f542b46..2d113cfb0450 100644 --- a/include/svtools/fileurlbox.hxx +++ b/include/svtools/fileurlbox.hxx @@ -40,7 +40,7 @@ namespace svt FileURLBox( Window* _pParent, WinBits _nStyle ); protected: - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual bool Notify( NotifyEvent& rNEvt ); public: diff --git a/include/svtools/fmtfield.hxx b/include/svtools/fmtfield.hxx index fbc882edd335..e70f147677cc 100644 --- a/include/svtools/fmtfield.hxx +++ b/include/svtools/fmtfield.hxx @@ -255,7 +255,7 @@ protected: virtual SvNumberFormatter* CreateFormatter() { SetFormatter(StandardFormatter()); return m_pFormatter; } SvNumberFormatter* ImplGetFormatter() const { return m_pFormatter ? m_pFormatter : ((FormattedField*)this)->CreateFormatter(); } - long PreNotify(NotifyEvent& rNEvt); + bool PreNotify(NotifyEvent& rNEvt); virtual void ReFormat(); }; diff --git a/include/svtools/inettbc.hxx b/include/svtools/inettbc.hxx index dfa15ca969ac..d0d3a00ff561 100644 --- a/include/svtools/inettbc.hxx +++ b/include/svtools/inettbc.hxx @@ -55,7 +55,7 @@ protected: virtual bool Notify( NotifyEvent& rNEvt ); virtual void Select(); virtual void Modify(); - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); public: SvtURLBox( Window* pParent, INetProtocol eSmart = INET_PROT_NOT_VALID, bool bSetDefaultHelpID = true ); diff --git a/include/svtools/roadmap.hxx b/include/svtools/roadmap.hxx index d1c51c004c5d..1febec3cbb4a 100644 --- a/include/svtools/roadmap.hxx +++ b/include/svtools/roadmap.hxx @@ -89,7 +89,7 @@ namespace svt protected: - long PreNotify( NotifyEvent& rNEvt ); + bool PreNotify( NotifyEvent& rNEvt ); protected: /// called when an item has been selected by any means diff --git a/include/svtools/simptabl.hxx b/include/svtools/simptabl.hxx index b105fbebdd1d..7c5368a51d5d 100644 --- a/include/svtools/simptabl.hxx +++ b/include/svtools/simptabl.hxx @@ -31,7 +31,7 @@ private: SvSimpleTable* m_pTable; protected: - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); public: SvSimpleTableContainer( Window* pParent, const ResId& rResId ); diff --git a/include/svtools/urlcontrol.hxx b/include/svtools/urlcontrol.hxx index 155094ebfecb..ed136c6ed130 100644 --- a/include/svtools/urlcontrol.hxx +++ b/include/svtools/urlcontrol.hxx @@ -40,7 +40,7 @@ namespace svt OFileURLControl(Window* _pParent, const ResId& _rId); protected: - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual bool Notify( NotifyEvent& rNEvt ); }; diff --git a/include/svx/gridctrl.hxx b/include/svx/gridctrl.hxx index e3e59f1abd83..673f60442a57 100644 --- a/include/svx/gridctrl.hxx +++ b/include/svx/gridctrl.hxx @@ -309,7 +309,7 @@ protected: virtual void ArrangeControls(sal_uInt16& nX, sal_uInt16 nY); virtual sal_uInt32 GetTotalCellWidth(long nRow, sal_uInt16 nColId); virtual void Command(const CommandEvent& rEvt); - virtual long PreNotify(NotifyEvent& rEvt); + virtual bool PreNotify(NotifyEvent& rEvt); virtual void KeyInput(const KeyEvent& rEvt); virtual void StateChanged( StateChangedType nType ); virtual void DataChanged( const DataChangedEvent& rDCEvt ); diff --git a/include/svx/itemwin.hxx b/include/svx/itemwin.hxx index 66a8da951659..584c38296eae 100644 --- a/include/svx/itemwin.hxx +++ b/include/svx/itemwin.hxx @@ -55,7 +55,7 @@ public: protected: virtual void Select(); - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual bool Notify( NotifyEvent& rNEvt ); virtual void DataChanged( const DataChangedEvent& rDCEvt ); @@ -87,7 +87,7 @@ public: protected: virtual void Select(); - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual bool Notify( NotifyEvent& rNEvt ); virtual void DataChanged( const DataChangedEvent& rDCEvt ); @@ -112,7 +112,7 @@ protected: virtual void Down(); virtual void Up(); // just to be sure - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual bool Notify( NotifyEvent& rNEvt ); virtual void DataChanged( const DataChangedEvent& rDCEvt ); @@ -139,7 +139,7 @@ public: sal_Bool IsRelease() { return bRelease;} protected: - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual bool Notify( NotifyEvent& rNEvt ); private: @@ -161,7 +161,7 @@ public: sal_Bool IsRelease() { return bRelease;} protected: - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual bool Notify( NotifyEvent& rNEvt ); virtual void Select(); diff --git a/include/svx/rubydialog.hxx b/include/svx/rubydialog.hxx index 0afca8cf2625..149f73aefa52 100644 --- a/include/svx/rubydialog.hxx +++ b/include/svx/rubydialog.hxx @@ -70,7 +70,7 @@ class RubyEdit : public Edit Link aScrollHdl; Link aJumpHdl; virtual void GetFocus(); - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); public: RubyEdit(Window* pParent, const ResId& rResId) : Edit(pParent, rResId) diff --git a/include/vcl/button.hxx b/include/vcl/button.hxx index b1a1179eb05e..17a2228eaf55 100644 --- a/include/vcl/button.hxx +++ b/include/vcl/button.hxx @@ -159,7 +159,7 @@ public: virtual void LoseFocus(); virtual void StateChanged( StateChangedType nType ); virtual void DataChanged( const DataChangedEvent& rDCEvt ); - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual void UserDraw( const UserDrawEvent& rUDEvt ); virtual void Toggle(); @@ -357,7 +357,7 @@ public: virtual void LoseFocus(); virtual void StateChanged( StateChangedType nType ); virtual void DataChanged( const DataChangedEvent& rDCEvt ); - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual void Toggle(); @@ -472,7 +472,7 @@ public: virtual void LoseFocus(); virtual void StateChanged( StateChangedType nType ); virtual void DataChanged( const DataChangedEvent& rDCEvt ); - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual void Toggle(); diff --git a/include/vcl/combobox.hxx b/include/vcl/combobox.hxx index 81849c477b9f..fd49eaab8ad6 100644 --- a/include/vcl/combobox.hxx +++ b/include/vcl/combobox.hxx @@ -96,7 +96,7 @@ public: virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags ); virtual void Resize(); - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual bool Notify( NotifyEvent& rNEvt ); virtual void StateChanged( StateChangedType nType ); virtual void DataChanged( const DataChangedEvent& rDCEvt ); diff --git a/include/vcl/field.hxx b/include/vcl/field.hxx index b75b4dd0aaf6..acc59a3e2cc6 100644 --- a/include/vcl/field.hxx +++ b/include/vcl/field.hxx @@ -486,7 +486,7 @@ public: explicit PatternField( Window* pParent, WinBits nWinStyle ); virtual ~PatternField(); - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual bool Notify( NotifyEvent& rNEvt ); virtual void Modify(); }; @@ -506,7 +506,7 @@ public: explicit NumericField( Window* pParent, const ResId& ); virtual ~NumericField(); - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual bool Notify( NotifyEvent& rNEvt ); virtual void DataChanged( const DataChangedEvent& rDCEvt ); @@ -536,7 +536,7 @@ public: explicit MetricField( Window* pParent, const ResId& ); virtual ~MetricField(); - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual bool Notify( NotifyEvent& rNEvt ); virtual void DataChanged( const DataChangedEvent& rDCEvt ); @@ -604,7 +604,7 @@ public: ~CurrencyField(); - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual bool Notify( NotifyEvent& rNEvt ); virtual void DataChanged( const DataChangedEvent& rDCEvt ); @@ -636,7 +636,7 @@ public: explicit DateField( Window* pParent, const ResId& ); virtual ~DateField(); - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual bool Notify( NotifyEvent& rNEvt ); virtual void DataChanged( const DataChangedEvent& rDCEvt ); @@ -672,7 +672,7 @@ public: explicit TimeField( Window* pParent, const ResId& ); virtual ~TimeField(); - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual bool Notify( NotifyEvent& rNEvt ); virtual void DataChanged( const DataChangedEvent& rDCEvt ); @@ -702,7 +702,7 @@ public: PatternBox( Window* pParent, WinBits nWinStyle ); ~PatternBox(); - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual bool Notify( NotifyEvent& rNEvt ); virtual void Modify(); @@ -724,7 +724,7 @@ public: virtual Size CalcMinimumSize() const; - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual bool Notify( NotifyEvent& rNEvt ); virtual void DataChanged( const DataChangedEvent& rDCEvt ); @@ -746,7 +746,7 @@ public: explicit MetricBox( Window* pParent, WinBits nWinStyle ); virtual ~MetricBox(); - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual bool Notify( NotifyEvent& rNEvt ); virtual void DataChanged( const DataChangedEvent& rDCEvt ); @@ -780,7 +780,7 @@ public: explicit CurrencyBox( Window* pParent, const ResId& ); virtual ~CurrencyBox(); - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual bool Notify( NotifyEvent& rNEvt ); virtual void DataChanged( const DataChangedEvent& rDCEvt ); @@ -801,7 +801,7 @@ public: explicit DateBox( Window* pParent, WinBits nWinStyle ); virtual ~DateBox(); - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual bool Notify( NotifyEvent& rNEvt ); virtual void DataChanged( const DataChangedEvent& rDCEvt ); @@ -821,7 +821,7 @@ public: explicit TimeBox( Window* pParent, WinBits nWinStyle ); virtual ~TimeBox(); - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual bool Notify( NotifyEvent& rNEvt ); virtual void DataChanged( const DataChangedEvent& rDCEvt ); diff --git a/include/vcl/longcurr.hxx b/include/vcl/longcurr.hxx index be53773e9021..cc08b9518a1d 100644 --- a/include/vcl/longcurr.hxx +++ b/include/vcl/longcurr.hxx @@ -92,7 +92,7 @@ public: LongCurrencyField( Window* pParent, WinBits nWinStyle ); ~LongCurrencyField(); - long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual bool Notify( NotifyEvent& rNEvt ); void Modify(); @@ -119,7 +119,7 @@ public: LongCurrencyBox( Window* pParent, WinBits nWinStyle ); ~LongCurrencyBox(); - long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual bool Notify( NotifyEvent& rNEvt ); void Modify(); diff --git a/include/vcl/lstbox.hxx b/include/vcl/lstbox.hxx index e57ea803a7fc..c918d1e598ae 100644 --- a/include/vcl/lstbox.hxx +++ b/include/vcl/lstbox.hxx @@ -84,7 +84,7 @@ public: virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags ); virtual void Resize(); - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual void StateChanged( StateChangedType nType ); virtual void DataChanged( const DataChangedEvent& rDCEvt ); virtual void UserDraw( const UserDrawEvent& rUDEvt ); diff --git a/include/vcl/scrbar.hxx b/include/vcl/scrbar.hxx index f78bda1d85d6..e17042cd2210 100644 --- a/include/vcl/scrbar.hxx +++ b/include/vcl/scrbar.hxx @@ -102,7 +102,7 @@ public: virtual void Resize(); virtual void StateChanged( StateChangedType nType ); virtual void DataChanged( const DataChangedEvent& rDCEvt ); - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual void GetFocus(); virtual void LoseFocus(); diff --git a/include/vcl/spin.hxx b/include/vcl/spin.hxx index c7b50b2ae138..dedff1495a0b 100644 --- a/include/vcl/spin.hxx +++ b/include/vcl/spin.hxx @@ -83,7 +83,7 @@ public: long GetValue() const { return mnValue; } void SetValueStep( long nNewStep ) { mnValueStep = nNewStep; } long GetValueStep() const { return mnValueStep; } - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); void SetUpHdl( const Link& rLink ) { maUpHdlLink = rLink; } const Link& GetUpHdl() const { return maUpHdlLink; } diff --git a/include/vcl/spinfld.hxx b/include/vcl/spinfld.hxx index d987743b87b7..06e31e4c446d 100644 --- a/include/vcl/spinfld.hxx +++ b/include/vcl/spinfld.hxx @@ -89,7 +89,7 @@ public: virtual void Resize(); virtual void StateChanged( StateChangedType nType ); virtual void DataChanged( const DataChangedEvent& rDCEvt ); - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); void SetUpHdl( const Link& rLink ) { maUpHdlLink = rLink; } const Link& GetUpHdl() const { return maUpHdlLink; } diff --git a/include/vcl/splitwin.hxx b/include/vcl/splitwin.hxx index 6eb6dfbbc52e..65fe65bfae35 100644 --- a/include/vcl/splitwin.hxx +++ b/include/vcl/splitwin.hxx @@ -161,7 +161,7 @@ public: virtual void RequestHelp( const HelpEvent& rHEvt ); virtual void StateChanged( StateChangedType nType ); virtual void DataChanged( const DataChangedEvent& rDCEvt ); - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); void InsertItem( sal_uInt16 nId, Window* pWindow, long nSize, sal_uInt16 nPos = SPLITWINDOW_APPEND, sal_uInt16 nSetId = 0, diff --git a/include/vcl/syswin.hxx b/include/vcl/syswin.hxx index c26c637c6455..8223483cbac3 100644 --- a/include/vcl/syswin.hxx +++ b/include/vcl/syswin.hxx @@ -176,7 +176,7 @@ protected: public: ~SystemWindow(); virtual bool Notify( NotifyEvent& rNEvt ); - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual sal_Bool Close(); virtual void TitleButtonClick( sal_uInt16 nButton ); diff --git a/include/vcl/tabctrl.hxx b/include/vcl/tabctrl.hxx index e2534409e0e1..263e64891e91 100644 --- a/include/vcl/tabctrl.hxx +++ b/include/vcl/tabctrl.hxx @@ -106,7 +106,7 @@ public: virtual bool Notify( NotifyEvent& rNEvt ); virtual void StateChanged( StateChangedType nType ); virtual void DataChanged( const DataChangedEvent& rDCEvt ); - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual void ActivatePage(); virtual long DeactivatePage(); diff --git a/include/vcl/vclmedit.hxx b/include/vcl/vclmedit.hxx index ef12a376b484..29f6a359e344 100644 --- a/include/vcl/vclmedit.hxx +++ b/include/vcl/vclmedit.hxx @@ -47,7 +47,7 @@ protected: DECL_LINK( ImpUpdateDataHdl, void* ); void StateChanged( StateChangedType nType ); void DataChanged( const DataChangedEvent& rDCEvt ); - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual bool Notify( NotifyEvent& rNEvt ); using Control::ImplInitSettings; void ImplInitSettings( sal_Bool bFont, sal_Bool bForeground, sal_Bool bBackground ); diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx index 14d2b69c53e1..b2ef51cb9d8d 100644 --- a/include/vcl/window.hxx +++ b/include/vcl/window.hxx @@ -597,7 +597,7 @@ public: virtual void UserEvent( sal_uLong nEvent, void* pEventData ); virtual void StateChanged( StateChangedType nStateChange ); virtual void DataChanged( const DataChangedEvent& rDCEvt ); - virtual long PreNotify( NotifyEvent& rNEvt ); + virtual bool PreNotify( NotifyEvent& rNEvt ); virtual bool Notify( NotifyEvent& rNEvt ); virtual Window* GetPreferredKeyInputWindow(); |