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
; }
47 namespace fieldmapping
52 /** invokes the field mapping dialog
54 service factory to use for creating UNO services
56 window to use as parent for the dialog and error messages
58 current settings. Upon return, the field mapping member of this
59 structure will be filled with the settings the user did in the
63 const ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
>& _rxORB
,
64 class vcl::Window
* _pParent
,
65 const ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
>& _rxDataSource
,
66 AddressSettings
& _rSettings
70 /** creates a default field mapping for usage with the address book SDBC driver
71 <p>The column names as used by the SDBC driver for address books is stored in the configuration,
72 and this function creates a mapping which uses this configuration information.</p>
75 const ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
>& _rxContext
,
76 MapString2String
& /* [out] */ _rFieldAssignment
80 /** writes a field mapping for the template document address source
82 void writeTemplateAddressFieldMapping(
83 const ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
>& _rxContext
,
84 const MapString2String
& _rFieldAssignment
88 } // namespace fieldmapping
92 namespace addressconfig
97 /** writes the data source / table name given into the configuration, to where the template documents
100 void writeTemplateAddressSource(
101 const ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
>& _rxContext
,
102 const OUString
& _rDataSourceName
,
103 const OUString
& _rTableName
106 /** writes the configuration entry which states the pilot has been completed successfully
108 void markPilotSuccess(
109 const ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
>& _rxContext
113 } // namespace addressconfig
120 #endif // INCLUDED_EXTENSIONS_SOURCE_ABPILOT_FIELDMAPPINGIMPL_HXX
122 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */