tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / chart2 / source / controller / dialogs / tp_AxisPositions.hxx
blob86f749a26850b90b8fee8e4e0dea2cc993e9f3c2
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>
23 namespace chart
25 class AxisPositionsTabPage : public SfxTabPage
27 public:
28 AxisPositionsTabPage(weld::Container* pPage, weld::DialogController* pController,
29 const SfxItemSet& rInAttrs);
30 virtual ~AxisPositionsTabPage() override;
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;
38 void SetNumFormatter(SvNumberFormatter* pFormatter);
40 void SetCrossingAxisIsCategoryAxis(bool bCrossingAxisIsCategoryAxis);
41 void SetCategories(const css::uno::Sequence<OUString>& rCategories);
43 void SupportAxisPositioning(bool bSupportAxisPositioning);
44 void SupportCategoryPositioning(bool bSupportCategoryPositioning);
46 private: //methods:
47 DECL_LINK(CrossesAtSelectHdl, weld::ComboBox&, void);
48 DECL_LINK(PlaceLabelsSelectHdl, weld::ComboBox&, void);
50 private: //member:
51 SvNumberFormatter* m_pNumFormatter;
53 bool m_bCrossingAxisIsCategoryAxis;
54 css::uno::Sequence<OUString> m_aCategories;
56 bool m_bSupportAxisPositioning;
57 bool m_bSupportCategoryPositioning;
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;
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;
68 std::unique_ptr<weld::Frame> m_xFL_Labels;
69 std::unique_ptr<weld::ComboBox> m_xLB_PlaceLabels;
71 std::unique_ptr<weld::CheckButton> m_xCB_TicksInner;
72 std::unique_ptr<weld::CheckButton> m_xCB_TicksOuter;
74 std::unique_ptr<weld::CheckButton> m_xCB_MinorInner;
75 std::unique_ptr<weld::CheckButton> m_xCB_MinorOuter;
77 std::unique_ptr<weld::Widget> m_xBxPlaceTicks;
78 std::unique_ptr<weld::ComboBox> m_xLB_PlaceTicks;
81 } //namespace chart
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */