diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-12-02 20:33:12 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-12-03 03:56:11 +0100 |
commit | 06842a8583d3d77de74964cdce4fba811818bf90 (patch) | |
tree | c13e9482ed888608c73f8e62510e95232441cdcf /sc/source/ui/miscdlgs/anyrefdg.cxx | |
parent | 99e31f6ead140594deb98fa8e794708403b8113d (diff) |
first working version of modal ref input dlgs
The following things still need to be changed:
* don't use virtual method in Window
* Use a WinBits flag for it
* move all the dialogs to it
* fix the ugly hack for range name dlg
* fix all the uncommented code in winproc.cxx
* general clean-up
Change-Id: I2a8cfc1c4abf591878b11aa4829a9ff910540eff
Diffstat (limited to 'sc/source/ui/miscdlgs/anyrefdg.cxx')
-rw-r--r-- | sc/source/ui/miscdlgs/anyrefdg.cxx | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/sc/source/ui/miscdlgs/anyrefdg.cxx b/sc/source/ui/miscdlgs/anyrefdg.cxx index 3b4e9a485ac6..9595cf37b08c 100644 --- a/sc/source/ui/miscdlgs/anyrefdg.cxx +++ b/sc/source/ui/miscdlgs/anyrefdg.cxx @@ -831,7 +831,7 @@ void ScRefHandler::SetDispatcherLock( bool bLock ) //---------------------------------------------------------------------------- -void ScRefHandler::ViewShellChanged(ScTabViewShell* pScViewShell ) +void ScRefHandler::ViewShellChanged() { m_aHelper.ViewShellChanged(pScViewShell); } @@ -937,4 +937,25 @@ void ScRefHandler::RefInputDone( sal_Bool bForced ) m_aHelper.RefInputDone( bForced ); } +//------------------------------------------------------------------------------- + +ScRefHdlModalImpl::ScRefHdlModalImpl( Window* pParent, ResId& rResId ): + ModalDialog( pParent, rResId ), + ScRefHandler(dynamic_cast<Window&>(*this), NULL, true) {} + +long ScRefHdlModalImpl::PreNotify( NotifyEvent& rNEvt ) +{ + ScRefHandler::preNotify( rNEvt, true ); + return ModalDialog::PreNotify( rNEvt ); +} + +void ScRefHdlModalImpl::StateChanged( StateChangedType nStateChange ) +{ + ModalDialog::StateChanged( nStateChange ); + ScRefHandler::stateChanged( nStateChange, true ); +} + +ScAnyRefModalDlg::ScAnyRefModalDlg( Window* pParent, ResId aResId ): + ScRefHdlModalImpl( pParent, aResId ) {} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |