LibreOffice Module sw (master) 1
vbamailmerge.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column:100 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10#include "vbamailmerge.hxx"
11
12#include <ooo/vba/word/WdMailMergeMainDocType.hpp>
13
14SwVbaMailMerge::SwVbaMailMerge(const css::uno::Reference<ooo::vba::XHelperInterface>& xParent,
15 const css::uno::Reference<css::uno::XComponentContext>& xContext)
16 : SwVbaMailMerge_BASE(xParent, xContext)
17 , m_nMainDocType(ooo::vba::word::WdMailMergeMainDocType::wdNotAMergeDocument)
18{
19}
20
22
24SwVbaMailMerge::get(const css::uno::Reference<ooo::vba::XHelperInterface>& xParent,
25 const css::uno::Reference<css::uno::XComponentContext>& xContext)
26{
27 static rtl::Reference<SwVbaMailMerge> xInstance(new SwVbaMailMerge(xParent, xContext));
28
29 return xInstance;
30}
31
33
34void SAL_CALL SwVbaMailMerge::setMainDocumentType(sal_Int32 _maindocumenttype)
35{
36 m_nMainDocType = _maindocumenttype;
37}
38
39// Completely dummy, no-op.
41 const OUString&, const css::uno::Any&, const css::uno::Any&, const css::uno::Any&,
42 const css::uno::Any&, const css::uno::Any&, const css::uno::Any&, const css::uno::Any&,
43 const css::uno::Any&, const css::uno::Any&, const css::uno::Any&, const css::uno::Any&,
44 const css::uno::Any&, const css::uno::Any&, const css::uno::Any&, const css::uno::Any&)
45{
46}
47
48OUString SwVbaMailMerge::getServiceImplName() { return "SwVbaMailMerge"; }
49
50css::uno::Sequence<OUString> SwVbaMailMerge::getServiceNames()
51{
52 static css::uno::Sequence<OUString> const aServiceNames{ "ooo.vba.word.MailMerge" };
53 return aServiceNames;
54}
55
56/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal_Int32 m_nMainDocType
virtual css::uno::Sequence< OUString > getServiceNames() override
virtual OUString getServiceImplName() override
virtual ~SwVbaMailMerge() override
virtual sal_Int32 SAL_CALL getMainDocumentType() override
virtual void SAL_CALL setMainDocumentType(sal_Int32 _maindocumenttype) override
static rtl::Reference< SwVbaMailMerge > const & get(const css::uno::Reference< ooo::vba::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext)
virtual void SAL_CALL OpenDataSource(const OUString &Name, const css::uno::Any &Format, const css::uno::Any &ConfirmConversions, const css::uno::Any &ReadOnly, const css::uno::Any &LinkToSource, const css::uno::Any &AddToRecentFiles, const css::uno::Any &PasswordDocument, const css::uno::Any &PasswordTemplate, const css::uno::Any &Revert, const css::uno::Any &WritePasswordDocument, const css::uno::Any &WritePasswordTemplate, const css::uno::Any &Connection, const css::uno::Any &SQLStatement, const css::uno::Any &SQLStatement1, const css::uno::Any &OpenExclusive, const css::uno::Any &SubType) override
SwVbaMailMerge(const css::uno::Reference< ooo::vba::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext)
Sequence< OUString > aServiceNames