cid#1640468 Dereference after null check
[LibreOffice.git] / dbaccess / source / ui / inc / QueryPropertiesDialog.hxx
blob2d8bb80dcf49e799ea363c91ade79c4edebbeee0
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 #pragma once
12 #include <vcl/weld.hxx>
14 namespace dbaui
17 /**
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
24 public:
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;
36 private:
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;
43 } ///dbaui namespace
45 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */