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 .
21 #include "WTabPage.hxx"
22 #include "DExport.hxx"
23 #include "WCopyTable.hxx"
27 // Wizard Page: OWizNameMatching
28 // Name matching for data appending
29 class OWizNameMatching
: public OWizardPage
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
;
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 );
50 static void FillListBox(weld::TreeView
& rTreeView
, const ODatabaseExport::TColumnVector
& rList
, bool bCheckButtons
);
53 virtual void Reset ( ) override
;
54 virtual void Activate() override
;
55 virtual bool LeavePage() override
;
56 virtual OUString
GetTitle() const override
;
58 OWizNameMatching(weld::Container
* pPage
, OCopyTableWizard
* pWizard
);
59 virtual ~OWizNameMatching() override
;
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */