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: dinfedt.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 ************************************************************************/
30 #ifndef _SFX_DINFEDT_HXX
31 #define _SFX_DINFEDT_HXX
33 // include ---------------------------------------------------------------
35 #ifndef _SV_BUTTON_HXX
36 #include <vcl/button.hxx>
38 #include <vcl/dialog.hxx>
39 #include <vcl/edit.hxx>
40 #include <vcl/fixed.hxx>
42 // class InfoEdit_Impl ---------------------------------------------------
44 class InfoEdit_Impl
: public Edit
47 InfoEdit_Impl( Window
* pParent
, const ResId
& rResId
) :
48 Edit( pParent
, rResId
) {}
50 virtual void KeyInput( const KeyEvent
& rKEvent
);
53 // class SfxDocInfoEditDlg -----------------------------------------------
55 class SfxDocInfoEditDlg
: public ModalDialog
59 InfoEdit_Impl aInfo1ED
;
60 InfoEdit_Impl aInfo2ED
;
61 InfoEdit_Impl aInfo3ED
;
62 InfoEdit_Impl aInfo4ED
;
64 CancelButton aCancelBT
;
68 SfxDocInfoEditDlg( Window
* pParent
);
70 void SetText1( const String
&rStr
) { aInfo1ED
.SetText( rStr
); }
71 void SetText2( const String
&rStr
) { aInfo2ED
.SetText( rStr
); }
72 void SetText3( const String
&rStr
) { aInfo3ED
.SetText( rStr
); }
73 void SetText4( const String
&rStr
) { aInfo4ED
.SetText( rStr
); }
75 String
GetText1() const { return aInfo1ED
.GetText(); }
76 String
GetText2() const { return aInfo2ED
.GetText(); }
77 String
GetText3() const { return aInfo3ED
.GetText(); }
78 String
GetText4() const { return aInfo4ED
.GetText(); }