summaryrefslogtreecommitdiff
path: root/sw/source/ui/envelp/mailmrge.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-13 16:33:56 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-04-15 11:36:13 +0000
commitba9acdf799bf556c8a20b1dc27eb116e23d481db (patch)
treea4d3cb636b3369a7fb0e8ea027e1944dd3d48645 /sw/source/ui/envelp/mailmrge.cxx
parentfe73ed7c79b96eaa5aa84314a07ae11f188575a1 (diff)
convert TXTFORMAT constants to scoped enum
and move them to the SW module since that is the only place they are used Change-Id: Ic037e5ac9d2514377669c5f583b856e1da429a19 Reviewed-on: https://gerrit.libreoffice.org/15303 Tested-by: Noel Grandin <noelgrandin@gmail.com> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/source/ui/envelp/mailmrge.cxx')
-rw-r--r--sw/source/ui/envelp/mailmrge.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/ui/envelp/mailmrge.cxx b/sw/source/ui/envelp/mailmrge.cxx
index 00da8162d562..dac471ea8bc3 100644
--- a/sw/source/ui/envelp/mailmrge.cxx
+++ b/sw/source/ui/envelp/mailmrge.cxx
@@ -256,10 +256,10 @@ SwMailMergeDlg::SwMailMergeDlg(vcl::Window* pParent, SwWrtShell& rShell,
pModOpt = SW_MOD()->GetModuleConfig();
- sal_Int16 nMailingMode(pModOpt->GetMailingFormats());
- m_pFormatSwCB->Check((nMailingMode & TXTFORMAT_OFFICE) != 0);
- m_pFormatHtmlCB->Check((nMailingMode & TXTFORMAT_HTML) != 0);
- m_pFormatRtfCB->Check((nMailingMode & TXTFORMAT_RTF) != 0);
+ MailTxtFormats nMailingMode(pModOpt->GetMailingFormats());
+ m_pFormatSwCB->Check(bool(nMailingMode & MailTxtFormats::OFFICE));
+ m_pFormatHtmlCB->Check(bool(nMailingMode & MailTxtFormats::HTML));
+ m_pFormatRtfCB->Check(bool(nMailingMode & MailTxtFormats::RTF));
m_pAllRB->Check(true);
@@ -578,14 +578,14 @@ bool SwMailMergeDlg::ExecQryShell()
pModOpt->SetSinglePrintJob(m_pSingleJobsCB->IsChecked());
- sal_uInt8 nMailingMode = 0;
+ MailTxtFormats nMailingMode = MailTxtFormats::NONE;
if (m_pFormatSwCB->IsChecked())
- nMailingMode |= TXTFORMAT_OFFICE;
+ nMailingMode |= MailTxtFormats::OFFICE;
if (m_pFormatHtmlCB->IsChecked())
- nMailingMode |= TXTFORMAT_HTML;
+ nMailingMode |= MailTxtFormats::HTML;
if (m_pFormatRtfCB->IsChecked())
- nMailingMode |= TXTFORMAT_RTF;
+ nMailingMode |= MailTxtFormats::RTF;
pModOpt->SetMailingFormats(nMailingMode);
return true;
}