Line data Source code
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 <svtools/simptabl.hxx>
25 : #include <svtools/svmedit.hxx>
26 : #include <svtools/svtabbx.hxx>
27 : #include <vcl/button.hxx>
28 : #include <vcl/fixed.hxx>
29 :
30 : class SfxViewFrame;
31 : struct SfxVersionInfo;
32 :
33 0 : class SfxVersionsTabListBox_Impl : public SvSimpleTable
34 : {
35 : public:
36 0 : SfxVersionsTabListBox_Impl(SvSimpleTableContainer& rParent, WinBits nBits)
37 0 : : SvSimpleTable(rParent, nBits)
38 : {
39 0 : }
40 : void setColSizes();
41 : virtual void Resize() SAL_OVERRIDE;
42 : virtual void KeyInput(const KeyEvent& rKeyEvent) SAL_OVERRIDE;
43 : };
44 :
45 : class SfxVersionTableDtor;
46 : class SfxVersionDialog : public SfxModalDialog
47 : {
48 : PushButton* m_pSaveButton;
49 : CheckBox* m_pSaveCheckBox;
50 : SfxVersionsTabListBox_Impl* m_pVersionBox;
51 : PushButton* m_pOpenButton;
52 : PushButton* m_pViewButton;
53 : PushButton* m_pDeleteButton;
54 : PushButton* m_pCompareButton;
55 : PushButton* m_pCmisButton;
56 : SfxViewFrame* pViewFrame;
57 : SfxVersionTableDtor* m_pTable;
58 : bool m_bIsSaveVersionOnClose;
59 :
60 : DECL_LINK(DClickHdl_Impl, void *);
61 : DECL_LINK(SelectHdl_Impl, void *);
62 : DECL_LINK( ButtonHdl_Impl, Button* );
63 : void Init_Impl();
64 : void Open_Impl();
65 :
66 : public:
67 : SfxVersionDialog ( SfxViewFrame* pFrame, bool );
68 : virtual ~SfxVersionDialog ();
69 0 : bool IsSaveVersionOnClose() const { return m_bIsSaveVersionOnClose; }
70 : };
71 :
72 0 : class SfxViewVersionDialog_Impl : public SfxModalDialog
73 : {
74 : FixedText* m_pDateTimeText;
75 : FixedText* m_pSavedByText;
76 : VclMultiLineEdit* m_pEdit;
77 : OKButton* m_pOKButton;
78 : CancelButton* m_pCancelButton;
79 : CloseButton* m_pCloseButton;
80 : SfxVersionInfo& m_rInfo;
81 :
82 : DECL_LINK(ButtonHdl, Button*);
83 :
84 : public:
85 : SfxViewVersionDialog_Impl(Window *pParent, SfxVersionInfo& rInfo, bool bEdit);
86 : };
87 :
88 : class SfxCmisVersionsDialog : public SfxModalDialog
89 : {
90 : SfxVersionsTabListBox_Impl* m_pVersionBox;
91 : PushButton* m_pOpenButton;
92 : PushButton* m_pViewButton;
93 : PushButton* m_pDeleteButton;
94 : PushButton* m_pCompareButton;
95 : SfxViewFrame* pViewFrame;
96 : SfxVersionTableDtor* m_pTable;
97 : bool m_bIsSaveVersionOnClose;
98 :
99 : DECL_LINK(DClickHdl_Impl, void *);
100 : DECL_LINK(SelectHdl_Impl, void *);
101 : DECL_LINK( ButtonHdl_Impl, Button* );
102 : void LoadVersions();
103 :
104 : public:
105 : SfxCmisVersionsDialog ( SfxViewFrame* pFrame, bool );
106 : virtual ~SfxCmisVersionsDialog ();
107 : };
108 :
109 : #endif
110 :
111 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|