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