2006/12/07 23:20:49 iha 1.1.2.10: #i67833# simple 3D look - bring light to front 2006/01/14 15:08:56 iha 1.1.2.9: replaced rounded edges spin field by a chekbox, disable rouded edges if objectlines are on, added custom entry to the scheme listbox 2005/11/15 20:20:37 iha 1.1.2.8: remove superfluous view updates 2005/11/03 16:16:05 bm 1.1.2.7: live-preview changes, lock controllers for multiple changes 2005/11/03 09:43:20 bm 1.1.2.6: adaption to new transformation matrix in model and live preview of 3d view dialog 2005/11/02 13:49:18 bm 1.1.2.5: scene properties changed from SceneDescriptor property to the D3D properties offered by SceneProperties.hxx (this way XML im-/export works with the xmloff helper) 2005/10/11 09:20:12 bm 1.1.2.4: license header change 2004/06/11 15:41:55 iha 1.1.2.3: replace shadinglist box by simple checkbox 2004/06/08 14:24:17 iha 1.1.2.2: #i20329# implementation 2004/06/01 17:30:56 iha 1.1.2.1: new 3D view/effects dialog
121 lines
3.6 KiB
C++
121 lines
3.6 KiB
C++
/*************************************************************************
|
|
*
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
|
*
|
|
* $RCSfile: tp_3D_SceneAppearance.hxx,v $
|
|
*
|
|
* $Revision: 1.2 $
|
|
*
|
|
* last change: $Author: vg $ $Date: 2007-05-22 17:41:53 $
|
|
*
|
|
* 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_TP_3D_SCENE_APPEARANCE_HXX
|
|
#define _CHART2_TP_3D_SCENE_APPEARANCE_HXX
|
|
|
|
// header for class TabPage
|
|
#ifndef _SV_TABPAGE_HXX
|
|
#include <vcl/tabpage.hxx>
|
|
#endif
|
|
// header for class FixedLine
|
|
#ifndef _SV_FIXED_HXX
|
|
#include <vcl/fixed.hxx>
|
|
#endif
|
|
// header for class MetricField
|
|
#ifndef _SV_FIELD_HXX
|
|
#include <vcl/field.hxx>
|
|
#endif
|
|
// header for class CheckBox
|
|
#ifndef _SV_BUTTON_HXX
|
|
#include <vcl/button.hxx>
|
|
#endif
|
|
// header for class ListBox
|
|
#ifndef _SV_LSTBOX_HXX
|
|
#include <vcl/lstbox.hxx>
|
|
#endif
|
|
|
|
#ifndef _COM_SUN_STAR_DRAWING_SHADEMODE_HPP_
|
|
#include <com/sun/star/drawing/ShadeMode.hpp>
|
|
#endif
|
|
#ifndef _COM_SUN_STAR_FRAME_XMODEL_HPP_
|
|
#include <com/sun/star/frame/XModel.hpp>
|
|
#endif
|
|
|
|
#include "ControllerLockGuard.hxx"
|
|
|
|
//.............................................................................
|
|
namespace chart
|
|
{
|
|
//.............................................................................
|
|
|
|
class ThreeD_SceneAppearance_TabPage : public TabPage
|
|
{
|
|
public:
|
|
ThreeD_SceneAppearance_TabPage(
|
|
Window* pWindow,
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > & xChartModel,
|
|
ControllerLockHelper & rControllerLockHelper );
|
|
virtual ~ThreeD_SceneAppearance_TabPage();
|
|
|
|
// has to be called in case the dialog was closed with OK
|
|
void commitPendingChanges();
|
|
|
|
virtual void ActivatePage();
|
|
|
|
private:
|
|
DECL_LINK( SelectSchemeHdl, void* );
|
|
DECL_LINK( SelectShading, void* );
|
|
DECL_LINK( SelectRoundedEdgeOrObjectLines, CheckBox* );
|
|
|
|
void initControlsFromModel();
|
|
void applyShadeModeToModel();
|
|
void applyRoundedEdgeAndObjectLinesToModel();
|
|
void updateScheme();
|
|
|
|
private:
|
|
::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >
|
|
m_xChartModel;
|
|
|
|
FixedText m_aFT_Scheme;
|
|
ListBox m_aLB_Scheme;
|
|
|
|
FixedLine m_aFL_Seperator;
|
|
|
|
CheckBox m_aCB_RoundedEdge;
|
|
CheckBox m_aCB_Shading;
|
|
CheckBox m_aCB_ObjectLines;
|
|
|
|
bool m_bUpdateOtherControls;
|
|
bool m_bCommitToModel;
|
|
|
|
ControllerLockHelper & m_rControllerLockHelper;
|
|
};
|
|
|
|
//.............................................................................
|
|
} //namespace chart
|
|
//.............................................................................
|
|
|
|
#endif
|