Avoid potential negative array index access to cached text.
[LibreOffice.git] / sfx2 / inc / checkin.hxx
blob78535f7aab9d23dba8c7cf2bb49d65b373024b70
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 #pragma once
12 #include <vcl/weld.hxx>
14 class SfxCheckinDialog final : public weld::GenericDialogController
16 private:
17 std::unique_ptr<weld::TextView> m_xCommentED;
18 std::unique_ptr<weld::CheckButton> m_xMajorCB;
19 std::unique_ptr<weld::Button> m_xOKBtn;
21 DECL_LINK(OKHdl, weld::Button&, void);
23 public:
24 SfxCheckinDialog(weld::Window* pParent);
25 virtual ~SfxCheckinDialog() override;
27 OUString GetComment() const;
28 bool IsMajor() const;
31 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */