1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 #ifndef SC_REFFACT_HXX 29 #define SC_REFFACT_HXX 30 31 #include <sfx2/childwin.hxx> 32 33 #include "dbfunc.hxx" 34 35 #define DECL_WRAPPER(Class) \ 36 class Class : public SfxChildWindow \ 37 { \ 38 public: \ 39 Class( Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo* ); \ 40 SFX_DECL_CHILDWINDOW(Class); \ 41 }; 42 43 44 //================================================================== 45 46 DECL_WRAPPER(ScNameDlgWrapper) 47 DECL_WRAPPER(ScSolverDlgWrapper) 48 DECL_WRAPPER(ScOptSolverDlgWrapper) 49 DECL_WRAPPER(ScPivotLayoutWrapper) 50 DECL_WRAPPER(ScTabOpDlgWrapper) 51 DECL_WRAPPER(ScFilterDlgWrapper) 52 DECL_WRAPPER(ScSpecialFilterDlgWrapper) 53 DECL_WRAPPER(ScDbNameDlgWrapper) 54 DECL_WRAPPER(ScConsolidateDlgWrapper) 55 DECL_WRAPPER(ScPrintAreasDlgWrapper) 56 DECL_WRAPPER(ScCondFormatDlgWrapper) 57 DECL_WRAPPER(ScColRowNameRangesDlgWrapper) 58 DECL_WRAPPER(ScFormulaDlgWrapper) 59 DECL_WRAPPER(ScHighlightChgDlgWrapper) 60 61 /*!!! dafuer muss der Funktionsautopilot noch umgebaut werden 62 DECL_WRAPPER(ScFunctionDlgWrapper) 63 DECL_WRAPPER(ScEditFunctionDlgWrapper) 64 DECL_WRAPPER(ScArgumentDlgWrapper) 65 */ 66 67 class ScAcceptChgDlgWrapper: public SfxChildWindow 68 { 69 public: 70 ScAcceptChgDlgWrapper( Window*, 71 sal_uInt16, 72 SfxBindings*, 73 SfxChildWinInfo* ); 74 75 SFX_DECL_CHILDWINDOW(Class); 76 77 virtual void ReInitDlg(); 78 }; 79 80 class ScSimpleRefDlgWrapper: public SfxChildWindow 81 { 82 public: 83 ScSimpleRefDlgWrapper( Window*, 84 sal_uInt16, 85 SfxBindings*, 86 SfxChildWinInfo* ); 87 88 SFX_DECL_CHILDWINDOW(Class); 89 90 static void SetDefaultPosSize(Point aPos, Size aSize, sal_Bool bSet=sal_True); 91 virtual String GetRefString(); 92 virtual void SetRefString(const String& rStr); 93 void SetCloseHdl( const Link& rLink ); 94 void SetUnoLinks( const Link& rDone, const Link& rAbort, 95 const Link& rChange ); 96 void SetFlags( sal_Bool bCloseOnButtonUp, sal_Bool bSingleCell, sal_Bool bMultiSelection ); 97 static void SetAutoReOpen(sal_Bool bFlag); 98 99 void StartRefInput(); 100 }; 101 102 //<!--Added by PengYunQuan for Validity Cell Range Picker 103 class SC_DLLPUBLIC ScValidityRefChildWin : public SfxChildWindow 104 { 105 bool m_bVisibleLock:1; 106 bool m_bFreeWindowLock:1; 107 Window * m_pSavedWndParent; 108 public: 109 ScValidityRefChildWin( Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo* ); 110 SFX_DECL_CHILDWINDOW(ScValidityRefChildWin); 111 ~ScValidityRefChildWin(); 112 bool LockVisible( bool bLock ){ bool bVis = m_bVisibleLock; m_bVisibleLock = bLock; return bVis; } 113 bool LockFreeWindow( bool bLock ){ bool bFreeWindow = m_bFreeWindowLock; m_bFreeWindowLock = bLock; return bFreeWindow; } 114 void Hide(){ if( !m_bVisibleLock) SfxChildWindow::Hide(); } 115 void Show( sal_uInt16 nFlags ){ if( !m_bVisibleLock ) SfxChildWindow::Show( nFlags ); } 116 }; 117 //-->Added by PengYunQuan for Validity Cell Range Picker 118 119 //================================================================== 120 121 122 #endif // SC_REFFACT_HXX 123