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 #if !TEST_LAYOUT
25 // MARKER(update_precomp.py): autogen include statement, do not remove
26 #include "precompiled_sc.hxx"
27 #endif /*! TEST_LAYOUT */
28 
29 #undef SC_DLLIMPLEMENTATION
30 
31 
32 
33 #include "tpsort.hxx"
34 #include "sortdlg.hxx"
35 #include "scresid.hxx"
36 #include "sortdlg.hrc"
37 
38 #if !LAYOUT_SFX_TABDIALOG_BROKEN
39 #include <layout/layout-pre.hxx>
40 #endif
41 
ScSortDlg(Window * pParent,const SfxItemSet * pArgSet)42 ScSortDlg::ScSortDlg( Window*			pParent,
43 					  const SfxItemSet* pArgSet ) :
44 		SfxTabDialog( pParent,
45 					  ScResId( RID_SCDLG_SORT ),
46 					  pArgSet ),
47 		bIsHeaders	( FALSE ),
48 		bIsByRows	( FALSE )
49 
50 {
51 #if LAYOUT_SFX_TABDIALOG_BROKEN
52 	AddTabPage( TP_FIELDS,	ScTabPageSortFields::Create,  0 );
53 	AddTabPage( TP_OPTIONS,	ScTabPageSortOptions::Create, 0 );
54 #else /* !LAYOUT_SFX_TABDIALOG_BROKEN */
55     String fields = rtl::OUString::createFromAscii ("fields");
56 	AddTabPage( TP_FIELDS, fields, ScTabPageSortFields::Create, 0, FALSE, TAB_APPEND);
57     String options = rtl::OUString::createFromAscii ("options");
58 	AddTabPage( TP_OPTIONS,	options, ScTabPageSortOptions::Create, 0, FALSE, TAB_APPEND);
59 #endif /* !LAYOUT_SFX_TABDIALOG_BROKEN */
60 	FreeResource();
61 }
62 
~ScSortDlg()63 __EXPORT ScSortDlg::~ScSortDlg()
64 {
65 }
66 
67