1*b0724fc6SAndrew Rist /**************************************************************
2cdf0e10cSrcweir *
3*b0724fc6SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*b0724fc6SAndrew Rist * or more contributor license agreements. See the NOTICE file
5*b0724fc6SAndrew Rist * distributed with this work for additional information
6*b0724fc6SAndrew Rist * regarding copyright ownership. The ASF licenses this file
7*b0724fc6SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*b0724fc6SAndrew Rist * "License"); you may not use this file except in compliance
9*b0724fc6SAndrew Rist * with the License. You may obtain a copy of the License at
10*b0724fc6SAndrew Rist *
11*b0724fc6SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0
12*b0724fc6SAndrew Rist *
13*b0724fc6SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*b0724fc6SAndrew Rist * software distributed under the License is distributed on an
15*b0724fc6SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b0724fc6SAndrew Rist * KIND, either express or implied. See the License for the
17*b0724fc6SAndrew Rist * specific language governing permissions and limitations
18*b0724fc6SAndrew Rist * under the License.
19*b0724fc6SAndrew Rist *
20*b0724fc6SAndrew Rist *************************************************************/
21*b0724fc6SAndrew Rist
22*b0724fc6SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir #if !TEST_LAYOUT
25cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
26cdf0e10cSrcweir #include "precompiled_sc.hxx"
27cdf0e10cSrcweir #endif /*! TEST_LAYOUT */
28cdf0e10cSrcweir
29cdf0e10cSrcweir #undef SC_DLLIMPLEMENTATION
30cdf0e10cSrcweir
31cdf0e10cSrcweir
32cdf0e10cSrcweir
33cdf0e10cSrcweir #include "tpsort.hxx"
34cdf0e10cSrcweir #include "sortdlg.hxx"
35cdf0e10cSrcweir #include "scresid.hxx"
36cdf0e10cSrcweir #include "sortdlg.hrc"
37cdf0e10cSrcweir
38cdf0e10cSrcweir #if !LAYOUT_SFX_TABDIALOG_BROKEN
39cdf0e10cSrcweir #include <layout/layout-pre.hxx>
40cdf0e10cSrcweir #endif
41cdf0e10cSrcweir
ScSortDlg(Window * pParent,const SfxItemSet * pArgSet)42cdf0e10cSrcweir ScSortDlg::ScSortDlg( Window* pParent,
43cdf0e10cSrcweir const SfxItemSet* pArgSet ) :
44cdf0e10cSrcweir SfxTabDialog( pParent,
45cdf0e10cSrcweir ScResId( RID_SCDLG_SORT ),
46cdf0e10cSrcweir pArgSet ),
47cdf0e10cSrcweir bIsHeaders ( FALSE ),
48cdf0e10cSrcweir bIsByRows ( FALSE )
49cdf0e10cSrcweir
50cdf0e10cSrcweir {
51cdf0e10cSrcweir #if LAYOUT_SFX_TABDIALOG_BROKEN
52cdf0e10cSrcweir AddTabPage( TP_FIELDS, ScTabPageSortFields::Create, 0 );
53cdf0e10cSrcweir AddTabPage( TP_OPTIONS, ScTabPageSortOptions::Create, 0 );
54cdf0e10cSrcweir #else /* !LAYOUT_SFX_TABDIALOG_BROKEN */
55cdf0e10cSrcweir String fields = rtl::OUString::createFromAscii ("fields");
56cdf0e10cSrcweir AddTabPage( TP_FIELDS, fields, ScTabPageSortFields::Create, 0, FALSE, TAB_APPEND);
57cdf0e10cSrcweir String options = rtl::OUString::createFromAscii ("options");
58cdf0e10cSrcweir AddTabPage( TP_OPTIONS, options, ScTabPageSortOptions::Create, 0, FALSE, TAB_APPEND);
59cdf0e10cSrcweir #endif /* !LAYOUT_SFX_TABDIALOG_BROKEN */
60cdf0e10cSrcweir FreeResource();
61cdf0e10cSrcweir }
62cdf0e10cSrcweir
~ScSortDlg()63cdf0e10cSrcweir __EXPORT ScSortDlg::~ScSortDlg()
64cdf0e10cSrcweir {
65cdf0e10cSrcweir }
66cdf0e10cSrcweir
67