Stop leaking all ScPostIt instances.
[LibreOffice.git] / sc / source / ui / inc / pfiltdlg.hxx
blobcf4ef4e275439129ae1b969d9d211a3a8338bf04
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_PFILTDLG_HXX
21 #define SC_PFILTDLG_HXX
23 #include <vcl/morebtn.hxx>
24 #include <svtools/stdctrl.hxx>
25 #include <vcl/button.hxx>
26 #include <vcl/fixed.hxx>
27 #include <vcl/dialog.hxx>
28 #include <vcl/lstbox.hxx>
29 #include <vcl/combobox.hxx>
30 #include "address.hxx"
31 #include "queryparam.hxx"
33 //------------------------------------------------------------------
35 class ScViewData;
36 class ScDocument;
37 class ScQueryItem;
38 class ScTypedStrData;
40 //==================================================================
42 class ScPivotFilterDlg : public ModalDialog
44 public:
45 ScPivotFilterDlg( Window* pParent,
46 const SfxItemSet& rArgSet, SCTAB nSourceTab );
47 ~ScPivotFilterDlg();
49 const ScQueryItem& GetOutputItem();
51 private:
52 FixedLine aFlCriteria;
53 //----------------------------
54 ListBox aLbField1;
55 ListBox aLbCond1;
56 ComboBox aEdVal1;
57 //----------------------------
58 ListBox aLbConnect1;
59 ListBox aLbField2;
60 ListBox aLbCond2;
61 ComboBox aEdVal2;
62 //----------------------------
63 ListBox aLbConnect2;
64 ListBox aLbField3;
65 ListBox aLbCond3;
66 ComboBox aEdVal3;
67 //----------------------------
68 FixedText aFtConnect;
69 FixedText aFtField;
70 FixedText aFtCond;
71 FixedText aFtVal;
73 FixedLine aFlOptions;
74 CheckBox aBtnCase;
75 CheckBox aBtnRegExp;
76 CheckBox aBtnUnique;
77 FixedText aFtDbAreaLabel;
78 FixedInfo aFtDbArea;
79 OKButton aBtnOk;
80 CancelButton aBtnCancel;
81 HelpButton aBtnHelp;
82 MoreButton aBtnMore;
83 const OUString aStrUndefined;
84 const OUString aStrNone;
85 const OUString aStrEmpty;
86 const OUString aStrNotEmpty;
87 const OUString aStrColumn;
89 const sal_uInt16 nWhichQuery;
90 const ScQueryParam theQueryData;
91 ScQueryItem* pOutItem;
92 ScViewData* pViewData;
93 ScDocument* pDoc;
94 SCTAB nSrcTab;
96 sal_uInt16 nFieldCount;
97 ComboBox* aValueEdArr[3];
98 ListBox* aFieldLbArr[3];
99 ListBox* aCondLbArr[3];
101 std::vector<ScTypedStrData>* pEntryLists[MAXCOLCOUNT];
103 #ifdef _PFILTDLG_CXX
104 private:
105 void Init ( const SfxItemSet& rArgSet );
106 void FillFieldLists ();
107 void UpdateValueList ( sal_uInt16 nList );
108 void ClearValueList ( sal_uInt16 nList );
109 sal_uInt16 GetFieldSelPos ( SCCOL nField );
111 // Handler:
112 DECL_LINK( LbSelectHdl, ListBox* );
113 DECL_LINK( ValModifyHdl, ComboBox* );
114 DECL_LINK( CheckBoxHdl, CheckBox* );
115 #endif
119 #endif // SC_PFILTDLG_HXX
121 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */