LibreOffice Module sfx2 (master) 1
checkin.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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 */
9
10#include <checkin.hxx>
11
13 : GenericDialogController( pParent, "sfx/ui/checkin.ui", "CheckinDialog")
14 , m_xCommentED(m_xBuilder->weld_text_view("VersionComment"))
15 , m_xMajorCB(m_xBuilder->weld_check_button("MajorVersion"))
16 , m_xOKBtn(m_xBuilder->weld_button("ok"))
17{
18 m_xOKBtn->connect_clicked(LINK(this, SfxCheckinDialog, OKHdl));
19}
20
22{
23}
24
26{
27 return m_xCommentED->get_text();
28}
29
31{
32 return m_xMajorCB->get_active();
33}
34
36{
37 m_xDialog->response(RET_OK);
38}
39
40/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Reference< XExecutableDialog > m_xDialog
IMPL_LINK_NOARG(SfxCheckinDialog, OKHdl, weld::Button &, void)
Definition: checkin.cxx:35
SfxCheckinDialog(weld::Window *pParent)
Definition: checkin.cxx:12
std::unique_ptr< weld::CheckButton > m_xMajorCB
Definition: checkin.hxx:18
bool IsMajor() const
Definition: checkin.cxx:30
virtual ~SfxCheckinDialog() override
Definition: checkin.cxx:21
OUString GetComment() const
Definition: checkin.cxx:25
std::unique_ptr< weld::TextView > m_xCommentED
Definition: checkin.hxx:17
std::unique_ptr< weld::Button > m_xOKBtn
Definition: checkin.hxx:19
RET_OK