LibreOffice Module sw (master)  1
Macros | Functions
mmresultdialogs.cxx File Reference
#include <mmresultdialogs.hxx>
#include <mmconfigitem.hxx>
#include <mailconfigpage.hxx>
#include "mmgreetingspage.hxx"
#include <printdata.hxx>
#include <swmessdialog.hxx>
#include <cmdid.h>
#include <swtypes.hxx>
#include <view.hxx>
#include <wrtsh.hxx>
#include <docsh.hxx>
#include <IDocumentDeviceAccess.hxx>
#include <hintids.hxx>
#include <swmodule.hxx>
#include <vcl/QueueInfo.hxx>
#include <editeng/langitem.hxx>
#include <o3tl/temporary.hxx>
#include <svl/itemset.hxx>
#include <svl/stritem.hxx>
#include <svtools/ehdl.hxx>
#include <svtools/sfxecode.hxx>
#include <vcl/stdtext.hxx>
#include <vcl/svapp.hxx>
#include <vcl/weld.hxx>
#include <vcl/scheduler.hxx>
#include <sfx2/printer.hxx>
#include <sfx2/fcontnr.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/docfilt.hxx>
#include <tools/urlobj.hxx>
#include <svl/urihelper.hxx>
#include <vcl/print.hxx>
#include <rtl/tencinfo.h>
#include <sal/log.hxx>
#include <unotools/tempfile.hxx>
#include <osl/file.hxx>
#include <com/sun/star/frame/XStorable.hpp>
#include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
#include <com/sun/star/sdb/XColumn.hpp>
#include <com/sun/star/task/ErrorCodeIOException.hpp>
#include <dbmgr.hxx>
#include <swunohelper.hxx>
#include <shellio.hxx>
#include <svtools/htmlcfg.hxx>
#include <sfx2/event.hxx>
#include <swevent.hxx>
#include <dbui.hxx>
#include <dbui.hrc>
#include <doc.hxx>
#include <sfx2/app.hxx>
#include <strings.hrc>
#include <comphelper/string.hxx>
#include <iodetect.hxx>
Include dependency graph for mmresultdialogs.cxx:

Go to the source code of this file.

Macros

#define MM_DOCTYPE_OOO   1
 
#define MM_DOCTYPE_PDF   2
 
#define MM_DOCTYPE_WORD   3
 
#define MM_DOCTYPE_HTML   4
 
#define MM_DOCTYPE_TEXT   5
 

Functions

static OUString lcl_GetExtensionForDocType (sal_uLong nDocType)
 
static OUString lcl_GetColumnValueOf (const OUString &rColumn, Reference< container::XNameAccess > const &rxColAccess)
 
static void lcl_UpdateEmailSettingsFromGlobalConfig (SwMailMergeConfigItem &rConfigItem)
 Replace email server settings in rConfigItem with those set in Writer's global mail merge config settings. More...
 
 IMPL_LINK (SwSaveWarningBox_Impl, ModifyHdl, weld::Entry &, rEdit, void)
 
 IMPL_LINK (SwSendQueryBox_Impl, ModifyHdl, weld::Entry &, rEdit, void)
 
 IMPL_LINK_NOARG (SwMMResultSaveDialog, DocumentSelectionHdl_Impl, weld::ToggleButton &, void)
 
 IMPL_LINK_NOARG (SwMMResultEmailDialog, CheckHdl, weld::ToggleButton &, void)
 
 IMPL_LINK_NOARG (SwMMResultPrintDialog, DocumentSelectionHdl_Impl, weld::ToggleButton &, void)
 
 IMPL_LINK_NOARG (SwMMResultEmailDialog, DocumentSelectionHdl_Impl, weld::ToggleButton &, void)
 
 IMPL_LINK_NOARG (SwMMResultEmailDialog, CopyToHdl_Impl, weld::Button &, void)
 
 IMPL_LINK_NOARG (SwMMResultSaveDialog, SaveOutputHdl_Impl, weld::Button &, void)
 
 IMPL_LINK (SwMMResultPrintDialog, PrinterChangeHdl_Impl, weld::ComboBox &, rBox, void)
 
 IMPL_LINK_NOARG (SwMMResultPrintDialog, PrintHdl_Impl, weld::Button &, void)
 
 IMPL_LINK_NOARG (SwMMResultPrintDialog, PrinterSetupHdl_Impl, weld::Button &, void)
 
 IMPL_LINK (SwMMResultEmailDialog, SendTypeHdl_Impl, weld::ComboBox &, rBox, void)
 
 IMPL_LINK_NOARG (SwMMResultEmailDialog, SendAsHdl_Impl, weld::Button &, void)
 
 IMPL_LINK_NOARG (SwMMResultEmailDialog, SendDocumentsHdl_Impl, weld::Button &, void)
 

Macro Definition Documentation

#define MM_DOCTYPE_HTML   4

Definition at line 84 of file mmresultdialogs.cxx.

Referenced by IMPL_LINK(), IMPL_LINK_NOARG(), and lcl_GetExtensionForDocType().

#define MM_DOCTYPE_OOO   1

Definition at line 81 of file mmresultdialogs.cxx.

Referenced by IMPL_LINK_NOARG(), and lcl_GetExtensionForDocType().

#define MM_DOCTYPE_PDF   2

Definition at line 82 of file mmresultdialogs.cxx.

Referenced by IMPL_LINK(), IMPL_LINK_NOARG(), and lcl_GetExtensionForDocType().

#define MM_DOCTYPE_TEXT   5

Definition at line 85 of file mmresultdialogs.cxx.

Referenced by IMPL_LINK(), IMPL_LINK_NOARG(), and lcl_GetExtensionForDocType().

#define MM_DOCTYPE_WORD   3

Definition at line 83 of file mmresultdialogs.cxx.

Referenced by IMPL_LINK_NOARG(), and lcl_GetExtensionForDocType().

Function Documentation

IMPL_LINK ( SwSaveWarningBox_Impl  ,
ModifyHdl  ,
weld::Entry ,
rEdit  ,
void   
)

Definition at line 206 of file mmresultdialogs.cxx.

References weld::Entry::get_text(), and rEdit.

IMPL_LINK ( SwSendQueryBox_Impl  ,
ModifyHdl  ,
weld::Entry ,
rEdit  ,
void   
)

Definition at line 220 of file mmresultdialogs.cxx.

References weld::Entry::get_text(), and rEdit.

IMPL_LINK ( SwMMResultPrintDialog  ,
PrinterChangeHdl_Impl  ,
weld::ComboBox ,
rBox  ,
void   
)
IMPL_LINK ( SwMMResultEmailDialog  ,
SendTypeHdl_Impl  ,
weld::ComboBox ,
rBox  ,
void   
)
IMPL_LINK_NOARG ( SwMMResultSaveDialog  ,
DocumentSelectionHdl_Impl  ,
weld::ToggleButton ,
void   
)

Definition at line 458 of file mmresultdialogs.cxx.

IMPL_LINK_NOARG ( SwMMResultEmailDialog  ,
CheckHdl  ,
weld::ToggleButton ,
void   
)

Definition at line 466 of file mmresultdialogs.cxx.

IMPL_LINK_NOARG ( SwMMResultPrintDialog  ,
DocumentSelectionHdl_Impl  ,
weld::ToggleButton ,
void   
)

Definition at line 474 of file mmresultdialogs.cxx.

IMPL_LINK_NOARG ( SwMMResultEmailDialog  ,
DocumentSelectionHdl_Impl  ,
weld::ToggleButton ,
void   
)

Definition at line 482 of file mmresultdialogs.cxx.

IMPL_LINK_NOARG ( SwMMResultEmailDialog  ,
CopyToHdl_Impl  ,
weld::Button ,
void   
)

Definition at line 490 of file mmresultdialogs.cxx.

References m_xDialog, and RET_OK.

IMPL_LINK_NOARG ( SwMMResultSaveDialog  ,
SaveOutputHdl_Impl  ,
weld::Button ,
void   
)
IMPL_LINK_NOARG ( SwMMResultPrintDialog  ,
PrintHdl_Impl  ,
weld::Button ,
void   
)
IMPL_LINK_NOARG ( SwMMResultPrintDialog  ,
PrinterSetupHdl_Impl  ,
weld::Button ,
void   
)

Definition at line 830 of file mmresultdialogs.cxx.

References m_xDialog.

IMPL_LINK_NOARG ( SwMMResultEmailDialog  ,
SendAsHdl_Impl  ,
weld::Button ,
void   
)

Definition at line 877 of file mmresultdialogs.cxx.

References m_xDialog, RET_OK, and SwMailBodyDialog::SetBody().

IMPL_LINK_NOARG ( SwMMResultEmailDialog  ,
SendDocumentsHdl_Impl  ,
weld::Button ,
void   
)

Definition at line 888 of file mmresultdialogs.cxx.

References aName, assert(), SwMailMergeHelper::CheckMailAddress(), Application::CreateMessageDialog(), utl::TempFile::CreateTempName(), SfxObjectShell::DoClose(), SfxObjectShell::DoInitNew(), SwCursorShell::EndAction(), SwMailMergeConfigItem::FEMALE, SwAddressPreview::FillData(), FILTER_WW8, FILTER_XML, SvxHtmlOptions::Get(), GetActiveView(), GetAppLanguage(), Application::GetDefDialogParent(), SwDocShell::GetDoc(), SwView::GetDocShell(), SfxFilterContainer::GetFilter4Extension(), SfxFilterContainer::GetFilter4FilterName(), SwIoSystem::GetFilterOfFormat(), vcl::Window::GetFrameWeld(), SvtLanguageOptions::GetI18NScriptTypeOfLanguage(), SwLangHelper::GetLanguage(), SwView::GetMailMergeConfigItem(), URIHelper::GetMaybeFileHdl(), SfxObjectShell::GetModel(), SfxFilterContainer::GetName(), SfxShell::GetPool(), GetStandardText(), SvxHtmlOptions::GetTextEncoding(), comphelper::string::getTokenCount(), CntUnencodedStringItem::GetValue(), SfxShell::GetViewShell(), GetWhichOfScript(), SwView::GetWrtShell(), lcl_GetColumnValueOf(), lcl_GetExtensionForDocType(), lcl_UpdateEmailSettingsFromGlobalConfig(), LINEEND_CR, SfxViewFrame::LoadHiddenDocument(), SwDocShell::LoadStylesFromFile(), m_xDialog, SwMailMergeConfigItem::MALE, MM_DOCTYPE_HTML, MM_DOCTYPE_OOO, MM_DOCTYPE_PDF, MM_DOCTYPE_TEXT, MM_DOCTYPE_WORD, SwDocMergeInfo::nDBRow, SwMailMergeConfigItem::NEUTRAL, SwFEShell::PastePages(), SwDBManager::PerformMailMerge(), pValues, SwDoc::ReplaceCompatibilityOptions(), SwDoc::ReplaceDefaults(), SwDoc::ReplaceDocumentProperties(), RES_CHRATR_LANGUAGE(), Application::Reschedule(), RET_CANCEL, RET_OK, RET_YES, weld::DialogController::runAsync(), SAL_WARN_IF, SwMailDescriptor::sAttachmentName, SwMailDescriptor::sAttachmentURL, SwMailDescriptor::sBCC, SwMailDescriptor::sBodyContent, SwMailDescriptor::sBodyMimeType, SwMailDescriptor::sCC, SwMailDescriptor::sEMail, SwgReaderOption::SetFrameFormats(), SwAsciiOptions::SetLanguage(), SwgReaderOption::SetMerge(), SwgReaderOption::SetNumRules(), SwgReaderOption::SetPageDescs(), SwAsciiOptions::SetParaFlags(), SvStream::SetStreamCharSet(), SwgReaderOption::SetTextFormats(), comphelper::string::setToken(), SFX_INTERFACE_NONE, URIHelper::SmartRel2Abs(), SwMailDescriptor::sMimeType, sName, SwMailDescriptor::sSubject, SwCursorShell::StartAction(), SWUnoHelper::UCB_DeleteFile(), and SwAsciiOptions::WriteUserData().

static OUString lcl_GetColumnValueOf ( const OUString &  rColumn,
Reference< container::XNameAccess > const &  rxColAccess 
)
static

Definition at line 101 of file mmresultdialogs.cxx.

References Any, and xColumn.

Referenced by IMPL_LINK_NOARG().

static OUString lcl_GetExtensionForDocType ( sal_uLong  nDocType)
static
static void lcl_UpdateEmailSettingsFromGlobalConfig ( SwMailMergeConfigItem rConfigItem)
static

Replace email server settings in rConfigItem with those set in Writer's global mail merge config settings.

Definition at line 125 of file mmresultdialogs.cxx.

References SwMailMergeConfigItem::GetInServerName(), SwMailMergeConfigItem::GetInServerPassword(), SwMailMergeConfigItem::GetInServerPort(), SwMailMergeConfigItem::GetInServerUserName(), SwMailMergeConfigItem::GetMailAddress(), SwMailMergeConfigItem::GetMailDisplayName(), SwMailMergeConfigItem::GetMailPassword(), SwMailMergeConfigItem::GetMailPort(), SwMailMergeConfigItem::GetMailReplyTo(), SwMailMergeConfigItem::GetMailServer(), SwMailMergeConfigItem::GetMailUserName(), SwMailMergeConfigItem::IsAuthentication(), SwMailMergeConfigItem::IsInServerPOP(), SwMailMergeConfigItem::IsMailReplyTo(), SwMailMergeConfigItem::IsSecureConnection(), SwMailMergeConfigItem::IsSMTPAfterPOP(), SwMailMergeConfigItem::SetAuthentication(), SwMailMergeConfigItem::SetInServerName(), SwMailMergeConfigItem::SetInServerPassword(), SwMailMergeConfigItem::SetInServerPOP(), SwMailMergeConfigItem::SetInServerPort(), SwMailMergeConfigItem::SetInServerUserName(), SwMailMergeConfigItem::SetMailAddress(), SwMailMergeConfigItem::SetMailDisplayName(), SwMailMergeConfigItem::SetMailPassword(), SwMailMergeConfigItem::SetMailPort(), SwMailMergeConfigItem::SetMailReplyTo(), SwMailMergeConfigItem::SetMailServer(), SwMailMergeConfigItem::SetMailUserName(), SwMailMergeConfigItem::SetSecureConnection(), and SwMailMergeConfigItem::SetSMTPAfterPOP().

Referenced by IMPL_LINK_NOARG().