Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / chart2 / source / controller / dialogs / tp_SeriesToAxis.hxx
blob8580e5722996c8bda57ff4c4fc020be80f502940
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 .
19 #ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_TP_SERIESTOAXIS_HXX
20 #define INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_TP_SERIESTOAXIS_HXX
22 #include <sfx2/tabdlg.hxx>
24 namespace weld {
25 class CheckButton;
26 class MetricSpinButton;
27 class RadioButton;
28 class ToggleButton;
29 class Widget;
32 namespace chart
35 class SchOptionTabPage : public SfxTabPage
37 public:
38 SchOptionTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
39 virtual ~SchOptionTabPage() override;
41 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rInAttrs);
42 virtual bool FillItemSet(SfxItemSet* rOutAttrs) override;
43 virtual void Reset(const SfxItemSet* rInAttrs) override;
45 void Init( bool bProvidesSecondaryYAxis, bool bProvidesOverlapAndGapWidth, bool bProvidesBarConnectors );
47 private: //methods
48 void AdaptControlPositionsAndVisibility();
50 private: //member
51 DECL_LINK(EnableHdl, weld::ToggleButton&, void );
53 sal_Int32 m_nAllSeriesAxisIndex;
55 bool m_bProvidesSecondaryYAxis;
56 bool m_bProvidesOverlapAndGapWidth;
57 bool m_bProvidesBarConnectors;
59 std::unique_ptr<weld::Widget> m_xGrpAxis;
60 std::unique_ptr<weld::RadioButton> m_xRbtAxis1;
61 std::unique_ptr<weld::RadioButton> m_xRbtAxis2;
62 std::unique_ptr<weld::Widget> m_xGrpBar;
63 std::unique_ptr<weld::MetricSpinButton> m_xMTGap;
64 std::unique_ptr<weld::MetricSpinButton> m_xMTOverlap;
65 std::unique_ptr<weld::CheckButton> m_xCBConnect;
66 std::unique_ptr<weld::CheckButton> m_xCBAxisSideBySide;
67 std::unique_ptr<weld::Widget> m_xGrpPlotOptions;
68 std::unique_ptr<weld::Widget> m_xGridPlotOptions;
69 std::unique_ptr<weld::RadioButton> m_xRB_DontPaint;
70 std::unique_ptr<weld::RadioButton> m_xRB_AssumeZero;
71 std::unique_ptr<weld::RadioButton> m_xRB_ContinueLine;
72 std::unique_ptr<weld::CheckButton> m_xCBIncludeHiddenCells;
73 std::unique_ptr<weld::CheckButton> m_xCBHideLegendEntry;
76 } //namespace chart
78 #endif
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */