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 #ifndef INCLUDED_CUI_INC_SIGNSIGNATURELINEDIALOG_HXX
10 #define INCLUDED_CUI_INC_SIGNSIGNATURELINEDIALOG_HXX
11 
13 
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>
18 
20 {
21 public:
22  SignSignatureLineDialog(weld::Widget* pParent, css::uno::Reference<css::frame::XModel> xModel);
23 
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;
34 
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;
43 
44  void ValidateFields();
45  css::uno::Reference<css::graphic::XGraphic> getSignedGraphic(bool bValid);
46  virtual void Apply() override;
47 
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);
52 };
53 
54 #endif
55 
56 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
virtual void Apply() override
css::uno::Reference< css::beans::XPropertySet > m_xShapeProperties
css::uno::Reference< css::graphic::XGraphic > m_xSignatureImage
std::unique_ptr< weld::TextView > m_xEditComment
std::unique_ptr< weld::Label > m_xLabelHint
std::unique_ptr< weld::Button > m_xBtnChooseCertificate
std::unique_ptr< weld::Button > m_xBtnClearImage
std::unique_ptr< weld::Button > m_xBtnLoadImage
css::uno::Reference< css::security::XCertificate > m_xSelectedCertifate
std::unique_ptr< weld::Button > m_xBtnSign
std::unique_ptr< weld::Label > m_xLabelAddComment
css::uno::Reference< css::graphic::XGraphic > getSignedGraphic(bool bValid)
SignSignatureLineDialog(weld::Widget *pParent, css::uno::Reference< css::frame::XModel > xModel)
Reference< XModel > xModel
DECL_LINK(clearImage, weld::Button &, void)
std::unique_ptr< weld::Entry > m_xEditName
std::unique_ptr< weld::Label > m_xLabelHintText