Files
libreoffice/chart2/source/controller/inc/dlg_ObjectProperties.hxx

146 lines
5.2 KiB
C++
Raw Normal View History

2003-10-06 08:58:36 +00:00
/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
2003-10-06 08:58:36 +00:00
*
* $RCSfile: dlg_ObjectProperties.hxx,v $
2003-10-06 08:58:36 +00:00
*
* $Revision: 1.7 $
2003-10-06 08:58:36 +00:00
*
* last change: $Author: rt $ $Date: 2007-07-25 08:40:02 $
2003-10-06 08:58:36 +00:00
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
2003-10-06 08:58:36 +00:00
*
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2005 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
2003-10-06 08:58:36 +00:00
*
* 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.
2003-10-06 08:58:36 +00:00
*
* 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.
2003-10-06 08:58:36 +00:00
*
* 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
2003-10-06 08:58:36 +00:00
*
************************************************************************/
#ifndef _CHART2_DLG_OBJECTPROPERTIES_HXX
#define _CHART2_DLG_OBJECTPROPERTIES_HXX
#include "ObjectIdentifier.hxx"
2003-10-06 08:58:36 +00:00
#ifndef _SFXTABDLG_HXX
#include <sfx2/tabdlg.hxx>
#endif
// header for typedef ChangeType
#ifndef _SVX_TAB_AREA_HXX
#include <svx/tabarea.hxx>
#endif
#ifndef _COM_SUN_STAR_UTIL_XNUMBERFORMATSSUPPLIER_HPP_
#include <com/sun/star/util/XNumberFormatsSupplier.hpp>
#endif
2003-10-06 08:58:36 +00:00
//.............................................................................
namespace chart
{
//.............................................................................
class ObjectPropertiesDialogParameter
2003-10-06 08:58:36 +00:00
{
public:
ObjectPropertiesDialogParameter( const rtl::OUString& rObjectCID );
virtual ~ObjectPropertiesDialogParameter();
void init( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xModel );
ObjectType getObjectType() const;
rtl::OUString getLocalizedName() const;
bool HasGeometryProperties() const;
bool HasStatisticProperties() const;
2003-12-10 15:51:53 +00:00
bool HasRegressionProperties() const;
bool ProvidesSecondaryYAxis() const;
bool ProvidesOverlapAndGapWidth() const;
bool HasAreaProperties() const;
bool HasLineProperties() const;
bool HasSymbolProperties() const;
bool HasScaleProperties() const;
bool CanAxisLabelsBeStaggered() const;
private:
rtl::OUString m_aObjectCID;
ObjectType m_eObjectType;
bool m_bAffectsMultipleObjects;//is true if more than one object of the given type will be changed (e.g. all axes or all titles)
rtl::OUString m_aLocalizedName;
bool m_bHasGeometryProperties;
bool m_bHasStatisticProperties;
2003-12-10 15:51:53 +00:00
bool m_bHasRegressionProperties;
bool m_bProvidesSecondaryYAxis;
bool m_bProvidesOverlapAndGapWidth;
bool m_bHasAreaProperties;
bool m_bHasLineProperties;
bool m_bHasSymbolProperties;
bool m_bHasScaleProperties;
bool m_bCanAxisLabelsBeStaggered;
2003-10-06 08:58:36 +00:00
};
/*************************************************************************
|*
2003-11-13 14:17:51 +00:00
|* dialog for properties of different chart object
2003-10-06 08:58:36 +00:00
|*
\************************************************************************/
class ViewElementListProvider;
class SchAttribTabDlg : public SfxTabDialog
{
private:
ObjectType eObjectType;
bool bAffectsMultipleObjects;//is true if more than one object of the given type will be changed (e.g. all axes or all titles)
USHORT nDlgType;
USHORT nPageType;
const ObjectPropertiesDialogParameter * const m_pParameter;
const ViewElementListProvider* const m_pViewElementListProvider;
SvNumberFormatter* m_pNumberFormatter;
2003-10-06 08:58:36 +00:00
2003-11-13 14:17:51 +00:00
SfxItemSet* m_pSymbolShapeProperties;
Graphic* m_pAutoSymbolGraphic;
2003-10-06 08:58:36 +00:00
double m_fAxisMinorStepWidthForErrorBarDecimals;
2003-10-06 08:58:36 +00:00
virtual void PageCreated(USHORT nId, SfxTabPage& rPage);
public:
SchAttribTabDlg(Window* pParent, const SfxItemSet* pAttr,
const ObjectPropertiesDialogParameter* pDialogParameter,
const ViewElementListProvider* pViewElementListProvider,
const ::com::sun::star::uno::Reference<
::com::sun::star::util::XNumberFormatsSupplier >& xNumberFormatsSupplier );
2003-10-06 08:58:36 +00:00
virtual ~SchAttribTabDlg();
2003-11-13 14:17:51 +00:00
//pSymbolShapeProperties: Properties to be set on the symbollist shapes
//pAutoSymbolGraphic: Graphic to be shown if AutoSymbol gets selected
//this class takes ownership over both parameter
void setSymbolInformation( SfxItemSet* pSymbolShapeProperties, Graphic* pAutoSymbolGraphic );
void SetAxisMinorStepWidthForErrorBarDecimals( double fMinorStepWidth );
2003-10-06 08:58:36 +00:00
};
//.............................................................................
} //namespace chart
//.............................................................................
#endif