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_FOPTMGR_HXX 29 #define SC_FOPTMGR_HXX 30 31 #ifndef _FIXED_HXX //autogen 32 #include <vcl/fixed.hxx> 33 #endif 34 #ifndef _EDIT_HXX //autogen 35 #include <vcl/edit.hxx> 36 #endif 37 #ifndef _LSTBOX_HXX //autogen 38 #include <vcl/lstbox.hxx> 39 #endif 40 #ifndef _BUTTON_HXX //autogen 41 #include <vcl/button.hxx> 42 #endif 43 44 //---------------------------------------------------------------------------- 45 46 class FixedInfo; 47 namespace formula 48 { 49 class RefButton; 50 } 51 class MoreButton; 52 class Dialog; 53 struct ScQueryParam; 54 class ScDocument; 55 class ScViewData; 56 57 //---------------------------------------------------------------------------- 58 59 class ScFilterOptionsMgr 60 { 61 public: 62 ScFilterOptionsMgr( Dialog* ptrDlg, 63 ScViewData* ptrViewData, 64 const ScQueryParam& refQueryData, 65 MoreButton& refBtnMore, 66 CheckBox& refBtnCase, 67 CheckBox& refBtnRegExp, 68 CheckBox& refBtnHeader, 69 CheckBox& refBtnUnique, 70 CheckBox& refBtnCopyResult, 71 CheckBox& refBtnDestPers, 72 ListBox& refLbCopyArea, 73 Edit& refEdCopyArea, 74 formula::RefButton& refRbCopyArea, 75 FixedText& refFtDbAreaLabel, 76 FixedInfo& refFtDbArea, 77 FixedLine& refFlOptions, 78 const String& refStrNoName, 79 const String& refStrUndefined ); 80 ~ScFilterOptionsMgr(); 81 82 sal_Bool VerifyPosStr ( const String& rPosStr ) const; 83 84 private: 85 Dialog* pDlg; 86 ScViewData* pViewData; 87 ScDocument* pDoc; 88 89 MoreButton& rBtnMore; 90 CheckBox& rBtnCase; 91 CheckBox& rBtnRegExp; 92 CheckBox& rBtnHeader; 93 CheckBox& rBtnUnique; 94 CheckBox& rBtnCopyResult; 95 CheckBox& rBtnDestPers; 96 ListBox& rLbCopyPos; 97 Edit& rEdCopyPos; 98 formula::RefButton& rRbCopyPos; 99 FixedText& rFtDbAreaLabel; 100 FixedInfo& rFtDbArea; 101 FixedLine& rFlOptions; 102 103 const String& rStrNoName; 104 const String& rStrUndefined; 105 106 const ScQueryParam& rQueryData; 107 108 #ifdef _FOPTMGR_CXX 109 private: 110 void Init(); 111 112 // Handler: 113 DECL_LINK( EdPosModifyHdl, Edit* ); 114 DECL_LINK( LbPosSelHdl, ListBox* ); 115 DECL_LINK( BtnCopyResultHdl, CheckBox* ); 116 #endif 117 }; 118 119 120 121 #endif // SC_FOPTMGR_HXX 122