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 28 #ifndef SC_TPVIEW_HXX 29 #define SC_TPVIEW_HXX 30 31 #include <sfx2/tabdlg.hxx> 32 #include <vcl/field.hxx> 33 #include <vcl/fixed.hxx> 34 #include <vcl/group.hxx> 35 #include <svtools/ctrlbox.hxx> 36 #include <svx/strarray.hxx> 37 38 //======================================================================== 39 // View-Optionen: 40 41 class ScViewOptions; 42 43 //======================================================================== 44 // TabPage Inhalte 45 46 class ScTpContentOptions : public SfxTabPage 47 { 48 FixedLine aLinesGB; 49 CheckBox aGridCB; 50 FixedText aColorFT; 51 ColorListBox aColorLB; 52 CheckBox aBreakCB; 53 CheckBox aGuideLineCB; 54 CheckBox aHandleCB; 55 CheckBox aBigHandleCB; 56 57 FixedLine aSeparator1FL; 58 59 FixedLine aDisplayGB; 60 CheckBox aFormulaCB; 61 CheckBox aNilCB; 62 CheckBox aAnnotCB; 63 CheckBox aValueCB; 64 CheckBox aAnchorCB; 65 CheckBox aClipMarkCB; 66 CheckBox aRangeFindCB; 67 68 FixedLine aObjectGB; 69 FixedText aObjGrfFT; 70 ListBox aObjGrfLB; 71 FixedText aDiagramFT; 72 ListBox aDiagramLB; 73 FixedText aDrawFT; 74 ListBox aDrawLB; 75 76 FixedLine aZoomGB; 77 CheckBox aSyncZoomCB; 78 79 FixedLine aSeparator2FL; 80 81 FixedLine aWindowGB; 82 CheckBox aRowColHeaderCB; 83 CheckBox aHScrollCB; 84 CheckBox aVScrollCB; 85 CheckBox aTblRegCB; 86 CheckBox aOutlineCB; 87 88 ScViewOptions* pLocalOptions; 89 90 void InitGridOpt(); 91 DECL_LINK( GridHdl, CheckBox* ); 92 DECL_LINK( SelLbObjHdl, ListBox* ); 93 DECL_LINK( CBHdl, CheckBox* ); 94 95 ScTpContentOptions( Window* pParent, 96 const SfxItemSet& rArgSet ); 97 ~ScTpContentOptions(); 98 99 public: 100 static SfxTabPage* Create ( Window* pParent, 101 const SfxItemSet& rCoreSet ); 102 virtual sal_Bool FillItemSet ( SfxItemSet& rCoreSet ); 103 virtual void Reset ( const SfxItemSet& rCoreSet ); 104 using SfxTabPage::ActivatePage; 105 using SfxTabPage::DeactivatePage; 106 virtual void ActivatePage( const SfxItemSet& ); 107 virtual int DeactivatePage( SfxItemSet* pSet = 0 ); 108 109 110 }; 111 112 //======================================================================== 113 // TabPage Layout 114 class ScDocument; 115 class ScTpLayoutOptions : public SfxTabPage 116 { 117 FixedLine aUnitGB; 118 FixedText aUnitFT; 119 ListBox aUnitLB; 120 FixedText aTabFT; 121 MetricField aTabMF; 122 123 FixedLine aSeparatorFL; 124 FixedLine aLinkGB; 125 FixedText aLinkFT; 126 RadioButton aAlwaysRB; 127 RadioButton aRequestRB; 128 RadioButton aNeverRB; 129 130 FixedLine aOptionsGB; 131 CheckBox aAlignCB; 132 ListBox aAlignLB; 133 CheckBox aEditModeCB; 134 CheckBox aFormatCB; 135 CheckBox aExpRefCB; 136 CheckBox aMarkHdrCB; 137 CheckBox aTextFmtCB; 138 CheckBox aReplWarnCB; 139 140 SvxStringArray aUnitArr; 141 142 DECL_LINK( CBHdl, CheckBox* ); 143 144 DECL_LINK(MetricHdl, ListBox*); 145 DECL_LINK( AlignHdl, CheckBox* ); 146 147 ScDocument *pDoc; 148 149 DECL_LINK( UpdateHdl, CheckBox* ); 150 151 ScTpLayoutOptions( Window* pParent, 152 const SfxItemSet& rArgSet ); 153 ~ScTpLayoutOptions(); 154 155 public: 156 static SfxTabPage* Create ( Window* pParent, 157 const SfxItemSet& rCoreSet ); 158 virtual sal_Bool FillItemSet ( SfxItemSet& rCoreSet ); 159 virtual void Reset ( const SfxItemSet& rCoreSet ); 160 using SfxTabPage::ActivatePage; 161 using SfxTabPage::DeactivatePage; 162 virtual void ActivatePage( const SfxItemSet& ); 163 virtual int DeactivatePage( SfxItemSet* pSet = 0 ); 164 165 void SetDocument(ScDocument* pPtr){pDoc = pPtr;} 166 167 }; 168 //======================================================================== 169 170 #endif // SC_TPUSRLST_HXX 171 172