Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / chart2 / source / controller / dialogs / tp_AxisPositions.hxx
blobfc5164b895cc104485d16f2c4ea5fdd0832fbc6f
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 #ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_TP_AXISPOSITIONS_HXX
20 #define INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_TP_AXISPOSITIONS_HXX
22 #include <sfx2/tabdlg.hxx>
24 namespace chart
27 class AxisPositionsTabPage : public SfxTabPage
29 public:
30 AxisPositionsTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
31 virtual ~AxisPositionsTabPage() override;
33 static std::unique_ptr<SfxTabPage> 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;
38 void SetNumFormatter( SvNumberFormatter* pFormatter );
40 void SetCrossingAxisIsCategoryAxis( bool bCrossingAxisIsCategoryAxis );
41 void SetCategories( const css::uno::Sequence< OUString >& rCategories );
43 void SupportAxisPositioning( bool bSupportAxisPositioning );
45 private: //methods:
46 DECL_LINK(CrossesAtSelectHdl, weld::ComboBox&, void);
47 DECL_LINK(PlaceLabelsSelectHdl, weld::ComboBox&, void);
49 private: //member:
50 SvNumberFormatter* m_pNumFormatter;
52 bool m_bCrossingAxisIsCategoryAxis;
53 css::uno::Sequence< OUString > m_aCategories;
55 bool m_bSupportAxisPositioning;
57 std::unique_ptr<weld::Frame> m_xFL_AxisLine;
58 std::unique_ptr<weld::ComboBox> m_xLB_CrossesAt;
59 std::unique_ptr<weld::FormattedSpinButton> m_xED_CrossesAt;
60 std::unique_ptr<weld::ComboBox> m_xED_CrossesAtCategory;
61 std::unique_ptr<weld::CheckButton> m_xCB_AxisBetweenCategories;
63 std::unique_ptr<weld::Frame> m_xFL_Labels;
64 std::unique_ptr<weld::ComboBox> m_xLB_PlaceLabels;
65 std::unique_ptr<weld::FormattedSpinButton> m_xED_LabelDistance;
67 std::unique_ptr<weld::CheckButton> m_xCB_TicksInner;
68 std::unique_ptr<weld::CheckButton> m_xCB_TicksOuter;
70 std::unique_ptr<weld::CheckButton> m_xCB_MinorInner;
71 std::unique_ptr<weld::CheckButton> m_xCB_MinorOuter;
73 std::unique_ptr<weld::Widget> m_xBxPlaceTicks;
74 std::unique_ptr<weld::ComboBox> m_xLB_PlaceTicks;
77 } //namespace chart
79 #endif
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */