1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 #ifndef INCLUDED_SW_SOURCE_UI_VBA_VBAMAILMERGE_HXX
10 #define INCLUDED_SW_SOURCE_UI_VBA_VBAMAILMERGE_HXX
12 #include <ooo/vba/word/XMailMerge.hpp>
13 #include <rtl/ref.hxx>
14 #include <vbahelper/vbahelperinterface.hxx>
16 typedef InheritedHelperInterfaceWeakImpl
<ooo::vba::word::XMailMerge
> SwVbaMailMerge_BASE
;
18 // Singleton class. Get the single instance using the get() method.
20 class SwVbaMailMerge
: public SwVbaMailMerge_BASE
22 sal_Int32 m_nMainDocType
;
24 SwVbaMailMerge(const css::uno::Reference
<ooo::vba::XHelperInterface
>& xParent
,
25 const css::uno::Reference
<css::uno::XComponentContext
>& xContext
);
28 virtual ~SwVbaMailMerge() override
;
30 static rtl::Reference
<SwVbaMailMerge
> const&
31 get(const css::uno::Reference
<ooo::vba::XHelperInterface
>& xParent
,
32 const css::uno::Reference
<css::uno::XComponentContext
>& xContext
);
35 virtual sal_Int32 SAL_CALL
getMainDocumentType() override
;
36 virtual void SAL_CALL
setMainDocumentType(sal_Int32 _maindocumenttype
) override
;
39 OpenDataSource(const OUString
& Name
, const css::uno::Any
& Format
,
40 const css::uno::Any
& ConfirmConversions
, const css::uno::Any
& ReadOnly
,
41 const css::uno::Any
& LinkToSource
, const css::uno::Any
& AddToRecentFiles
,
42 const css::uno::Any
& PasswordDocument
, const css::uno::Any
& PasswordTemplate
,
43 const css::uno::Any
& Revert
, const css::uno::Any
& WritePasswordDocument
,
44 const css::uno::Any
& WritePasswordTemplate
, const css::uno::Any
& Connection
,
45 const css::uno::Any
& SQLStatement
, const css::uno::Any
& SQLStatement1
,
46 const css::uno::Any
& OpenExclusive
, const css::uno::Any
& SubType
) override
;
49 virtual OUString
getServiceImplName() override
;
50 virtual css::uno::Sequence
<OUString
> getServiceNames() override
;
53 #endif // INCLUDED_SW_SOURCE_UI_VBA_VBAMAILMERGE_HXX
55 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */