fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / dbaccess / source / ui / inc / QueryPropertiesDialog.hxx
bloba083b4cca893c2e138447b6319a7735ce2cf48e5
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 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"
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 vcl::Window* pParent, const bool bDistinct, const sal_Int64 nLimit );
32 virtual ~QueryPropertiesDialog();
33 virtual void dispose() SAL_OVERRIDE;
34 bool getDistinct() const;
35 sal_Int64 getLimit() const;
37 private:
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();
58 } ///dbaui namespace
60 #endif /// INCLUDED_DBACCESS_SOURCE_UI_INC_QUERYPROPERTIESDIALOG_HXX
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */