LibreOffice Module sw (master) 1
Classes | Typedefs | Functions
unomailmerge.cxx File Reference
#include <comphelper/servicehelper.hxx>
#include <utility>
#include <vcl/svapp.hxx>
#include <osl/mutex.hxx>
#include <svl/itemprop.hxx>
#include <svx/dataaccessdescriptor.hxx>
#include <unotools/tempfile.hxx>
#include <sfx2/app.hxx>
#include <sfx2/docfilt.hxx>
#include <tools/urlobj.hxx>
#include <tools/diagnose_ex.h>
#include <comphelper/processfactory.hxx>
#include <comphelper/propertyvalue.hxx>
#include <comphelper/string.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <vcl/timer.hxx>
#include <com/sun/star/sdb/CommandType.hpp>
#include <com/sun/star/text/MailMergeType.hpp>
#include <com/sun/star/text/MailMergeEvent.hpp>
#include <com/sun/star/text/XMailMergeListener.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/sdbc/XResultSet.hpp>
#include <com/sun/star/sdbc/XConnection.hpp>
#include <com/sun/star/sdbc/XRowSet.hpp>
#include <com/sun/star/frame/Desktop.hpp>
#include <com/sun/star/util/XCloseable.hpp>
#include <com/sun/star/util/CloseVetoException.hpp>
#include <com/sun/star/sdbcx/XRowLocate.hpp>
#include <com/sun/star/frame/XStorable.hpp>
#include <com/sun/star/mail/XSmtpService.hpp>
#include <sfx2/viewfrm.hxx>
#include <sfx2/event.hxx>
#include <cppuhelper/implbase.hxx>
#include <printdata.hxx>
#include <swevent.hxx>
#include <unomailmerge.hxx>
#include <unoprnms.hxx>
#include <unomap.hxx>
#include <swunohelper.hxx>
#include <docsh.hxx>
#include <IDocumentDeviceAccess.hxx>
#include <view.hxx>
#include <dbmgr.hxx>
#include <unotxdoc.hxx>
#include <wrtsh.hxx>
#include <mmconfigitem.hxx>
#include <mailmergehelper.hxx>
#include <iodetect.hxx>
#include <memory>
Include dependency graph for unomailmerge.cxx:

Go to the source code of this file.

Classes

class  MailMergeExecuteFinalizer
 

Typedefs

typedef ::utl::SharedUNOComponent< XInterfaceSharedComponent
 

Functions

static osl::Mutex & GetMailMergeMutex ()
 
static CloseResult CloseModelAndDocSh (Reference< frame::XModel > const &rxModel, SfxObjectShellRef &rxDocSh)
 
static bool LoadFromURL_impl (Reference< frame::XModel > &rxModel, SfxObjectShellRef &rxDocSh, const OUString &rURL, bool bClose)
 
static bool DeleteTmpFile_Impl (Reference< frame::XModel > &rxModel, SfxObjectShellRef &rxDocSh, const OUString &rTmpFileURL)
 

Typedef Documentation

◆ SharedComponent

Definition at line 80 of file unomailmerge.cxx.

Function Documentation

◆ CloseModelAndDocSh()

static CloseResult CloseModelAndDocSh ( Reference< frame::XModel > const &  rxModel,
SfxObjectShellRef rxDocSh 
)
static

models/documents should never be disposed (they may still be used for printing which is called asynchronously for example) instead call close

'sal_True' -> transfer ownership to vetoing object if vetoed! I.e. now that object is responsible for closing the model and doc shell.

here we have the problem that the temporary file that is currently being printed will never be deleted. :-(

Definition at line 99 of file unomailmerge.cxx.

References eSuccess.

Referenced by DeleteTmpFile_Impl(), LoadFromURL_impl(), and SwXMailMerge::~SwXMailMerge().

◆ DeleteTmpFile_Impl()

static bool DeleteTmpFile_Impl ( Reference< frame::XModel > &  rxModel,
SfxObjectShellRef rxDocSh,
const OUString &  rTmpFileURL 
)
static

◆ GetMailMergeMutex()

static osl::Mutex & GetMailMergeMutex ( )
static

◆ LoadFromURL_impl()

static bool LoadFromURL_impl ( Reference< frame::XModel > &  rxModel,
SfxObjectShellRef rxDocSh,
const OUString &  rURL,
bool  bClose 
)
static