LibreOffice Module sw (master) 1
|
Gives UNO access to the global mail merge functionality, via the com.sun.star.text.MailMerge service. More...
#include <unomailmerge.hxx>
Public Member Functions | |
SwXMailMerge () | |
void | LaunchMailMergeEvent (const css::text::MailMergeEvent &rData) const |
virtual css::uno::Any SAL_CALL | execute (const css::uno::Sequence< css::beans::NamedValue > &Arguments) override |
virtual void SAL_CALL | cancel () override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual void SAL_CALL | setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) override |
virtual css::uno::Any SAL_CALL | getPropertyValue (const OUString &PropertyName) override |
virtual void SAL_CALL | addPropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override |
virtual void SAL_CALL | removePropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override |
virtual void SAL_CALL | addVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override |
virtual void SAL_CALL | removeVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override |
virtual void SAL_CALL | addMailMergeEventListener (const css::uno::Reference< css::text::XMailMergeListener > &xListener) override |
virtual void SAL_CALL | removeMailMergeEventListener (const css::uno::Reference< css::text::XMailMergeListener > &xListener) override |
virtual void SAL_CALL | dispose () override |
virtual void SAL_CALL | addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override |
virtual void SAL_CALL | removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
Private Member Functions | |
void | launchEvent (const css::beans::PropertyChangeEvent &rEvt) const |
SwXMailMerge (const SwXMailMerge &)=delete | |
SwXMailMerge & | operator= (const SwXMailMerge &)=delete |
virtual | ~SwXMailMerge () override |
Friends | |
class | MailMergeExecuteFinalizer |
Gives UNO access to the global mail merge functionality, via the com.sun.star.text.MailMerge service.
Definition at line 70 of file unomailmerge.hxx.
|
privatedelete |
|
overrideprivatevirtual |
we still need to close the model and doc shell manually because there is no automatism that will do that later. #120086#
Definition at line 390 of file unomailmerge.cxx.
References CloseModelAndDocSh(), DeleteTmpFile_Impl(), m_aTmpFileName, m_xDocSh, and m_xModel.
SwXMailMerge::SwXMailMerge | ( | ) |
Definition at line 364 of file unomailmerge.cxx.
References CommandType, SfxShell::GetViewShell(), SfxViewFrame::LoadHiddenDocument(), m_xDocSh, m_xModel, PRINTER, SFX_INTERFACE_NONE, and TABLE.
|
overridevirtual |
Definition at line 1121 of file unomailmerge.cxx.
References comphelper::OInterfaceContainerHelper3< class ListenerT >::addInterface(), m_aEvtListeners, and m_bDisposing.
|
overridevirtual |
Definition at line 1137 of file unomailmerge.cxx.
References comphelper::OInterfaceContainerHelper2::addInterface(), m_aMergeListeners, and m_bDisposing.
|
overridevirtual |
Definition at line 1062 of file unomailmerge.cxx.
References comphelper::OMultiTypeInterfaceContainerHelperVar3< class listener, class key, class equalImpl >::addInterface(), SfxItemPropertyMap::getByName(), SfxItemPropertySet::getPropertyMap(), m_aPropListeners, m_bDisposing, m_pPropSet, and SfxItemPropertyMapEntry::nWID.
|
overridevirtual |
Definition at line 1090 of file unomailmerge.cxx.
|
overridevirtual |
cleanup in the execute function.
Definition at line 823 of file unomailmerge.cxx.
References GetMailMergeMutex(), m_pMgr, and SwDBManager::MergeCancel().
|
overridevirtual |
Definition at line 1106 of file unomailmerge.cxx.
References comphelper::OInterfaceContainerHelper2::disposeAndClear(), comphelper::OInterfaceContainerHelper3< class ListenerT >::disposeAndClear(), comphelper::OMultiTypeInterfaceContainerHelperVar3< class listener, class key, class equalImpl >::disposeAndClear(), m_aEvtListeners, m_aMergeListeners, m_aPropListeners, m_bDisposing, and XPropertySet.
|
overridevirtual |
Definition at line 429 of file unomailmerge.cxx.
References SwMergeDescriptor::aBlindCopiesTo, SwMergeDescriptor::aCopiesTo, Any, SwMergeDescriptor::aPrintOptions, SwMergeDescriptor::aSaveToFilterData, SwMergeDescriptor::bCreateSingleFile, SwMergeDescriptor::bSendAsAttachment, SwMergeDescriptor::bSendAsHTML, SwEditShell::CalcLayout(), svx::Command, svx::CommandType, svx::Connection, SwMailMergeHelper::ConnectToSmtpServer(), utl::CreateTempURL(), svx::Cursor, DBMGR_MERGE_EMAIL, DBMGR_MERGE_FILE, DBMGR_MERGE_PRINTER, DBMGR_MERGE_SHELL, DeleteTmpFile_Impl(), svx::EscapeProcessing, Exception, FILTER_XML, tools::SvRef< typename T >::get(), INetURLObject::GetBase(), SfxObjectShell::GetBaseModel(), SwEditShell::GetDBManager(), SwView::GetDocShell(), SwDocShell::GetEventName(), SwIoSystem::GetFilterOfFormat(), SfxViewFrame::GetFirst(), SwViewShell::getIDocumentDeviceAccess(), SwDBManager::GetMailMergeEvtSrc(), INetURLObject::GetMainURL(), IDocumentDeviceAccess::getPrintData(), SwMailMergeConfigItem::GetTargetView(), SfxShell::GetViewShell(), SwView::GetWrtShell(), LoadFromURL_impl(), m_aBlindCopiesTo, m_aCopiesTo, m_aDataCommand, m_aDataSourceName, m_aDocumentURL, m_aFileNamePrefix, m_aFilter, m_aOutputURL, m_aPrintSettings, m_aSaveFilterData, m_aSelection, m_aTmpFileName, m_bEscapeProcessing, m_bFileNameFromColumn, m_bSaveAsSingleFile, m_bSendAsAttachment, m_bSendAsHTML, m_bSinglePrintJobs, m_nDataCommandType, m_nOutputType, m_pMgr, m_sAddressFromColumn, m_sAttachmentFilter, m_sAttachmentName, m_sInServerPassword, m_sMailBody, m_sOutServerPassword, m_sSaveFilter, m_sSaveFilterOptions, m_sSubject, m_xConnection, m_xDocSh, m_xModel, m_xResultSet, SwDBManager::Merge(), SfxApplication::NotifyEvent(), SwMergeDescriptor::pMailMergeConfigItem, INetURLObject::removeSegment(), utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::reset(), SwMergeDescriptor::sAttachmentName, SwMergeDescriptor::sDBcolumn, svx::Selection, svx::ODataAccessDescriptor::setDataSource(), SwDBManager::SetMailMergeEvtSrc(), SwDBManager::SetMergeSilent(), IDocumentDeviceAccess::setPrintData(), SwPrintData::SetPrintSingleJobs(), INetURLObject::SetSmartProtocol(), INetURLObject::SetSmartURL(), SfxGetpApp(), SwMergeDescriptor::sMailBody, SwMergeDescriptor::sPrefix, SwMergeDescriptor::sSaveToFilter, SwMergeDescriptor::sSaveToFilterOptions, SwMergeDescriptor::sSubject, STR_SW_EVENT_MAIL_MERGE, STR_SW_EVENT_MAIL_MERGE_END, comphelper::string::stripStart(), utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::TakeOwnership, INetURLObject::ToIUri, u, SWUnoHelper::UCB_IsDirectory(), SWUnoHelper::UCB_IsReadOnlyFileName(), UNO_NAME_ADDRESS_FROM_COLUMN, UNO_NAME_ATTACHMENT_FILTER, UNO_NAME_ATTACHMENT_NAME, UNO_NAME_BLIND_COPIES_TO, UNO_NAME_CONNECTION, UNO_NAME_COPIES_TO, UNO_NAME_DAD_COMMAND, UNO_NAME_DAD_COMMAND_TYPE, UNO_NAME_DATA_SOURCE_NAME, UNO_NAME_DOCUMENT_URL, UNO_NAME_ESCAPE_PROCESSING, UNO_NAME_FILE_NAME_FROM_COLUMN, UNO_NAME_FILE_NAME_PREFIX, UNO_NAME_FILTER, UNO_NAME_IN_SERVER_PASSWORD, UNO_NAME_MAIL_BODY, UNO_NAME_MODEL, UNO_NAME_OUT_SERVER_PASSWORD, UNO_NAME_OUTPUT_TYPE, UNO_NAME_OUTPUT_URL, UNO_NAME_PRINT_OPTIONS, UNO_NAME_RESULT_SET, UNO_NAME_SAVE_AS_SINGLE_FILE, UNO_NAME_SAVE_FILTER, UNO_NAME_SAVE_FILTER_DATA, UNO_NAME_SAVE_FILTER_OPTIONS, UNO_NAME_SELECTION, UNO_NAME_SEND_AS_ATTACHMENT, UNO_NAME_SEND_AS_HTML, UNO_NAME_SINGLE_PRINT_JOBS, UNO_NAME_SUBJECT, and SwMergeDescriptor::xSmtpServer.
|
overridevirtual |
Definition at line 1153 of file unomailmerge.cxx.
|
overridevirtual |
Definition at line 851 of file unomailmerge.cxx.
References SfxItemPropertySet::getPropertySetInfo(), and m_pPropSet.
|
overridevirtual |
Definition at line 1011 of file unomailmerge.cxx.
References Any, SfxItemPropertyMap::getByName(), SfxItemPropertySet::getPropertyMap(), m_aBlindCopiesTo, m_aCopiesTo, m_aDataCommand, m_aDataSourceName, m_aDocumentURL, m_aFileNamePrefix, m_aFilter, m_aOutputURL, m_aPrintSettings, m_aSaveFilterData, m_aSelection, m_bEscapeProcessing, m_bFileNameFromColumn, m_bSaveAsSingleFile, m_bSendAsAttachment, m_bSendAsHTML, m_bSinglePrintJobs, m_nDataCommandType, m_nOutputType, m_pPropSet, m_sAddressFromColumn, m_sAttachmentFilter, m_sAttachmentName, m_sInServerPassword, m_sMailBody, m_sOutServerPassword, m_sSaveFilter, m_sSaveFilterOptions, m_sSubject, m_xConnection, m_xModel, m_xResultSet, SfxItemPropertyMapEntry::nWID, WID_ADDRESS_FROM_COLUMN, WID_ATTACHMENT_FILTER, WID_ATTACHMENT_NAME, WID_BLIND_COPIES_TO, WID_CONNECTION, WID_COPIES_TO, WID_DATA_COMMAND, WID_DATA_COMMAND_TYPE, WID_DATA_SOURCE_NAME, WID_DOCUMENT_URL, WID_ESCAPE_PROCESSING, WID_FILE_NAME_FROM_COLUMN, WID_FILE_NAME_PREFIX, WID_FILTER, WID_IN_SERVER_PASSWORD, WID_MAIL_BODY, WID_MAIL_SUBJECT, WID_MODEL, WID_OUT_SERVER_PASSWORD, WID_OUTPUT_TYPE, WID_OUTPUT_URL, WID_PRINT_OPTIONS, WID_RESULT_SET, WID_SAVE_AS_SINGLE_FILE, WID_SAVE_FILTER, WID_SAVE_FILTER_DATA, WID_SAVE_FILTER_OPTIONS, WID_SELECTION, WID_SEND_AS_ATTACHMENT, WID_SEND_AS_HTML, and WID_SINGLE_PRINT_JOBS.
|
overridevirtual |
Definition at line 1163 of file unomailmerge.cxx.
|
private |
Definition at line 841 of file unomailmerge.cxx.
References comphelper::OMultiTypeInterfaceContainerHelperVar3< class listener, class key, class equalImpl >::getContainer(), m_aPropListeners, and comphelper::OInterfaceContainerHelper3< class ListenerT >::notifyEach().
Referenced by setPropertyValue().
void SwXMailMerge::LaunchMailMergeEvent | ( | const css::text::MailMergeEvent & | rData | ) | const |
Definition at line 832 of file unomailmerge.cxx.
References comphelper::OInterfaceIteratorHelper2::hasMoreElements(), m_aMergeListeners, and comphelper::OInterfaceIteratorHelper2::next().
|
privatedelete |
|
overridevirtual |
Definition at line 1129 of file unomailmerge.cxx.
References m_aEvtListeners, m_bDisposing, and comphelper::OInterfaceContainerHelper3< class ListenerT >::removeInterface().
|
overridevirtual |
Definition at line 1145 of file unomailmerge.cxx.
References m_aMergeListeners, m_bDisposing, and comphelper::OInterfaceContainerHelper2::removeInterface().
|
overridevirtual |
Definition at line 1076 of file unomailmerge.cxx.
References SfxItemPropertyMap::getByName(), SfxItemPropertySet::getPropertyMap(), m_aPropListeners, m_bDisposing, m_pPropSet, SfxItemPropertyMapEntry::nWID, and comphelper::OMultiTypeInterfaceContainerHelperVar3< class listener, class key, class equalImpl >::removeInterface().
|
overridevirtual |
Definition at line 1098 of file unomailmerge.cxx.
|
overridevirtual |
Definition at line 858 of file unomailmerge.cxx.
References Any, SfxItemPropertyMapEntry::aType, SfxItemPropertyMap::getByName(), SfxItemPropertySet::getPropertyMap(), launchEvent(), LoadFromURL_impl(), m_aBlindCopiesTo, m_aCopiesTo, m_aDataCommand, m_aDataSourceName, m_aDocumentURL, m_aFileNamePrefix, m_aFilter, m_aOutputURL, m_aPrintSettings, m_aSaveFilterData, m_aSelection, m_bEscapeProcessing, m_bFileNameFromColumn, m_bSaveAsSingleFile, m_bSendAsAttachment, m_bSendAsHTML, m_bSinglePrintJobs, m_nDataCommandType, m_nOutputType, m_pPropSet, m_sAddressFromColumn, m_sAttachmentFilter, m_sAttachmentName, m_sInServerPassword, m_sMailBody, m_sOutServerPassword, m_sSaveFilter, m_sSaveFilterOptions, m_sSubject, m_xConnection, m_xDocSh, m_xModel, m_xResultSet, SfxItemPropertyMapEntry::nFlags, SfxItemPropertyMapEntry::nWID, pData, SWUnoHelper::UCB_IsDirectory(), SWUnoHelper::UCB_IsReadOnlyFileName(), WID_ADDRESS_FROM_COLUMN, WID_ATTACHMENT_FILTER, WID_ATTACHMENT_NAME, WID_BLIND_COPIES_TO, WID_CONNECTION, WID_COPIES_TO, WID_DATA_COMMAND, WID_DATA_COMMAND_TYPE, WID_DATA_SOURCE_NAME, WID_DOCUMENT_URL, WID_ESCAPE_PROCESSING, WID_FILE_NAME_FROM_COLUMN, WID_FILE_NAME_PREFIX, WID_FILTER, WID_IN_SERVER_PASSWORD, WID_MAIL_BODY, WID_MAIL_SUBJECT, WID_MODEL, WID_OUT_SERVER_PASSWORD, WID_OUTPUT_TYPE, WID_OUTPUT_URL, WID_PRINT_OPTIONS, WID_RESULT_SET, WID_SAVE_AS_SINGLE_FILE, WID_SAVE_FILTER, WID_SAVE_FILTER_DATA, WID_SAVE_FILTER_OPTIONS, WID_SELECTION, WID_SEND_AS_ATTACHMENT, WID_SEND_AS_HTML, WID_SINGLE_PRINT_JOBS, and XPropertySet.
|
overridevirtual |
Definition at line 1158 of file unomailmerge.cxx.
References cppu::supportsService().
|
friend |
Definition at line 81 of file unomailmerge.hxx.
|
private |
Definition at line 118 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 117 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 99 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 98 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 101 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 83 of file unomailmerge.hxx.
Referenced by addEventListener(), dispose(), and removeEventListener().
|
private |
Definition at line 103 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 100 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 84 of file unomailmerge.hxx.
Referenced by addMailMergeEventListener(), dispose(), LaunchMailMergeEvent(), and removeMailMergeEventListener().
|
private |
Definition at line 102 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 122 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 85 of file unomailmerge.hxx.
Referenced by addPropertyChangeListener(), dispose(), launchEvent(), and removePropertyChangeListener().
|
private |
Definition at line 127 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 94 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 91 of file unomailmerge.hxx.
Referenced by execute(), and ~SwXMailMerge().
|
private |
Definition at line 129 of file unomailmerge.hxx.
Referenced by addEventListener(), addMailMergeEventListener(), addPropertyChangeListener(), dispose(), removeEventListener(), removeMailMergeEventListener(), and removePropertyChangeListener().
|
private |
Definition at line 106 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 108 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 124 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 120 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 119 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 107 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 104 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 105 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 130 of file unomailmerge.hxx.
Referenced by cancel(), execute(), and MailMergeExecuteFinalizer::~MailMergeExecuteFinalizer().
|
private |
Definition at line 87 of file unomailmerge.hxx.
Referenced by addPropertyChangeListener(), getPropertySetInfo(), getPropertyValue(), removePropertyChangeListener(), and setPropertyValue().
|
private |
Definition at line 113 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 116 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 115 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 110 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 114 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 111 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 125 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 126 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 112 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 96 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 89 of file unomailmerge.hxx.
Referenced by execute(), setPropertyValue(), SwXMailMerge(), and ~SwXMailMerge().
|
private |
Definition at line 97 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), setPropertyValue(), SwXMailMerge(), and ~SwXMailMerge().
|
private |
Definition at line 95 of file unomailmerge.hxx.
Referenced by execute(), getPropertyValue(), and setPropertyValue().