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