summaryrefslogtreecommitdiff
path: root/sw/source/uibase/inc
diff options
context:
space:
mode:
authorGülşah Köse <gulsah.kose@collabora.com>2020-05-22 11:51:33 +0300
committerGülşah Köse <gulsah.kose@collabora.com>2020-05-26 09:42:22 +0200
commit983db96a17630be906b868d2be811663f0d846f6 (patch)
tree274b334e55fb5516944971fa18544f1878f1cc2c /sw/source/uibase/inc
parent46695f3d66cc77b38865c1817b09d95e9c4b6683 (diff)
Add an option to create encyrpted PDF files with mailmerge.
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 <gulsah.kose@collabora.com>
Diffstat (limited to 'sw/source/uibase/inc')
-rw-r--r--sw/source/uibase/inc/mailmrge.hxx6
1 files changed, 6 insertions, 0 deletions
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<weld::RadioButton> m_xFileRB;
std::unique_ptr<weld::CheckButton> m_xSingleJobsCB;
+ std::unique_ptr<weld::CheckButton> m_xPasswordCB;
std::unique_ptr<weld::Label> m_xSaveMergedDocumentFT;
std::unique_ptr<weld::RadioButton> m_xSaveSingleDocRB;
@@ -79,6 +80,8 @@ class SwMailMergeDlg : public SfxDialogController
std::unique_ptr<weld::Label> m_xColumnFT;
std::unique_ptr<weld::ComboBox> m_xColumnLB;
+ std::unique_ptr<weld::Label> m_xPasswordFT;
+ std::unique_ptr<weld::ComboBox> m_xPasswordLB;
std::unique_ptr<weld::Label> m_xPathFT;
std::unique_ptr<weld::Entry> m_xPathED;
std::unique_ptr<weld::Button> 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;}