Files
libreoffice/chart2/source/controller/dialogs/res_Trendline.hxx
Kurt Zenker d3568bf922 INTEGRATION: CWS chart20_DEV300 (1.2.4); FILE MERGED
2008/02/21 15:59:26 bm 1.2.4.1: #i366# error bars from ranges
2008-03-06 15:47:50 +00:00

92 lines
2.6 KiB
C++

/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: res_Trendline.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: kz $ $Date: 2008-03-06 16:38:37 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
*
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2005 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
************************************************************************/
#ifndef CHART2_RES_TRENDLINE_HXX
#define CHART2_RES_TRENDLINE_HXX
#include <vcl/window.hxx>
#include <vcl/button.hxx>
#include <vcl/fixed.hxx>
#include <svtools/valueset.hxx>
#include <svtools/itemset.hxx>
#include <svx/chrtitem.hxx>
namespace chart
{
class TrendlineResources
{
public:
TrendlineResources( Window* pParent, const SfxItemSet& rInAttrs, bool bNoneAvailable );
virtual ~TrendlineResources();
void Reset(const SfxItemSet& rInAttrs);
BOOL FillItemSet(SfxItemSet& rOutAttrs) const;
void FillValueSets();
long adjustControlSizes();
private:
FixedLine m_aFLType;
RadioButton m_aRBNone;
RadioButton m_aRBLinear;
RadioButton m_aRBLogarithmic;
RadioButton m_aRBExponential;
RadioButton m_aRBPower;
FixedImage m_aFINone;
FixedImage m_aFILinear;
FixedImage m_aFILogarithmic;
FixedImage m_aFIExponential;
FixedImage m_aFIPower;
FixedLine m_aFLEquation;
CheckBox m_aCBShowEquation;
CheckBox m_aCBShowCorrelationCoeff;
SvxChartRegress m_eTrendLineType;
bool m_bNoneAvailable;
bool m_bTrendLineUnique;
void UpdateControlStates();
DECL_LINK( SelectTrendLine, RadioButton * );
};
} // namespace chart
// CHART2_RES_TRENDLINE_HXX
#endif