1*2e2212a7SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*2e2212a7SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*2e2212a7SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*2e2212a7SAndrew Rist * distributed with this work for additional information 6*2e2212a7SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*2e2212a7SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*2e2212a7SAndrew Rist * "License"); you may not use this file except in compliance 9*2e2212a7SAndrew Rist * with the License. You may obtain a copy of the License at 10*2e2212a7SAndrew Rist * 11*2e2212a7SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*2e2212a7SAndrew Rist * 13*2e2212a7SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*2e2212a7SAndrew Rist * software distributed under the License is distributed on an 15*2e2212a7SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*2e2212a7SAndrew Rist * KIND, either express or implied. See the License for the 17*2e2212a7SAndrew Rist * specific language governing permissions and limitations 18*2e2212a7SAndrew Rist * under the License. 19*2e2212a7SAndrew Rist * 20*2e2212a7SAndrew Rist *************************************************************/ 21*2e2212a7SAndrew Rist 22*2e2212a7SAndrew Rist 23cdf0e10cSrcweir #ifndef DBAUI_WIZ_NAMEMATCHING_HXX 24cdf0e10cSrcweir #define DBAUI_WIZ_NAMEMATCHING_HXX 25cdf0e10cSrcweir 26cdf0e10cSrcweir #ifndef DBAUI_WIZ_TABBPAGE_HXX 27cdf0e10cSrcweir #include "WTabPage.hxx" 28cdf0e10cSrcweir #endif 29cdf0e10cSrcweir #ifndef _DBAUI_MARKTREE_HXX_ 30cdf0e10cSrcweir #include "marktree.hxx" 31cdf0e10cSrcweir #endif 32cdf0e10cSrcweir #ifndef DBAUI_DATABASEEXPORT_HXX 33cdf0e10cSrcweir #include "DExport.hxx" 34cdf0e10cSrcweir #endif 35cdf0e10cSrcweir #ifndef _SV_FIXED_HXX 36cdf0e10cSrcweir #include <vcl/fixed.hxx> 37cdf0e10cSrcweir #endif 38cdf0e10cSrcweir #ifndef _SV_BUTTON_HXX 39cdf0e10cSrcweir #include <vcl/button.hxx> 40cdf0e10cSrcweir #endif 41cdf0e10cSrcweir #ifndef DBAUI_WIZ_COPYTABLEDIALOG_HXX 42cdf0e10cSrcweir #include "WCopyTable.hxx" 43cdf0e10cSrcweir #endif 44cdf0e10cSrcweir 45cdf0e10cSrcweir namespace dbaui 46cdf0e10cSrcweir { 47cdf0e10cSrcweir // ======================================================== 48cdf0e10cSrcweir // columns are at root only no children 49cdf0e10cSrcweir // ======================================================== 50cdf0e10cSrcweir class OColumnTreeBox : public OMarkableTreeListBox 51cdf0e10cSrcweir { 52cdf0e10cSrcweir sal_Bool m_bReadOnly; 53cdf0e10cSrcweir protected: 54cdf0e10cSrcweir virtual void InitEntry(SvLBoxEntry* pEntry, const String& rStr, const Image& rImg1, const Image& rImg2, SvLBoxButtonKind eButtonKind); 55cdf0e10cSrcweir 56cdf0e10cSrcweir public: 57cdf0e10cSrcweir OColumnTreeBox( Window* pParent, const ResId& rResId ); 58cdf0e10cSrcweir 59cdf0e10cSrcweir void FillListBox( const ODatabaseExport::TColumnVector& _rList); SetReadOnly(sal_Bool _bRo=sal_True)60cdf0e10cSrcweir void SetReadOnly(sal_Bool _bRo=sal_True) { m_bReadOnly = _bRo; } 61cdf0e10cSrcweir virtual sal_Bool Select( SvLBoxEntry* pEntry, sal_Bool bSelect=sal_True ); 62cdf0e10cSrcweir 63cdf0e10cSrcweir private: 64cdf0e10cSrcweir using OMarkableTreeListBox::Select; 65cdf0e10cSrcweir }; 66cdf0e10cSrcweir 67cdf0e10cSrcweir // ======================================================== 68cdf0e10cSrcweir // Wizard Page: OWizNameMatching 69cdf0e10cSrcweir // Name matching for data appending 70cdf0e10cSrcweir // ======================================================== 71cdf0e10cSrcweir class OWizNameMatching : public OWizardPage 72cdf0e10cSrcweir { 73cdf0e10cSrcweir FixedText m_FT_TABLE_LEFT; 74cdf0e10cSrcweir FixedText m_FT_TABLE_RIGHT; 75cdf0e10cSrcweir OColumnTreeBox m_CTRL_LEFT; // left side 76cdf0e10cSrcweir OColumnTreeBox m_CTRL_RIGHT; // right side 77cdf0e10cSrcweir ImageButton m_ibColumn_up; 78cdf0e10cSrcweir ImageButton m_ibColumn_down; 79cdf0e10cSrcweir ImageButton m_ibColumn_up_right; 80cdf0e10cSrcweir ImageButton m_ibColumn_down_right; 81cdf0e10cSrcweir PushButton m_pbAll; 82cdf0e10cSrcweir PushButton m_pbNone; 83cdf0e10cSrcweir String m_sSourceText; 84cdf0e10cSrcweir String m_sDestText; 85cdf0e10cSrcweir 86cdf0e10cSrcweir sal_Bool m_bAttrsChanged; 87cdf0e10cSrcweir 88cdf0e10cSrcweir DECL_LINK( ButtonClickHdl, Button * ); 89cdf0e10cSrcweir DECL_LINK( RightButtonClickHdl, Button * ); 90cdf0e10cSrcweir DECL_LINK( AllNoneClickHdl, Button * ); 91cdf0e10cSrcweir DECL_LINK( TableListClickHdl, void* ); 92cdf0e10cSrcweir DECL_LINK( TableListRightSelectHdl, void* ); 93cdf0e10cSrcweir 94cdf0e10cSrcweir public: 95cdf0e10cSrcweir virtual void Reset ( ); 96cdf0e10cSrcweir virtual void ActivatePage(); 97cdf0e10cSrcweir virtual sal_Bool LeavePage(); 98cdf0e10cSrcweir virtual String GetTitle() const ; 99cdf0e10cSrcweir 100cdf0e10cSrcweir OWizNameMatching(Window* pParent); 101cdf0e10cSrcweir virtual ~OWizNameMatching(); 102cdf0e10cSrcweir 103cdf0e10cSrcweir }; 104cdf0e10cSrcweir } 105cdf0e10cSrcweir #endif // DBAUI_WIZ_NAMEMATCHING_HXX 106cdf0e10cSrcweir 107cdf0e10cSrcweir 108cdf0e10cSrcweir 109