bump product version to 4.1.6.2
[LibreOffice.git] / dbaccess / source / ui / inc / QueryPropertiesDialog.hxx
blobf6ba4523bbc3554a7159eaee7bfc20e073961b46
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/.
8 */
10 #ifndef QUERYPROPERTIESDIALOG_HXX
11 #define QUERYPROPERTIESDIALOG_HXX
13 #include <vcl/dialog.hxx>
14 #include <vcl/button.hxx>
15 #include <rtl/ustring.hxx>
16 #include "LimitBox.hxx"
18 namespace dbaui
21 /**
22 * Dialog to set such properties of a query as distinct values and limit
23 * It can be opened form Edit menu in Query Design View
25 class QueryPropertiesDialog : public ModalDialog
28 public:
30 QueryPropertiesDialog(
31 Window* pParent, const sal_Bool bDistinct, const sal_Int64 nLimit );
32 ~QueryPropertiesDialog();
34 sal_Bool getDistinct() const;
35 sal_Int64 getLimit() const;
37 private:
39 RadioButton* m_pRB_Distinct;
40 RadioButton* m_pRB_NonDistinct;
42 LimitBox* m_pLB_Limit;
47 inline sal_Bool QueryPropertiesDialog::getDistinct() const
49 return m_pRB_Distinct->IsChecked();
52 inline sal_Int64 QueryPropertiesDialog::getLimit() const
54 return m_pLB_Limit->GetValue();
58 } ///dbaui namespace
60 #endif ///QUERYPROPERTIESDIALOG_HXX
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */