update dev300-m58
[ooovba.git] / dbaccess / source / ui / inc / WNameMatch.hxx
blob21ba8bf428c84c142b6f96d9d158335f5779334b
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: WNameMatch.hxx,v $
10 * $Revision: 1.8 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef DBAUI_WIZ_NAMEMATCHING_HXX
31 #define DBAUI_WIZ_NAMEMATCHING_HXX
33 #ifndef DBAUI_WIZ_TABBPAGE_HXX
34 #include "WTabPage.hxx"
35 #endif
36 #ifndef _DBAUI_MARKTREE_HXX_
37 #include "marktree.hxx"
38 #endif
39 #ifndef DBAUI_DATABASEEXPORT_HXX
40 #include "DExport.hxx"
41 #endif
42 #ifndef _SV_FIXED_HXX
43 #include <vcl/fixed.hxx>
44 #endif
45 #ifndef _SV_BUTTON_HXX
46 #include <vcl/button.hxx>
47 #endif
48 #ifndef DBAUI_WIZ_COPYTABLEDIALOG_HXX
49 #include "WCopyTable.hxx"
50 #endif
52 namespace dbaui
54 // ========================================================
55 // columns are at root only no children
56 // ========================================================
57 class OColumnTreeBox : public OMarkableTreeListBox
59 sal_Bool m_bReadOnly;
60 protected:
61 virtual void InitEntry(SvLBoxEntry* pEntry, const String& rStr, const Image& rImg1, const Image& rImg2, SvLBoxButtonKind eButtonKind);
63 public:
64 OColumnTreeBox( Window* pParent, const ResId& rResId );
66 void FillListBox( const ODatabaseExport::TColumnVector& _rList);
67 void SetReadOnly(sal_Bool _bRo=sal_True) { m_bReadOnly = _bRo; }
68 virtual sal_Bool Select( SvLBoxEntry* pEntry, sal_Bool bSelect=sal_True );
70 private:
71 using OMarkableTreeListBox::Select;
74 // ========================================================
75 // Wizard Page: OWizNameMatching
76 // Name matching for data appending
77 // ========================================================
78 class OWizNameMatching : public OWizardPage
80 FixedText m_FT_TABLE_LEFT;
81 FixedText m_FT_TABLE_RIGHT;
82 OColumnTreeBox m_CTRL_LEFT; // left side
83 OColumnTreeBox m_CTRL_RIGHT; // right side
84 ImageButton m_ibColumn_up;
85 ImageButton m_ibColumn_down;
86 ImageButton m_ibColumn_up_right;
87 ImageButton m_ibColumn_down_right;
88 PushButton m_pbAll;
89 PushButton m_pbNone;
90 String m_sSourceText;
91 String m_sDestText;
93 sal_Bool m_bAttrsChanged;
95 DECL_LINK( ButtonClickHdl, Button * );
96 DECL_LINK( RightButtonClickHdl, Button * );
97 DECL_LINK( AllNoneClickHdl, Button * );
98 DECL_LINK( TableListClickHdl, void* );
99 DECL_LINK( TableListRightSelectHdl, void* );
101 public:
102 virtual void Reset ( );
103 virtual void ActivatePage();
104 virtual sal_Bool LeavePage();
105 virtual String GetTitle() const ;
107 OWizNameMatching(Window* pParent);
108 virtual ~OWizNameMatching();
112 #endif // DBAUI_WIZ_NAMEMATCHING_HXX