1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef SC_TPVIEW_HXX 25 #define SC_TPVIEW_HXX 26 27 #include <sfx2/tabdlg.hxx> 28 #include <vcl/field.hxx> 29 #include <vcl/fixed.hxx> 30 #include <vcl/group.hxx> 31 #include <svtools/ctrlbox.hxx> 32 #include <svx/strarray.hxx> 33 34 //======================================================================== 35 // View-Optionen: 36 37 class ScViewOptions; 38 39 //======================================================================== 40 // TabPage Inhalte 41 42 class ScTpContentOptions : public SfxTabPage 43 { 44 FixedLine aLinesGB; 45 CheckBox aGridCB; 46 FixedText aColorFT; 47 ColorListBox aColorLB; 48 CheckBox aBreakCB; 49 CheckBox aGuideLineCB; 50 CheckBox aBigHandleCB; 51 52 FixedLine aSeparator1FL; 53 54 FixedLine aDisplayGB; 55 CheckBox aFormulaCB; 56 CheckBox aNilCB; 57 CheckBox aAnnotCB; 58 CheckBox aValueCB; 59 CheckBox aAnchorCB; 60 CheckBox aClipMarkCB; 61 CheckBox aRangeFindCB; 62 63 FixedLine aObjectGB; 64 FixedText aObjGrfFT; 65 ListBox aObjGrfLB; 66 FixedText aDiagramFT; 67 ListBox aDiagramLB; 68 FixedText aDrawFT; 69 ListBox aDrawLB; 70 71 FixedLine aZoomGB; 72 CheckBox aSyncZoomCB; 73 74 FixedLine aSeparator2FL; 75 76 FixedLine aWindowGB; 77 CheckBox aRowColHeaderCB; 78 CheckBox aHScrollCB; 79 CheckBox aVScrollCB; 80 CheckBox aTblRegCB; 81 CheckBox aOutlineCB; 82 83 ScViewOptions* pLocalOptions; 84 85 void InitGridOpt(); 86 DECL_LINK( GridHdl, CheckBox* ); 87 DECL_LINK( SelLbObjHdl, ListBox* ); 88 DECL_LINK( CBHdl, CheckBox* ); 89 90 ScTpContentOptions( Window* pParent, 91 const SfxItemSet& rArgSet ); 92 ~ScTpContentOptions(); 93 94 public: 95 static SfxTabPage* Create ( Window* pParent, 96 const SfxItemSet& rCoreSet ); 97 virtual sal_Bool FillItemSet ( SfxItemSet& rCoreSet ); 98 virtual void Reset ( const SfxItemSet& rCoreSet ); 99 using SfxTabPage::ActivatePage; 100 using SfxTabPage::DeactivatePage; 101 virtual void ActivatePage( const SfxItemSet& ); 102 virtual int DeactivatePage( SfxItemSet* pSet = 0 ); 103 104 105 }; 106 107 //======================================================================== 108 // TabPage Layout 109 class ScDocument; 110 class ScTpLayoutOptions : public SfxTabPage 111 { 112 FixedLine aUnitGB; 113 FixedText aUnitFT; 114 ListBox aUnitLB; 115 FixedText aTabFT; 116 MetricField aTabMF; 117 118 FixedLine aSeparatorFL; 119 FixedLine aLinkGB; 120 FixedText aLinkFT; 121 RadioButton aAlwaysRB; 122 RadioButton aRequestRB; 123 RadioButton aNeverRB; 124 125 FixedLine aOptionsGB; 126 CheckBox aAlignCB; 127 ListBox aAlignLB; 128 CheckBox aEditModeCB; 129 CheckBox aFormatCB; 130 CheckBox aExpRefCB; 131 CheckBox aMarkHdrCB; 132 CheckBox aTextFmtCB; 133 CheckBox aReplWarnCB; 134 135 SvxStringArray aUnitArr; 136 137 DECL_LINK( CBHdl, CheckBox* ); 138 139 DECL_LINK(MetricHdl, ListBox*); 140 DECL_LINK( AlignHdl, CheckBox* ); 141 142 ScDocument *pDoc; 143 144 DECL_LINK( UpdateHdl, CheckBox* ); 145 146 ScTpLayoutOptions( Window* pParent, 147 const SfxItemSet& rArgSet ); 148 ~ScTpLayoutOptions(); 149 150 public: 151 static SfxTabPage* Create ( Window* pParent, 152 const SfxItemSet& rCoreSet ); 153 virtual sal_Bool FillItemSet ( SfxItemSet& rCoreSet ); 154 virtual void Reset ( const SfxItemSet& rCoreSet ); 155 using SfxTabPage::ActivatePage; 156 using SfxTabPage::DeactivatePage; 157 virtual void ActivatePage( const SfxItemSet& ); 158 virtual int DeactivatePage( SfxItemSet* pSet = 0 ); 159 SetDocument(ScDocument * pPtr)160 void SetDocument(ScDocument* pPtr){pDoc = pPtr;} 161 162 }; 163 //======================================================================== 164 165 #endif // SC_TPUSRLST_HXX 166