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_REFFACT_HXX 29*cdf0e10cSrcweir #define SC_REFFACT_HXX 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir #include <sfx2/childwin.hxx> 32*cdf0e10cSrcweir 33*cdf0e10cSrcweir #include "dbfunc.hxx" 34*cdf0e10cSrcweir 35*cdf0e10cSrcweir #define DECL_WRAPPER(Class) \ 36*cdf0e10cSrcweir class Class : public SfxChildWindow \ 37*cdf0e10cSrcweir { \ 38*cdf0e10cSrcweir public: \ 39*cdf0e10cSrcweir Class( Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo* ); \ 40*cdf0e10cSrcweir SFX_DECL_CHILDWINDOW(Class); \ 41*cdf0e10cSrcweir }; 42*cdf0e10cSrcweir 43*cdf0e10cSrcweir 44*cdf0e10cSrcweir //================================================================== 45*cdf0e10cSrcweir 46*cdf0e10cSrcweir DECL_WRAPPER(ScNameDlgWrapper) 47*cdf0e10cSrcweir DECL_WRAPPER(ScSolverDlgWrapper) 48*cdf0e10cSrcweir DECL_WRAPPER(ScOptSolverDlgWrapper) 49*cdf0e10cSrcweir DECL_WRAPPER(ScPivotLayoutWrapper) 50*cdf0e10cSrcweir DECL_WRAPPER(ScTabOpDlgWrapper) 51*cdf0e10cSrcweir DECL_WRAPPER(ScFilterDlgWrapper) 52*cdf0e10cSrcweir DECL_WRAPPER(ScSpecialFilterDlgWrapper) 53*cdf0e10cSrcweir DECL_WRAPPER(ScDbNameDlgWrapper) 54*cdf0e10cSrcweir DECL_WRAPPER(ScConsolidateDlgWrapper) 55*cdf0e10cSrcweir DECL_WRAPPER(ScPrintAreasDlgWrapper) 56*cdf0e10cSrcweir DECL_WRAPPER(ScCondFormatDlgWrapper) 57*cdf0e10cSrcweir DECL_WRAPPER(ScColRowNameRangesDlgWrapper) 58*cdf0e10cSrcweir DECL_WRAPPER(ScFormulaDlgWrapper) 59*cdf0e10cSrcweir DECL_WRAPPER(ScHighlightChgDlgWrapper) 60*cdf0e10cSrcweir 61*cdf0e10cSrcweir /*!!! dafuer muss der Funktionsautopilot noch umgebaut werden 62*cdf0e10cSrcweir DECL_WRAPPER(ScFunctionDlgWrapper) 63*cdf0e10cSrcweir DECL_WRAPPER(ScEditFunctionDlgWrapper) 64*cdf0e10cSrcweir DECL_WRAPPER(ScArgumentDlgWrapper) 65*cdf0e10cSrcweir */ 66*cdf0e10cSrcweir 67*cdf0e10cSrcweir class ScAcceptChgDlgWrapper: public SfxChildWindow 68*cdf0e10cSrcweir { 69*cdf0e10cSrcweir public: 70*cdf0e10cSrcweir ScAcceptChgDlgWrapper( Window*, 71*cdf0e10cSrcweir sal_uInt16, 72*cdf0e10cSrcweir SfxBindings*, 73*cdf0e10cSrcweir SfxChildWinInfo* ); 74*cdf0e10cSrcweir 75*cdf0e10cSrcweir SFX_DECL_CHILDWINDOW(Class); 76*cdf0e10cSrcweir 77*cdf0e10cSrcweir virtual void ReInitDlg(); 78*cdf0e10cSrcweir }; 79*cdf0e10cSrcweir 80*cdf0e10cSrcweir class ScSimpleRefDlgWrapper: public SfxChildWindow 81*cdf0e10cSrcweir { 82*cdf0e10cSrcweir public: 83*cdf0e10cSrcweir ScSimpleRefDlgWrapper( Window*, 84*cdf0e10cSrcweir sal_uInt16, 85*cdf0e10cSrcweir SfxBindings*, 86*cdf0e10cSrcweir SfxChildWinInfo* ); 87*cdf0e10cSrcweir 88*cdf0e10cSrcweir SFX_DECL_CHILDWINDOW(Class); 89*cdf0e10cSrcweir 90*cdf0e10cSrcweir static void SetDefaultPosSize(Point aPos, Size aSize, sal_Bool bSet=sal_True); 91*cdf0e10cSrcweir virtual String GetRefString(); 92*cdf0e10cSrcweir virtual void SetRefString(const String& rStr); 93*cdf0e10cSrcweir void SetCloseHdl( const Link& rLink ); 94*cdf0e10cSrcweir void SetUnoLinks( const Link& rDone, const Link& rAbort, 95*cdf0e10cSrcweir const Link& rChange ); 96*cdf0e10cSrcweir void SetFlags( sal_Bool bCloseOnButtonUp, sal_Bool bSingleCell, sal_Bool bMultiSelection ); 97*cdf0e10cSrcweir static void SetAutoReOpen(sal_Bool bFlag); 98*cdf0e10cSrcweir 99*cdf0e10cSrcweir void StartRefInput(); 100*cdf0e10cSrcweir }; 101*cdf0e10cSrcweir 102*cdf0e10cSrcweir //<!--Added by PengYunQuan for Validity Cell Range Picker 103*cdf0e10cSrcweir class SC_DLLPUBLIC ScValidityRefChildWin : public SfxChildWindow 104*cdf0e10cSrcweir { 105*cdf0e10cSrcweir bool m_bVisibleLock:1; 106*cdf0e10cSrcweir bool m_bFreeWindowLock:1; 107*cdf0e10cSrcweir Window * m_pSavedWndParent; 108*cdf0e10cSrcweir public: 109*cdf0e10cSrcweir ScValidityRefChildWin( Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo* ); 110*cdf0e10cSrcweir SFX_DECL_CHILDWINDOW(ScValidityRefChildWin); 111*cdf0e10cSrcweir ~ScValidityRefChildWin(); 112*cdf0e10cSrcweir bool LockVisible( bool bLock ){ bool bVis = m_bVisibleLock; m_bVisibleLock = bLock; return bVis; } 113*cdf0e10cSrcweir bool LockFreeWindow( bool bLock ){ bool bFreeWindow = m_bFreeWindowLock; m_bFreeWindowLock = bLock; return bFreeWindow; } 114*cdf0e10cSrcweir void Hide(){ if( !m_bVisibleLock) SfxChildWindow::Hide(); } 115*cdf0e10cSrcweir void Show( sal_uInt16 nFlags ){ if( !m_bVisibleLock ) SfxChildWindow::Show( nFlags ); } 116*cdf0e10cSrcweir }; 117*cdf0e10cSrcweir //-->Added by PengYunQuan for Validity Cell Range Picker 118*cdf0e10cSrcweir 119*cdf0e10cSrcweir //================================================================== 120*cdf0e10cSrcweir 121*cdf0e10cSrcweir 122*cdf0e10cSrcweir #endif // SC_REFFACT_HXX 123