1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef SC_REFFACT_HXX 25 #define SC_REFFACT_HXX 26 27 #include <sfx2/childwin.hxx> 28 29 #include "dbfunc.hxx" 30 31 #define DECL_WRAPPER(Class) \ 32 class Class : public SfxChildWindow \ 33 { \ 34 public: \ 35 Class( Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo* ); \ 36 SFX_DECL_CHILDWINDOW(Class); \ 37 }; 38 39 40 //================================================================== 41 42 DECL_WRAPPER(ScNameDlgWrapper) 43 DECL_WRAPPER(ScSolverDlgWrapper) 44 DECL_WRAPPER(ScOptSolverDlgWrapper) 45 DECL_WRAPPER(ScPivotLayoutWrapper) 46 DECL_WRAPPER(ScTabOpDlgWrapper) 47 DECL_WRAPPER(ScFilterDlgWrapper) 48 DECL_WRAPPER(ScSpecialFilterDlgWrapper) 49 DECL_WRAPPER(ScDbNameDlgWrapper) 50 DECL_WRAPPER(ScConsolidateDlgWrapper) 51 DECL_WRAPPER(ScPrintAreasDlgWrapper) 52 DECL_WRAPPER(ScCondFormatDlgWrapper) 53 DECL_WRAPPER(ScColRowNameRangesDlgWrapper) 54 DECL_WRAPPER(ScFormulaDlgWrapper) 55 DECL_WRAPPER(ScHighlightChgDlgWrapper) 56 57 /*!!! dafuer muss der Funktionsautopilot noch umgebaut werden 58 DECL_WRAPPER(ScFunctionDlgWrapper) 59 DECL_WRAPPER(ScEditFunctionDlgWrapper) 60 DECL_WRAPPER(ScArgumentDlgWrapper) 61 */ 62 63 class ScAcceptChgDlgWrapper: public SfxChildWindow 64 { 65 public: 66 ScAcceptChgDlgWrapper( Window*, 67 sal_uInt16, 68 SfxBindings*, 69 SfxChildWinInfo* ); 70 71 SFX_DECL_CHILDWINDOW(Class); 72 73 virtual void ReInitDlg(); 74 }; 75 76 class ScSimpleRefDlgWrapper: public SfxChildWindow 77 { 78 public: 79 ScSimpleRefDlgWrapper( Window*, 80 sal_uInt16, 81 SfxBindings*, 82 SfxChildWinInfo* ); 83 84 SFX_DECL_CHILDWINDOW(Class); 85 86 static void SetDefaultPosSize(Point aPos, Size aSize, sal_Bool bSet=sal_True); 87 virtual String GetRefString(); 88 virtual void SetRefString(const String& rStr); 89 void SetCloseHdl( const Link& rLink ); 90 void SetUnoLinks( const Link& rDone, const Link& rAbort, 91 const Link& rChange ); 92 void SetFlags( sal_Bool bCloseOnButtonUp, sal_Bool bSingleCell, sal_Bool bMultiSelection ); 93 static void SetAutoReOpen(sal_Bool bFlag); 94 95 void StartRefInput(); 96 }; 97 98 //<!--Added by PengYunQuan for Validity Cell Range Picker 99 class SC_DLLPUBLIC ScValidityRefChildWin : public SfxChildWindow 100 { 101 bool m_bVisibleLock:1; 102 bool m_bFreeWindowLock:1; 103 Window * m_pSavedWndParent; 104 public: 105 ScValidityRefChildWin( Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo* ); 106 SFX_DECL_CHILDWINDOW(ScValidityRefChildWin); 107 ~ScValidityRefChildWin(); LockVisible(bool bLock)108 bool LockVisible( bool bLock ){ bool bVis = m_bVisibleLock; m_bVisibleLock = bLock; return bVis; } LockFreeWindow(bool bLock)109 bool LockFreeWindow( bool bLock ){ bool bFreeWindow = m_bFreeWindowLock; m_bFreeWindowLock = bLock; return bFreeWindow; } Hide()110 void Hide(){ if( !m_bVisibleLock) SfxChildWindow::Hide(); } Show(sal_uInt16 nFlags)111 void Show( sal_uInt16 nFlags ){ if( !m_bVisibleLock ) SfxChildWindow::Show( nFlags ); } 112 }; 113 //-->Added by PengYunQuan for Validity Cell Range Picker 114 115 //================================================================== 116 117 118 #endif // SC_REFFACT_HXX 119