LibreOffice Module cui (master) 1
SignSignatureLineDialog.hxx
Go to the documentation of this file.
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.
4 *
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
10
12
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>
17
19{
20public:
21 SignSignatureLineDialog(weld::Widget* pParent, css::uno::Reference<css::frame::XModel> xModel);
22
23private:
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;
33
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;
42
43 void ValidateFields();
44 css::uno::Reference<css::graphic::XGraphic> getSignedGraphic(bool bValid);
45 virtual void Apply() override;
46
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);
51};
52
53/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
DECL_LINK(clearImage, weld::Button &, void)
css::uno::Reference< css::beans::XPropertySet > m_xShapeProperties
std::unique_ptr< weld::Button > m_xBtnSign
DECL_LINK(entryChanged, weld::Entry &, void)
css::uno::Reference< css::graphic::XGraphic > getSignedGraphic(bool bValid)
SignSignatureLineDialog(weld::Widget *pParent, css::uno::Reference< css::frame::XModel > xModel)
std::unique_ptr< weld::Button > m_xBtnChooseCertificate
DECL_LINK(loadImage, weld::Button &, void)
std::unique_ptr< weld::Button > m_xBtnClearImage
virtual void Apply() override
DECL_LINK(chooseCertificate, weld::Button &, void)
std::unique_ptr< weld::Label > m_xLabelAddComment
std::unique_ptr< weld::Entry > m_xEditName
std::unique_ptr< weld::Label > m_xLabelHint
css::uno::Reference< css::graphic::XGraphic > m_xSignatureImage
css::uno::Reference< css::security::XCertificate > m_xSelectedCertifate
std::unique_ptr< weld::Label > m_xLabelHintText
std::unique_ptr< weld::TextView > m_xEditComment
std::unique_ptr< weld::Button > m_xBtnLoadImage
Reference< XModel > xModel