LibreOffice Module chart2 (master) 1
tp_Wizard_TitlesAndObjects.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
23
24#include <vcl/wizardmachine.hxx>
25#include <rtl/ref.hxx>
26
27#include <memory>
28
29namespace chart { class LegendPositionResources; }
30namespace chart { class TitleResources; }
31namespace com::sun::star::chart2 { class XChartDocument; }
32namespace com::sun::star::uno { class XComponentContext; }
33
34namespace chart
35{
36class ChartModel;
37
39{
40public:
43 const css::uno::Reference< css::uno::XComponentContext >& xContext);
44 virtual ~TitlesAndObjectsTabPage() override;
45
46 virtual void initializePage() override;
47 virtual bool commitPage( ::vcl::WizardTypes::CommitPageReason eReason ) override;
48 virtual bool canAdvance() const override;
49
50private:
51 void commitToModel();
52 DECL_LINK( ChangeHdl, LinkParamNone*, void );
53 DECL_LINK( ChangeEditHdl, weld::Entry&, void );
54 DECL_LINK( ChangeCheckBoxHdl, weld::Toggleable&, void );
55
56 std::unique_ptr< TitleResources > m_xTitleResources;
57 std::unique_ptr< LegendPositionResources > m_xLegendPositionResources;
58
60 css::uno::Reference< css::uno::XComponentContext> m_xCC;
61
64
65 std::unique_ptr<weld::CheckButton> m_xCB_Grid_X;
66 std::unique_ptr<weld::CheckButton> m_xCB_Grid_Y;
67 std::unique_ptr<weld::CheckButton> m_xCB_Grid_Z;
68};
69
70} //namespace chart
71
72/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
DECL_LINK(ChangeCheckBoxHdl, weld::Toggleable &, void)
TimerTriggeredControllerLock m_aTimerTriggeredControllerLock
css::uno::Reference< css::uno::XComponentContext > m_xCC
std::unique_ptr< LegendPositionResources > m_xLegendPositionResources
DECL_LINK(ChangeEditHdl, weld::Entry &, void)
TitlesAndObjectsTabPage(weld::Container *pPage, weld::DialogController *pController, rtl::Reference<::chart::ChartModel > xChartModel, const css::uno::Reference< css::uno::XComponentContext > &xContext)
DECL_LINK(ChangeHdl, LinkParamNone *, void)
virtual bool canAdvance() const override
std::unique_ptr< weld::CheckButton > m_xCB_Grid_Y
virtual bool commitPage(::vcl::WizardTypes::CommitPageReason eReason) override
std::unique_ptr< weld::CheckButton > m_xCB_Grid_Z
rtl::Reference<::chart::ChartModel > m_xChartModel
std::unique_ptr< TitleResources > m_xTitleResources
std::unique_ptr< weld::CheckButton > m_xCB_Grid_X