merge the formfield patch from ooo-build
[ooovba.git] / svx / inc / passwd.hxx
blobe4fcb33bb8d73040da3a53c011fd97fea2bc6f21
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: passwd.hxx,v $
10 * $Revision: 1.6 $
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 _SVX_PASSWD_HXX
31 #define _SVX_PASSWD_HXX
33 // include ---------------------------------------------------------------
35 #include <sfx2/basedlgs.hxx>
37 #ifndef _FIXED_HXX //autogen
38 #include <vcl/fixed.hxx>
39 #endif
41 #ifndef _EDIT_HXX //autogen
42 #include <vcl/edit.hxx>
43 #endif
45 #ifndef _BUTTON_HXX //autogen
46 #include <vcl/button.hxx>
47 #endif
48 #include "svx/svxdllapi.h"
50 // class SvxPasswordDialog -----------------------------------------------
52 class SVX_DLLPUBLIC SvxPasswordDialog : public SfxModalDialog
54 private:
55 FixedLine aOldFL;
56 FixedText aOldPasswdFT;
57 Edit aOldPasswdED;
58 FixedLine aNewFL;
59 FixedText aNewPasswdFT;
60 Edit aNewPasswdED;
61 FixedText aRepeatPasswdFT;
62 Edit aRepeatPasswdED;
63 OKButton aOKBtn;
64 CancelButton aEscBtn;
65 HelpButton aHelpBtn;
67 String aOldPasswdErrStr;
68 String aRepeatPasswdErrStr;
70 Link aCheckPasswordHdl;
72 BOOL bEmpty;
74 DECL_LINK( ButtonHdl, OKButton * );
75 DECL_LINK( EditModifyHdl, Edit * );
77 public:
78 SvxPasswordDialog( Window* pParent, BOOL bAllowEmptyPasswords = FALSE, BOOL bDisableOldPassword = FALSE );
79 ~SvxPasswordDialog();
81 String GetOldPassword() const { return aOldPasswdED.GetText(); }
82 String GetNewPassword() const { return aNewPasswdED.GetText(); }
84 void SetCheckPasswordHdl( const Link& rLink ) { aCheckPasswordHdl = rLink; }
88 #endif