fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / chart2 / source / controller / dialogs / res_Trendline.hxx
blob03c3ebe3bd8781bd53b5ead7a92bbe79198f799a
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
36 public:
37 TrendlineResources( vcl::Window* pParent, const SfxItemSet& rInAttrs );
38 virtual ~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<CheckBox> m_pCB_ShowCorrelationCoeff;
73 SvxChartRegress m_eTrendLineType;
75 bool m_bTrendLineUnique;
77 SvNumberFormatter* m_pNumFormatter;
78 sal_Int32 m_nNbPoints;
80 void UpdateControlStates();
81 DECL_LINK( SelectTrendLine, RadioButton * );
82 DECL_LINK( ChangeValue, void *);
85 } // namespace chart
87 // INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_RES_TRENDLINE_HXX
88 #endif
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */