LibreOffice Module sfx2 (master) 1
versdlg.hxx
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 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#ifndef INCLUDED_SFX2_SOURCE_INC_VERSDLG_HXX
21#define INCLUDED_SFX2_SOURCE_INC_VERSDLG_HXX
22
23#include <sfx2/basedlgs.hxx>
24#include <vcl/weld.hxx>
25
26class SfxViewFrame;
27struct SfxVersionInfo;
28
31{
34 std::unique_ptr<SfxVersionTableDtor> m_pTable;
35 std::unique_ptr<weld::Button> m_xSaveButton;
36 std::unique_ptr<weld::CheckButton> m_xSaveCheckBox;
37 std::unique_ptr<weld::Button> m_xOpenButton;
38 std::unique_ptr<weld::Button> m_xViewButton;
39 std::unique_ptr<weld::Button> m_xDeleteButton;
40 std::unique_ptr<weld::Button> m_xCompareButton;
41 std::unique_ptr<weld::Button> m_xCmisButton;
42 std::unique_ptr<weld::TreeView> m_xVersionBox;
43
44 DECL_LINK(DClickHdl_Impl, weld::TreeView&, bool);
45 DECL_LINK(SelectHdl_Impl, weld::TreeView&, void);
46 DECL_LINK(ButtonHdl_Impl, weld::Button&, void);
47 DECL_LINK(ToggleHdl_Impl, weld::Toggleable&, void);
48 void Init_Impl();
49 void Open_Impl();
50
51public:
52 SfxVersionDialog(weld::Window* pParent, SfxViewFrame* pFrame, bool);
53 virtual ~SfxVersionDialog() override;
55};
56
58{
59private:
61
62 std::unique_ptr<weld::Label> m_xDateTimeText;
63 std::unique_ptr<weld::Label> m_xSavedByText;
64 std::unique_ptr<weld::TextView> m_xEdit;
65 std::unique_ptr<weld::Button> m_xOKButton;
66 std::unique_ptr<weld::Button> m_xCancelButton;
67 std::unique_ptr<weld::Button> m_xCloseButton;
68
69 DECL_LINK(ButtonHdl, weld::Button&, void);
70
71public:
72 SfxViewVersionDialog_Impl(weld::Window* pParent, SfxVersionInfo& rInfo, bool bEdit);
73};
74
76{
78 std::unique_ptr<SfxVersionTableDtor> m_pTable;
79
80 std::unique_ptr<weld::TreeView> m_xVersionBox;
81
82 void LoadVersions();
83
84public:
86 virtual ~SfxCmisVersionsDialog() override;
87};
88
89#endif
90
91/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual ~SfxCmisVersionsDialog() override
Definition: versdlg.cxx:446
std::unique_ptr< weld::TreeView > m_xVersionBox
Definition: versdlg.hxx:80
SfxViewFrame * m_pViewFrame
Definition: versdlg.hxx:77
std::unique_ptr< SfxVersionTableDtor > m_pTable
Definition: versdlg.hxx:78
SfxCmisVersionsDialog(weld::Window *pParent, SfxViewFrame *pFrame)
Definition: versdlg.cxx:428
std::unique_ptr< weld::Button > m_xCompareButton
Definition: versdlg.hxx:40
DECL_LINK(DClickHdl_Impl, weld::TreeView &, bool)
DECL_LINK(ToggleHdl_Impl, weld::Toggleable &, void)
std::unique_ptr< weld::CheckButton > m_xSaveCheckBox
Definition: versdlg.hxx:36
void Open_Impl()
Definition: versdlg.cxx:257
bool m_bIsSaveVersionOnClose
Definition: versdlg.hxx:33
std::unique_ptr< weld::TreeView > m_xVersionBox
Definition: versdlg.hxx:42
std::unique_ptr< weld::Button > m_xDeleteButton
Definition: versdlg.hxx:39
SfxVersionDialog(weld::Window *pParent, SfxViewFrame *pFrame, bool)
Definition: versdlg.cxx:147
DECL_LINK(SelectHdl_Impl, weld::TreeView &, void)
std::unique_ptr< SfxVersionTableDtor > m_pTable
Definition: versdlg.hxx:34
SfxViewFrame * m_pViewFrame
Definition: versdlg.hxx:32
std::unique_ptr< weld::Button > m_xViewButton
Definition: versdlg.hxx:38
DECL_LINK(ButtonHdl_Impl, weld::Button &, void)
std::unique_ptr< weld::Button > m_xSaveButton
Definition: versdlg.hxx:35
std::unique_ptr< weld::Button > m_xOpenButton
Definition: versdlg.hxx:37
std::unique_ptr< weld::Button > m_xCmisButton
Definition: versdlg.hxx:41
virtual ~SfxVersionDialog() override
Definition: versdlg.cxx:253
void Init_Impl()
Definition: versdlg.cxx:210
bool IsSaveVersionOnClose() const
Definition: versdlg.hxx:54
DECL_LINK(ButtonHdl, weld::Button &, void)
SfxVersionInfo & m_rInfo
Definition: versdlg.hxx:60
std::unique_ptr< weld::TextView > m_xEdit
Definition: versdlg.hxx:64
std::unique_ptr< weld::Button > m_xCancelButton
Definition: versdlg.hxx:66
std::unique_ptr< weld::Button > m_xOKButton
Definition: versdlg.hxx:65
std::unique_ptr< weld::Label > m_xSavedByText
Definition: versdlg.hxx:63
std::unique_ptr< weld::Button > m_xCloseButton
Definition: versdlg.hxx:67
std::unique_ptr< weld::Label > m_xDateTimeText
Definition: versdlg.hxx:62
SfxViewVersionDialog_Impl(weld::Window *pParent, SfxVersionInfo &rInfo, bool bEdit)
Definition: versdlg.cxx:384