From 983db96a17630be906b868d2be811663f0d846f6 Mon Sep 17 00:00:00 2001 From: Gülşah Köse Date: Fri, 22 May 2020 11:51:33 +0300 Subject: Add an option to create encyrpted PDF files with mailmerge. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With that option user can create encyrpted pdf files with a password column in database via mailmerge. Change-Id: I081ef050bc269b1fec24fd01ecc812acd7b857ec Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94709 Tested-by: Jenkins Reviewed-by: Gülşah Köse --- sw/source/uibase/inc/mailmrge.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sw/source/uibase/inc') diff --git a/sw/source/uibase/inc/mailmrge.hxx b/sw/source/uibase/inc/mailmrge.hxx index fca25ac29c91..f95450028def 100644 --- a/sw/source/uibase/inc/mailmrge.hxx +++ b/sw/source/uibase/inc/mailmrge.hxx @@ -70,6 +70,7 @@ class SwMailMergeDlg : public SfxDialogController std::unique_ptr m_xFileRB; std::unique_ptr m_xSingleJobsCB; + std::unique_ptr m_xPasswordCB; std::unique_ptr m_xSaveMergedDocumentFT; std::unique_ptr m_xSaveSingleDocRB; @@ -79,6 +80,8 @@ class SwMailMergeDlg : public SfxDialogController std::unique_ptr m_xColumnFT; std::unique_ptr m_xColumnLB; + std::unique_ptr m_xPasswordFT; + std::unique_ptr m_xPasswordLB; std::unique_ptr m_xPathFT; std::unique_ptr m_xPathED; std::unique_ptr m_xPathPB; @@ -104,6 +107,7 @@ class SwMailMergeDlg : public SfxDialogController DECL_LINK( FilenameHdl, weld::ToggleButton&, void ); DECL_LINK( ModifyHdl, weld::SpinButton&, void ); DECL_LINK( SaveTypeHdl, weld::ToggleButton&, void ); + DECL_LINK( FileFormatHdl, weld::ComboBox&, void ); bool ExecQryShell(); bool AskUserFilename() const; @@ -122,7 +126,9 @@ public: bool IsSaveSingleDoc() const { return m_xSaveSingleDocRB->get_active(); } bool IsGenerateFromDataBase() const { return m_xGenerateFromDataBaseCB->get_active(); } + bool IsFileEncyrptedFromDataBase() const { return m_xPasswordCB->get_active(); } OUString GetColumnName() const { return m_xColumnLB->get_active_text(); } + OUString GetPasswordColumnName() const { return m_xPasswordLB->get_active_text(); } OUString GetTargetURL() const; const OUString& GetSaveFilter() const {return m_sSaveFilter;} -- cgit