Debian Codegraph @

chart2/source/controller/inc/dlg_DataEditor.hxx

raw
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
20 #pragma once
21
22 #include <vcl/weld.hxx>
23 #include <rtl/ref.hxx>
24
25 namespace com::sun::star::uno { class XComponentContext; }
26
27 namespace chart
28 {
29 class ChartModel;
30 class DataBrowser;
31
32 class DataEditor final : public weld::GenericDialogController
33 {
34 public:
35 DataEditor(weld::Window* pParent,
36 rtl::Reference<::chart::ChartModel> xChartDoc,
37 const css::uno::Reference<css::uno::XComponentContext> & xContext);
38 virtual ~DataEditor() override;
39
40 DECL_LINK(CloseHdl, weld::Button&, void);
41
42 void SetReadOnly( bool bReadOnly );
43
44 private:
45 bool m_bReadOnly;
46
47 rtl::Reference<::chart::ChartModel> m_xChartDoc;
48 css::uno::Reference<css::uno::XComponentContext> m_xContext;
49
50 std::unique_ptr<weld::Toolbar> m_xTbxData;
51 std::unique_ptr<weld::Button> m_xCloseBtn;
52 std::unique_ptr<weld::Container> m_xTable;
53 std::unique_ptr<weld::Box> m_xColumns;
54 std::unique_ptr<weld::Box> m_xColors;
55 css::uno::Reference<css::awt::XWindow> m_xTableCtrlParent;
56 VclPtr<DataBrowser> m_xBrwData;
57
58 /// handles actions of the toolbox
59 DECL_LINK( ToolboxHdl, const OUString&, void );
60 /// is called, if the cursor of the table has moved
61 DECL_LINK( BrowserCursorMovedHdl, DataBrowser*, void);
62 };
63
64 } // namespace chart
65
66 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */