diff options
Diffstat (limited to 'sc/source/ui/miscdlgs/simpref.cxx')
-rw-r--r-- | sc/source/ui/miscdlgs/simpref.cxx | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/sc/source/ui/miscdlgs/simpref.cxx b/sc/source/ui/miscdlgs/simpref.cxx index 732543394634..2a8186f05866 100644 --- a/sc/source/ui/miscdlgs/simpref.cxx +++ b/sc/source/ui/miscdlgs/simpref.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 @@ -43,18 +43,18 @@ #include "scresid.hxx" #include "globstr.hrc" #include "simpref.hrc" -#include "rangenam.hxx" // IsNameValid +#include "rangenam.hxx" // IsNameValid #include "simpref.hxx" #include "scmod.hxx" //============================================================================ -#define ABS_SREF SCA_VALID \ +#define ABS_SREF SCA_VALID \ | SCA_COL_ABSOLUTE | SCA_ROW_ABSOLUTE | SCA_TAB_ABSOLUTE -#define ABS_DREF ABS_SREF \ +#define ABS_DREF ABS_SREF \ | SCA_COL2_ABSOLUTE | SCA_ROW2_ABSOLUTE | SCA_TAB2_ABSOLUTE -#define ABS_SREF3D ABS_SREF | SCA_TAB_3D -#define ABS_DREF3D ABS_DREF | SCA_TAB_3D +#define ABS_SREF3D ABS_SREF | SCA_TAB_3D +#define ABS_DREF3D ABS_DREF | SCA_TAB_3D //---------------------------------------------------------------------------- @@ -62,32 +62,32 @@ #define QUERYBOX(m) QueryBox(this,WinBits(WB_YES_NO|WB_DEF_YES),m).Execute() //============================================================================ -// class ScSimpleRefDlg +// class ScSimpleRefDlg //---------------------------------------------------------------------------- ScSimpleRefDlg::ScSimpleRefDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent, - ScViewData* ptrViewData ) + ScViewData* ptrViewData ) - : ScAnyRefDlg ( pB, pCW, pParent, RID_SCDLG_SIMPLEREF ), + : ScAnyRefDlg ( pB, pCW, pParent, RID_SCDLG_SIMPLEREF ), // - aFtAssign ( this, ScResId( FT_ASSIGN ) ), + aFtAssign ( this, ScResId( FT_ASSIGN ) ), aEdAssign ( this, this, ScResId( ED_ASSIGN ) ), - aRbAssign ( this, ScResId( RB_ASSIGN ), &aEdAssign, this ), + aRbAssign ( this, ScResId( RB_ASSIGN ), &aEdAssign, this ), - aBtnOk ( this, ScResId( BTN_OK ) ), - aBtnCancel ( this, ScResId( BTN_CANCEL ) ), - aBtnHelp ( this, ScResId( BTN_HELP ) ), + aBtnOk ( this, ScResId( BTN_OK ) ), + aBtnCancel ( this, ScResId( BTN_CANCEL ) ), + aBtnHelp ( this, ScResId( BTN_HELP ) ), // - pViewData ( ptrViewData ), - pDoc ( ptrViewData->GetDocument() ), - bRefInputMode ( FALSE ), - bAutoReOpen ( TRUE ), + pViewData ( ptrViewData ), + pDoc ( ptrViewData->GetDocument() ), + bRefInputMode ( FALSE ), + bAutoReOpen ( TRUE ), bCloseOnButtonUp( FALSE ), bSingleCell ( FALSE ), bMultiSelection ( FALSE ) { - // damit die Strings in der Resource bei den FixedTexten bleiben koennen: + // damit die Strings in der Resource bei den FixedTexten bleiben koennen: Init(); FreeResource(); SetDispatcherLock( TRUE ); // Modal-Modus einschalten @@ -115,8 +115,8 @@ void ScSimpleRefDlg::SetRefString(const String &rStr) //---------------------------------------------------------------------------- void ScSimpleRefDlg::Init() { - aBtnOk.SetClickHdl ( LINK( this, ScSimpleRefDlg, OkBtnHdl ) ); - aBtnCancel.SetClickHdl ( LINK( this, ScSimpleRefDlg, CancelBtnHdl ) ); + aBtnOk.SetClickHdl ( LINK( this, ScSimpleRefDlg, OkBtnHdl ) ); + aBtnCancel.SetClickHdl ( LINK( this, ScSimpleRefDlg, CancelBtnHdl ) ); bCloseFlag=FALSE; } @@ -171,9 +171,9 @@ void ScSimpleRefDlg::SetActive() { aEdAssign.GrabFocus(); - // kein NameModifyHdl, weil sonst Bereiche nicht geaendert werden koennen - // (nach dem Aufziehen der Referenz wuerde der alte Inhalt wieder angezeigt) - // (der ausgewaehlte DB-Name hat sich auch nicht veraendert) + // kein NameModifyHdl, weil sonst Bereiche nicht geaendert werden koennen + // (nach dem Aufziehen der Referenz wuerde der alte Inhalt wieder angezeigt) + // (der ausgewaehlte DB-Name hat sich auch nicht veraendert) RefInputDone(); } @@ -196,9 +196,9 @@ void ScSimpleRefDlg::SetCloseHdl( const Link& rLink ) void ScSimpleRefDlg::SetUnoLinks( const Link& rDone, const Link& rAbort, const Link& rChange ) { - aDoneHdl = rDone; - aAbortedHdl = rAbort; - aChangeHdl = rChange; + aDoneHdl = rDone; + aAbortedHdl = rAbort; + aChangeHdl = rChange; } void ScSimpleRefDlg::SetFlags( BOOL bSetCloseOnButtonUp, BOOL bSetSingleCell, BOOL bSetMultiSelection ) @@ -234,7 +234,7 @@ IMPL_LINK( ScSimpleRefDlg, OkBtnHdl, void *, EMPTYARG ) bAutoReOpen=FALSE; String aResult=aEdAssign.GetText(); aCloseHdl.Call(&aResult); - Link aUnoLink = aDoneHdl; // stack var because this is deleted in DoClose + Link aUnoLink = aDoneHdl; // stack var because this is deleted in DoClose DoClose( ScSimpleRefDlgWrapper::GetChildWindowId() ); aUnoLink.Call( &aResult ); return 0; @@ -246,7 +246,7 @@ IMPL_LINK( ScSimpleRefDlg, CancelBtnHdl, void *, EMPTYARG ) bAutoReOpen=FALSE; String aResult=aEdAssign.GetText(); aCloseHdl.Call(NULL); - Link aUnoLink = aAbortedHdl; // stack var because this is deleted in DoClose + Link aUnoLink = aAbortedHdl; // stack var because this is deleted in DoClose DoClose( ScSimpleRefDlgWrapper::GetChildWindowId() ); aUnoLink.Call( &aResult ); return 0; |