xref: /trunk/main/sc/source/ui/inc/sortdlg.hxx (revision 38d50f7b)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef SC_SORTDLG_HXX
25 #define SC_SORTDLG_HXX
26 
27 #include <sfx2/tabdlg.hxx>
28 #include <vcl/button.hxx>
29 #include <vcl/dialog.hxx>
30 #include <vcl/fixed.hxx>
31 #include "scui_def.hxx" //CHINA001
32 
33 #ifndef LAYOUT_SFX_TABDIALOG_BROKEN
34 #define LAYOUT_SFX_TABDIALOG_BROKEN 1
35 #endif /* !LAYOUT_SFX_TABDIALOG_BROKEN */
36 
37 #if !LAYOUT_SFX_TABDIALOG_BROKEN
38 #include <sfx2/layout.hxx>
39 #include <layout/layout-pre.hxx>
40 #endif
41 
42 class ScSortDlg : public SfxTabDialog
43 {
44 public:
45 				ScSortDlg( Window*			 pParent,
46 						   const SfxItemSet* pArgSet );
47 				~ScSortDlg();
48 
49 	void	SetHeaders( sal_Bool bHeaders );
50 	void	SetByRows ( sal_Bool bByRows );
51 	sal_Bool	GetHeaders() const;
52 	sal_Bool	GetByRows () const;
53 
54 
55 private:
56 	sal_Bool	bIsHeaders;
57 	sal_Bool	bIsByRows;
58 };
59 
SetHeaders(sal_Bool bHeaders)60 inline void ScSortDlg::SetHeaders( sal_Bool bHeaders )	{ bIsHeaders = bHeaders; }
SetByRows(sal_Bool bByRows)61 inline void ScSortDlg::SetByRows ( sal_Bool bByRows  )	{ bIsByRows = bByRows; }
GetHeaders() const62 inline sal_Bool ScSortDlg::GetHeaders() const 			{ return bIsHeaders; }
GetByRows() const63 inline sal_Bool ScSortDlg::GetByRows () const 			{ return bIsByRows; }
64 
65 class ScSortWarningDlg : public ModalDialog
66 {
67 public:
68     ScSortWarningDlg( Window* pParent, const String& rExtendText,const String& rCurrentText );
69             ~ScSortWarningDlg();
70     DECL_LINK( BtnHdl, PushButton* );
71 private:
72     FixedText       aFtText;
73     FixedText       aFtTip;
74     PushButton      aBtnExtSort;
75     PushButton      aBtnCurSort;
76     CancelButton    aBtnCancel;
77 };
78 
79 #if !LAYOUT_SFX_TABDIALOG_BROKEN
80 #include <layout/layout-post.hxx>
81 #endif
82 
83 #endif // SC_SORTDLG_HXX
84