Version 6.1.4.1, tag libreoffice-6.1.4.1
[LibreOffice.git] / chart2 / source / controller / dialogs / res_Trendline.hxx
blobffe35e738cd2de522bd2c7292d475299bfefb1fc
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_RES_TRENDLINE_HXX
20 #define INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_RES_TRENDLINE_HXX
22 #include <vcl/window.hxx>
23 #include <vcl/button.hxx>
24 #include <vcl/fixed.hxx>
25 #include <svl/itemset.hxx>
26 #include <svx/chrtitem.hxx>
27 #include <vcl/field.hxx>
28 #include <svl/zformat.hxx>
29 #include <svtools/fmtfield.hxx>
31 namespace chart
34 class TrendlineResources final
36 public:
37 TrendlineResources( vcl::Window* pParent, const SfxItemSet& rInAttrs );
38 ~TrendlineResources();
40 void Reset(const SfxItemSet& rInAttrs);
41 bool FillItemSet(SfxItemSet* rOutAttrs) const;
43 void FillValueSets();
45 void SetNumFormatter( SvNumberFormatter* pFormatter );
46 void SetNbPoints( sal_Int32 nNbPoints );
48 private:
49 VclPtr<RadioButton> m_pRB_Linear;
50 VclPtr<RadioButton> m_pRB_Logarithmic;
51 VclPtr<RadioButton> m_pRB_Exponential;
52 VclPtr<RadioButton> m_pRB_Power;
53 VclPtr<RadioButton> m_pRB_Polynomial;
54 VclPtr<RadioButton> m_pRB_MovingAverage;
56 VclPtr<FixedImage> m_pFI_Linear;
57 VclPtr<FixedImage> m_pFI_Logarithmic;
58 VclPtr<FixedImage> m_pFI_Exponential;
59 VclPtr<FixedImage> m_pFI_Power;
60 VclPtr<FixedImage> m_pFI_Polynomial;
61 VclPtr<FixedImage> m_pFI_MovingAverage;
63 VclPtr<NumericField> m_pNF_Degree;
64 VclPtr<NumericField> m_pNF_Period;
65 VclPtr<Edit> m_pEE_Name;
66 VclPtr<FormattedField> m_pFmtFld_ExtrapolateForward;
67 VclPtr<FormattedField> m_pFmtFld_ExtrapolateBackward;
68 VclPtr<CheckBox> m_pCB_SetIntercept;
69 VclPtr<FormattedField> m_pFmtFld_InterceptValue;
70 VclPtr<CheckBox> m_pCB_ShowEquation;
71 VclPtr<Edit> m_pEE_XName;
72 VclPtr<Edit> m_pEE_YName;
73 VclPtr<CheckBox> m_pCB_ShowCorrelationCoeff;
75 SvxChartRegress m_eTrendLineType;
77 bool m_bTrendLineUnique;
79 SvNumberFormatter* m_pNumFormatter;
80 sal_Int32 m_nNbPoints;
82 void UpdateControlStates();
83 DECL_LINK( SelectTrendLine, Button*, void );
84 DECL_LINK( ChangeValue, Edit&, void);
85 DECL_LINK( ShowEquation, CheckBox&, void);
88 } // namespace chart
90 // INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_RES_TRENDLINE_HXX
91 #endif
93 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */