Bump version to 6.4.7.2.M8
[LibreOffice.git] / cui / source / inc / passwdomdlg.hxx
blobe49634026e93be8712ab7d2870aaade170485897
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 INCLUDED_CUI_SOURCE_INC_PASSWDOMDLG_HXX
20 #define INCLUDED_CUI_SOURCE_INC_PASSWDOMDLG_HXX
22 #include <sfx2/basedlgs.hxx>
23 #include <memory>
25 class PasswordToOpenModifyDialog : public SfxDialogController
27 std::unique_ptr<weld::Entry> m_xPasswdToOpenED;
28 std::unique_ptr<weld::Entry> m_xReenterPasswdToOpenED;
29 std::unique_ptr<weld::Expander> m_xOptionsExpander;
30 std::unique_ptr<weld::Button> m_xOk;
31 std::unique_ptr<weld::CheckButton> m_xOpenReadonlyCB;
32 std::unique_ptr<weld::Label> m_xPasswdToModifyFT;
33 std::unique_ptr<weld::Entry> m_xPasswdToModifyED;
34 std::unique_ptr<weld::Label> m_xReenterPasswdToModifyFT;
35 std::unique_ptr<weld::Entry> m_xReenterPasswdToModifyED;
37 OUString m_aOneMismatch;
38 OUString m_aTwoMismatch;
39 OUString m_aInvalidStateForOkButton;
40 OUString m_aInvalidStateForOkButton_v2;
42 bool m_bIsPasswordToModify;
45 DECL_LINK(OkBtnClickHdl, weld::Button&, void);
46 DECL_LINK(ReadonlyOnOffHdl, weld::Button&, void);
48 PasswordToOpenModifyDialog( const PasswordToOpenModifyDialog & ) = delete;
49 PasswordToOpenModifyDialog & operator = ( const PasswordToOpenModifyDialog & ) = delete;
51 public:
52 PasswordToOpenModifyDialog(weld::Window* pParent,
53 sal_uInt16 nMaxPasswdLen /* 0 -> no max len enforced */,
54 bool bIsPasswordToModify );
56 // AbstractPasswordToOpenModifyDialog
57 OUString GetPasswordToOpen() const;
58 OUString GetPasswordToModify() const;
59 bool IsRecommendToOpenReadonly() const;
62 #endif
64 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */