tdf#154285 Check upper bound of arguments in SbRtl_Minute function
[LibreOffice.git] / chart2 / source / controller / dialogs / tp_Wizard_TitlesAndObjects.hxx
blobc63c885d1d4e90e6d0e57a02692a6bb04b24fa61
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 <TimerTriggeredControllerLock.hxx>
24 #include <vcl/wizardmachine.hxx>
25 #include <rtl/ref.hxx>
27 #include <memory>
29 namespace chart { class LegendPositionResources; }
30 namespace chart { class TitleResources; }
31 namespace com::sun::star::uno { class XComponentContext; }
33 namespace chart
35 class ChartModel;
37 class TitlesAndObjectsTabPage final : public vcl::OWizardPage
39 public:
40 TitlesAndObjectsTabPage(weld::Container* pPage, weld::DialogController* pController,
41 rtl::Reference<::chart::ChartModel> xChartModel,
42 const css::uno::Reference< css::uno::XComponentContext >& xContext);
43 virtual ~TitlesAndObjectsTabPage() override;
45 virtual void initializePage() override;
46 virtual bool commitPage( ::vcl::WizardTypes::CommitPageReason eReason ) override;
47 virtual bool canAdvance() const override;
49 private:
50 void commitToModel();
51 DECL_LINK( ChangeHdl, LinkParamNone*, void );
52 DECL_LINK( ChangeEditHdl, weld::Entry&, void );
53 DECL_LINK( ChangeCheckBoxHdl, weld::Toggleable&, void );
55 std::unique_ptr< TitleResources > m_xTitleResources;
56 std::unique_ptr< LegendPositionResources > m_xLegendPositionResources;
58 rtl::Reference<::chart::ChartModel> m_xChartModel;
59 css::uno::Reference< css::uno::XComponentContext> m_xCC;
61 bool m_bCommitToModel;
62 TimerTriggeredControllerLock m_aTimerTriggeredControllerLock;
64 std::unique_ptr<weld::CheckButton> m_xCB_Grid_X;
65 std::unique_ptr<weld::CheckButton> m_xCB_Grid_Y;
66 std::unique_ptr<weld::CheckButton> m_xCB_Grid_Z;
69 } //namespace chart
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */