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 INCLUDED_SC_SOURCE_UI_INC_PFILTDLG_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_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"
38 class ScPivotFilterDlg
: public ModalDialog
41 ScPivotFilterDlg(vcl::Window
* pParent
, const SfxItemSet
& rArgSet
, SCTAB nSourceTab
);
42 virtual ~ScPivotFilterDlg();
43 virtual void dispose() SAL_OVERRIDE
;
45 const ScQueryItem
& GetOutputItem();
48 VclPtr
<ListBox
> m_pLbField1
;
49 VclPtr
<ListBox
> m_pLbCond1
;
50 VclPtr
<ComboBox
> m_pEdVal1
;
52 VclPtr
<ListBox
> m_pLbConnect1
;
53 VclPtr
<ListBox
> m_pLbField2
;
54 VclPtr
<ListBox
> m_pLbCond2
;
55 VclPtr
<ComboBox
> m_pEdVal2
;
57 VclPtr
<ListBox
> m_pLbConnect2
;
58 VclPtr
<ListBox
> m_pLbField3
;
59 VclPtr
<ListBox
> m_pLbCond3
;
60 VclPtr
<ComboBox
> m_pEdVal3
;
62 VclPtr
<CheckBox
> m_pBtnCase
;
63 VclPtr
<CheckBox
> m_pBtnRegExp
;
64 VclPtr
<CheckBox
> m_pBtnUnique
;
65 VclPtr
<FixedText
> m_pFtDbArea
;
66 const OUString aStrNone
;
67 const OUString aStrEmpty
;
68 const OUString aStrNotEmpty
;
69 const OUString aStrColumn
;
71 const sal_uInt16 nWhichQuery
;
72 const ScQueryParam theQueryData
;
73 ScQueryItem
* pOutItem
;
74 ScViewData
* pViewData
;
78 sal_uInt16 nFieldCount
;
79 VclPtr
<ComboBox
> aValueEdArr
[3];
80 VclPtr
<ListBox
> aFieldLbArr
[3];
81 VclPtr
<ListBox
> aCondLbArr
[3];
83 std::vector
<ScTypedStrData
>* pEntryLists
[MAXCOLCOUNT
];
86 void Init ( const SfxItemSet
& rArgSet
);
87 void FillFieldLists ();
88 void UpdateValueList ( sal_uInt16 nList
);
89 void ClearValueList ( sal_uInt16 nList
);
90 sal_uInt16
GetFieldSelPos ( SCCOL nField
);
93 DECL_LINK( LbSelectHdl
, ListBox
* );
94 DECL_LINK( ValModifyHdl
, ComboBox
* );
95 DECL_LINK( CheckBoxHdl
, CheckBox
* );
98 #endif // INCLUDED_SC_SOURCE_UI_INC_PFILTDLG_HXX
100 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */