1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 #ifndef _CHART2_TP_SERIESTOAXIS_HXX 28 #define _CHART2_TP_SERIESTOAXIS_HXX 29 30 // header for SfxTabPage 31 #include <sfx2/tabdlg.hxx> 32 // header for FixedText 33 #include <vcl/fixed.hxx> 34 // header for CheckBox 35 #ifndef _SV_BUTTON_HXX 36 #include <vcl/button.hxx> 37 #endif 38 // header for MetricField 39 #include <vcl/field.hxx> 40 41 //............................................................................. 42 namespace chart 43 { 44 //............................................................................. 45 46 class SchOptionTabPage : public SfxTabPage 47 { 48 public: 49 SchOptionTabPage(Window* pParent, const SfxItemSet& rInAttrs); 50 virtual ~SchOptionTabPage(); 51 52 static SfxTabPage* Create(Window* pParent, const SfxItemSet& rInAttrs); 53 virtual sal_Bool FillItemSet(SfxItemSet& rOutAttrs); 54 virtual void Reset(const SfxItemSet& rInAttrs); 55 56 void Init( bool bProvidesSecondaryYAxis, bool bProvidesOverlapAndGapWidth, bool bProvidesBarConnectors ); 57 58 private: //methods 59 void AdaptControlPositionsAndVisibility(); 60 61 private: //member 62 FixedLine aGrpAxis; 63 RadioButton aRbtAxis1; 64 RadioButton aRbtAxis2; 65 66 FixedLine aGrpBar; 67 FixedText aFTGap; 68 MetricField aMTGap; 69 FixedText aFTOverlap; 70 MetricField aMTOverlap; 71 CheckBox aCBConnect; 72 CheckBox aCBAxisSideBySide; 73 74 FixedLine m_aFL_PlotOptions; 75 FixedText m_aFT_MissingValues; 76 RadioButton m_aRB_DontPaint; 77 RadioButton m_aRB_AssumeZero; 78 RadioButton m_aRB_ContinueLine; 79 80 CheckBox m_aCBIncludeHiddenCells; 81 82 DECL_LINK(EnableHdl, RadioButton * ); 83 84 sal_Int32 m_nAllSeriesAxisIndex; 85 86 bool m_bProvidesSecondaryYAxis; 87 bool m_bProvidesOverlapAndGapWidth; 88 bool m_bProvidesBarConnectors; 89 }; 90 91 //............................................................................. 92 } //namespace chart 93 //............................................................................. 94 95 #endif 96