LibreOffice Module dbaccess (master) 1
WNameMatch.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#pragma once
20
21#include "WTabPage.hxx"
22#include "DExport.hxx"
23#include "WCopyTable.hxx"
24
25namespace dbaui
26{
27 // Wizard Page: OWizNameMatching
28 // Name matching for data appending
30 {
31 std::unique_ptr<weld::Label> m_xTABLE_LEFT;
32 std::unique_ptr<weld::Label> m_xTABLE_RIGHT;
33 std::unique_ptr<weld::TreeView> m_xCTRL_LEFT; // left side
34 std::unique_ptr<weld::TreeView> m_xCTRL_RIGHT; // right side
35 std::unique_ptr<weld::Button> m_xColumn_up;
36 std::unique_ptr<weld::Button> m_xColumn_down;
37 std::unique_ptr<weld::Button> m_xColumn_up_right;
38 std::unique_ptr<weld::Button> m_xColumn_down_right;
39 std::unique_ptr<weld::Button> m_xAll;
40 std::unique_ptr<weld::Button> m_xNone;
41 OUString m_sSourceText;
42 OUString m_sDestText;
43
44 DECL_LINK( ButtonClickHdl, weld::Button&, void );
45 DECL_LINK( RightButtonClickHdl, weld::Button&, void );
46 DECL_LINK( AllNoneClickHdl, weld::Button&, void );
47 DECL_LINK( TableListClickHdl, weld::TreeView&, void );
48 DECL_LINK( TableListRightSelectHdl, weld::TreeView&, void );
49
50 static void FillListBox(weld::TreeView& rTreeView, const ODatabaseExport::TColumnVector& rList, bool bCheckButtons);
51
52 public:
53 virtual void Reset ( ) override;
54 virtual void Activate() override;
55 virtual bool LeavePage() override;
56 virtual OUString GetTitle() const override ;
57
59 virtual ~OWizNameMatching() override;
60 };
61}
62
63/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::vector< TColumns::const_iterator > TColumnVector
Definition: DExport.hxx:58
virtual void Reset() override
Definition: WNameMatch.cxx:74
DECL_LINK(TableListRightSelectHdl, weld::TreeView &, void)
std::unique_ptr< weld::Button > m_xNone
Definition: WNameMatch.hxx:40
DECL_LINK(ButtonClickHdl, weld::Button &, void)
std::unique_ptr< weld::Button > m_xColumn_down_right
Definition: WNameMatch.hxx:38
std::unique_ptr< weld::Label > m_xTABLE_LEFT
Definition: WNameMatch.hxx:31
std::unique_ptr< weld::Label > m_xTABLE_RIGHT
Definition: WNameMatch.hxx:32
virtual OUString GetTitle() const override
Definition: WNameMatch.cxx:183
static void FillListBox(weld::TreeView &rTreeView, const ODatabaseExport::TColumnVector &rList, bool bCheckButtons)
Definition: WNameMatch.cxx:307
std::unique_ptr< weld::Button > m_xColumn_down
Definition: WNameMatch.hxx:36
std::unique_ptr< weld::TreeView > m_xCTRL_RIGHT
Definition: WNameMatch.hxx:34
DECL_LINK(TableListClickHdl, weld::TreeView &, void)
OWizNameMatching(weld::Container *pPage, OCopyTableWizard *pWizard)
Definition: WNameMatch.cxx:32
DECL_LINK(RightButtonClickHdl, weld::Button &, void)
virtual bool LeavePage() override
Definition: WNameMatch.cxx:104
virtual ~OWizNameMatching() override
Definition: WNameMatch.cxx:70
std::unique_ptr< weld::Button > m_xColumn_up
Definition: WNameMatch.hxx:35
DECL_LINK(AllNoneClickHdl, weld::Button &, void)
virtual void Activate() override
Definition: WNameMatch.cxx:79
std::unique_ptr< weld::Button > m_xColumn_up_right
Definition: WNameMatch.hxx:37
std::unique_ptr< weld::TreeView > m_xCTRL_LEFT
Definition: WNameMatch.hxx:33
std::unique_ptr< weld::Button > m_xAll
Definition: WNameMatch.hxx:39