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: securityoptions.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_SECURITYOPTIONS_HXX
31 #define _SVX_SECURITYOPTIONS_HXX
33 #include <vcl/button.hxx>
34 #include <vcl/dialog.hxx>
35 #include <vcl/fixed.hxx>
37 #include "readonlyimage.hxx"
39 class SvtSecurityOptions
;
41 //........................................................................
44 //........................................................................
46 //====================================================================
47 //= class SecurityOptionsDialog
48 //====================================================================
49 class SecurityOptionsDialog
: public ModalDialog
52 FixedLine m_aWarningsFL
;
53 FixedInfo m_aWarningsFI
;
54 ReadOnlyImage m_aSaveOrSendDocsFI
;
55 CheckBox m_aSaveOrSendDocsCB
;
56 ReadOnlyImage m_aSignDocsFI
;
57 CheckBox m_aSignDocsCB
;
58 ReadOnlyImage m_aPrintDocsFI
;
59 CheckBox m_aPrintDocsCB
;
60 ReadOnlyImage m_aCreatePdfFI
;
61 CheckBox m_aCreatePdfCB
;
63 FixedLine m_aOptionsFL
;
64 ReadOnlyImage m_aRemovePersInfoFI
;
65 CheckBox m_aRemovePersInfoCB
;
66 ReadOnlyImage m_aRecommPasswdFI
;
67 CheckBox m_aRecommPasswdCB
;
68 ReadOnlyImage m_aCtrlHyperlinkFI
;
69 CheckBox m_aCtrlHyperlinkCB
;
71 FixedLine m_aButtonsFL
;
73 CancelButton m_aCancelBtn
;
74 HelpButton m_aHelpBtn
;
77 SecurityOptionsDialog( Window
* pParent
, SvtSecurityOptions
* pOptions
);
78 ~SecurityOptionsDialog();
80 inline bool IsSaveOrSendDocsChecked() const { return m_aSaveOrSendDocsCB
.IsChecked() != FALSE
; }
81 inline bool IsSignDocsChecked() const { return m_aSignDocsCB
.IsChecked() != FALSE
; }
82 inline bool IsPrintDocsChecked() const { return m_aPrintDocsCB
.IsChecked() != FALSE
; }
83 inline bool IsCreatePdfChecked() const { return m_aCreatePdfCB
.IsChecked() != FALSE
; }
84 inline bool IsRemovePersInfoChecked() const { return m_aRemovePersInfoCB
.IsChecked() != FALSE
; }
85 inline bool IsRecommPasswdChecked() const { return m_aRecommPasswdCB
.IsChecked() != FALSE
; }
86 inline bool IsCtrlHyperlinkChecked() const { return m_aCtrlHyperlinkCB
.IsChecked() != FALSE
; }
89 //........................................................................
91 //........................................................................
93 #endif // #ifndef _SVX_SECURITYOPTIONS_HXX