1c4eee24dSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3c4eee24dSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4c4eee24dSAndrew Rist * or more contributor license agreements. See the NOTICE file 5c4eee24dSAndrew Rist * distributed with this work for additional information 6c4eee24dSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7c4eee24dSAndrew Rist * to you under the Apache License, Version 2.0 (the 8c4eee24dSAndrew Rist * "License"); you may not use this file except in compliance 9c4eee24dSAndrew Rist * with the License. You may obtain a copy of the License at 10c4eee24dSAndrew Rist * 11c4eee24dSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12c4eee24dSAndrew Rist * 13c4eee24dSAndrew Rist * Unless required by applicable law or agreed to in writing, 14c4eee24dSAndrew Rist * software distributed under the License is distributed on an 15c4eee24dSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16c4eee24dSAndrew Rist * KIND, either express or implied. See the License for the 17c4eee24dSAndrew Rist * specific language governing permissions and limitations 18c4eee24dSAndrew Rist * under the License. 19c4eee24dSAndrew Rist * 20c4eee24dSAndrew Rist *************************************************************/ 21c4eee24dSAndrew Rist 22c4eee24dSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _SVX_OPTCHART_HXX 25cdf0e10cSrcweir #define _SVX_OPTCHART_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir // header for SfxTabPage 28cdf0e10cSrcweir #include <sfx2/tabdlg.hxx> 29cdf0e10cSrcweir #include <vcl/fixed.hxx> 30cdf0e10cSrcweir // header for ValueSet 31cdf0e10cSrcweir #include <svtools/valueset.hxx> 32cdf0e10cSrcweir // header for ColorLB 33cdf0e10cSrcweir #include <svx/dlgctrl.hxx> 34cdf0e10cSrcweir // header for PushButton 35cdf0e10cSrcweir #ifndef _SV_BUTTON_HXX 36cdf0e10cSrcweir #include <vcl/button.hxx> 37cdf0e10cSrcweir #endif 38*97e8a929SArmin Le Grand // header for XColorList 39cdf0e10cSrcweir #include <svx/xtable.hxx> 40cdf0e10cSrcweir 41cdf0e10cSrcweir #include "cfgchart.hxx" 42cdf0e10cSrcweir 43cdf0e10cSrcweir class ChartColorLB : public ColorLB 44cdf0e10cSrcweir { 45cdf0e10cSrcweir public: 46cdf0e10cSrcweir ChartColorLB( Window* pParent, ResId Id ) : ColorLB( pParent, Id ) {} 47cdf0e10cSrcweir ChartColorLB( Window* pParent, WinBits aWB ) : ColorLB( pParent, aWB ) {} 48cdf0e10cSrcweir 49cdf0e10cSrcweir void FillBox( const SvxChartColorTable & rTab ); 50cdf0e10cSrcweir }; 51cdf0e10cSrcweir 52cdf0e10cSrcweir 53cdf0e10cSrcweir class SvxDefaultColorOptPage : public SfxTabPage 54cdf0e10cSrcweir { 55cdf0e10cSrcweir private: 56cdf0e10cSrcweir FixedLine aGbChartColors; 57cdf0e10cSrcweir ChartColorLB aLbChartColors; 58cdf0e10cSrcweir FixedLine aGbColorBox; 59cdf0e10cSrcweir ValueSet aValSetColorBox; 60cdf0e10cSrcweir PushButton aPBDefault; 61cdf0e10cSrcweir 62cdf0e10cSrcweir SvxChartOptions* pChartOptions; 63cdf0e10cSrcweir SvxChartColorTableItem* pColorConfig; 64*97e8a929SArmin Le Grand XColorList* pColorTab; 65cdf0e10cSrcweir 66cdf0e10cSrcweir DECL_LINK( ResetToDefaults, void * ); 67cdf0e10cSrcweir DECL_LINK( ListClickedHdl, ChartColorLB * ); 68cdf0e10cSrcweir DECL_LINK( BoxClickedHdl, ValueSet * ); 69cdf0e10cSrcweir 70cdf0e10cSrcweir void FillColorBox(); 71cdf0e10cSrcweir long GetColorIndex( const Color& rCol ); 72cdf0e10cSrcweir 73cdf0e10cSrcweir public: 74cdf0e10cSrcweir SvxDefaultColorOptPage( Window* pParent, const SfxItemSet& rInAttrs ); 75cdf0e10cSrcweir virtual ~SvxDefaultColorOptPage(); 76cdf0e10cSrcweir 77cdf0e10cSrcweir void Construct(); 78cdf0e10cSrcweir 79cdf0e10cSrcweir static SfxTabPage* Create( Window* pParent, const SfxItemSet& rInAttrs ); 80cdf0e10cSrcweir virtual sal_Bool FillItemSet( SfxItemSet& rOutAttrs ); 81cdf0e10cSrcweir virtual void Reset( const SfxItemSet& rInAttrs ); 82cdf0e10cSrcweir }; 83cdf0e10cSrcweir 84cdf0e10cSrcweir #endif // _SVX_OPTCHART_HXX 85cdf0e10cSrcweir 86