LibreOffice Module sw (master) 1
|
#include <sal/config.h>
#include <cassert>
#include <unotxdoc.hxx>
#include <sfx2/app.hxx>
#include <com/sun/star/sdb/CommandType.hpp>
#include <com/sun/star/sdb/XDocumentDataSource.hpp>
#include <com/sun/star/lang/DisposedException.hpp>
#include <com/sun/star/lang/XEventListener.hpp>
#include <com/sun/star/uri/UriReferenceFactory.hpp>
#include <com/sun/star/uri/VndSunStarPkgUrlReferenceFactory.hpp>
#include <com/sun/star/util/NumberFormatter.hpp>
#include <com/sun/star/sdb/DatabaseContext.hpp>
#include <com/sun/star/sdb/TextConnectionSettings.hpp>
#include <com/sun/star/sdb/XCompletedConnection.hpp>
#include <com/sun/star/sdb/XCompletedExecution.hpp>
#include <com/sun/star/container/XChild.hpp>
#include <com/sun/star/text/MailMergeEvent.hpp>
#include <com/sun/star/frame/XStorable.hpp>
#include <com/sun/star/task/InteractionHandler.hpp>
#include <com/sun/star/ui/dialogs/TemplateDescription.hpp>
#include <com/sun/star/ui/dialogs/XFilePicker3.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <vcl/errinf.hxx>
#include <vcl/print.hxx>
#include <vcl/scheduler.hxx>
#include <sfx2/fcontnr.hxx>
#include <sfx2/filedlghelper.hxx>
#include <sfx2/viewfrm.hxx>
#include <dbconfig.hxx>
#include <unotools/tempfile.hxx>
#include <unotools/pathoptions.hxx>
#include <svl/numformat.hxx>
#include <svl/zforlist.hxx>
#include <svl/stritem.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/docfilt.hxx>
#include <sfx2/progress.hxx>
#include <sfx2/dispatch.hxx>
#include <cmdid.h>
#include <swmodule.hxx>
#include <view.hxx>
#include <docsh.hxx>
#include <edtwin.hxx>
#include <wrtsh.hxx>
#include <fldbas.hxx>
#include <dbui.hxx>
#include <dbmgr.hxx>
#include <doc.hxx>
#include <IDocumentLinksAdministration.hxx>
#include <IDocumentFieldsAccess.hxx>
#include <IDocumentUndoRedo.hxx>
#include <swwait.hxx>
#include <swunohelper.hxx>
#include <strings.hrc>
#include <mmconfigitem.hxx>
#include <com/sun/star/sdbc/XRowSet.hpp>
#include <com/sun/star/sdbcx/XTablesSupplier.hpp>
#include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
#include <com/sun/star/sdb/XQueriesSupplier.hpp>
#include <com/sun/star/sdb/XColumn.hpp>
#include <com/sun/star/sdbc/DataType.hpp>
#include <com/sun/star/sdbc/ResultSetType.hpp>
#include <com/sun/star/sdbc/SQLException.hpp>
#include <com/sun/star/mail/MailAttachment.hpp>
#include <comphelper/processfactory.hxx>
#include <comphelper/property.hxx>
#include <comphelper/propertyvalue.hxx>
#include <comphelper/storagehelper.hxx>
#include <comphelper/string.hxx>
#include <comphelper/types.hxx>
#include <mailmergehelper.hxx>
#include <maildispatcher.hxx>
#include <svtools/htmlcfg.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <com/sun/star/util/XNumberFormatTypes.hpp>
#include <svl/numuno.hxx>
#include <connectivity/dbtools.hxx>
#include <connectivity/dbconversion.hxx>
#include <unotools/charclass.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <unomailmerge.hxx>
#include <sfx2/event.hxx>
#include <svx/dataaccessdescriptor.hxx>
#include <rtl/textenc.h>
#include <rtl/tencinfo.h>
#include <cppuhelper/implbase.hxx>
#include <ndindex.hxx>
#include <swevent.hxx>
#include <sal/log.hxx>
#include <swabstdlg.hxx>
#include <vector>
#include <section.hxx>
#include <rootfrm.hxx>
#include <calc.hxx>
#include <dbfld.hxx>
#include <IDocumentState.hxx>
#include <imaildsplistener.hxx>
#include <iodetect.hxx>
#include <IDocumentDeviceAccess.hxx>
#include <memory>
#include <mutex>
#include <comphelper/propertysequence.hxx>
Go to the source code of this file.
Classes | |
class | SwDBManager::ConnectionDisposedListener_Impl |
struct | SwDBManager::SwDBManager_Impl |
class | SwDBManager::MailDispatcherListener_Impl |
Namespaces | |
namespace | sw |
Dialog to specify the properties of date form field. | |
Functions | |
static bool | lcl_ToNextRecord (SwDSParam *pParam, const SwDBNextRecord action=SwDBNextRecord::NEXT) |
static SfxObjectShell * | lcl_CreateWorkingDocument (const WorkingDocType aType, const SwWrtShell &rSourceWrtShell, const vcl::Window *pSourceWindow, SwDBManager **const ppDBManager, SwView **const pView, SwWrtShell **const pWrtShell, rtl::Reference< SwDoc > *const pDoc) |
static bool | lcl_getCountFromResultSet (sal_Int32 &rCount, const SwDSParam *pParam) |
static void | lcl_InitNumberFormatter (SwDSParam &rParam, uno::Reference< sdbc::XDataSource > const &xSource) |
static bool | lcl_MoveAbsolute (SwDSParam *pParam, tools::Long nAbsPos) |
static void | lcl_GetColumnCnt (SwDSParam *pParam, const uno::Reference< beans::XPropertySet > &rColumnProps, LanguageType nLanguage, OUString &rResult, double *pNumber) |
static bool | lcl_GetColumnCnt (SwDSParam *pParam, const OUString &rColumnName, LanguageType nLanguage, OUString &rResult, double *pNumber) |
static void | lcl_RemoveSectionLinks (SwWrtShell &rWorkShell) |
static void | lcl_SaveDebugDoc (SfxObjectShell *xTargetDocShell, const char *name, int no=0) |
static bool | lcl_SaveDoc (const INetURLObject *pFileURL, const std::shared_ptr< const SfxFilter > &pStoreToFilter, const OUString *pStoreToFilterOptions, const uno::Sequence< beans::PropertyValue > *pSaveToFilterData, const bool bIsPDFexport, SfxObjectShell *xObjectShell, SwWrtShell &rWorkShell, OUString *const decodedURL=nullptr) |
static void | lcl_PreparePrinterOptions (const uno::Sequence< beans::PropertyValue > &rInPrintOptions, uno::Sequence< beans::PropertyValue > &rOutPrintOptions) |
static void | lcl_PrepareSaveFilterDataOptions (const uno::Sequence< beans::PropertyValue > &rInSaveFilterDataptions, uno::Sequence< beans::PropertyValue > &rOutSaveFilterDataOptions, const OUString &sPassword) |
static rtl::Reference< SwMailMessage > | lcl_CreateMailFromDoc (const SwMergeDescriptor &rMergeDescriptor, const OUString &sFileURL, const OUString &sMailRecipient, const OUString &sMailBodyMimeType, rtl_TextEncoding sMailEncoding, const OUString &sAttachmentMimeType) |
DBConnURIType | sw::GetDBunoType (const INetURLObject &rURL) |
|
static |
Definition at line 969 of file dbmgr.cxx.
References SwMergeDescriptor::aBlindCopiesTo, SwMergeDescriptor::aCopiesTo, SwMergeDescriptor::bSendAsAttachment, SfxMedium::GetInStream(), SwMailMergeConfigItem::GetMailAddress(), SwMailMergeConfigItem::GetMailReplyTo(), SwMailMergeConfigItem::IsMailReplyTo(), SwMergeDescriptor::pMailMergeConfigItem, SvStream::ReadLine(), SwMergeDescriptor::sAttachmentName, SvStream::SetStreamCharSet(), SwMergeDescriptor::sMailBody, and SwMergeDescriptor::sSubject.
Referenced by SwDBManager::MergeMailFiles().
|
static |
Definition at line 897 of file dbmgr.cxx.
References SwDoc::CreateCopy(), IDocumentLinksAdministration::EmbedAllLinks(), tools::SvRef< typename T >::get(), SwDoc::GetDBManager(), SwViewShell::GetDoc(), SfxViewFrame::GetFrame(), SwDoc::getIDocumentDeviceAccess(), SwDoc::getIDocumentLinksAdministration(), SwDoc::getIDocumentState(), SwDoc::GetIDocumentUndoRedo(), IDocumentDeviceAccess::getJobsetup(), vcl::Window::GetPosPixel(), IDocumentDeviceAccess::getPrintData(), SfxShell::GetViewShell(), SfxFrame::GetWindow(), SwView::GetWrtShellPtr(), SwEditShell::IsLabelDoc(), SfxViewFrame::LoadHiddenDocument(), SwDoc::ReplaceDocumentProperties(), IDocumentState::ResetModified(), SwDoc::SetDBManager(), SwDoc::SetInMailMerge(), IDocumentDeviceAccess::setJobsetup(), vcl::Window::SetPosPixel(), IDocumentDeviceAccess::setPrintData(), and SFX_INTERFACE_NONE.
Referenced by SwDBManager::Merge(), and SwDBManager::MergeMailFiles().
|
static |
Definition at line 409 of file dbmgr.cxx.
References lcl_GetColumnCnt(), and SwDSParam::xResultSet.
|
static |
Definition at line 390 of file dbmgr.cxx.
References SwDBFormatData::aLocale, SwDBFormatData::aNullDate, SwDSParam::aNullDate, SwDBManager::getDataSourceAsParent(), SwDBManager::GetDBField(), LanguageTag::getLocale(), lcl_InitNumberFormatter(), SwDBData::sDataSource, SwDSParam::xConnection, SwDBFormatData::xFormatter, and SwDSParam::xFormatter.
Referenced by SwDBManager::FillCalcWithMergeData(), SwDBManager::GetColumnCnt(), SwDBManager::GetMergeColumnCnt(), and lcl_GetColumnCnt().
|
static |
Definition at line 178 of file dbmgr.cxx.
References SwDSParam::aSelection, and SwDSParam::xResultSet.
Referenced by SwDBManager::MergeMailFiles().
|
static |
Definition at line 325 of file dbmgr.cxx.
References SwDSParam::aNullDate, SwDBManager::getDataSourceAsParent(), uno::Any::hasValue(), SwDBData::sDataSource, SwDSParam::xConnection, and SwDSParam::xFormatter.
Referenced by lcl_GetColumnCnt(), and SwDBManager::Merge().
|
static |
Definition at line 354 of file dbmgr.cxx.
References SwDSParam::aSelection, SwDSParam::bEndOfDB, SwDSParam::bScrollable, nPos, SwDSParam::nSelectionIndex, and SwDSParam::xResultSet.
Referenced by SwDBManager::GetColumnCnt(), and SwDBManager::ToRecordId().
|
static |
Definition at line 849 of file dbmgr.cxx.
References comphelper::makePropertyValue(), and nIndex.
Referenced by SwDBManager::MergeMailFiles().
|
static |
Definition at line 875 of file dbmgr.cxx.
References comphelper::makePropertyValue(), and nIndex.
Referenced by SwDBManager::MergeMailFiles().
|
static |
Definition at line 754 of file dbmgr.cxx.
References Content, FileLink, SwSectionFormat::GetSection(), SwEditShell::GetSectionFormat(), SwEditShell::GetSectionFormatCount(), SwSectionData::GetType(), SwEditShell::SetLabelDoc(), SwSectionData::SetLinkFileName(), SwSectionData::SetType(), and SwEditShell::UpdateSection().
Referenced by SwDBManager::MergeMailFiles().
|
static |
Definition at line 771 of file dbmgr.cxx.
References SfxObjectShell::DoSaveAs(), ERRCODE_NONE, SfxObjectShell::GetError(), INetURLObject::GetMainURL(), SvtPathOptions::GetTempPath(), utl::TempFileNamed::GetURL(), utl::TempFileNamed::IsValid(), name, INetURLObject::NONE, SAL_INFO, SAL_WARN, and u.
Referenced by SwDBManager::MergeMailFiles().
|
static |
Definition at line 807 of file dbmgr.cxx.
References SwEditShell::ConvertFieldsToText(), SfxObjectShell::DoSaveAs(), SfxObjectShell::DoSaveCompleted(), ERRCODE_NONE, SfxObjectShell::GetError(), SfxMedium::GetItemSet(), INetURLObject::GetMainURL(), ErrorHandler::HandleError(), INetURLObject::NONE, SfxItemSet::Put(), and SfxMedium::SetFilter().
Referenced by SwDBManager::MergeMailFiles().
|
static |
Definition at line 2211 of file dbmgr.cxx.
References action, SwDSParam::aSelection, SwDSParam::bEndOfDB, SwDSParam::HasValidRecord(), nPos, SwDSParam::nSelectionIndex, TOOLS_WARN_EXCEPTION_IF, and SwDSParam::xResultSet.
Referenced by SwDBManager::Merge(), SwDBManager::ToNextMergeRecord(), and SwDBManager::ToNextRecord().