Debian Codegraph @

chart2/source/controller/dialogs/tp_AxisLabel.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 #include <svx/dialcontrol.hxx>
23 #include <tools/degree.hxx>
24 #include <TextDirectionListBox.hxx>
25
26 namespace weld {
27 class CheckButton;
28 class CustomWeld;
29 class Label;
30 class RadioButton;
31 }
32
33 namespace chart
34 {
35
36 class SchAxisLabelTabPage : public SfxTabPage
37 {
38 private:
39 bool m_bShowStaggeringControls;
40
41 Degree100 m_nInitialDegrees;
42 bool m_bHasInitialDegrees; /// false = DialControl in tristate
43 bool m_bInitialStacking;
44 bool m_bHasInitialStacking; /// false = checkbox in tristate
45 bool m_bComplexCategories;
46
47 std::unique_ptr<weld::CheckButton> m_xCbShowDescription;
48 std::unique_ptr<weld::Label> m_xFlOrder;
49 std::unique_ptr<weld::RadioButton> m_xRbSideBySide;
50 std::unique_ptr<weld::RadioButton> m_xRbUpDown;
51 std::unique_ptr<weld::RadioButton> m_xRbDownUp;
52 std::unique_ptr<weld::RadioButton> m_xRbAuto;
53 std::unique_ptr<weld::Label> m_xFlTextFlow;
54 std::unique_ptr<weld::CheckButton> m_xCbTextOverlap;
55 std::unique_ptr<weld::CheckButton> m_xCbTextBreak;
56 std::unique_ptr<weld::Label> m_xFtABCD;
57 std::unique_ptr<weld::Label> m_xFtRotate;
58 std::unique_ptr<weld::MetricSpinButton> m_xNfRotate;
59 std::unique_ptr<weld::CheckButton> m_xCbStacked;
60 std::unique_ptr<weld::Label> m_xFtTextDirection;
61 TextDirectionListBox m_aLbTextDirection;
62 std::unique_ptr<svx::DialControl> m_xCtrlDial;
63 std::unique_ptr<weld::CustomWeld> m_xCtrlDialWin;
64
65 DECL_LINK(StackedToggleHdl, weld::Toggleable&, void);
66 DECL_LINK(ToggleShowLabel, weld::Toggleable&, void);
67
68 public:
69 SchAxisLabelTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
70 virtual ~SchAxisLabelTabPage() override;
71
72 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rInAttrs );
73 virtual bool FillItemSet( SfxItemSet* rOutAttrs ) override;
74 virtual void Reset( const SfxItemSet* rInAttrs ) override;
75
76 void ShowStaggeringControls( bool bShowStaggeringControls );
77 void SetComplexCategories( bool bComplexCategories );
78 };
79 } //namespace chart
80
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */