Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 : #ifndef _SVX_SECURITYOPTIONS_HXX
20 : #define _SVX_SECURITYOPTIONS_HXX
21 :
22 : #include <vcl/button.hxx>
23 : #include <vcl/dialog.hxx>
24 : #include <vcl/fixed.hxx>
25 :
26 : #include "readonlyimage.hxx"
27 :
28 : class SvtSecurityOptions;
29 :
30 : //........................................................................
31 : namespace svx
32 : {
33 : //........................................................................
34 :
35 : //====================================================================
36 : //= class SecurityOptionsDialog
37 : //====================================================================
38 : class SecurityOptionsDialog : public ModalDialog
39 : {
40 : private:
41 : FixedLine m_aWarningsFL;
42 : FixedInfo m_aWarningsFI;
43 : ReadOnlyImage m_aSaveOrSendDocsFI;
44 : CheckBox m_aSaveOrSendDocsCB;
45 : ReadOnlyImage m_aSignDocsFI;
46 : CheckBox m_aSignDocsCB;
47 : ReadOnlyImage m_aPrintDocsFI;
48 : CheckBox m_aPrintDocsCB;
49 : ReadOnlyImage m_aCreatePdfFI;
50 : CheckBox m_aCreatePdfCB;
51 :
52 : FixedLine m_aOptionsFL;
53 : ReadOnlyImage m_aRemovePersInfoFI;
54 : CheckBox m_aRemovePersInfoCB;
55 : ReadOnlyImage m_aRecommPasswdFI;
56 : CheckBox m_aRecommPasswdCB;
57 : ReadOnlyImage m_aCtrlHyperlinkFI;
58 : CheckBox m_aCtrlHyperlinkCB;
59 :
60 : FixedLine m_aButtonsFL;
61 : OKButton m_aOKBtn;
62 : CancelButton m_aCancelBtn;
63 : HelpButton m_aHelpBtn;
64 :
65 : public:
66 : SecurityOptionsDialog( Window* pParent, SvtSecurityOptions* pOptions );
67 : ~SecurityOptionsDialog();
68 :
69 0 : inline bool IsSaveOrSendDocsChecked() const { return m_aSaveOrSendDocsCB.IsChecked() != sal_False; }
70 0 : inline bool IsSignDocsChecked() const { return m_aSignDocsCB.IsChecked() != sal_False; }
71 0 : inline bool IsPrintDocsChecked() const { return m_aPrintDocsCB.IsChecked() != sal_False; }
72 0 : inline bool IsCreatePdfChecked() const { return m_aCreatePdfCB.IsChecked() != sal_False; }
73 0 : inline bool IsRemovePersInfoChecked() const { return m_aRemovePersInfoCB.IsChecked() != sal_False; }
74 0 : inline bool IsRecommPasswdChecked() const { return m_aRecommPasswdCB.IsChecked() != sal_False; }
75 0 : inline bool IsCtrlHyperlinkChecked() const { return m_aCtrlHyperlinkCB.IsChecked() != sal_False; }
76 : };
77 :
78 : //........................................................................
79 : } // namespace svx
80 : //........................................................................
81 :
82 : #endif // #ifndef _SVX_SECURITYOPTIONS_HXX
83 :
84 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|