[Libreoffice-commits] .: sc/source
Thorsten Behrens
thorsten at kemper.freedesktop.org
Thu Nov 4 06:20:09 PDT 2010
sc/source/ui/miscdlgs/anyrefdg.cxx | 65 +++++--------------------------------
1 file changed, 9 insertions(+), 56 deletions(-)
New commits:
commit 47978e862e7652498a3d373fb0a5a18de4bbd5ec
Author: Kevin Hunter <hunteke at earlham.edu>
Date: Thu Nov 4 14:19:32 2010 +0100
Minor commented-out code removal
diff --git a/sc/source/ui/miscdlgs/anyrefdg.cxx b/sc/source/ui/miscdlgs/anyrefdg.cxx
index 09d4a4d..54ceb60 100644
--- a/sc/source/ui/miscdlgs/anyrefdg.cxx
+++ b/sc/source/ui/miscdlgs/anyrefdg.cxx
@@ -304,8 +304,6 @@ void ScFormulaReferenceHelper::ReleaseFocus( formula::RefEdit* pEdit, formula::R
if( !pRefEdit && pEdit )
{
m_pDlg->RefInputStart( pEdit, pButton );
-// if( pRefEdit )
-// pRefEdit->SilentGrabFocus();
}
ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell();
@@ -488,18 +486,15 @@ void ScFormulaReferenceHelper::RefInputStart( formula::RefEdit* pEdit, formula::
// Fenstertitel anpassen
m_pWindow->SetText( MnemonicGenerator::EraseAllMnemonicChars( sNewDialogText ) );
-// if ( pButton ) // ueber den Button: Enter und Escape abfangen
-// {
- if (!pAccel.get())
- {
- pAccel.reset( new Accelerator );
- pAccel->InsertItem( 1, KeyCode( KEY_RETURN ) );
- pAccel->InsertItem( 2, KeyCode( KEY_ESCAPE ) );
- pAccel->SetSelectHdl( LINK( this, ScFormulaReferenceHelper, AccelSelectHdl ) );
- }
- Application::InsertAccel( pAccel.get() );
- bAccInserted = TRUE;
-// }
+ if (!pAccel.get())
+ {
+ pAccel.reset( new Accelerator );
+ pAccel->InsertItem( 1, KeyCode( KEY_RETURN ) );
+ pAccel->InsertItem( 2, KeyCode( KEY_ESCAPE ) );
+ pAccel->SetSelectHdl( LINK( this, ScFormulaReferenceHelper, AccelSelectHdl ) );
+ }
+ Application::InsertAccel( pAccel.get() );
+ bAccInserted = TRUE;
}
}
// -----------------------------------------------------------------------------
@@ -706,7 +701,6 @@ bool ScRefHandler::EnterRefMode()
if( m_bInRefMode ) return false;
SC_MOD()->InputEnterHandler();
-// ScTabViewShell* pScViewShell = ScTabViewShell::GetActiveViewShell();
ScTabViewShell* pScViewShell = NULL;
@@ -784,15 +778,6 @@ bool ScRefHandler::LeaveRefMode()
//----------------------------------------------------------------------------
-//SfxBindings& ScRefHandler::GetBindings()
-//{
-// //! SfxModelessDialog should allow access to pBindings pointer
-//
-// return *pMyBindings;
-//}
-
-//----------------------------------------------------------------------------
-
void ScRefHandler::SwitchToDocument()
{
ScTabViewShell* pCurrent = ScTabViewShell::GetActiveViewShell();
@@ -895,38 +880,6 @@ void ScRefHandler::ToggleCollapsed( formula::RefEdit* pEdit, formula::RefButton*
m_aHelper.ToggleCollapsed( pEdit, pButton );
}
-//The two following function is commentted out by PengYunQuan for Validity Cell Range Picker
-//long ScAnyRefDlg::PreNotify( NotifyEvent& rNEvt )
-//{
-// USHORT nSwitch=rNEvt.GetType();
-// if(nSwitch==EVENT_GETFOCUS)
-// {
-// pActiveWin=rNEvt.GetWindow();
-// }
-// return SfxModelessDialog::PreNotify(rNEvt);
-//}
-//
-//void ScAnyRefDlg::StateChanged( StateChangedType nStateChange )
-//{
-// SfxModelessDialog::StateChanged( nStateChange );
-//
-// if(nStateChange == STATE_CHANGE_VISIBLE)
-// {
-// if(IsVisible())
-// {
-// m_aHelper.enableInput( FALSE );
-// m_aHelper.EnableSpreadsheets();
-// m_aHelper.SetDispatcherLock( TRUE );
-// aTimer.Start();
-// }
-// else
-// {
-// m_aHelper.enableInput( TRUE );
-// m_aHelper.SetDispatcherLock( FALSE ); //! here and in DoClose ?
-// }
-// }
-//}
-
#if defined( _MSC_VER )
#define INTRODUCE_TEMPLATE
#else
More information about the Libreoffice-commits
mailing list