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/.
12 #include <vcl/weld.hxx>
18 * Dialog to set such properties of a query as distinct values and limit
19 * It can be opened from Edit menu in Query Design View
21 class QueryPropertiesDialog
: public weld::GenericDialogController
26 QueryPropertiesDialog(
27 weld::Window
* pParent
, const bool bDistinct
, const sal_Int64 nLimit
);
28 virtual ~QueryPropertiesDialog() override
;
29 bool getDistinct() const
31 return m_xRB_Distinct
->get_active();
34 sal_Int64
getLimit() const;
38 std::unique_ptr
<weld::RadioButton
> m_xRB_Distinct
;
39 std::unique_ptr
<weld::RadioButton
> m_xRB_NonDistinct
;
40 std::unique_ptr
<weld::ComboBox
> m_xLB_Limit
;
45 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */