diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-03-20 11:36:00 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-03-22 16:06:41 +0100 |
commit | 5b348b1a8ca3c5ba1049aacba1ac2e3c43ed26b7 (patch) | |
tree | 2e9b28dd1d7c803fe30684d8138603281bae53a0 /include | |
parent | 178715e7ca365de98bcd3656b9ce0bfce5aa95e7 (diff) |
tdf#83877 Move SignatureLineDialog to svx
To prepare using from Calc
Change-Id: I102ecf2c956922dd1458c99bd7cd7be30f6f5ec4
Reviewed-on: https://gerrit.libreoffice.org/51726
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/SignatureLineDialog.hxx | 44 | ||||
-rw-r--r-- | include/svx/svxids.hrc | 6 |
2 files changed, 49 insertions, 1 deletions
diff --git a/include/svx/SignatureLineDialog.hxx b/include/svx/SignatureLineDialog.hxx new file mode 100644 index 000000000000..fce677ea3368 --- /dev/null +++ b/include/svx/SignatureLineDialog.hxx @@ -0,0 +1,44 @@ +/* -*- 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_SW_INC_SIGNATURELINEDIALOG_HXX +#define INCLUDED_SW_INC_SIGNATURELINEDIALOG_HXX + +#include <svx/stddlg.hxx> +#include <vcl/weld.hxx> + +#include <com/sun/star/beans/XPropertySet.hpp> +#include <com/sun/star/uno/Reference.hxx> + +class SVX_DLLPUBLIC SignatureLineDialog : public weld::GenericDialogController +{ +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; + std::unique_ptr<weld::Entry> m_xEditEmail; + std::unique_ptr<weld::TextView> m_xEditInstructions; + 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(); +}; + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/svx/svxids.hrc b/include/svx/svxids.hrc index e568f24e535b..bd3e28f3b1b4 100644 --- a/include/svx/svxids.hrc +++ b/include/svx/svxids.hrc @@ -964,8 +964,12 @@ class SfxStringItem; #define SID_CLASSIFICATION_DIALOG ( SID_SVX_START + 1171 ) #define SID_ANCHOR_MENU ( SID_SVX_START + 1172 ) +#define SID_INSERT_SIGNATURELINE ( SID_SVX_START + 1173 ) +#define SID_EDIT_SIGNATURELINE ( SID_SVX_START + 1174 ) + + // IMPORTANT NOTE: adjust SID_SVX_FIRSTFREE, when adding new slot id -#define SID_SVX_FIRSTFREE ( SID_ANCHOR_MENU + 1 ) +#define SID_SVX_FIRSTFREE ( SID_EDIT_SIGNATURELINE + 1 ) // Overflow check for slot IDs #if SID_SVX_FIRSTFREE > SID_SVX_END |