Debian Codegraph @

chart2/source/controller/dialogs/tp_AxisPositions.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 #pragma once
20
21 #include <sfx2/tabdlg.hxx>
22
23 class SvNumberFormatter;
24
25 namespace chart
26 {
27 class AxisPositionsTabPage : public SfxTabPage
28 {
29 public:
30 AxisPositionsTabPage(weld::Container* pPage, weld::DialogController* pController,
31 const SfxItemSet& rInAttrs);
32 virtual ~AxisPositionsTabPage() override;
33
34 static std::unique_ptr<SfxTabPage>
35 Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rInAttrs);
36 virtual bool FillItemSet(SfxItemSet* rOutAttrs) override;
37 virtual void Reset(const SfxItemSet* rInAttrs) override;
38 virtual DeactivateRC DeactivatePage(SfxItemSet* pItemSet) override;
39
40 void SetNumFormatter(SvNumberFormatter* pFormatter);
41
42 void SetCrossingAxisIsCategoryAxis(bool bCrossingAxisIsCategoryAxis);
43 void SetCategories(const css::uno::Sequence<OUString>& rCategories);
44
45 void SupportAxisPositioning(bool bSupportAxisPositioning);
46 void SupportCategoryPositioning(bool bSupportCategoryPositioning);
47
48 private: //methods:
49 DECL_LINK(CrossesAtSelectHdl, weld::ComboBox&, void);
50 DECL_LINK(PlaceLabelsSelectHdl, weld::ComboBox&, void);
51
52 private: //member:
53 SvNumberFormatter* m_pNumFormatter;
54
55 bool m_bCrossingAxisIsCategoryAxis;
56 css::uno::Sequence<OUString> m_aCategories;
57
58 bool m_bSupportAxisPositioning;
59 bool m_bSupportCategoryPositioning;
60
61 std::unique_ptr<weld::Frame> m_xFL_AxisLine;
62 std::unique_ptr<weld::ComboBox> m_xLB_CrossesAt;
63 std::unique_ptr<weld::FormattedSpinButton> m_xED_CrossesAt;
64 std::unique_ptr<weld::ComboBox> m_xED_CrossesAtCategory;
65
66 std::unique_ptr<weld::Frame> m_xFL_Position;
67 std::unique_ptr<weld::RadioButton> m_xRB_On;
68 std::unique_ptr<weld::RadioButton> m_xRB_Between;
69
70 std::unique_ptr<weld::Frame> m_xFL_Labels;
71 std::unique_ptr<weld::ComboBox> m_xLB_PlaceLabels;
72
73 std::unique_ptr<weld::CheckButton> m_xCB_TicksInner;
74 std::unique_ptr<weld::CheckButton> m_xCB_TicksOuter;
75
76 std::unique_ptr<weld::CheckButton> m_xCB_MinorInner;
77 std::unique_ptr<weld::CheckButton> m_xCB_MinorOuter;
78
79 std::unique_ptr<weld::Widget> m_xBxPlaceTicks;
80 std::unique_ptr<weld::ComboBox> m_xLB_PlaceTicks;
81 };
82
83 } //namespace chart
84
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */