diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2017-09-24 15:01:48 -0400 |
---|---|---|
committer | Ashod Nakashian <ashnakash@gmail.com> | 2017-09-26 13:57:28 +0200 |
commit | 0bef045346b47f45d0fbd354dd5fcb24c7c8903d (patch) | |
tree | 9967c540e4fe30976093f01578d7945152c67c66 /svx | |
parent | 86c5c812b030cea6753b298a70146375c5d58175 (diff) |
TSCP: sign paragraph from classification dialog
Change-Id: Iebd50de0abecb80a4de38257fa2eea10b81962b7
Reviewed-on: https://gerrit.libreoffice.org/42738
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/ClassificationDialog.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/svx/source/dialog/ClassificationDialog.cxx b/svx/source/dialog/ClassificationDialog.cxx index 7f0b33ec7813..45e83af10ae7 100644 --- a/svx/source/dialog/ClassificationDialog.cxx +++ b/svx/source/dialog/ClassificationDialog.cxx @@ -31,10 +31,12 @@ const SvxFieldItem* findField(editeng::Section const & rSection) } // end anonymous namespace -ClassificationDialog::ClassificationDialog(vcl::Window* pParent) +ClassificationDialog::ClassificationDialog(vcl::Window* pParent, const bool bPerParagraph, const std::function<void()>& rParagraphSignHandler) : ModalDialog(pParent, "AdvancedDocumentClassificationDialog", "svx/ui/classificationdialog.ui") , maHelper(SfxObjectShell::Current()->getDocProperties()) , maInternationalHelper(SfxObjectShell::Current()->getDocProperties(), /*bUseLocalizedPolicy*/ false) + , m_bPerParagraph(bPerParagraph) + , m_aParagraphSignHandler(rParagraphSignHandler) { get(m_pEditWindow, "classificationEditWindow"); get(m_pSignButton, "signButton"); @@ -48,6 +50,8 @@ ClassificationDialog::ClassificationDialog(vcl::Window* pParent) get(m_pIntellectualPropertyPartEdit, "intellectualPropertyPartEntry"); m_pSignButton->SetClickHdl(LINK(this, ClassificationDialog, ButtonClicked)); + m_pSignButton->Show(m_bPerParagraph); + m_pBoldButton->SetClickHdl(LINK(this, ClassificationDialog, ButtonClicked)); m_pIntellectualPropertyPartAddButton->SetClickHdl(LINK(this, ClassificationDialog, ButtonClicked)); @@ -257,7 +261,7 @@ IMPL_LINK(ClassificationDialog, ButtonClicked, Button*, pButton, void) } else if (pButton == m_pSignButton) { - //TODO sign current paragraph + m_aParagraphSignHandler(); } else if (pButton == m_pIntellectualPropertyPartAddButton) { |