Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / cui / source / inc / SignSignatureLineDialog.hxx
blob5abe1969e32c82fd82bbdf011727132006cdbe08
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 #pragma once
11 #include "SignatureLineDialogBase.hxx"
13 #include <com/sun/star/beans/XPropertySet.hpp>
14 #include <com/sun/star/graphic/XGraphic.hpp>
15 #include <com/sun/star/security/XCertificate.hpp>
16 #include <com/sun/star/uno/Reference.hxx>
18 class SignSignatureLineDialog : public SignatureLineDialogBase
20 public:
21 SignSignatureLineDialog(weld::Widget* pParent, css::uno::Reference<css::frame::XModel> xModel);
23 private:
24 std::unique_ptr<weld::Entry> m_xEditName;
25 std::unique_ptr<weld::TextView> m_xEditComment;
26 std::unique_ptr<weld::Button> m_xBtnLoadImage;
27 std::unique_ptr<weld::Button> m_xBtnClearImage;
28 std::unique_ptr<weld::Button> m_xBtnChooseCertificate;
29 std::unique_ptr<weld::Button> m_xBtnSign;
30 std::unique_ptr<weld::Label> m_xLabelHint;
31 std::unique_ptr<weld::Label> m_xLabelHintText;
32 std::unique_ptr<weld::Label> m_xLabelAddComment;
34 css::uno::Reference<css::beans::XPropertySet> m_xShapeProperties;
35 css::uno::Reference<css::security::XCertificate> m_xSelectedCertifate;
36 css::uno::Reference<css::graphic::XGraphic> m_xSignatureImage;
37 OUString m_aSignatureLineId;
38 OUString m_aSuggestedSignerName;
39 OUString m_aSuggestedSignerTitle;
40 bool m_bShowSignDate;
41 OUString m_sOriginalImageBtnLabel;
43 void ValidateFields();
44 css::uno::Reference<css::graphic::XGraphic> getSignedGraphic(bool bValid);
45 virtual void Apply() override;
47 DECL_LINK(clearImage, weld::Button&, void);
48 DECL_LINK(loadImage, weld::Button&, void);
49 DECL_LINK(chooseCertificate, weld::Button&, void);
50 DECL_LINK(entryChanged, weld::Entry&, void);
53 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */