masterfix DEV300: #i10000# build fix
[LibreOffice.git] / cui / source / options / securityoptions.hxx
blobac3bfe69e913dfcba80b6c38ebddca4c5b0cd44d
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 #ifndef _SVX_SECURITYOPTIONS_HXX
28 #define _SVX_SECURITYOPTIONS_HXX
30 #include <vcl/button.hxx>
31 #include <vcl/dialog.hxx>
32 #include <vcl/fixed.hxx>
34 #include "readonlyimage.hxx"
36 class SvtSecurityOptions;
38 //........................................................................
39 namespace svx
41 //........................................................................
43 //====================================================================
44 //= class SecurityOptionsDialog
45 //====================================================================
46 class SecurityOptionsDialog : public ModalDialog
48 private:
49 FixedLine m_aWarningsFL;
50 FixedInfo m_aWarningsFI;
51 ReadOnlyImage m_aSaveOrSendDocsFI;
52 CheckBox m_aSaveOrSendDocsCB;
53 ReadOnlyImage m_aSignDocsFI;
54 CheckBox m_aSignDocsCB;
55 ReadOnlyImage m_aPrintDocsFI;
56 CheckBox m_aPrintDocsCB;
57 ReadOnlyImage m_aCreatePdfFI;
58 CheckBox m_aCreatePdfCB;
60 FixedLine m_aOptionsFL;
61 ReadOnlyImage m_aRemovePersInfoFI;
62 CheckBox m_aRemovePersInfoCB;
63 ReadOnlyImage m_aRecommPasswdFI;
64 CheckBox m_aRecommPasswdCB;
65 ReadOnlyImage m_aCtrlHyperlinkFI;
66 CheckBox m_aCtrlHyperlinkCB;
68 FixedLine m_aButtonsFL;
69 OKButton m_aOKBtn;
70 CancelButton m_aCancelBtn;
71 HelpButton m_aHelpBtn;
73 public:
74 SecurityOptionsDialog( Window* pParent, SvtSecurityOptions* pOptions );
75 ~SecurityOptionsDialog();
77 inline bool IsSaveOrSendDocsChecked() const { return m_aSaveOrSendDocsCB.IsChecked() != sal_False; }
78 inline bool IsSignDocsChecked() const { return m_aSignDocsCB.IsChecked() != sal_False; }
79 inline bool IsPrintDocsChecked() const { return m_aPrintDocsCB.IsChecked() != sal_False; }
80 inline bool IsCreatePdfChecked() const { return m_aCreatePdfCB.IsChecked() != sal_False; }
81 inline bool IsRemovePersInfoChecked() const { return m_aRemovePersInfoCB.IsChecked() != sal_False; }
82 inline bool IsRecommPasswdChecked() const { return m_aRecommPasswdCB.IsChecked() != sal_False; }
83 inline bool IsCtrlHyperlinkChecked() const { return m_aCtrlHyperlinkCB.IsChecked() != sal_False; }
86 //........................................................................
87 } // namespace svx
88 //........................................................................
90 #endif // #ifndef _SVX_SECURITYOPTIONS_HXX