Kaydet (Commit) 53cc801e authored tarafından Samuel Mehrbrodt's avatar Samuel Mehrbrodt

tdf#83877 Signatureline dialog: Move shared stuff to common base

Change-Id: I0af888f7b8cd3b7d58665a4b0b1ef18a7f9e98c2
Reviewed-on: https://gerrit.libreoffice.org/52788Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
üst f4b5a166
......@@ -121,6 +121,7 @@ $(eval $(call gb_Library_add_exception_objects,cui,\
cui/source/dialogs/pastedlg \
cui/source/dialogs/postdlg \
cui/source/dialogs/scriptdlg \
cui/source/dialogs/SignatureLineDialogBase \
cui/source/dialogs/SignatureLineDialog \
cui/source/dialogs/SignSignatureLineDialog \
cui/source/dialogs/sdrcelldlg \
......
This diff is collapsed.
......@@ -9,26 +9,23 @@
#ifndef INCLUDED_CUI_INC_SIGNSIGNATURELINEDIALOG_HXX
#define INCLUDED_CUI_INC_SIGNSIGNATURELINEDIALOG_HXX
#include <vcl/weld.hxx>
#include "SignatureLineDialogBase.hxx"
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/security/XCertificate.hpp>
#include <com/sun/star/uno/Reference.hxx>
class SignSignatureLineDialog : public weld::GenericDialogController
class SignSignatureLineDialog : public SignatureLineDialogBase
{
public:
SignSignatureLineDialog(weld::Widget* pParent, css::uno::Reference<css::frame::XModel> xModel);
short execute();
private:
std::unique_ptr<weld::Entry> m_xEditName;
std::unique_ptr<weld::TextView> m_xEditComment;
std::unique_ptr<weld::Button> m_xBtnChooseCertificate;
std::unique_ptr<weld::Button> m_xBtnSign;
css::uno::Reference<css::frame::XModel> m_xModel;
css::uno::Reference<css::beans::XPropertySet> m_xShapeProperties;
css::uno::Reference<css::security::XCertificate> m_xSelectedCertifate;
OUString m_aSignatureLineId;
......@@ -37,9 +34,8 @@ private:
bool m_bShowSignDate;
void ValidateFields();
void Apply();
virtual void Apply() override;
OUString getCDataString(const OUString& rString);
OUString getSignatureImage();
DECL_LINK(chooseCertificate, weld::Button&, void);
};
......
......@@ -9,19 +9,17 @@
#ifndef INCLUDED_CUI_INC_SIGNATURELINEDIALOG_HXX
#define INCLUDED_CUI_INC_SIGNATURELINEDIALOG_HXX
#include <vcl/weld.hxx>
#include "SignatureLineDialogBase.hxx"
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/uno/Reference.hxx>
class SignatureLineDialog : public weld::GenericDialogController
class SignatureLineDialog : public SignatureLineDialogBase
{
public:
SignatureLineDialog(weld::Widget* pParent, css::uno::Reference<css::frame::XModel> xModel,
bool bEditExisting);
short execute();
private:
std::unique_ptr<weld::Entry> m_xEditName;
std::unique_ptr<weld::Entry> m_xEditTitle;
......@@ -30,12 +28,10 @@ private:
std::unique_ptr<weld::CheckButton> m_xCheckboxCanAddComments;
std::unique_ptr<weld::CheckButton> m_xCheckboxShowSignDate;
css::uno::Reference<css::frame::XModel> m_xModel;
css::uno::Reference<css::beans::XPropertySet> m_xExistingShapeProperties;
OUString m_aSignatureLineId;
OUString getSignatureImage();
void Apply();
virtual void Apply() override;
};
#endif
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef INCLUDED_CUI_INC_SIGNATURELINEDIALOGBASE_HXX
#define INCLUDED_CUI_INC_SIGNATURELINEDIALOGBASE_HXX
#include <vcl/weld.hxx>
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/uno/Reference.hxx>
class SignatureLineDialogBase : public weld::GenericDialogController
{
public:
SignatureLineDialogBase(weld::Widget* pParent, css::uno::Reference<css::frame::XModel> xModel,
const OUString& rUIFile, const OString& rDialogId);
short execute();
protected:
css::uno::Reference<css::frame::XModel> m_xModel;
OUString getSignatureImage();
virtual void Apply() = 0;
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment