xref: /trunk/main/sc/source/ui/inc/pfiltdlg.hxx (revision 914d351e5f5b84e4342a86d6ab8d4aca7308b9bd)
1*38d50f7bSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*38d50f7bSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*38d50f7bSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*38d50f7bSAndrew Rist  * distributed with this work for additional information
6*38d50f7bSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*38d50f7bSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*38d50f7bSAndrew Rist  * "License"); you may not use this file except in compliance
9*38d50f7bSAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*38d50f7bSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*38d50f7bSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*38d50f7bSAndrew Rist  * software distributed under the License is distributed on an
15*38d50f7bSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*38d50f7bSAndrew Rist  * KIND, either express or implied.  See the License for the
17*38d50f7bSAndrew Rist  * specific language governing permissions and limitations
18*38d50f7bSAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*38d50f7bSAndrew Rist  *************************************************************/
21*38d50f7bSAndrew Rist 
22*38d50f7bSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef SC_PFILTDLG_HXX
25cdf0e10cSrcweir #define SC_PFILTDLG_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #ifndef _SV_HXX
28cdf0e10cSrcweir #endif
29cdf0e10cSrcweir 
30cdf0e10cSrcweir #ifndef _MOREBTN_HXX //autogen
31cdf0e10cSrcweir #include <vcl/morebtn.hxx>
32cdf0e10cSrcweir #endif
33cdf0e10cSrcweir #include <svtools/stdctrl.hxx>
34cdf0e10cSrcweir #ifndef _BUTTON_HXX //autogen
35cdf0e10cSrcweir #include <vcl/button.hxx>
36cdf0e10cSrcweir #endif
37cdf0e10cSrcweir #ifndef _FIXED_HXX //autogen
38cdf0e10cSrcweir #include <vcl/fixed.hxx>
39cdf0e10cSrcweir #endif
40cdf0e10cSrcweir #ifndef _DIALOG_HXX //autogen
41cdf0e10cSrcweir #include <vcl/dialog.hxx>
42cdf0e10cSrcweir #endif
43cdf0e10cSrcweir #ifndef _LSTBOX_HXX //autogen
44cdf0e10cSrcweir #include <vcl/lstbox.hxx>
45cdf0e10cSrcweir #endif
46cdf0e10cSrcweir #ifndef _COMBOBOX_HXX //autogen
47cdf0e10cSrcweir #include <vcl/combobox.hxx>
48cdf0e10cSrcweir #endif
49cdf0e10cSrcweir #include "address.hxx"
50cdf0e10cSrcweir #include "queryparam.hxx"
51cdf0e10cSrcweir 
52cdf0e10cSrcweir //------------------------------------------------------------------
53cdf0e10cSrcweir 
54cdf0e10cSrcweir class ScViewData;
55cdf0e10cSrcweir class ScDocument;
56cdf0e10cSrcweir class ScQueryItem;
57cdf0e10cSrcweir class TypedScStrCollection;
58cdf0e10cSrcweir 
59cdf0e10cSrcweir //==================================================================
60cdf0e10cSrcweir 
61cdf0e10cSrcweir class ScPivotFilterDlg : public ModalDialog
62cdf0e10cSrcweir {
63cdf0e10cSrcweir public:
64cdf0e10cSrcweir                     ScPivotFilterDlg( Window* pParent,
65cdf0e10cSrcweir                                       const SfxItemSet& rArgSet, SCTAB nSourceTab );
66cdf0e10cSrcweir                     ~ScPivotFilterDlg();
67cdf0e10cSrcweir 
68cdf0e10cSrcweir     const ScQueryItem&  GetOutputItem();
69cdf0e10cSrcweir 
70cdf0e10cSrcweir private:
71cdf0e10cSrcweir     FixedLine       aFlCriteria;
72cdf0e10cSrcweir     //----------------------------
73cdf0e10cSrcweir     ListBox         aLbField1;
74cdf0e10cSrcweir     ListBox         aLbCond1;
75cdf0e10cSrcweir     ComboBox        aEdVal1;
76cdf0e10cSrcweir     //----------------------------
77cdf0e10cSrcweir     ListBox         aLbConnect1;
78cdf0e10cSrcweir     ListBox         aLbField2;
79cdf0e10cSrcweir     ListBox         aLbCond2;
80cdf0e10cSrcweir     ComboBox        aEdVal2;
81cdf0e10cSrcweir     //----------------------------
82cdf0e10cSrcweir     ListBox         aLbConnect2;
83cdf0e10cSrcweir     ListBox         aLbField3;
84cdf0e10cSrcweir     ListBox         aLbCond3;
85cdf0e10cSrcweir     ComboBox        aEdVal3;
86cdf0e10cSrcweir     //----------------------------
87cdf0e10cSrcweir     FixedText       aFtConnect;
88cdf0e10cSrcweir     FixedText       aFtField;
89cdf0e10cSrcweir     FixedText       aFtCond;
90cdf0e10cSrcweir     FixedText       aFtVal;
91cdf0e10cSrcweir 
92cdf0e10cSrcweir     FixedLine       aFlOptions;
93cdf0e10cSrcweir     CheckBox        aBtnCase;
94cdf0e10cSrcweir     CheckBox        aBtnRegExp;
95cdf0e10cSrcweir     CheckBox        aBtnUnique;
96cdf0e10cSrcweir     FixedText       aFtDbAreaLabel;
97cdf0e10cSrcweir     FixedInfo       aFtDbArea;
98cdf0e10cSrcweir     OKButton        aBtnOk;
99cdf0e10cSrcweir     CancelButton    aBtnCancel;
100cdf0e10cSrcweir     HelpButton      aBtnHelp;
101cdf0e10cSrcweir     MoreButton      aBtnMore;
102cdf0e10cSrcweir     const String    aStrUndefined;
103cdf0e10cSrcweir     const String    aStrNoName;
104cdf0e10cSrcweir     const String    aStrNone;
105cdf0e10cSrcweir     const String    aStrEmpty;
106cdf0e10cSrcweir     const String    aStrNotEmpty;
107cdf0e10cSrcweir     const String    aStrRow;
108cdf0e10cSrcweir     const String    aStrColumn;
109cdf0e10cSrcweir 
110cdf0e10cSrcweir     const sal_uInt16        nWhichQuery;
111cdf0e10cSrcweir     const ScQueryParam  theQueryData;
112cdf0e10cSrcweir     ScQueryItem*        pOutItem;
113cdf0e10cSrcweir     ScViewData*         pViewData;
114cdf0e10cSrcweir     ScDocument*         pDoc;
115cdf0e10cSrcweir     SCTAB               nSrcTab;
116cdf0e10cSrcweir 
117cdf0e10cSrcweir     sal_uInt16              nFieldCount;
118cdf0e10cSrcweir     ComboBox*           aValueEdArr[3];
119cdf0e10cSrcweir     ListBox*            aFieldLbArr[3];
120cdf0e10cSrcweir     ListBox*            aCondLbArr[3];
121cdf0e10cSrcweir 
122cdf0e10cSrcweir     TypedScStrCollection*   pEntryLists[MAXCOLCOUNT];
123cdf0e10cSrcweir 
124cdf0e10cSrcweir #ifdef _PFILTDLG_CXX
125cdf0e10cSrcweir private:
126cdf0e10cSrcweir     void    Init            ( const SfxItemSet& rArgSet );
127cdf0e10cSrcweir     void    FillFieldLists  ();
128cdf0e10cSrcweir     void    UpdateValueList ( sal_uInt16 nList );
129cdf0e10cSrcweir     void    ClearValueList  ( sal_uInt16 nList );
130cdf0e10cSrcweir     sal_uInt16  GetFieldSelPos  ( SCCOL nField );
131cdf0e10cSrcweir 
132cdf0e10cSrcweir     // Handler:
133cdf0e10cSrcweir     DECL_LINK( LbSelectHdl, ListBox* );
134cdf0e10cSrcweir     DECL_LINK( ValModifyHdl, ComboBox* );
135cdf0e10cSrcweir     DECL_LINK( CheckBoxHdl,  CheckBox* );
136cdf0e10cSrcweir #endif
137cdf0e10cSrcweir };
138cdf0e10cSrcweir 
139cdf0e10cSrcweir 
140cdf0e10cSrcweir #endif // SC_PFILTDLG_HXX
141