Bump version to 6.4.7.2.M8
[LibreOffice.git] / cui / source / inc / SignSignatureLineDialog.hxx
blob6bd08ff4baef8ec76e13f8c2d5fdde96f7aaf366
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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/.
8 */
9 #ifndef INCLUDED_CUI_INC_SIGNSIGNATURELINEDIALOG_HXX
10 #define INCLUDED_CUI_INC_SIGNSIGNATURELINEDIALOG_HXX
12 #include "SignatureLineDialogBase.hxx"
14 #include <com/sun/star/beans/XPropertySet.hpp>
15 #include <com/sun/star/graphic/XGraphic.hpp>
16 #include <com/sun/star/security/XCertificate.hpp>
17 #include <com/sun/star/uno/Reference.hxx>
19 class SignSignatureLineDialog : public SignatureLineDialogBase
21 public:
22 SignSignatureLineDialog(weld::Widget* pParent, css::uno::Reference<css::frame::XModel> xModel);
24 private:
25 std::unique_ptr<weld::Entry> m_xEditName;
26 std::unique_ptr<weld::TextView> m_xEditComment;
27 std::unique_ptr<weld::Button> m_xBtnLoadImage;
28 std::unique_ptr<weld::Button> m_xBtnClearImage;
29 std::unique_ptr<weld::Button> m_xBtnChooseCertificate;
30 std::unique_ptr<weld::Button> m_xBtnSign;
31 std::unique_ptr<weld::Label> m_xLabelHint;
32 std::unique_ptr<weld::Label> m_xLabelHintText;
33 std::unique_ptr<weld::Label> m_xLabelAddComment;
35 css::uno::Reference<css::beans::XPropertySet> m_xShapeProperties;
36 css::uno::Reference<css::security::XCertificate> m_xSelectedCertifate;
37 css::uno::Reference<css::graphic::XGraphic> m_xSignatureImage;
38 OUString m_aSignatureLineId;
39 OUString m_aSuggestedSignerName;
40 OUString m_aSuggestedSignerTitle;
41 bool m_bShowSignDate;
42 OUString m_sOriginalImageBtnLabel;
44 void ValidateFields();
45 css::uno::Reference<css::graphic::XGraphic> getSignedGraphic(bool bValid);
46 virtual void Apply() override;
48 DECL_LINK(clearImage, weld::Button&, void);
49 DECL_LINK(loadImage, weld::Button&, void);
50 DECL_LINK(chooseCertificate, weld::Button&, void);
51 DECL_LINK(entryChanged, weld::Entry&, void);
54 #endif
56 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */