1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir #ifndef SC_VALIDATE_HXX 29*cdf0e10cSrcweir #define SC_VALIDATE_HXX 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir #include <sfx2/tabdlg.hxx> 32*cdf0e10cSrcweir #include <vcl/edit.hxx> 33*cdf0e10cSrcweir #include <vcl/fixed.hxx> 34*cdf0e10cSrcweir #include <vcl/lstbox.hxx> 35*cdf0e10cSrcweir #include <svtools/svmedit.hxx> 36*cdf0e10cSrcweir //<!--Added by PengYunQuan for Validity Cell Range Picker 37*cdf0e10cSrcweir #include "anyrefdg.hxx" 38*cdf0e10cSrcweir //-->Added by PengYunQuan for Validity Cell Range Picker 39*cdf0e10cSrcweir 40*cdf0e10cSrcweir // ============================================================================ 41*cdf0e10cSrcweir 42*cdf0e10cSrcweir //<!--Added by PengYunQuan for Validity Cell Range Picker 43*cdf0e10cSrcweir struct ScRefHandlerCaller{ 44*cdf0e10cSrcweir virtual ~ScRefHandlerCaller(){} 45*cdf0e10cSrcweir }; 46*cdf0e10cSrcweir class ScRefHandlerHelper 47*cdf0e10cSrcweir { 48*cdf0e10cSrcweir protected: 49*cdf0e10cSrcweir ScRefHandlerCaller *m_pHandler; 50*cdf0e10cSrcweir void (ScRefHandlerCaller::*m_pSetReferenceHdl)( const ScRange& , ScDocument* ); 51*cdf0e10cSrcweir void (ScRefHandlerCaller::*m_pSetActiveHdl)(); 52*cdf0e10cSrcweir void (ScRefHandlerCaller::*m_pRefInputStartPreHdl)( ScRefEdit* pEdit, ScRefButton* pButton ); 53*cdf0e10cSrcweir void (ScRefHandlerCaller::*m_pRefInputStartPostHdl)( ScRefEdit* pEdit, ScRefButton* pButton ); 54*cdf0e10cSrcweir void (ScRefHandlerCaller::*m_pRefInputDonePreHdl)(); 55*cdf0e10cSrcweir void (ScRefHandlerCaller::*m_pRefInputDonePostHdl)(); 56*cdf0e10cSrcweir 57*cdf0e10cSrcweir public: 58*cdf0e10cSrcweir typedef void (ScRefHandlerCaller::*PFUNCSETREFHDLTYPE)( const ScRange& , ScDocument* ); 59*cdf0e10cSrcweir typedef void (ScRefHandlerCaller::*PCOMMONHDLTYPE)(); 60*cdf0e10cSrcweir typedef void (ScRefHandlerCaller::*PINPUTSTARTDLTYPE)( ScRefEdit* pEdit, ScRefButton* pButton ); 61*cdf0e10cSrcweir 62*cdf0e10cSrcweir PFUNCSETREFHDLTYPE SetSetRefHdl( PFUNCSETREFHDLTYPE pNewHdl ) 63*cdf0e10cSrcweir { 64*cdf0e10cSrcweir PFUNCSETREFHDLTYPE pOldHdl = m_pSetReferenceHdl; 65*cdf0e10cSrcweir m_pSetReferenceHdl = pNewHdl; 66*cdf0e10cSrcweir return pOldHdl; 67*cdf0e10cSrcweir } 68*cdf0e10cSrcweir 69*cdf0e10cSrcweir PCOMMONHDLTYPE SetSetActHdl( PCOMMONHDLTYPE pNewHdl ) 70*cdf0e10cSrcweir { 71*cdf0e10cSrcweir PCOMMONHDLTYPE pOldHdl = m_pSetActiveHdl; 72*cdf0e10cSrcweir m_pSetActiveHdl = pNewHdl; 73*cdf0e10cSrcweir return pOldHdl; 74*cdf0e10cSrcweir } 75*cdf0e10cSrcweir 76*cdf0e10cSrcweir ScRefHandlerCaller *SetHandler( ScRefHandlerCaller *pNewHandler ) 77*cdf0e10cSrcweir { 78*cdf0e10cSrcweir ScRefHandlerCaller *pOldHandler = m_pHandler; 79*cdf0e10cSrcweir m_pHandler = pNewHandler; 80*cdf0e10cSrcweir return pOldHandler; 81*cdf0e10cSrcweir } 82*cdf0e10cSrcweir void SetRefInputStartPreHdl( PINPUTSTARTDLTYPE pNewHdl ){ m_pRefInputStartPreHdl = pNewHdl; } 83*cdf0e10cSrcweir void SetRefInputDonePostHdl( void (ScRefHandlerCaller::*pNewHdl)() ){ m_pRefInputDonePostHdl = pNewHdl; } 84*cdf0e10cSrcweir void SetRefInputStartPostHdl( PINPUTSTARTDLTYPE pNewHdl ){ m_pRefInputStartPostHdl = pNewHdl; } 85*cdf0e10cSrcweir void SetRefInputDonePreHdl( void (ScRefHandlerCaller::*pNewHdl)() ){ m_pRefInputDonePreHdl = pNewHdl; } 86*cdf0e10cSrcweir 87*cdf0e10cSrcweir ScRefHandlerHelper():m_pHandler(NULL), m_pSetReferenceHdl( NULL ), m_pSetActiveHdl(NULL), m_pRefInputStartPreHdl( NULL ), m_pRefInputStartPostHdl( NULL ), m_pRefInputDonePreHdl( NULL ), m_pRefInputDonePostHdl( NULL ){} 88*cdf0e10cSrcweir }; 89*cdf0e10cSrcweir //-->Added by PengYunQuan for Validity Cell Range Picker 90*cdf0e10cSrcweir 91*cdf0e10cSrcweir /** The "Validity" tab dialog. */ 92*cdf0e10cSrcweir //<!--Modified by PengYunQuan for Validity Cell Range Picker 93*cdf0e10cSrcweir //class ScValidationDlg : public SfxTabDialog 94*cdf0e10cSrcweir class ScValidationDlg :public ScRefHdlrImpl<ScValidationDlg, SfxTabDialog, false>, public ScRefHandlerHelper 95*cdf0e10cSrcweir //-->Modified by PengYunQuan for Validity Cell Range Picker 96*cdf0e10cSrcweir { 97*cdf0e10cSrcweir //<!--Added by PengYunQuan for Validity Cell Range Picker 98*cdf0e10cSrcweir typedef ScRefHdlrImpl<ScValidationDlg, SfxTabDialog, false> ScValidationDlgBase; 99*cdf0e10cSrcweir 100*cdf0e10cSrcweir //Start_Moddify by liliang 03/26/2008 SODC_13677_2 101*cdf0e10cSrcweir DECL_LINK( OkHdl, Button * ); 102*cdf0e10cSrcweir //End_Moddify by liliang 03/26/2008 SODC_13677_2 103*cdf0e10cSrcweir bool m_bOwnRefHdlr:1; 104*cdf0e10cSrcweir 105*cdf0e10cSrcweir ScTabViewShell *m_pTabVwSh; 106*cdf0e10cSrcweir bool m_bRefInputting:1; 107*cdf0e10cSrcweir bool EnterRefStatus(); 108*cdf0e10cSrcweir bool LeaveRefStatus(); 109*cdf0e10cSrcweir //-->Added by PengYunQuan for Validity Cell Range Picker 110*cdf0e10cSrcweir public: 111*cdf0e10cSrcweir //<!--Modified by PengYunQuan for Validity Cell Range Picker 112*cdf0e10cSrcweir //explicit ScValidationDlg( Window* pParent, const SfxItemSet* pArgSet ); 113*cdf0e10cSrcweir explicit ScValidationDlg( Window* pParent, const SfxItemSet* pArgSet, ScTabViewShell * pTabViewSh, SfxBindings *pB = NULL ); 114*cdf0e10cSrcweir //-->Modified by PengYunQuan for Validity Cell Range Picker 115*cdf0e10cSrcweir //<!--Added by PengYunQuan for Validity Cell Range Picker 116*cdf0e10cSrcweir virtual ~ScValidationDlg(); 117*cdf0e10cSrcweir inline static ScValidationDlg * Find1AliveObject( Window *pAncestor ); 118*cdf0e10cSrcweir bool IsAlive(); 119*cdf0e10cSrcweir inline ScTabViewShell * GetTabViewShell(); 120*cdf0e10cSrcweir 121*cdf0e10cSrcweir bool SetupRefDlg(); 122*cdf0e10cSrcweir bool RemoveRefDlg( sal_Bool bRestoreModal = sal_True ); 123*cdf0e10cSrcweir 124*cdf0e10cSrcweir virtual void SetModal( sal_Bool bModal ){ ScValidationDlgBase::SetModalInputMode( bModal ); } 125*cdf0e10cSrcweir 126*cdf0e10cSrcweir virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ) 127*cdf0e10cSrcweir { 128*cdf0e10cSrcweir if ( m_pHandler && m_pSetReferenceHdl ) 129*cdf0e10cSrcweir (m_pHandler->*m_pSetReferenceHdl)( rRef, pDoc ); 130*cdf0e10cSrcweir } 131*cdf0e10cSrcweir 132*cdf0e10cSrcweir virtual void SetActive() 133*cdf0e10cSrcweir { 134*cdf0e10cSrcweir if ( m_pHandler && m_pSetActiveHdl ) 135*cdf0e10cSrcweir (m_pHandler->*m_pSetActiveHdl)(); 136*cdf0e10cSrcweir } 137*cdf0e10cSrcweir 138*cdf0e10cSrcweir void CloseRefDialog() 139*cdf0e10cSrcweir { 140*cdf0e10cSrcweir DBG_ASSERT( false, "should not execute here!!!when the edit kill focus, should remove refhandler.\r\n" ); 141*cdf0e10cSrcweir 142*cdf0e10cSrcweir if ( IsInExecute() ) 143*cdf0e10cSrcweir EndDialog( sal_False ); 144*cdf0e10cSrcweir else if ( GetStyle() & WB_CLOSEABLE ) 145*cdf0e10cSrcweir Close(); 146*cdf0e10cSrcweir } 147*cdf0e10cSrcweir 148*cdf0e10cSrcweir bool IsRefInputting(){ return m_bRefInputting; } 149*cdf0e10cSrcweir 150*cdf0e10cSrcweir virtual void RefInputStart( ScRefEdit* pEdit, ScRefButton* pButton = NULL ) 151*cdf0e10cSrcweir { 152*cdf0e10cSrcweir if( !CanInputStart( pEdit ) ) 153*cdf0e10cSrcweir return; 154*cdf0e10cSrcweir 155*cdf0e10cSrcweir if ( m_pHandler && m_pRefInputStartPreHdl ) 156*cdf0e10cSrcweir (m_pHandler->*m_pRefInputStartPreHdl)( pEdit, pButton ); 157*cdf0e10cSrcweir m_bRefInputting = true; 158*cdf0e10cSrcweir ScValidationDlgBase::RefInputStart( pEdit, pButton ); 159*cdf0e10cSrcweir if ( m_pHandler && m_pRefInputStartPostHdl ) 160*cdf0e10cSrcweir (m_pHandler->*m_pRefInputStartPostHdl)( pEdit, pButton ); 161*cdf0e10cSrcweir } 162*cdf0e10cSrcweir 163*cdf0e10cSrcweir virtual void RefInputDone( sal_Bool bForced = sal_False ) 164*cdf0e10cSrcweir { 165*cdf0e10cSrcweir if( !CanInputDone( bForced ) ) 166*cdf0e10cSrcweir return; 167*cdf0e10cSrcweir 168*cdf0e10cSrcweir if ( m_pHandler && m_pRefInputDonePreHdl ) 169*cdf0e10cSrcweir (m_pHandler->*m_pRefInputDonePreHdl)(); 170*cdf0e10cSrcweir 171*cdf0e10cSrcweir ScValidationDlgBase::RefInputDone( bForced ); 172*cdf0e10cSrcweir m_bRefInputting = false; 173*cdf0e10cSrcweir 174*cdf0e10cSrcweir if ( m_pHandler && m_pRefInputDonePostHdl ) 175*cdf0e10cSrcweir (m_pHandler->*m_pRefInputDonePostHdl)(); 176*cdf0e10cSrcweir } 177*cdf0e10cSrcweir 178*cdf0e10cSrcweir sal_Bool IsChildFocus(); 179*cdf0e10cSrcweir 180*cdf0e10cSrcweir enum { SLOTID = SID_VALIDITY_REFERENCE }; 181*cdf0e10cSrcweir 182*cdf0e10cSrcweir sal_Bool Close(); 183*cdf0e10cSrcweir //-->Added by PengYunQuan for Validity Cell Range Picker 184*cdf0e10cSrcweir }; 185*cdf0e10cSrcweir 186*cdf0e10cSrcweir 187*cdf0e10cSrcweir // ============================================================================ 188*cdf0e10cSrcweir 189*cdf0e10cSrcweir /** The tab page "Criteria" from the Validation dialog. */ 190*cdf0e10cSrcweir //<!--Modified by PengYunQuan for Validity Cell Range Picker 191*cdf0e10cSrcweir //class ScTPValidationValue : public SfxTabPage 192*cdf0e10cSrcweir class ScTPValidationValue : public ScRefHandlerCaller, public SfxTabPage 193*cdf0e10cSrcweir //-->Modified by PengYunQuan for Validity Cell Range Picker 194*cdf0e10cSrcweir { 195*cdf0e10cSrcweir public: 196*cdf0e10cSrcweir explicit ScTPValidationValue( Window* pParent, const SfxItemSet& rArgSet ); 197*cdf0e10cSrcweir virtual ~ScTPValidationValue(); 198*cdf0e10cSrcweir 199*cdf0e10cSrcweir static SfxTabPage* Create( Window* pParent, const SfxItemSet& rArgSet ); 200*cdf0e10cSrcweir static sal_uInt16* GetRanges(); 201*cdf0e10cSrcweir 202*cdf0e10cSrcweir virtual sal_Bool FillItemSet( SfxItemSet& rArgSet ); 203*cdf0e10cSrcweir virtual void Reset( const SfxItemSet& rArgSet ); 204*cdf0e10cSrcweir 205*cdf0e10cSrcweir private: 206*cdf0e10cSrcweir void Init(); 207*cdf0e10cSrcweir 208*cdf0e10cSrcweir String GetFirstFormula() const; 209*cdf0e10cSrcweir String GetSecondFormula() const; 210*cdf0e10cSrcweir 211*cdf0e10cSrcweir void SetFirstFormula( const String& rFmlaStr ); 212*cdf0e10cSrcweir void SetSecondFormula( const String& rFmlaStr ); 213*cdf0e10cSrcweir 214*cdf0e10cSrcweir DECL_LINK( SelectHdl, ListBox* ); 215*cdf0e10cSrcweir DECL_LINK( CheckHdl, CheckBox* ); 216*cdf0e10cSrcweir 217*cdf0e10cSrcweir FixedText maFtAllow; 218*cdf0e10cSrcweir ListBox maLbAllow; 219*cdf0e10cSrcweir CheckBox maCbAllow; /// Allow blank cells. 220*cdf0e10cSrcweir CheckBox maCbShow; /// Show selection list in cell. 221*cdf0e10cSrcweir CheckBox maCbSort; /// Sort selection list in cell. 222*cdf0e10cSrcweir FixedText maFtValue; 223*cdf0e10cSrcweir ListBox maLbValue; 224*cdf0e10cSrcweir FixedText maFtMin; 225*cdf0e10cSrcweir //<!--Modified by PengYunQuan for Validity Cell Range Picker 226*cdf0e10cSrcweir //Edit maEdMin; 227*cdf0e10cSrcweir ScRefEdit maEdMin; 228*cdf0e10cSrcweir //-->Modified by PengYunQuan for Validity Cell Range Picker 229*cdf0e10cSrcweir MultiLineEdit maEdList; /// Entries for explicit list 230*cdf0e10cSrcweir FixedText maFtMax; 231*cdf0e10cSrcweir //<!--Modified by PengYunQuan for Validity Cell Range Picker 232*cdf0e10cSrcweir //Edit maEdMax; 233*cdf0e10cSrcweir ScRefEdit maEdMax; 234*cdf0e10cSrcweir //-->Modified by PengYunQuan for Validity Cell Range Picker 235*cdf0e10cSrcweir FixedText maFtHint; /// Hint text for cell range validity. 236*cdf0e10cSrcweir 237*cdf0e10cSrcweir String maStrMin; 238*cdf0e10cSrcweir String maStrMax; 239*cdf0e10cSrcweir String maStrValue; 240*cdf0e10cSrcweir String maStrRange; 241*cdf0e10cSrcweir String maStrList; 242*cdf0e10cSrcweir sal_Unicode mcFmlaSep; /// List separator in formulas. 243*cdf0e10cSrcweir //<!--Added by PengYunQuan for Validity Cell Range Picker 244*cdf0e10cSrcweir DECL_LINK( EditSetFocusHdl, Edit *); 245*cdf0e10cSrcweir DECL_LINK( KillFocusHdl, Window *); 246*cdf0e10cSrcweir void OnClick( Button *pBtn ); 247*cdf0e10cSrcweir ScRefEdit *m_pRefEdit; 248*cdf0e10cSrcweir class ScRefButtonEx:public ::ScRefButton 249*cdf0e10cSrcweir { 250*cdf0e10cSrcweir void Click(); 251*cdf0e10cSrcweir public: 252*cdf0e10cSrcweir ScRefButtonEx( Window* pParent, const ResId& rResId, ScRefEdit* pEdit = NULL, ScRefHandler *pRefHdlr = NULL ): ::ScRefButton( pParent, rResId, pEdit, pRefHdlr ){} 253*cdf0e10cSrcweir }m_btnRef; 254*cdf0e10cSrcweir friend class ScRefButtonEx; 255*cdf0e10cSrcweir void SetReferenceHdl( const ScRange& , ScDocument* ); 256*cdf0e10cSrcweir void SetActiveHdl(); 257*cdf0e10cSrcweir void RefInputStartPreHdl( ScRefEdit* pEdit, ScRefButton* pButton ); 258*cdf0e10cSrcweir void RefInputDonePreHdl(); 259*cdf0e10cSrcweir void RefInputDonePostHdl(); 260*cdf0e10cSrcweir ScValidationDlg * GetValidationDlg(); 261*cdf0e10cSrcweir 262*cdf0e10cSrcweir //TYPEINFO(); 263*cdf0e10cSrcweir void TidyListBoxes(); 264*cdf0e10cSrcweir public: 265*cdf0e10cSrcweir sal_uInt16 GetAllowEntryPos(); 266*cdf0e10cSrcweir String GetMinText(); 267*cdf0e10cSrcweir void SetupRefDlg(); 268*cdf0e10cSrcweir void RemoveRefDlg(); 269*cdf0e10cSrcweir //-->Added by PengYunQuan for Validity Cell Range Picker 270*cdf0e10cSrcweir }; 271*cdf0e10cSrcweir 272*cdf0e10cSrcweir 273*cdf0e10cSrcweir //================================================================== 274*cdf0e10cSrcweir 275*cdf0e10cSrcweir class ScTPValidationHelp : public SfxTabPage 276*cdf0e10cSrcweir { 277*cdf0e10cSrcweir private: 278*cdf0e10cSrcweir TriStateBox aTsbHelp; 279*cdf0e10cSrcweir FixedLine aFlContent; 280*cdf0e10cSrcweir FixedText aFtTitle; 281*cdf0e10cSrcweir Edit aEdtTitle; 282*cdf0e10cSrcweir FixedText aFtInputHelp; 283*cdf0e10cSrcweir MultiLineEdit aEdInputHelp; 284*cdf0e10cSrcweir 285*cdf0e10cSrcweir const SfxItemSet& mrArgSet; 286*cdf0e10cSrcweir 287*cdf0e10cSrcweir void Init(); 288*cdf0e10cSrcweir 289*cdf0e10cSrcweir // Handler ------------------------ 290*cdf0e10cSrcweir // DECL_LINK( SelectHdl, ListBox * ); 291*cdf0e10cSrcweir 292*cdf0e10cSrcweir public: 293*cdf0e10cSrcweir ScTPValidationHelp( Window* pParent, const SfxItemSet& rArgSet ); 294*cdf0e10cSrcweir ~ScTPValidationHelp(); 295*cdf0e10cSrcweir 296*cdf0e10cSrcweir static SfxTabPage* Create ( Window* pParent, const SfxItemSet& rArgSet ); 297*cdf0e10cSrcweir static sal_uInt16* GetRanges (); 298*cdf0e10cSrcweir virtual sal_Bool FillItemSet ( SfxItemSet& rArgSet ); 299*cdf0e10cSrcweir virtual void Reset ( const SfxItemSet& rArgSet ); 300*cdf0e10cSrcweir }; 301*cdf0e10cSrcweir 302*cdf0e10cSrcweir //================================================================== 303*cdf0e10cSrcweir 304*cdf0e10cSrcweir class ScTPValidationError : public SfxTabPage 305*cdf0e10cSrcweir { 306*cdf0e10cSrcweir private: 307*cdf0e10cSrcweir TriStateBox aTsbShow; 308*cdf0e10cSrcweir FixedLine aFlContent; 309*cdf0e10cSrcweir FixedText aFtAction; 310*cdf0e10cSrcweir ListBox aLbAction; 311*cdf0e10cSrcweir PushButton aBtnSearch; 312*cdf0e10cSrcweir FixedText aFtTitle; 313*cdf0e10cSrcweir Edit aEdtTitle; 314*cdf0e10cSrcweir FixedText aFtError; 315*cdf0e10cSrcweir MultiLineEdit aEdError; 316*cdf0e10cSrcweir 317*cdf0e10cSrcweir const SfxItemSet& mrArgSet; 318*cdf0e10cSrcweir 319*cdf0e10cSrcweir void Init(); 320*cdf0e10cSrcweir 321*cdf0e10cSrcweir // Handler ------------------------ 322*cdf0e10cSrcweir DECL_LINK( SelectActionHdl, ListBox * ); 323*cdf0e10cSrcweir DECL_LINK( ClickSearchHdl, PushButton * ); 324*cdf0e10cSrcweir 325*cdf0e10cSrcweir public: 326*cdf0e10cSrcweir ScTPValidationError( Window* pParent, const SfxItemSet& rArgSet ); 327*cdf0e10cSrcweir ~ScTPValidationError(); 328*cdf0e10cSrcweir 329*cdf0e10cSrcweir static SfxTabPage* Create ( Window* pParent, const SfxItemSet& rArgSet ); 330*cdf0e10cSrcweir static sal_uInt16* GetRanges (); 331*cdf0e10cSrcweir virtual sal_Bool FillItemSet ( SfxItemSet& rArgSet ); 332*cdf0e10cSrcweir virtual void Reset ( const SfxItemSet& rArgSet ); 333*cdf0e10cSrcweir }; 334*cdf0e10cSrcweir 335*cdf0e10cSrcweir //<!--Added by PengYunQuan for Validity Cell Range Picker 336*cdf0e10cSrcweir inline ScTabViewShell *ScValidationDlg::GetTabViewShell() 337*cdf0e10cSrcweir { 338*cdf0e10cSrcweir return m_pTabVwSh; 339*cdf0e10cSrcweir } 340*cdf0e10cSrcweir 341*cdf0e10cSrcweir inline ScValidationDlg * ScValidationDlg::Find1AliveObject( Window *pAncestor ) 342*cdf0e10cSrcweir { 343*cdf0e10cSrcweir return static_cast<ScValidationDlg *>( SC_MOD()->Find1RefWindow( SLOTID, pAncestor ) ); 344*cdf0e10cSrcweir } 345*cdf0e10cSrcweir //-->Added by PengYunQuan for Validity Cell Range Picker 346*cdf0e10cSrcweir #endif // SC_VALIDATE_HXX 347*cdf0e10cSrcweir 348