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_HIGHRED_HXX 29 #define SC_HIGHRED_HXX 30 31 #ifndef _MOREBTN_HXX //autogen 32 #include <vcl/morebtn.hxx> 33 #endif 34 #ifndef _COMBOBOX_HXX //autogen 35 #include <vcl/combobox.hxx> 36 #endif 37 #ifndef _GROUP_HXX //autogen 38 #include <vcl/group.hxx> 39 #endif 40 #include <svtools/headbar.hxx> 41 #include <svtools/svtabbx.hxx> 42 43 44 #include "rangenam.hxx" 45 #include "anyrefdg.hxx" 46 47 #ifndef _MOREBTN_HXX //autogen 48 #include <vcl/morebtn.hxx> 49 #endif 50 #include <vcl/lstbox.hxx> 51 52 #ifndef _SVX_ACREDLIN_HXX 53 #include <svx/ctredlin.hxx> 54 #endif 55 #include <svx/simptabl.hxx> 56 #include "chgtrack.hxx" 57 #include "chgviset.hxx" 58 59 class ScViewData; 60 class ScDocument; 61 62 #ifndef FLT_DATE_BEFORE 63 #define FLT_DATE_BEFORE 0 64 #define FLT_DATE_SINCE 1 65 #define FLT_DATE_EQUAL 2 66 #define FLT_DATE_NOTEQUAL 3 67 #define FLT_DATE_BETWEEN 4 68 #define FLT_DATE_SAVE 5 69 #endif 70 71 //================================================================== 72 73 class ScHighlightChgDlg : public ScAnyRefDlg 74 { 75 private: 76 77 CheckBox aHighlightBox; 78 FixedLine aFlFilter; 79 SvxTPFilter aFilterCtr; 80 CheckBox aCbAccept; 81 CheckBox aCbReject; 82 83 OKButton aOkButton; 84 CancelButton aCancelButton; 85 HelpButton aHelpButton; 86 87 formula::RefEdit aEdAssign; 88 formula::RefButton aRbAssign; 89 90 ScViewData* pViewData; 91 ScDocument* pDoc; 92 ScRangeName aLocalRangeName; 93 Selection theCurSel; 94 Size MinSize; 95 ScRangeList aRangeList; 96 ScChangeViewSettings aChangeViewSet; 97 98 void Init(); 99 100 DECL_LINK( RefHandle, SvxTPFilter* ); 101 DECL_LINK(HighLightHandle, CheckBox*); 102 DECL_LINK(OKBtnHdl, PushButton*); 103 104 105 protected: 106 107 virtual void RefInputDone( sal_Bool bForced = sal_False ); 108 109 public: 110 ScHighlightChgDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent, 111 ScViewData* ptrViewData); 112 113 ~ScHighlightChgDlg(); 114 115 virtual void SetActive(); 116 virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ); 117 virtual sal_Bool Close(); 118 virtual sal_Bool IsRefInputMode() const; 119 120 }; 121 122 123 #endif // SC_NAMEDLG_HXX 124 125