office-gobmx/chart2/source/controller/inc/dlg_ObjectProperties.hxx
Vladimir Glazounov 693290b1ce INTEGRATION: CWS chart2mst3 (1.4.4); FILE MERGED
2005/12/21 21:29:07 iha 1.4.4.6: remove identifiers from model objects and create an index based CID protocol instead for selection purposes
2005/11/23 15:15:44 iha 1.4.4.5: support BarOverlap and GapWidth
2005/10/07 11:30:38 bm 1.4.4.4: RESYNC: (1.4-1.5); FILE MERGED
2005/06/07 15:57:33 iha 1.4.4.3: use numberformatter from model
2004/05/17 17:33:53 iha 1.4.4.2: provide object naming; resource cleanup
2004/02/18 19:52:47 iha 1.4.4.1: removed unused code
2007-05-22 16:59:32 +00:00

141 lines
5.1 KiB
C++

/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dlg_ObjectProperties.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: vg $ $Date: 2007-05-22 17:59:32 $
*
* 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_DLG_OBJECTPROPERTIES_HXX
#define _CHART2_DLG_OBJECTPROPERTIES_HXX
#include "ObjectIdentifier.hxx"
#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
//.............................................................................
namespace chart
{
//.............................................................................
class ObjectPropertiesDialogParameter
{
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;
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;
bool m_bHasRegressionProperties;
bool m_bProvidesSecondaryYAxis;
bool m_bProvidesOverlapAndGapWidth;
bool m_bHasAreaProperties;
bool m_bHasLineProperties;
bool m_bHasSymbolProperties;
bool m_bHasScaleProperties;
bool m_bCanAxisLabelsBeStaggered;
};
/*************************************************************************
|*
|* dialog for properties of different chart object
|*
\************************************************************************/
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;
SfxItemSet* m_pSymbolShapeProperties;
Graphic* m_pAutoSymbolGraphic;
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 );
virtual ~SchAttribTabDlg();
//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 );
};
//.............................................................................
} //namespace chart
//.............................................................................
#endif