|
LibreOffice Module sw (master) 1
|
#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>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) | |
| #define MM_DOCTYPE_HTML 4 |
Definition at line 85 of file mmresultdialogs.cxx.
| #define MM_DOCTYPE_OOO 1 |
Definition at line 82 of file mmresultdialogs.cxx.
| #define MM_DOCTYPE_PDF 2 |
Definition at line 83 of file mmresultdialogs.cxx.
| #define MM_DOCTYPE_TEXT 5 |
Definition at line 86 of file mmresultdialogs.cxx.
| #define MM_DOCTYPE_WORD 3 |
Definition at line 84 of file mmresultdialogs.cxx.
| IMPL_LINK | ( | SwMMResultEmailDialog | , |
| SendTypeHdl_Impl | , | ||
| weld::ComboBox & | , | ||
| rBox | , | ||
| void | |||
| ) |
Definition at line 854 of file mmresultdialogs.cxx.
References comphelper::string::getTokenCount(), lcl_GetExtensionForDocType(), MM_DOCTYPE_HTML, MM_DOCTYPE_PDF, MM_DOCTYPE_TEXT, and comphelper::string::setToken().
| IMPL_LINK | ( | SwMMResultPrintDialog | , |
| PrinterChangeHdl_Impl | , | ||
| weld::ComboBox & | , | ||
| rBox | , | ||
| void | |||
| ) |
Definition at line 751 of file mmresultdialogs.cxx.
References VclPtr< class reference_type >::Create(), GetActiveView(), QueueInfo::GetDriver(), SwView::GetMailMergeConfigItem(), QueueInfo::GetPrinterName(), and Printer::GetQueueInfo().
| IMPL_LINK | ( | SwSaveWarningBox_Impl | , |
| ModifyHdl | , | ||
| weld::Entry & | , | ||
| rEdit | , | ||
| void | |||
| ) |
Definition at line 207 of file mmresultdialogs.cxx.
| IMPL_LINK | ( | SwSendQueryBox_Impl | , |
| ModifyHdl | , | ||
| weld::Entry & | , | ||
| rEdit | , | ||
| void | |||
| ) |
Definition at line 221 of file mmresultdialogs.cxx.
| IMPL_LINK_NOARG | ( | SwMMResultEmailDialog | , |
| CheckHdl | , | ||
| weld::Toggleable & | , | ||
| void | |||
| ) |
Definition at line 470 of file mmresultdialogs.cxx.
| IMPL_LINK_NOARG | ( | SwMMResultEmailDialog | , |
| CopyToHdl_Impl | , | ||
| weld::Button & | , | ||
| void | |||
| ) |
Definition at line 494 of file mmresultdialogs.cxx.
| IMPL_LINK_NOARG | ( | SwMMResultEmailDialog | , |
| DocumentSelectionHdl_Impl | , | ||
| weld::Toggleable & | , | ||
| void | |||
| ) |
Definition at line 486 of file mmresultdialogs.cxx.
| IMPL_LINK_NOARG | ( | SwMMResultEmailDialog | , |
| SendAsHdl_Impl | , | ||
| weld::Button & | , | ||
| void | |||
| ) |
Definition at line 894 of file mmresultdialogs.cxx.
References GetActiveView(), SwMailBodyDialog::GetBody(), m_xDialog, RET_OK, SAL_WARN, and SwMailBodyDialog::SetBody().
| 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 | ( | SwMMResultPrintDialog | , |
| DocumentSelectionHdl_Impl | , | ||
| weld::Toggleable & | , | ||
| void | |||
| ) |
Definition at line 478 of file mmresultdialogs.cxx.
| IMPL_LINK_NOARG | ( | SwMMResultPrintDialog | , |
| PrinterSetupHdl_Impl | , | ||
| weld::Button & | , | ||
| void | |||
| ) |
Definition at line 848 of file mmresultdialogs.cxx.
References m_xDialog.
| IMPL_LINK_NOARG | ( | SwMMResultPrintDialog | , |
| PrintHdl_Impl | , | ||
| weld::Button & | , | ||
| void | |||
| ) |
Definition at line 789 of file mmresultdialogs.cxx.
References SfxViewShell::ExecPrint(), GetActiveView(), SwDocShell::GetDoc(), SwView::GetDocShell(), SwDocShell::GetEventName(), SwDoc::getIDocumentDeviceAccess(), SwViewShell::getIDocumentDeviceAccess(), SwView::GetMailMergeConfigItem(), SfxViewFrame::GetObjectShell(), IDocumentDeviceAccess::getPrintData(), IDocumentDeviceAccess::getPrinter(), SfxViewShell::GetViewFrame(), SwView::GetWrtShell(), SwPrintData::IsPrintEmptyPages(), m_xDialog, comphelper::makePropertyValue(), SfxApplication::NotifyEvent(), SwDBManager::PerformMailMerge(), RET_OK, SwView::SetMailMergeConfigItem(), SwView::SetPrinter(), SfxGetpApp(), STR_SW_EVENT_MAIL_MERGE, and STR_SW_EVENT_MAIL_MERGE_END.
| IMPL_LINK_NOARG | ( | SwMMResultSaveDialog | , |
| DocumentSelectionHdl_Impl | , | ||
| weld::Toggleable & | , | ||
| void | |||
| ) |
Definition at line 462 of file mmresultdialogs.cxx.
| IMPL_LINK_NOARG | ( | SwMMResultSaveDialog | , |
| SaveOutputHdl_Impl | , | ||
| weld::Button & | , | ||
| void | |||
| ) |
Definition at line 553 of file mmresultdialogs.cxx.
References aURL, SwMailMergeHelper::CallSaveAsDialog(), utl::CreateTempName(), SfxObjectShell::DoClose(), SfxObjectShell::DoInitNew(), SwCursorShell::EndAction(), ERRCODE_IO_GENERAL, ERRCODE_NONE, ERRCTX_SFX_SAVEASDOC, Exception, FILTER_XML, GetActiveView(), SfxObjectShell::GetBaseModel(), SwDocShell::GetDoc(), SwView::GetDocShell(), SwIoSystem::GetFilterOfFormat(), SwView::GetMailMergeConfigItem(), URIHelper::GetMaybeFileHdl(), SfxObjectShell::GetModel(), SfxObjectShell::GetTitle(), SfxShell::GetViewShell(), SwView::GetWrtShell(), ErrorHandler::HandleError(), SfxViewFrame::LoadHiddenDocument(), SwDocShell::LoadStylesFromFile(), m_xDialog, comphelper::makePropertyValue(), SwFEShell::PastePages(), SwDBManager::PerformMailMerge(), Scheduler::ProcessEventsToIdle(), pValues, SwDoc::ReplaceCompatibilityOptions(), SwDoc::ReplaceDefaults(), SwDoc::ReplaceDocumentProperties(), RET_CANCEL, RET_OK, weld::DialogController::runAsync(), SwgReaderOption::SetFrameFormats(), SwgReaderOption::SetMerge(), SwgReaderOption::SetNumRules(), SwgReaderOption::SetPageDescs(), SwgReaderOption::SetTextFormats(), SFX_INTERFACE_NONE, URIHelper::SmartRel2Abs(), SwCursorShell::StartAction(), SwResId(), and INetURLObject::ToIUri.
|
static |
Definition at line 102 of file mmresultdialogs.cxx.
Referenced by IMPL_LINK_NOARG().
|
static |
Definition at line 88 of file mmresultdialogs.cxx.
References MM_DOCTYPE_HTML, MM_DOCTYPE_OOO, MM_DOCTYPE_PDF, MM_DOCTYPE_TEXT, and MM_DOCTYPE_WORD.
Referenced by SwMMResultEmailDialog::FillInEmailSettings(), IMPL_LINK(), and IMPL_LINK_NOARG().
|
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().