update dev300-m58
[ooovba.git] / sc / source / ui / inc / tpview.hxx
blob2bd0229ad7156def317816d4ef88320c94ebd014
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: tpview.hxx,v $
10 * $Revision: 1.10 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef SC_TPVIEW_HXX
32 #define SC_TPVIEW_HXX
34 #include <sfx2/tabdlg.hxx>
35 #include <vcl/field.hxx>
36 #include <vcl/fixed.hxx>
37 #include <vcl/group.hxx>
38 #include <svtools/ctrlbox.hxx>
39 #include <svx/strarray.hxx>
41 //========================================================================
42 // View-Optionen:
44 class ScViewOptions;
46 //========================================================================
47 // TabPage Inhalte
49 class ScTpContentOptions : public SfxTabPage
51 FixedLine aLinesGB;
52 CheckBox aGridCB;
53 FixedText aColorFT;
54 ColorListBox aColorLB;
55 CheckBox aBreakCB;
56 CheckBox aGuideLineCB;
57 CheckBox aHandleCB;
58 CheckBox aBigHandleCB;
60 FixedLine aSeparator1FL;
62 FixedLine aDisplayGB;
63 CheckBox aFormulaCB;
64 CheckBox aNilCB;
65 CheckBox aAnnotCB;
66 CheckBox aValueCB;
67 CheckBox aAnchorCB;
68 CheckBox aClipMarkCB;
69 CheckBox aRangeFindCB;
71 FixedLine aObjectGB;
72 FixedText aObjGrfFT;
73 ListBox aObjGrfLB;
74 FixedText aDiagramFT;
75 ListBox aDiagramLB;
76 FixedText aDrawFT;
77 ListBox aDrawLB;
79 FixedLine aZoomGB;
80 CheckBox aSyncZoomCB;
82 FixedLine aSeparator2FL;
84 FixedLine aWindowGB;
85 CheckBox aRowColHeaderCB;
86 CheckBox aHScrollCB;
87 CheckBox aVScrollCB;
88 CheckBox aTblRegCB;
89 CheckBox aOutlineCB;
91 ScViewOptions* pLocalOptions;
93 void InitGridOpt();
94 DECL_LINK( GridHdl, CheckBox* );
95 DECL_LINK( SelLbObjHdl, ListBox* );
96 DECL_LINK( CBHdl, CheckBox* );
98 ScTpContentOptions( Window* pParent,
99 const SfxItemSet& rArgSet );
100 ~ScTpContentOptions();
102 public:
103 static SfxTabPage* Create ( Window* pParent,
104 const SfxItemSet& rCoreSet );
105 virtual BOOL FillItemSet ( SfxItemSet& rCoreSet );
106 virtual void Reset ( const SfxItemSet& rCoreSet );
107 using SfxTabPage::ActivatePage;
108 using SfxTabPage::DeactivatePage;
109 virtual void ActivatePage( const SfxItemSet& );
110 virtual int DeactivatePage( SfxItemSet* pSet = 0 );
115 //========================================================================
116 // TabPage Layout
117 class ScDocument;
118 class ScTpLayoutOptions : public SfxTabPage
120 FixedLine aUnitGB;
121 FixedText aUnitFT;
122 ListBox aUnitLB;
123 FixedText aTabFT;
124 MetricField aTabMF;
126 FixedLine aSeparatorFL;
127 FixedLine aLinkGB;
128 FixedText aLinkFT;
129 RadioButton aAlwaysRB;
130 RadioButton aRequestRB;
131 RadioButton aNeverRB;
133 FixedLine aOptionsGB;
134 CheckBox aAlignCB;
135 ListBox aAlignLB;
136 CheckBox aEditModeCB;
137 CheckBox aFormatCB;
138 CheckBox aExpRefCB;
139 CheckBox aMarkHdrCB;
140 CheckBox aTextFmtCB;
141 CheckBox aReplWarnCB;
143 SvxStringArray aUnitArr;
145 DECL_LINK( CBHdl, CheckBox* );
147 DECL_LINK(MetricHdl, ListBox*);
148 DECL_LINK( AlignHdl, CheckBox* );
150 ScDocument *pDoc;
152 DECL_LINK( UpdateHdl, CheckBox* );
154 ScTpLayoutOptions( Window* pParent,
155 const SfxItemSet& rArgSet );
156 ~ScTpLayoutOptions();
158 public:
159 static SfxTabPage* Create ( Window* pParent,
160 const SfxItemSet& rCoreSet );
161 virtual BOOL FillItemSet ( SfxItemSet& rCoreSet );
162 virtual void Reset ( const SfxItemSet& rCoreSet );
163 using SfxTabPage::ActivatePage;
164 using SfxTabPage::DeactivatePage;
165 virtual void ActivatePage( const SfxItemSet& );
166 virtual int DeactivatePage( SfxItemSet* pSet = 0 );
168 void SetDocument(ScDocument* pPtr){pDoc = pPtr;}
171 //========================================================================
173 #endif // SC_TPUSRLST_HXX