1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 #ifndef _SVX_SECURITYOPTIONS_HXX 24 #define _SVX_SECURITYOPTIONS_HXX 25 26 #include <vcl/button.hxx> 27 #include <vcl/dialog.hxx> 28 #include <vcl/fixed.hxx> 29 30 #include "readonlyimage.hxx" 31 32 class SvtSecurityOptions; 33 34 //........................................................................ 35 namespace svx 36 { 37 //........................................................................ 38 39 //==================================================================== 40 //= class SecurityOptionsDialog 41 //==================================================================== 42 class SecurityOptionsDialog : public ModalDialog 43 { 44 private: 45 FixedLine m_aWarningsFL; 46 FixedInfo m_aWarningsFI; 47 ReadOnlyImage m_aSaveOrSendDocsFI; 48 CheckBox m_aSaveOrSendDocsCB; 49 ReadOnlyImage m_aSignDocsFI; 50 CheckBox m_aSignDocsCB; 51 ReadOnlyImage m_aPrintDocsFI; 52 CheckBox m_aPrintDocsCB; 53 ReadOnlyImage m_aCreatePdfFI; 54 CheckBox m_aCreatePdfCB; 55 56 FixedLine m_aOptionsFL; 57 ReadOnlyImage m_aRemovePersInfoFI; 58 CheckBox m_aRemovePersInfoCB; 59 ReadOnlyImage m_aRecommPasswdFI; 60 CheckBox m_aRecommPasswdCB; 61 ReadOnlyImage m_aCtrlHyperlinkFI; 62 CheckBox m_aCtrlHyperlinkCB; 63 64 FixedLine m_aButtonsFL; 65 OKButton m_aOKBtn; 66 CancelButton m_aCancelBtn; 67 HelpButton m_aHelpBtn; 68 69 public: 70 SecurityOptionsDialog( Window* pParent, SvtSecurityOptions* pOptions ); 71 ~SecurityOptionsDialog(); 72 IsSaveOrSendDocsChecked() const73 inline bool IsSaveOrSendDocsChecked() const { return m_aSaveOrSendDocsCB.IsChecked() != sal_False; } IsSignDocsChecked() const74 inline bool IsSignDocsChecked() const { return m_aSignDocsCB.IsChecked() != sal_False; } IsPrintDocsChecked() const75 inline bool IsPrintDocsChecked() const { return m_aPrintDocsCB.IsChecked() != sal_False; } IsCreatePdfChecked() const76 inline bool IsCreatePdfChecked() const { return m_aCreatePdfCB.IsChecked() != sal_False; } IsRemovePersInfoChecked() const77 inline bool IsRemovePersInfoChecked() const { return m_aRemovePersInfoCB.IsChecked() != sal_False; } IsRecommPasswdChecked() const78 inline bool IsRecommPasswdChecked() const { return m_aRecommPasswdCB.IsChecked() != sal_False; } IsCtrlHyperlinkChecked() const79 inline bool IsCtrlHyperlinkChecked() const { return m_aCtrlHyperlinkCB.IsChecked() != sal_False; } 80 }; 81 82 //........................................................................ 83 } // namespace svx 84 //........................................................................ 85 86 #endif // #ifndef _SVX_SECURITYOPTIONS_HXX 87 88