sd: keep a non-owning pointer to the OverridingShell
[LibreOffice.git] / cui / source / inc / SignSignatureLineDialog.hxx
blob7c894a16a0b35759c162e5485c4e8487e5525d3c
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 void Apply();
25 private:
26 std::unique_ptr<weld::Entry> m_xEditName;
27 std::unique_ptr<weld::TextView> m_xEditComment;
28 std::unique_ptr<weld::Button> m_xBtnLoadImage;
29 std::unique_ptr<weld::Button> m_xBtnClearImage;
30 std::unique_ptr<weld::Button> m_xBtnChooseCertificate;
31 std::unique_ptr<weld::Button> m_xBtnSign;
32 std::unique_ptr<weld::Label> m_xLabelHint;
33 std::unique_ptr<weld::Label> m_xLabelHintText;
34 std::unique_ptr<weld::Label> m_xLabelAddComment;
36 css::uno::Reference<css::beans::XPropertySet> m_xShapeProperties;
37 css::uno::Reference<css::security::XCertificate> m_xSelectedCertifate;
38 css::uno::Reference<css::graphic::XGraphic> m_xSignatureImage;
39 OUString m_aSignatureLineId;
40 OUString m_aSuggestedSignerName;
41 OUString m_aSuggestedSignerTitle;
42 bool m_bShowSignDate;
43 OUString m_sOriginalImageBtnLabel;
45 void ValidateFields();
46 css::uno::Reference<css::graphic::XGraphic> getSignedGraphic(bool bValid);
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 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */