1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 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. 14 * 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). 20 * 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. 25 * 26 ************************************************************************/ 27 #ifndef _SVX_SECURITYOPTIONS_HXX 28 #define _SVX_SECURITYOPTIONS_HXX 29 30 #include <vcl/button.hxx> 31 #include <vcl/dialog.hxx> 32 #include <vcl/fixed.hxx> 33 34 #include "readonlyimage.hxx" 35 36 class SvtSecurityOptions; 37 38 //........................................................................ 39 namespace svx 40 { 41 //........................................................................ 42 43 //==================================================================== 44 //= class SecurityOptionsDialog 45 //==================================================================== 46 class SecurityOptionsDialog : public ModalDialog 47 { 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; 59 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; 67 68 FixedLine m_aButtonsFL; 69 OKButton m_aOKBtn; 70 CancelButton m_aCancelBtn; 71 HelpButton m_aHelpBtn; 72 73 public: 74 SecurityOptionsDialog( Window* pParent, SvtSecurityOptions* pOptions ); 75 ~SecurityOptionsDialog(); 76 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; } 84 }; 85 86 //........................................................................ 87 } // namespace svx 88 //........................................................................ 89 90 #endif // #ifndef _SVX_SECURITYOPTIONS_HXX 91 92