12#include <core_resource.hxx>
18 weld::Window* pParent,
const bool bDistinct,
const sal_Int64 nLimit )
19 : GenericDialogController(pParent,
"dbaccess/ui/querypropertiesdialog.ui",
"QueryPropertiesDialog")
20 , m_xRB_Distinct(m_xBuilder->weld_radio_button(
"distinct"))
21 , m_xRB_NonDistinct(m_xBuilder->weld_radio_button(
"nondistinct"))
22 , m_xLB_Limit(m_xBuilder->weld_combo_box(
"limitbox"))
29 sal_Int64
const aDefLimitAry[] =
36 for (
auto a : aDefLimitAry)
37 m_xLB_Limit->append(OUString::number(
a), OUString::number(
a));
38 OUString sInitial = OUString::number(nLimit);
43 m_xLB_Limit->set_entry_text(OUString::number(nLimit));
48 OUString sSelectedId =
m_xLB_Limit->get_active_id();
49 if (!sSelectedId.isEmpty())
50 return sSelectedId.toInt64();
std::unique_ptr< weld::ComboBox > m_xLB_Limit
std::unique_ptr< weld::RadioButton > m_xRB_NonDistinct
virtual ~QueryPropertiesDialog() override
sal_Int64 getLimit() const
std::unique_ptr< weld::RadioButton > m_xRB_Distinct
QueryPropertiesDialog(weld::Window *pParent, const bool bDistinct, const sal_Int64 nLimit)