tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / chart2 / source / controller / inc / dlg_DataEditor.hxx
blob205e822a12a5c1e349a33748f5eff28d69945a6e
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 .
20 #pragma once
22 #include <vcl/weld.hxx>
23 #include <rtl/ref.hxx>
25 namespace com::sun::star::uno { class XComponentContext; }
26 namespace comphelper { template <class Tp, class Arg> class mem_fun1_t; }
28 namespace com::sun::star {
29 namespace chart2 {
30 class XChartDocument;
34 namespace chart
36 class ChartModel;
37 class DataBrowser;
39 class DataEditor final : public weld::GenericDialogController
41 public:
42 DataEditor(weld::Window* pParent,
43 rtl::Reference<::chart::ChartModel> xChartDoc,
44 const css::uno::Reference<css::uno::XComponentContext> & xContext);
45 virtual ~DataEditor() override;
47 DECL_LINK(CloseHdl, weld::Button&, void);
49 void SetReadOnly( bool bReadOnly );
51 private:
52 bool m_bReadOnly;
54 rtl::Reference<::chart::ChartModel> m_xChartDoc;
55 css::uno::Reference<css::uno::XComponentContext> m_xContext;
57 std::unique_ptr<weld::Toolbar> m_xTbxData;
58 std::unique_ptr<weld::Button> m_xCloseBtn;
59 std::unique_ptr<weld::Container> m_xTable;
60 std::unique_ptr<weld::Container> m_xColumns;
61 std::unique_ptr<weld::Container> m_xColors;
62 css::uno::Reference<css::awt::XWindow> m_xTableCtrlParent;
63 VclPtr<DataBrowser> m_xBrwData;
65 /// handles actions of the toolbox
66 DECL_LINK( ToolboxHdl, const OUString&, void );
67 /// is called, if the cursor of the table has moved
68 DECL_LINK( BrowserCursorMovedHdl, DataBrowser*, void);
71 } // namespace chart
73 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */