1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 //------------------------------------------------------------------
40 //==================================================================
42 class ScPivotFilterDlg
: public ModalDialog
45 ScPivotFilterDlg( Window
* pParent
,
46 const SfxItemSet
& rArgSet
, SCTAB nSourceTab
);
49 const ScQueryItem
& GetOutputItem();
52 FixedLine aFlCriteria
;
53 //----------------------------
57 //----------------------------
62 //----------------------------
67 //----------------------------
77 FixedText aFtDbAreaLabel
;
80 CancelButton aBtnCancel
;
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
;
96 sal_uInt16 nFieldCount
;
97 ComboBox
* aValueEdArr
[3];
98 ListBox
* aFieldLbArr
[3];
99 ListBox
* aCondLbArr
[3];
101 std::vector
<ScTypedStrData
>* pEntryLists
[MAXCOLCOUNT
];
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
);
112 DECL_LINK( LbSelectHdl
, ListBox
* );
113 DECL_LINK( ValModifyHdl
, ComboBox
* );
114 DECL_LINK( CheckBoxHdl
, CheckBox
* );
119 #endif // SC_PFILTDLG_HXX
121 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */