bump product version to 4.1.6.2
[LibreOffice.git] / dbaccess / source / ui / inc / WNameMatch.hxx
blobbd2a2de7b15cbf3afbad188583fd828e1dbbffb6
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
19 #ifndef DBAUI_WIZ_NAMEMATCHING_HXX
20 #define DBAUI_WIZ_NAMEMATCHING_HXX
22 #include "WTabPage.hxx"
23 #include "marktree.hxx"
24 #include "DExport.hxx"
25 #include <vcl/fixed.hxx>
26 #include <vcl/button.hxx>
27 #include "WCopyTable.hxx"
29 namespace dbaui
31 // ========================================================
32 // columns are at root only no children
33 // ========================================================
34 class OColumnTreeBox : public OMarkableTreeListBox
36 sal_Bool m_bReadOnly;
37 protected:
38 virtual void InitEntry(SvTreeListEntry* pEntry, const OUString& rStr, const Image& rImg1, const Image& rImg2, SvLBoxButtonKind eButtonKind);
40 public:
41 OColumnTreeBox( Window* pParent, const ResId& rResId );
43 void FillListBox( const ODatabaseExport::TColumnVector& _rList);
44 void SetReadOnly(sal_Bool _bRo=sal_True) { m_bReadOnly = _bRo; }
45 virtual sal_Bool Select( SvTreeListEntry* pEntry, sal_Bool bSelect=sal_True );
47 private:
48 using OMarkableTreeListBox::Select;
51 // ========================================================
52 // Wizard Page: OWizNameMatching
53 // Name matching for data appending
54 // ========================================================
55 class OWizNameMatching : public OWizardPage
57 FixedText m_FT_TABLE_LEFT;
58 FixedText m_FT_TABLE_RIGHT;
59 OColumnTreeBox m_CTRL_LEFT; // left side
60 OColumnTreeBox m_CTRL_RIGHT; // right side
61 ImageButton m_ibColumn_up;
62 ImageButton m_ibColumn_down;
63 ImageButton m_ibColumn_up_right;
64 ImageButton m_ibColumn_down_right;
65 PushButton m_pbAll;
66 PushButton m_pbNone;
67 OUString m_sSourceText;
68 OUString m_sDestText;
70 DECL_LINK( ButtonClickHdl, Button * );
71 DECL_LINK( RightButtonClickHdl, Button * );
72 DECL_LINK( AllNoneClickHdl, Button * );
73 DECL_LINK( TableListClickHdl, void* );
74 DECL_LINK( TableListRightSelectHdl, void* );
76 public:
77 virtual void Reset ( );
78 virtual void ActivatePage();
79 virtual sal_Bool LeavePage();
80 virtual String GetTitle() const ;
82 OWizNameMatching(Window* pParent);
83 virtual ~OWizNameMatching();
87 #endif // DBAUI_WIZ_NAMEMATCHING_HXX
91 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */