summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog/inputdlg.cxx
blob: 7919e9ca6faf38860876120878051dd0da531fe7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

#include <sfx2/inputdlg.hxx>
#include <vcl/svapp.hxx>

InputDialog::InputDialog(weld::Widget* pParent, const OUString &rLabelText)
    : GenericDialogController(pParent, "sfx/ui/inputdialog.ui", "InputDialog")
    , m_xEntry(m_xBuilder->weld_entry("entry"))
    , m_xLabel(m_xBuilder->weld_label("label"))
    , m_xHelp(m_xBuilder->weld_button("help"))
{
    m_xLabel->set_label(rLabelText);
}

void InputDialog::HideHelpBtn()
{
    m_xHelp->hide();
}

OUString InputDialog::GetEntryText() const
{
    return m_xEntry->get_text();
}

void InputDialog::SetEntryText(const OUString& rStr)
{
    m_xEntry->set_text(rStr);
    m_xEntry->set_position(-1);
}

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */


'>Bayram Çiçek 2023-03-18loplugin:stringadd use more O[U]StringCharNoel Grandin 2023-03-17elide some temporary OUStringsNoel Grandin 2022-08-18tdf#39593 Ruduce copy/paste code in Converter::converterDurationLiu Hao 2022-07-22elide some makeStringAndClear() callsNoel Grandin 2022-06-09loplugin:unusedmethodsNoel Grandin 2022-04-27add string_view wrappers for rtl::math::stringToDoubleNoel Grandin 2022-04-20use more FastAttributeIter::toViewNoel Grandin 2021-11-19Use more basegfx::deg2rad<N> and basegfx::rad2deg<N>Mike Kaganski