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