Update ooo320-m1
[ooovba.git] / sfx2 / source / inc / versdlg.hxx
blob96fb175769c9232c11fd02338652f4b8ce1ca78c
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: versdlg.hxx,v $
10 * $Revision: 1.11 $
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 ************************************************************************/
31 #ifndef _VERSDLG_HXX
32 #define _VERSDLG_HXX
34 // #include *****************************************************************
36 #ifndef _SV_BUTTON_HXX //autogen
37 #include <vcl/button.hxx>
38 #endif
39 #include <vcl/fixed.hxx>
40 #ifndef _SVTREEBOX_HXX //autogen
41 #include <svtools/svtabbx.hxx>
42 #endif
43 #include <svtools/svmedit.hxx>
44 #include <sfx2/basedlgs.hxx>
46 class SfxObjectShell;
47 class SfxViewFrame;
48 struct SfxVersionInfo;
50 class SfxVersionsTabListBox_Impl : public SvTabListBox
52 virtual void KeyInput( const KeyEvent& rKeyEvent );
54 public:
55 SfxVersionsTabListBox_Impl(
56 Window* pParent, const ResId& );
59 class SfxVersionTableDtor;
60 class SfxVersionDialog : public SfxModalDialog
62 FixedLine aNewGroup;
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* );
84 void Init_Impl();
85 void Open_Impl();
86 void RecalcDateColumn();
88 public:
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;
98 MultiLineEdit aEdit;
99 OKButton aOKButton;
100 CancelButton aCancelButton;
101 PushButton aCloseButton;
102 HelpButton aHelpButton;
103 SfxVersionInfo* pInfo;
105 DECL_LINK( ButtonHdl, Button* );
107 public:
108 SfxViewVersionDialog_Impl( Window *pParent,
109 SfxVersionInfo& rInfo, BOOL bEdit );
112 #endif