Branch data 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 _VERSDLG_HXX
21 : : #define _VERSDLG_HXX
22 : :
23 : : #include <vcl/button.hxx>
24 : : #include <vcl/fixed.hxx>
25 : : #include <svtools/svtabbx.hxx>
26 : : #include <svtools/svmedit.hxx>
27 : : #include <sfx2/basedlgs.hxx>
28 : :
29 : : class SfxViewFrame;
30 : : struct SfxVersionInfo;
31 : :
32 [ # # ]: 0 : class SfxVersionsTabListBox_Impl : public SvTabListBox
33 : : {
34 : : virtual void KeyInput( const KeyEvent& rKeyEvent );
35 : :
36 : : public:
37 : : SfxVersionsTabListBox_Impl(
38 : : Window* pParent, const ResId& );
39 : : };
40 : :
41 : : class SfxVersionTableDtor;
42 : : class SfxVersionDialog : public SfxModalDialog
43 : : {
44 : : FixedLine aNewGroup;
45 : : PushButton aSaveButton;
46 : : CheckBox aSaveCheckBox;
47 : : FixedLine aExistingGroup;
48 : : FixedText aDateTimeText;
49 : : FixedText aSavedByText;
50 : : FixedText aCommentText;
51 : : SfxVersionsTabListBox_Impl aVersionBox;
52 : : CancelButton aCloseButton;
53 : : PushButton aOpenButton;
54 : : PushButton aViewButton;
55 : : PushButton aDeleteButton;
56 : : PushButton aCompareButton;
57 : : HelpButton aHelpButton;
58 : : SfxViewFrame* pViewFrame;
59 : : SfxVersionTableDtor* mpTable;
60 : : LocaleDataWrapper* mpLocaleWrapper;
61 : : sal_Bool mbIsSaveVersionOnClose;
62 : :
63 : : DECL_LINK(DClickHdl_Impl, void *);
64 : : DECL_LINK(SelectHdl_Impl, void *);
65 : : DECL_LINK( ButtonHdl_Impl, Button* );
66 : : void Init_Impl();
67 : : void Open_Impl();
68 : : void RecalcDateColumn();
69 : :
70 : : public:
71 : : SfxVersionDialog ( SfxViewFrame* pFrame, sal_Bool );
72 : : virtual ~SfxVersionDialog ();
73 : 0 : sal_Bool IsSaveVersionOnClose() const { return mbIsSaveVersionOnClose; }
74 : : };
75 : :
76 [ # # ][ # # ]: 0 : class SfxViewVersionDialog_Impl : public SfxModalDialog
[ # # ][ # # ]
[ # # ][ # # ]
[ # # ][ # # ]
77 : : {
78 : : FixedText aDateTimeText;
79 : : FixedText aSavedByText;
80 : : MultiLineEdit aEdit;
81 : : OKButton aOKButton;
82 : : CancelButton aCancelButton;
83 : : PushButton aCloseButton;
84 : : HelpButton aHelpButton;
85 : : SfxVersionInfo* pInfo;
86 : :
87 : : DECL_LINK( ButtonHdl, Button* );
88 : :
89 : : public:
90 : : SfxViewVersionDialog_Impl( Window *pParent,
91 : : SfxVersionInfo& rInfo, sal_Bool bEdit );
92 : : };
93 : :
94 : : #endif
95 : :
96 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|