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/.
10 #ifndef INCLUDED_DBACCESS_SOURCE_UI_INC_QUERYPROPERTIESDIALOG_HXX
11 #define INCLUDED_DBACCESS_SOURCE_UI_INC_QUERYPROPERTIESDIALOG_HXX
13 #include <vcl/dialog.hxx>
14 #include <vcl/button.hxx>
15 #include <rtl/ustring.hxx>
16 #include "LimitBox.hxx"
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
30 QueryPropertiesDialog(
31 vcl::Window
* pParent
, const bool bDistinct
, const sal_Int64 nLimit
);
32 virtual ~QueryPropertiesDialog();
33 virtual void dispose() override
;
34 bool getDistinct() const;
35 sal_Int64
getLimit() const;
39 VclPtr
<RadioButton
> m_pRB_Distinct
;
40 VclPtr
<RadioButton
> m_pRB_NonDistinct
;
42 VclPtr
<LimitBox
> m_pLB_Limit
;
47 inline bool QueryPropertiesDialog::getDistinct() const
49 return m_pRB_Distinct
->IsChecked();
52 inline sal_Int64
QueryPropertiesDialog::getLimit() const
54 return m_pLB_Limit
->GetValue();
60 #endif /// INCLUDED_DBACCESS_SOURCE_UI_INC_QUERYPROPERTIESDIALOG_HXX
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */