xref: /aoo41x/main/sfx2/source/inc/versdlg.hxx (revision 353d8f4d)
1*353d8f4dSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*353d8f4dSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*353d8f4dSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*353d8f4dSAndrew Rist  * distributed with this work for additional information
6*353d8f4dSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*353d8f4dSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*353d8f4dSAndrew Rist  * "License"); you may not use this file except in compliance
9*353d8f4dSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*353d8f4dSAndrew Rist  *
11*353d8f4dSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*353d8f4dSAndrew Rist  *
13*353d8f4dSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*353d8f4dSAndrew Rist  * software distributed under the License is distributed on an
15*353d8f4dSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*353d8f4dSAndrew Rist  * KIND, either express or implied.  See the License for the
17*353d8f4dSAndrew Rist  * specific language governing permissions and limitations
18*353d8f4dSAndrew Rist  * under the License.
19*353d8f4dSAndrew Rist  *
20*353d8f4dSAndrew Rist  *************************************************************/
21*353d8f4dSAndrew Rist 
22*353d8f4dSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _VERSDLG_HXX
25cdf0e10cSrcweir #define _VERSDLG_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir // #include *****************************************************************
28cdf0e10cSrcweir 
29cdf0e10cSrcweir #ifndef _SV_BUTTON_HXX //autogen
30cdf0e10cSrcweir #include <vcl/button.hxx>
31cdf0e10cSrcweir #endif
32cdf0e10cSrcweir #include <vcl/fixed.hxx>
33cdf0e10cSrcweir #ifndef _SVTREEBOX_HXX //autogen
34cdf0e10cSrcweir #include <svtools/svtabbx.hxx>
35cdf0e10cSrcweir #endif
36cdf0e10cSrcweir #include <svtools/svmedit.hxx>
37cdf0e10cSrcweir #include <sfx2/basedlgs.hxx>
38cdf0e10cSrcweir 
39cdf0e10cSrcweir class SfxObjectShell;
40cdf0e10cSrcweir class SfxViewFrame;
41cdf0e10cSrcweir struct SfxVersionInfo;
42cdf0e10cSrcweir 
43cdf0e10cSrcweir class SfxVersionsTabListBox_Impl  : public SvTabListBox
44cdf0e10cSrcweir {
45cdf0e10cSrcweir 	virtual void				KeyInput( const KeyEvent& rKeyEvent );
46cdf0e10cSrcweir 
47cdf0e10cSrcweir public:
48cdf0e10cSrcweir 								SfxVersionsTabListBox_Impl(
49cdf0e10cSrcweir 									Window* pParent, const ResId& );
50cdf0e10cSrcweir };
51cdf0e10cSrcweir 
52cdf0e10cSrcweir class SfxVersionTableDtor;
53cdf0e10cSrcweir class SfxVersionDialog : public SfxModalDialog
54cdf0e10cSrcweir {
55cdf0e10cSrcweir     FixedLine                   aNewGroup;
56cdf0e10cSrcweir 	PushButton					aSaveButton;
57cdf0e10cSrcweir 	CheckBox					aSaveCheckBox;
58cdf0e10cSrcweir     FixedLine                   aExistingGroup;
59cdf0e10cSrcweir 	FixedText					aDateTimeText;
60cdf0e10cSrcweir 	FixedText					aSavedByText;
61cdf0e10cSrcweir 	FixedText					aCommentText;
62cdf0e10cSrcweir 	SfxVersionsTabListBox_Impl	aVersionBox;
63cdf0e10cSrcweir 	CancelButton				aCloseButton;
64cdf0e10cSrcweir 	PushButton          		aOpenButton;
65cdf0e10cSrcweir 	PushButton					aViewButton;
66cdf0e10cSrcweir 	PushButton          		aDeleteButton;
67cdf0e10cSrcweir 	PushButton					aCompareButton;
68cdf0e10cSrcweir 	HelpButton          		aHelpButton;
69cdf0e10cSrcweir 	SfxViewFrame*				pViewFrame;
70cdf0e10cSrcweir     SfxVersionTableDtor*        mpTable;
71cdf0e10cSrcweir     LocaleDataWrapper*          mpLocaleWrapper;
72cdf0e10cSrcweir 	sal_Bool					mbIsSaveVersionOnClose;
73cdf0e10cSrcweir 
74cdf0e10cSrcweir 	DECL_LINK( 					DClickHdl_Impl, Control* );
75cdf0e10cSrcweir 	DECL_LINK( 					SelectHdl_Impl, Control* );
76cdf0e10cSrcweir 	DECL_LINK( 					ButtonHdl_Impl, Button* );
77cdf0e10cSrcweir     void                        Init_Impl();
78cdf0e10cSrcweir 	void						Open_Impl();
79cdf0e10cSrcweir     void                        RecalcDateColumn();
80cdf0e10cSrcweir 
81cdf0e10cSrcweir public:
82cdf0e10cSrcweir 								SfxVersionDialog ( SfxViewFrame* pFrame, sal_Bool );
83cdf0e10cSrcweir 	virtual 					~SfxVersionDialog ();
IsSaveVersionOnClose() const84cdf0e10cSrcweir 	sal_Bool					IsSaveVersionOnClose() const { return mbIsSaveVersionOnClose; }
85cdf0e10cSrcweir };
86cdf0e10cSrcweir 
87cdf0e10cSrcweir class SfxViewVersionDialog_Impl : public SfxModalDialog
88cdf0e10cSrcweir {
89cdf0e10cSrcweir 	FixedText					aDateTimeText;
90cdf0e10cSrcweir 	FixedText					aSavedByText;
91cdf0e10cSrcweir 	MultiLineEdit				aEdit;
92cdf0e10cSrcweir 	OKButton					aOKButton;
93cdf0e10cSrcweir 	CancelButton				aCancelButton;
94cdf0e10cSrcweir 	PushButton					aCloseButton;
95cdf0e10cSrcweir 	HelpButton          		aHelpButton;
96cdf0e10cSrcweir 	SfxVersionInfo*				pInfo;
97cdf0e10cSrcweir 
98cdf0e10cSrcweir 	DECL_LINK( 					ButtonHdl, Button* );
99cdf0e10cSrcweir 
100cdf0e10cSrcweir public:
101cdf0e10cSrcweir 								SfxViewVersionDialog_Impl( Window *pParent,
102cdf0e10cSrcweir 									SfxVersionInfo& rInfo, sal_Bool bEdit );
103cdf0e10cSrcweir  };
104cdf0e10cSrcweir 
105cdf0e10cSrcweir #endif
106