1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef _SVX_SECURITYOPTIONS_HXX
20 #define _SVX_SECURITYOPTIONS_HXX
22 #include <vcl/button.hxx>
23 #include <vcl/dialog.hxx>
24 #include <vcl/fixed.hxx>
26 #include "readonlyimage.hxx"
28 class SvtSecurityOptions
;
30 //........................................................................
33 //........................................................................
35 //====================================================================
36 //= class SecurityOptionsDialog
37 //====================================================================
38 class SecurityOptionsDialog
: public ModalDialog
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
;
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
;
60 FixedLine m_aButtonsFL
;
62 CancelButton m_aCancelBtn
;
63 HelpButton m_aHelpBtn
;
66 SecurityOptionsDialog( Window
* pParent
, SvtSecurityOptions
* pOptions
);
67 ~SecurityOptionsDialog();
69 inline bool IsSaveOrSendDocsChecked() const { return m_aSaveOrSendDocsCB
.IsChecked() != sal_False
; }
70 inline bool IsSignDocsChecked() const { return m_aSignDocsCB
.IsChecked() != sal_False
; }
71 inline bool IsPrintDocsChecked() const { return m_aPrintDocsCB
.IsChecked() != sal_False
; }
72 inline bool IsCreatePdfChecked() const { return m_aCreatePdfCB
.IsChecked() != sal_False
; }
73 inline bool IsRemovePersInfoChecked() const { return m_aRemovePersInfoCB
.IsChecked() != sal_False
; }
74 inline bool IsRecommPasswdChecked() const { return m_aRecommPasswdCB
.IsChecked() != sal_False
; }
75 inline bool IsCtrlHyperlinkChecked() const { return m_aCtrlHyperlinkCB
.IsChecked() != sal_False
; }
78 //........................................................................
80 //........................................................................
82 #endif // #ifndef _SVX_SECURITYOPTIONS_HXX
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */