1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_EXTENSIONS_SOURCE_ABPILOT_FIELDMAPPINGIMPL_HXX
21 #define INCLUDED_EXTENSIONS_SOURCE_ABPILOT_FIELDMAPPINGIMPL_HXX
23 #include <rtl/ustring.hxx>
24 #include "abptypes.hxx"
25 #include <com/sun/star/uno/Reference.hxx>
26 #include "addresssettings.hxx"
28 namespace com
{ namespace sun
{ namespace star
{
30 class XMultiServiceFactory
;
33 class XComponentContext
;
39 namespace vcl
{ class Window
; }
46 namespace fieldmapping
50 /** invokes the field mapping dialog
52 service factory to use for creating UNO services
54 window to use as parent for the dialog and error messages
56 current settings. Upon return, the field mapping member of this
57 structure will be filled with the settings the user did in the
61 const css::uno::Reference
< css::uno::XComponentContext
>& _rxORB
,
62 class vcl::Window
* _pParent
,
63 const css::uno::Reference
< css::beans::XPropertySet
>& _rxDataSource
,
64 AddressSettings
& _rSettings
68 /** creates a default field mapping for usage with the address book SDBC driver
69 <p>The column names as used by the SDBC driver for address books is stored in the configuration,
70 and this function creates a mapping which uses this configuration information.</p>
73 const css::uno::Reference
< css::uno::XComponentContext
>& _rxContext
,
74 MapString2String
& /* [out] */ _rFieldAssignment
78 /** writes a field mapping for the template document address source
80 void writeTemplateAddressFieldMapping(
81 const css::uno::Reference
< css::uno::XComponentContext
>& _rxContext
,
82 const MapString2String
& _rFieldAssignment
86 } // namespace fieldmapping
89 namespace addressconfig
93 /** writes the data source / table name given into the configuration, to where the template documents
96 void writeTemplateAddressSource(
97 const css::uno::Reference
< css::uno::XComponentContext
>& _rxContext
,
98 const OUString
& _rDataSourceName
,
99 const OUString
& _rTableName
102 /** writes the configuration entry which states the pilot has been completed successfully
104 void markPilotSuccess(
105 const css::uno::Reference
< css::uno::XComponentContext
>& _rxContext
109 } // namespace addressconfig
115 #endif // INCLUDED_EXTENSIONS_SOURCE_ABPILOT_FIELDMAPPINGIMPL_HXX
117 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */