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 .
19 #ifndef INCLUDED_SW_SOURCE_UIBASE_INC_SRTDLG_HXX
20 #define INCLUDED_SW_SOURCE_UIBASE_INC_SRTDLG_HXX
22 #include <svtools/collatorres.hxx>
23 #include <svx/langbox.hxx>
24 #include <vcl/weld.hxx>
28 class SwSortDlg
: public weld::GenericDialogController
30 weld::Window
* m_pParent
;
31 std::unique_ptr
<weld::Label
> m_xColLbl
;
33 std::unique_ptr
<weld::CheckButton
> m_xKeyCB1
;
34 std::unique_ptr
<weld::SpinButton
> m_xColEdt1
;
35 std::unique_ptr
<weld::ComboBox
> m_xTypDLB1
;
36 std::unique_ptr
<weld::RadioButton
> m_xSortUp1RB
;
37 std::unique_ptr
<weld::RadioButton
> m_xSortDn1RB
;
39 std::unique_ptr
<weld::CheckButton
> m_xKeyCB2
;
40 std::unique_ptr
<weld::SpinButton
> m_xColEdt2
;
41 std::unique_ptr
<weld::ComboBox
> m_xTypDLB2
;
42 std::unique_ptr
<weld::RadioButton
> m_xSortUp2RB
;
43 std::unique_ptr
<weld::RadioButton
> m_xSortDn2RB
;
45 std::unique_ptr
<weld::CheckButton
> m_xKeyCB3
;
46 std::unique_ptr
<weld::SpinButton
> m_xColEdt3
;
47 std::unique_ptr
<weld::ComboBox
> m_xTypDLB3
;
48 std::unique_ptr
<weld::RadioButton
> m_xSortUp3RB
;
49 std::unique_ptr
<weld::RadioButton
> m_xSortDn3RB
;
51 std::unique_ptr
<weld::RadioButton
> m_xColumnRB
;
52 std::unique_ptr
<weld::RadioButton
> m_xRowRB
;
54 std::unique_ptr
<weld::RadioButton
> m_xDelimTabRB
;
55 std::unique_ptr
<weld::RadioButton
> m_xDelimFreeRB
;
56 std::unique_ptr
<weld::Entry
> m_xDelimEdt
;
57 std::unique_ptr
<weld::Button
> m_xDelimPB
;
59 std::unique_ptr
<SvxLanguageBox
> m_xLangLB
;
61 std::unique_ptr
<weld::CheckButton
> m_xCaseCB
;
65 OUString aNumericText
;
68 std::unique_ptr
<CollatorResource
> m_xColRes
;
74 sal_Unicode
GetDelimChar() const;
76 DECL_LINK(CheckHdl
, weld::ToggleButton
&, void);
77 DECL_LINK(DelimHdl
, weld::ToggleButton
&, void);
78 DECL_LINK(LanguageListBoxHdl
, weld::ComboBox
&, void);
79 void LanguageHdl(weld::ComboBox
const*);
80 DECL_LINK(DelimCharHdl
, weld::Button
&, void);
83 SwSortDlg(weld::Window
* pParent
, SwWrtShell
& rSh
);
84 virtual short run() override
;
89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */