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/propertyvalue.hxx>
#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::Toggleable &, void)
 
 IMPL_LINK_NOARG (SwMMResultEmailDialog, CheckHdl, weld::Toggleable &, void)
 
 IMPL_LINK_NOARG (SwMMResultPrintDialog, DocumentSelectionHdl_Impl, weld::Toggleable &, void)
 
 IMPL_LINK_NOARG (SwMMResultEmailDialog, DocumentSelectionHdl_Impl, weld::Toggleable &, 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

◆ MM_DOCTYPE_HTML

#define MM_DOCTYPE_HTML   4

Definition at line 85 of file mmresultdialogs.cxx.

◆ MM_DOCTYPE_OOO

#define MM_DOCTYPE_OOO   1

Definition at line 82 of file mmresultdialogs.cxx.

◆ MM_DOCTYPE_PDF

#define MM_DOCTYPE_PDF   2

Definition at line 83 of file mmresultdialogs.cxx.

◆ MM_DOCTYPE_TEXT

#define MM_DOCTYPE_TEXT   5

Definition at line 86 of file mmresultdialogs.cxx.

◆ MM_DOCTYPE_WORD

#define MM_DOCTYPE_WORD   3

Definition at line 84 of file mmresultdialogs.cxx.

Function Documentation

◆ IMPL_LINK() [1/4]

IMPL_LINK ( SwMMResultEmailDialog  ,
SendTypeHdl_Impl  ,
weld::ComboBox ,
rBox  ,
void   
)

◆ IMPL_LINK() [2/4]

IMPL_LINK ( SwMMResultPrintDialog  ,
PrinterChangeHdl_Impl  ,
weld::ComboBox ,
rBox  ,
void   
)

◆ IMPL_LINK() [3/4]

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

Definition at line 207 of file mmresultdialogs.cxx.

◆ IMPL_LINK() [4/4]

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

Definition at line 221 of file mmresultdialogs.cxx.

◆ IMPL_LINK_NOARG() [1/10]

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

Definition at line 470 of file mmresultdialogs.cxx.

◆ IMPL_LINK_NOARG() [2/10]

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

Definition at line 494 of file mmresultdialogs.cxx.

References m_xDialog, and RET_OK.

◆ IMPL_LINK_NOARG() [3/10]

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

Definition at line 486 of file mmresultdialogs.cxx.

◆ IMPL_LINK_NOARG() [4/10]

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

◆ IMPL_LINK_NOARG() [5/10]

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

Definition at line 911 of file mmresultdialogs.cxx.

References aName, SwMailMergeHelper::CheckMailAddress(), Application::CreateMessageDialog(), utl::CreateTempName(), SfxObjectShell::DoClose(), SfxObjectShell::DoInitNew(), SwCursorShell::EndAction(), SwMailMergeConfigItem::FEMALE, SwAddressPreview::FillData(), FILTER_WW8, FILTER_XML, SfxFilterMatcherIter::First(), GetActiveView(), GetAppLanguage(), Application::GetDefDialogParent(), SwDocShell::GetDoc(), SwView::GetDocShell(), SfxFilterContainer::GetFilter4Extension(), SfxFilterContainer::GetFilter4FilterName(), SwIoSystem::GetFilterOfFormat(), SvtLanguageOptions::GetI18NScriptTypeOfLanguage(), SfxMedium::GetInStream(), SwLangHelper::GetLanguage(), SwView::GetMailMergeConfigItem(), URIHelper::GetMaybeFileHdl(), SfxObjectShell::GetModel(), SfxFilterContainer::GetName(), SfxShell::GetPool(), GetStandardText(), o3tl::getToken(), comphelper::string::getTokenCount(), SfxShell::GetViewShell(), GetWhichOfScript(), SwView::GetWrtShell(), lcl_GetColumnValueOf(), lcl_GetExtensionForDocType(), lcl_UpdateEmailSettingsFromGlobalConfig(), LINEEND_CR, SfxViewFrame::LoadHiddenDocument(), SwDocShell::LoadStylesFromFile(), m_xDialog, comphelper::makePropertyValue(), SwMailMergeConfigItem::MALE, MM_DOCTYPE_HTML, MM_DOCTYPE_OOO, MM_DOCTYPE_PDF, MM_DOCTYPE_TEXT, MM_DOCTYPE_WORD, SwDocMergeInfo::nDBRow, SwMailMergeConfigItem::NEUTRAL, SfxFilterMatcherIter::Next(), SwFEShell::PastePages(), SwDBManager::PerformMailMerge(), SvStream::ReadLine(), 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().

◆ IMPL_LINK_NOARG() [6/10]

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

Definition at line 478 of file mmresultdialogs.cxx.

◆ IMPL_LINK_NOARG() [7/10]

IMPL_LINK_NOARG ( SwMMResultPrintDialog  ,
PrinterSetupHdl_Impl  ,
weld::Button ,
void   
)

Definition at line 848 of file mmresultdialogs.cxx.

References m_xDialog.

◆ IMPL_LINK_NOARG() [8/10]

IMPL_LINK_NOARG ( SwMMResultPrintDialog  ,
PrintHdl_Impl  ,
weld::Button ,
void   
)

◆ IMPL_LINK_NOARG() [9/10]

IMPL_LINK_NOARG ( SwMMResultSaveDialog  ,
DocumentSelectionHdl_Impl  ,
weld::Toggleable ,
void   
)

Definition at line 462 of file mmresultdialogs.cxx.

◆ IMPL_LINK_NOARG() [10/10]

IMPL_LINK_NOARG ( SwMMResultSaveDialog  ,
SaveOutputHdl_Impl  ,
weld::Button ,
void   
)

◆ lcl_GetColumnValueOf()

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

Definition at line 102 of file mmresultdialogs.cxx.

References Any, and xColumn.

Referenced by IMPL_LINK_NOARG().

◆ lcl_GetExtensionForDocType()

static OUString lcl_GetExtensionForDocType ( sal_uLong  nDocType)
static

◆ lcl_UpdateEmailSettingsFromGlobalConfig()

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 126 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().