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: passwd.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 _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>
41 #ifndef _EDIT_HXX //autogen
42 #include <vcl/edit.hxx>
45 #ifndef _BUTTON_HXX //autogen
46 #include <vcl/button.hxx>
48 #include "svx/svxdllapi.h"
50 // class SvxPasswordDialog -----------------------------------------------
52 class SVX_DLLPUBLIC SvxPasswordDialog
: public SfxModalDialog
56 FixedText aOldPasswdFT
;
59 FixedText aNewPasswdFT
;
61 FixedText aRepeatPasswdFT
;
67 String aOldPasswdErrStr
;
68 String aRepeatPasswdErrStr
;
70 Link aCheckPasswordHdl
;
74 DECL_LINK( ButtonHdl
, OKButton
* );
75 DECL_LINK( EditModifyHdl
, Edit
* );
78 SvxPasswordDialog( Window
* pParent
, BOOL bAllowEmptyPasswords
= FALSE
, BOOL bDisableOldPassword
= FALSE
);
81 String
GetOldPassword() const { return aOldPasswdED
.GetText(); }
82 String
GetNewPassword() const { return aNewPasswdED
.GetText(); }
84 void SetCheckPasswordHdl( const Link
& rLink
) { aCheckPasswordHdl
= rLink
; }