LanguageTool: don't crash if REST protocol isn't set
[LibreOffice.git] / sfx2 / source / dialog / checkin.cxx
blob6d90be8af234f21ab55bf194f5952321d30c9083
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 #include <checkin.hxx>
12 SfxCheckinDialog::SfxCheckinDialog(weld::Window* pParent)
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"))
18 m_xOKBtn->connect_clicked(LINK(this, SfxCheckinDialog, OKHdl));
21 SfxCheckinDialog::~SfxCheckinDialog()
25 OUString SfxCheckinDialog::GetComment( ) const
27 return m_xCommentED->get_text();
30 bool SfxCheckinDialog::IsMajor( ) const
32 return m_xMajorCB->get_active();
35 IMPL_LINK_NOARG(SfxCheckinDialog, OKHdl, weld::Button&, void )
37 m_xDialog->response(RET_OK);
40 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */