1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: versdlg.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
34 // #include *****************************************************************
36 #ifndef _SV_BUTTON_HXX //autogen
37 #include <vcl/button.hxx>
39 #include <vcl/fixed.hxx>
40 #ifndef _SVTREEBOX_HXX //autogen
41 #include <svtools/svtabbx.hxx>
43 #include <svtools/svmedit.hxx>
44 #include <sfx2/basedlgs.hxx>
48 struct SfxVersionInfo
;
50 class SfxVersionsTabListBox_Impl
: public SvTabListBox
52 virtual void KeyInput( const KeyEvent
& rKeyEvent
);
55 SfxVersionsTabListBox_Impl(
56 Window
* pParent
, const ResId
& );
59 class SfxVersionTableDtor
;
60 class SfxVersionDialog
: public SfxModalDialog
63 PushButton aSaveButton
;
64 CheckBox aSaveCheckBox
;
65 FixedLine aExistingGroup
;
66 FixedText aDateTimeText
;
67 FixedText aSavedByText
;
68 FixedText aCommentText
;
69 SfxVersionsTabListBox_Impl aVersionBox
;
70 CancelButton aCloseButton
;
71 PushButton aOpenButton
;
72 PushButton aViewButton
;
73 PushButton aDeleteButton
;
74 PushButton aCompareButton
;
75 HelpButton aHelpButton
;
76 SfxViewFrame
* pViewFrame
;
77 SfxVersionTableDtor
* mpTable
;
78 LocaleDataWrapper
* mpLocaleWrapper
;
79 sal_Bool mbIsSaveVersionOnClose
;
81 DECL_LINK( DClickHdl_Impl
, Control
* );
82 DECL_LINK( SelectHdl_Impl
, Control
* );
83 DECL_LINK( ButtonHdl_Impl
, Button
* );
86 void RecalcDateColumn();
89 SfxVersionDialog ( SfxViewFrame
* pFrame
, sal_Bool
);
90 virtual ~SfxVersionDialog ();
91 sal_Bool
IsSaveVersionOnClose() const { return mbIsSaveVersionOnClose
; }
94 class SfxViewVersionDialog_Impl
: public SfxModalDialog
96 FixedText aDateTimeText
;
97 FixedText aSavedByText
;
100 CancelButton aCancelButton
;
101 PushButton aCloseButton
;
102 HelpButton aHelpButton
;
103 SfxVersionInfo
* pInfo
;
105 DECL_LINK( ButtonHdl
, Button
* );
108 SfxViewVersionDialog_Impl( Window
*pParent
,
109 SfxVersionInfo
& rInfo
, BOOL bEdit
);