summaryrefslogtreecommitdiff
path: root/sc/source/ui/dbgui/validate.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/dbgui/validate.cxx')
-rw-r--r--sc/source/ui/dbgui/validate.cxx90
1 files changed, 45 insertions, 45 deletions
diff --git a/sc/source/ui/dbgui/validate.cxx b/sc/source/ui/dbgui/validate.cxx
index 6eed9ab7fee0..9ec9740e1208 100644
--- a/sc/source/ui/dbgui/validate.cxx
+++ b/sc/source/ui/dbgui/validate.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,7 +53,7 @@
#include "formula/opcode.hxx"
// cell range picker
-#include "tabvwsh.hxx"
+#include "tabvwsh.hxx"
#include <sfx2/viewfrm.hxx>
#include <sfx2/childwin.hxx>
#include "reffact.hxx"
@@ -62,7 +62,7 @@
static USHORT pValueRanges[] =
{
- FID_VALID_MODE, FID_VALID_ERRTEXT,
+ FID_VALID_MODE, FID_VALID_ERRTEXT,
FID_VALID_LISTTYPE, FID_VALID_LISTTYPE,
0
};
@@ -70,7 +70,7 @@ static USHORT pValueRanges[] =
// ============================================================================
-ScValidationDlg::ScValidationDlg( Window* pParent,
+ScValidationDlg::ScValidationDlg( Window* pParent,
const SfxItemSet* pArgSet,
ScTabViewShell *pTabViewSh,
SfxBindings *pB /*= NULL*/
@@ -90,12 +90,12 @@ void ScTPValidationValue::SetReferenceHdl( const ScRange&rRange , ScDocument* pD
{
if ( rRange.aStart != rRange.aEnd )
if ( ScValidationDlg *pValidationDlg = GetValidationDlg() )
- if( m_pRefEdit )
+ if( m_pRefEdit )
pValidationDlg->RefInputStart( m_pRefEdit );
if ( m_pRefEdit )
{
- String aStr;
+ String aStr;
rRange.Format( aStr, SCR_ABS_3D, pDoc );
m_pRefEdit->SetRefString( aStr );
}
@@ -104,15 +104,15 @@ void ScTPValidationValue::SetReferenceHdl( const ScRange&rRange , ScDocument* pD
void ScTPValidationValue:: SetActiveHdl()
{
if ( m_pRefEdit ) m_pRefEdit->GrabFocus();
-
+
if ( ScValidationDlg *pValidationDlg = GetValidationDlg() )
- if( m_pRefEdit )
+ if( m_pRefEdit )
{
pValidationDlg->RefInputDone();
}
}
-void ScTPValidationValue::RefInputStartPreHdl( ScRefEdit* pEdit, ScRefButton* pButton )
+void ScTPValidationValue::RefInputStartPreHdl( ScRefEdit* pEdit, ScRefButton* pButton )
{
if ( ScValidationDlg *pValidationDlg = GetValidationDlg() )
{
@@ -131,9 +131,9 @@ void ScTPValidationValue::RefInputStartPreHdl( ScRefEdit* pEdit, ScRe
}
}
-void ScTPValidationValue::RefInputDonePreHdl()
+void ScTPValidationValue::RefInputDonePreHdl()
{
-
+
if( m_pRefEdit && m_pRefEdit->GetParent()!= this )
{
if( Window *pPreWnd = m_pRefEdit==&maEdMax?&maFtMax:(m_pRefEdit==&maEdMin?&maFtMin:NULL) )
@@ -146,19 +146,19 @@ void ScTPValidationValue::RefInputDonePreHdl()
m_btnRef.SetParent( m_pRefEdit ); //if Edit SetParent but button not, the tab order will be incorrect, need button to setparent to anthor window and restore parent later in order to restore the tab order
}
-
+
if( m_btnRef.GetParent()!=this ) m_btnRef.SetParent( this );
}
-void ScTPValidationValue::RefInputDonePostHdl()
+void ScTPValidationValue::RefInputDonePostHdl()
{
-
-
+
+
if( m_pRefEdit && !m_pRefEdit->HasFocus() )
m_pRefEdit->GrabFocus();
}
-
+
BOOL ScValidationDlg::Close()
{
@@ -483,7 +483,7 @@ ScValidationDlg * ScTPValidationValue::GetValidationDlg()
if( Window *pParent = GetParent() )
do{
if ( dynamic_cast<ScValidationDlg*>( pParent ) )
- return static_cast< ScValidationDlg * >( pParent );
+ return static_cast< ScValidationDlg * >( pParent );
}while ( NULL != ( pParent = pParent->GetParent() ) );
return NULL;
}
@@ -566,7 +566,7 @@ void ScTPValidationValue::TidyListBoxes()
pWnd = GetChild(0);
- while( std::find( alstOrder.begin(), alstOrder.end(), pWnd ) != alstOrder.end() && NULL != ( pWnd = pWnd->GetWindow( WINDOW_NEXT) ) ) ;
+ while( std::find( alstOrder.begin(), alstOrder.end(), pWnd ) != alstOrder.end() && NULL != ( pWnd = pWnd->GetWindow( WINDOW_NEXT) ) ) ;
if ( pWnd )
{
@@ -583,7 +583,7 @@ void ScTPValidationValue::TidyListBoxes()
IMPL_LINK( ScTPValidationValue, EditSetFocusHdl, Edit *, EMPTYARG)
{
USHORT nPos=maLbAllow.GetSelectEntryPos();
-
+
if ( nPos == SC_VALIDDLG_ALLOW_RANGE )
{
SetupRefDlg();
@@ -594,7 +594,7 @@ IMPL_LINK( ScTPValidationValue, EditSetFocusHdl, Edit *, EMPTYARG)
IMPL_LINK( ScTPValidationValue, KillFocusHdl, Window *, pWnd )
{
- if( pWnd == m_pRefEdit || pWnd == &m_btnRef )
+ if( pWnd == m_pRefEdit || pWnd == &m_btnRef )
if( ScValidationDlg *pValidationDlg = GetValidationDlg() )
if ( (pValidationDlg->IsActive() || pValidationDlg->IsChildFocus() ) && !pValidationDlg->IsRefInputting() )
if( ( !m_pRefEdit || !m_pRefEdit->HasFocus()) && !m_btnRef.HasFocus() )
@@ -672,18 +672,18 @@ IMPL_LINK( ScTPValidationValue, CheckHdl, CheckBox*, EMPTYARG )
//========================================================================
// Input Help Page
-ScTPValidationHelp::ScTPValidationHelp( Window* pParent,
+ScTPValidationHelp::ScTPValidationHelp( Window* pParent,
const SfxItemSet& rArgSet )
- : SfxTabPage ( pParent,
+ : SfxTabPage ( pParent,
ScResId( TP_VALIDATION_INPUTHELP ),
rArgSet ),
- aTsbHelp ( this, ScResId( TSB_HELP ) ),
+ aTsbHelp ( this, ScResId( TSB_HELP ) ),
aFlContent ( this, ScResId( FL_CONTENT ) ),
- aFtTitle ( this, ScResId( FT_TITLE ) ),
- aEdtTitle ( this, ScResId( EDT_TITLE ) ),
- aFtInputHelp ( this, ScResId( FT_INPUTHELP ) ),
- aEdInputHelp ( this, ScResId( EDT_INPUTHELP ) ),
+ aFtTitle ( this, ScResId( FT_TITLE ) ),
+ aEdtTitle ( this, ScResId( EDT_TITLE ) ),
+ aFtInputHelp ( this, ScResId( FT_INPUTHELP ) ),
+ aEdInputHelp ( this, ScResId( EDT_INPUTHELP ) ),
mrArgSet ( rArgSet )
{
@@ -713,8 +713,8 @@ USHORT* __EXPORT ScTPValidationHelp::GetRanges()
// -----------------------------------------------------------------------
-SfxTabPage* __EXPORT ScTPValidationHelp::Create( Window* pParent,
- const SfxItemSet& rArgSet )
+SfxTabPage* __EXPORT ScTPValidationHelp::Create( Window* pParent,
+ const SfxItemSet& rArgSet )
{
return ( new ScTPValidationHelp( pParent, rArgSet ) );
}
@@ -756,21 +756,21 @@ BOOL __EXPORT ScTPValidationHelp::FillItemSet( SfxItemSet& rArgSet )
//========================================================================
// Error Alert Page
-ScTPValidationError::ScTPValidationError( Window* pParent,
+ScTPValidationError::ScTPValidationError( Window* pParent,
const SfxItemSet& rArgSet )
- : SfxTabPage ( pParent,
+ : SfxTabPage ( pParent,
ScResId( TP_VALIDATION_ERROR ),
rArgSet ),
- aTsbShow ( this, ScResId( TSB_SHOW ) ),
+ aTsbShow ( this, ScResId( TSB_SHOW ) ),
aFlContent ( this, ScResId( FL_CONTENT ) ),
- aFtAction ( this, ScResId( FT_ACTION ) ),
- aLbAction ( this, ScResId( LB_ACTION ) ),
- aBtnSearch ( this, ScResId( BTN_SEARCH ) ),
- aFtTitle ( this, ScResId( FT_TITLE ) ),
- aEdtTitle ( this, ScResId( EDT_TITLE ) ),
- aFtError ( this, ScResId( FT_ERROR ) ),
- aEdError ( this, ScResId( EDT_ERROR ) ),
+ aFtAction ( this, ScResId( FT_ACTION ) ),
+ aLbAction ( this, ScResId( LB_ACTION ) ),
+ aBtnSearch ( this, ScResId( BTN_SEARCH ) ),
+ aFtTitle ( this, ScResId( FT_TITLE ) ),
+ aEdtTitle ( this, ScResId( EDT_TITLE ) ),
+ aFtError ( this, ScResId( FT_ERROR ) ),
+ aEdError ( this, ScResId( EDT_ERROR ) ),
mrArgSet ( rArgSet )
{
@@ -806,8 +806,8 @@ USHORT* __EXPORT ScTPValidationError::GetRanges()
// -----------------------------------------------------------------------
-SfxTabPage* __EXPORT ScTPValidationError::Create( Window* pParent,
- const SfxItemSet& rArgSet )
+SfxTabPage* __EXPORT ScTPValidationError::Create( Window* pParent,
+ const SfxItemSet& rArgSet )
{
return ( new ScTPValidationError( pParent, rArgSet ) );
}
@@ -948,12 +948,12 @@ bool ScValidationDlg::RemoveRefDlg( BOOL bRestoreModal /* = TRUE */ )
}
if ( !m_bOwnRefHdlr ) return false;
- if( LeaveRefStatus() && LeaveRefMode() )
+ if( LeaveRefStatus() && LeaveRefMode() )
{
m_bOwnRefHdlr = false;
if( bRestoreModal )
- SetModal( TRUE );
+ SetModal( TRUE );
}
if ( SfxChildWindow* pWnd = pTabVwSh->GetViewFrame()->GetChildWindow( SID_VALIDITY_REFERENCE ) )
@@ -969,7 +969,7 @@ void ScTPValidationValue::ScRefButtonEx::Click()
{
if( ScTPValidationValue *pParent = dynamic_cast< ScTPValidationValue*>( GetParent() ) )
pParent->OnClick( this );
-
+
ScRefButton::Click();
}
@@ -990,7 +990,7 @@ BOOL ScValidationDlg::IsChildFocus()
}
-bool ScValidationDlg::IsAlive()
+bool ScValidationDlg::IsAlive()
{
return SC_MOD()->IsAliveRefDlg( SLOTID, this );
}