LibreOffice Module dbaccess (master) 1
QueryPropertiesDialog.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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 */
9
10#pragma once
11
12#include <vcl/weld.hxx>
13
14namespace dbaui
15{
16
22{
23
24public:
25
27 weld::Window* pParent, const bool bDistinct, const sal_Int64 nLimit );
28 virtual ~QueryPropertiesDialog() override;
29 bool getDistinct() const
30 {
31 return m_xRB_Distinct->get_active();
32 }
33
34 sal_Int64 getLimit() const;
35
36private:
37
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;
41};
42
43}
44
45/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Dialog to set such properties of a query as distinct values and limit It can be opened from Edit menu...
std::unique_ptr< weld::ComboBox > m_xLB_Limit
std::unique_ptr< weld::RadioButton > m_xRB_NonDistinct
std::unique_ptr< weld::RadioButton > m_xRB_Distinct
QueryPropertiesDialog(weld::Window *pParent, const bool bDistinct, const sal_Int64 nLimit)