Add Marathi autocorrect
[LibreOffice.git] / sw / source / uibase / inc / srtdlg.hxx
blobe7516fb4c94a31595178d9be1d6e35430d959048
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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>
26 class SwWrtShell;
28 class SwSortDlg final : 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;
63 OUString m_aColText;
64 OUString m_aRowText;
65 OUString m_aNumericText;
67 SwWrtShell& m_rSh;
68 std::unique_ptr<CollatorResource> m_xColRes;
70 sal_uInt16 m_nX;
71 sal_uInt16 m_nY;
73 sal_Unicode GetDelimChar() const;
75 DECL_LINK(CheckHdl, weld::Toggleable&, void);
76 DECL_LINK(DelimHdl, weld::Toggleable&, void);
77 DECL_LINK(LanguageListBoxHdl, weld::ComboBox&, void);
78 void LanguageHdl(weld::ComboBox const*);
79 DECL_LINK(DelimCharHdl, weld::Button&, void);
81 public:
82 SwSortDlg(weld::Window* pParent, SwWrtShell& rSh);
83 void Apply();
86 #endif
88 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */