Stop leaking all ScPostIt instances.
[LibreOffice.git] / sc / source / ui / inc / highred.hxx
blob61d9a8c61ed40dfbe4eada6e517cbb98f1d10ff5
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef SC_HIGHRED_HXX
21 #define SC_HIGHRED_HXX
23 #include <vcl/morebtn.hxx>
24 #include <vcl/combobox.hxx>
25 #include <vcl/group.hxx>
26 #include <svtools/headbar.hxx>
27 #include <svtools/simptabl.hxx>
28 #include <svtools/svtabbx.hxx>
30 #include "rangenam.hxx"
31 #include "anyrefdg.hxx"
33 #include <vcl/lstbox.hxx>
35 #include <svx/ctredlin.hxx>
36 #include "chgtrack.hxx"
37 #include "chgviset.hxx"
39 class ScViewData;
40 class ScDocument;
42 #ifndef FLT_DATE_BEFORE
43 #define FLT_DATE_BEFORE 0
44 #define FLT_DATE_SINCE 1
45 #define FLT_DATE_EQUAL 2
46 #define FLT_DATE_NOTEQUAL 3
47 #define FLT_DATE_BETWEEN 4
48 #define FLT_DATE_SAVE 5
49 #endif
51 //==================================================================
53 class ScHighlightChgDlg : public ScAnyRefDlg
55 private:
57 CheckBox aHighlightBox;
58 FixedLine aFlFilter;
59 SvxTPFilter aFilterCtr;
60 CheckBox aCbAccept;
61 CheckBox aCbReject;
63 OKButton aOkButton;
64 CancelButton aCancelButton;
65 HelpButton aHelpButton;
67 formula::RefEdit aEdAssign;
68 formula::RefButton aRbAssign;
70 ScViewData* pViewData;
71 ScDocument* pDoc;
72 ScRangeName aLocalRangeName;
73 Selection theCurSel;
74 Size MinSize;
75 ScRangeList aRangeList;
76 ScChangeViewSettings aChangeViewSet;
78 void Init();
80 DECL_LINK( RefHandle, SvxTPFilter* );
81 DECL_LINK(HighlightHandle, CheckBox*);
82 DECL_LINK(OKBtnHdl, PushButton*);
85 protected:
87 virtual void RefInputDone( sal_Bool bForced = false );
89 public:
90 ScHighlightChgDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent,
91 ScViewData* ptrViewData);
93 ~ScHighlightChgDlg();
95 virtual void SetActive();
96 virtual void SetReference( const ScRange& rRef, ScDocument* pDoc );
97 virtual sal_Bool Close();
98 virtual sal_Bool IsRefInputMode() const;
103 #endif // SC_NAMEDLG_HXX
105 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */