108 lines
3.5 KiB
C++
108 lines
3.5 KiB
C++
![]() |
/*************************************************************************
|
||
|
*
|
||
|
* OpenOffice.org - a multi-platform office productivity suite
|
||
|
*
|
||
|
* $RCSfile: res_LegendPosition.hxx,v $
|
||
|
*
|
||
|
* $Revision: 1.2 $
|
||
|
*
|
||
|
* last change: $Author: vg $ $Date: 2007-05-22 17:39:55 $
|
||
|
*
|
||
|
* 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_LEGENPOSITION_HXX
|
||
|
#define _CHART2_RES_LEGENPOSITION_HXX
|
||
|
|
||
|
// header for class CheckBox
|
||
|
#ifndef _SV_BUTTON_HXX
|
||
|
#include <vcl/button.hxx>
|
||
|
#endif
|
||
|
#ifndef _SV_FIXED_HXX
|
||
|
#include <vcl/fixed.hxx>
|
||
|
#endif
|
||
|
// header for class SfxItemSet
|
||
|
#ifndef _SFXITEMSET_HXX
|
||
|
#include <svtools/itemset.hxx>
|
||
|
#endif
|
||
|
|
||
|
#ifndef _COM_SUN_STAR_FRAME_XMODEL_HPP_
|
||
|
#include <com/sun/star/frame/XModel.hpp>
|
||
|
#endif
|
||
|
#ifndef _COM_SUN_STAR_UNO_XCOMPONENTCONTEXT_HPP_
|
||
|
#include <com/sun/star/uno/XComponentContext.hpp>
|
||
|
#endif
|
||
|
|
||
|
//.............................................................................
|
||
|
namespace chart
|
||
|
{
|
||
|
//.............................................................................
|
||
|
|
||
|
class LegendPositionResources
|
||
|
{
|
||
|
public:
|
||
|
//constructor without Display checkbox
|
||
|
LegendPositionResources( Window* pParent );
|
||
|
//constructor inclusive Display checkbox
|
||
|
LegendPositionResources( Window* pParent, const ::com::sun::star::uno::Reference<
|
||
|
::com::sun::star::uno::XComponentContext>& xCC );
|
||
|
virtual ~LegendPositionResources();
|
||
|
|
||
|
void writeToResources( const ::com::sun::star::uno::Reference<
|
||
|
::com::sun::star::frame::XModel >& xChartModel );
|
||
|
void writeToModel( const ::com::sun::star::uno::Reference<
|
||
|
::com::sun::star::frame::XModel >& xChartModel ) const;
|
||
|
|
||
|
|
||
|
void initFromItemSet( const SfxItemSet& rInAttrs );
|
||
|
void writeToItemSet( SfxItemSet& rOutAttrs ) const;
|
||
|
|
||
|
void SetChangeHdl( const Link& rLink );
|
||
|
|
||
|
DECL_LINK( PositionEnableHdl, void* );
|
||
|
DECL_LINK( PositionChangeHdl, RadioButton* );
|
||
|
|
||
|
private:
|
||
|
void impl_setRadioButtonToggleHdl();
|
||
|
|
||
|
private:
|
||
|
::com::sun::star::uno::Reference<
|
||
|
::com::sun::star::uno::XComponentContext> m_xCC;
|
||
|
|
||
|
CheckBox m_aCbxShow;
|
||
|
|
||
|
RadioButton m_aRbtLeft;
|
||
|
RadioButton m_aRbtTop;
|
||
|
RadioButton m_aRbtRight;
|
||
|
RadioButton m_aRbtBottom;
|
||
|
|
||
|
Link m_aChangeLink;
|
||
|
};
|
||
|
|
||
|
//.............................................................................
|
||
|
} //namespace chart
|
||
|
//.............................................................................
|
||
|
|
||
|
#endif
|