LibreOffice Module sw (master)  1
Classes | Typedefs | Enumerations | Functions
unomailmerge.cxx File Reference
#include <vcl/svapp.hxx>
#include <osl/mutex.hxx>
#include <svl/itemprop.hxx>
#include <svl/urihelper.hxx>
#include <svx/dataaccessdescriptor.hxx>
#include <unotools/tempfile.hxx>
#include <sfx2/app.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/docfilt.hxx>
#include <comphelper/processfactory.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/lang/XUnoTunnel.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 <swevent.hxx>
#include <unomailmerge.hxx>
#include <swdll.hxx>
#include <swmodule.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 <prtopt.hxx>
#include <wrtsh.hxx>
#include <shellio.hxx>
#include <mmconfigitem.hxx>
#include <mailmergehelper.hxx>
#include <unomid.h>
#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
 

Enumerations

enum  CloseResult {
  eSuccess,
  eVetoed,
  eFailed
}
 

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

Definition at line 82 of file unomailmerge.cxx.

Enumeration Type Documentation

Enumerator
eSuccess 
eVetoed 
eFailed 

Definition at line 90 of file unomailmerge.cxx.

Function Documentation

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 96 of file unomailmerge.cxx.

References eFailed, eSuccess, and eVetoed.

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

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