-
Jan-Marek Glogowski yazdı
If you start a mail merge jobs via UNO, there is no way to cancel it. But the functionality is already implemented and used by the LO internal mail merge dialogs. This patch adds an optional XCancellable interface to the MailMerge service and implements it in the SwXMailMerge class. As the XJob::execute function already uses the SolarMutex to prevent parallel runs, XCancellable::cancel can be implemented by storing the SwNewDBMgr in the private variable m_pMgr, protected by a mutex. The bCancel member has to be converted from a bitfield value to a real boolean, because otherwise all bitfield values would have to be protected by a mutex. Bitfield assignments aren't atomic as you always have to replace at least a byte. Change-Id: I007cc23fdf04ccfca7d3cd6180b0e17e99f53061 Reviewed-on: https://gerrit.libreoffice.org/7190Reviewed-by:
Michael Stahl <mstahl@redhat.com> Tested-by:
Michael Stahl <mstahl@redhat.com>
1a12777f