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 #include "QueryPropertiesDialog.hxx"
15 QueryPropertiesDialog::QueryPropertiesDialog(
16 vcl::Window
* pParent
, const bool bDistinct
, const sal_Int64 nLimit
)
17 : ModalDialog(pParent
, "QueryPropertiesDialog", "dbaccess/ui/querypropertiesdialog.ui")
19 , m_pRB_NonDistinct( 0 )
22 get( m_pRB_Distinct
, "distinct" );
23 get( m_pRB_NonDistinct
, "nondistinct" );
24 get( m_pLB_Limit
, "limitbox" );
26 m_pRB_Distinct
->Check( bDistinct
);
27 m_pRB_NonDistinct
->Check( !bDistinct
);
28 m_pLB_Limit
->SetValue( nLimit
);
31 QueryPropertiesDialog::~QueryPropertiesDialog()
36 void QueryPropertiesDialog::dispose()
38 m_pRB_Distinct
.clear();
39 m_pRB_NonDistinct
.clear();
41 ModalDialog::dispose();
46 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */