LibreOffice Module chart2 (master) 1
tp_AxisLabel.hxx
Go to the documentation of this file.
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>
25
26namespace weld {
27 class CheckButton;
28 class CustomWeld;
29 class Label;
30 class RadioButton;
31 class SpinButton;
32 class ToggleButton;
33}
34
35namespace chart
36{
37
39{
40private:
42
48
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;
64 std::unique_ptr<svx::DialControl> m_xCtrlDial;
65 std::unique_ptr<weld::CustomWeld> m_xCtrlDialWin;
66
67 DECL_LINK(StackedToggleHdl, weld::Toggleable&, void);
68 DECL_LINK(ToggleShowLabel, weld::Toggleable&, void);
69
70public:
71 SchAxisLabelTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
72 virtual ~SchAxisLabelTabPage() override;
73
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;
77
78 void ShowStaggeringControls( bool bShowStaggeringControls );
79 void SetComplexCategories( bool bComplexCategories );
80};
81} //namespace chart
82
83/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void Reset(const SfxItemSet *rInAttrs) override
bool m_bInitialStacking
false = DialControl in tristate
bool m_bComplexCategories
false = checkbox in tristate
std::unique_ptr< weld::Label > m_xFtRotate
SchAxisLabelTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rInAttrs)
std::unique_ptr< weld::Label > m_xFlOrder
std::unique_ptr< weld::RadioButton > m_xRbDownUp
std::unique_ptr< weld::RadioButton > m_xRbUpDown
std::unique_ptr< weld::CheckButton > m_xCbStacked
void ShowStaggeringControls(bool bShowStaggeringControls)
TextDirectionListBox m_aLbTextDirection
DECL_LINK(StackedToggleHdl, weld::Toggleable &, void)
std::unique_ptr< weld::CheckButton > m_xCbShowDescription
std::unique_ptr< weld::CustomWeld > m_xCtrlDialWin
virtual ~SchAxisLabelTabPage() override
std::unique_ptr< weld::MetricSpinButton > m_xNfRotate
std::unique_ptr< weld::RadioButton > m_xRbSideBySide
virtual bool FillItemSet(SfxItemSet *rOutAttrs) override
std::unique_ptr< svx::DialControl > m_xCtrlDial
std::unique_ptr< weld::Label > m_xFlTextFlow
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rInAttrs)
std::unique_ptr< weld::Label > m_xFtTextDirection
std::unique_ptr< weld::Label > m_xFtABCD
void SetComplexCategories(bool bComplexCategories)
std::unique_ptr< weld::CheckButton > m_xCbTextBreak
DECL_LINK(ToggleShowLabel, weld::Toggleable &, void)
std::unique_ptr< weld::RadioButton > m_xRbAuto
std::unique_ptr< weld::CheckButton > m_xCbTextOverlap