LibreOffice Module chart2 (master) 1
dlg_DataEditor.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
20#pragma once
21
22#include <vcl/weld.hxx>
23#include <rtl/ref.hxx>
24
25namespace com::sun::star::uno { class XComponentContext; }
26namespace comphelper { template <class Tp, class Arg> class mem_fun1_t; }
27
28namespace com::sun::star {
29 namespace chart2 {
30 class XChartDocument;
31 }
32}
33
34namespace chart
35{
36class ChartModel;
37class DataBrowser;
38
40{
41public:
42 DataEditor(weld::Window* pParent,
44 const css::uno::Reference<css::uno::XComponentContext> & xContext);
45 virtual ~DataEditor() override;
46
47 DECL_LINK(CloseHdl, weld::Button&, void);
48
49 void SetReadOnly( bool bReadOnly );
50
51private:
53
55 css::uno::Reference<css::uno::XComponentContext> m_xContext;
56
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;
64
66 DECL_LINK( ToolboxHdl, const OUString&, void );
68 DECL_LINK( BrowserCursorMovedHdl, DataBrowser*, void);
69};
70
71} // namespace chart
72
73/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::Toolbar > m_xTbxData
DataEditor(weld::Window *pParent, rtl::Reference<::chart::ChartModel > xChartDoc, const css::uno::Reference< css::uno::XComponentContext > &xContext)
css::uno::Reference< css::awt::XWindow > m_xTableCtrlParent
virtual ~DataEditor() override
DECL_LINK(CloseHdl, weld::Button &, void)
std::unique_ptr< weld::Container > m_xTable
void SetReadOnly(bool bReadOnly)
std::unique_ptr< weld::Container > m_xColumns
std::unique_ptr< weld::Button > m_xCloseBtn
css::uno::Reference< css::uno::XComponentContext > m_xContext
DECL_LINK(ToolboxHdl, const OUString &, void)
handles actions of the toolbox
rtl::Reference<::chart::ChartModel > m_xChartDoc
VclPtr< DataBrowser > m_xBrwData
DECL_LINK(BrowserCursorMovedHdl, DataBrowser *, void)
is called, if the cursor of the table has moved
std::unique_ptr< weld::Container > m_xColors