xref: /aoo41x/main/sc/source/ui/inc/tpview.hxx (revision 38d50f7b)
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		aHandleCB;
51 	CheckBox		aBigHandleCB;
52 
53     FixedLine       aSeparator1FL;
54 
55     FixedLine       aDisplayGB;
56     CheckBox        aFormulaCB;
57     CheckBox        aNilCB;
58     CheckBox        aAnnotCB;
59     CheckBox        aValueCB;
60     CheckBox        aAnchorCB;
61     CheckBox        aClipMarkCB;
62     CheckBox        aRangeFindCB;
63 
64     FixedLine       aObjectGB;
65     FixedText       aObjGrfFT;
66     ListBox         aObjGrfLB;
67     FixedText       aDiagramFT;
68     ListBox         aDiagramLB;
69     FixedText       aDrawFT;
70     ListBox         aDrawLB;
71 
72     FixedLine       aZoomGB;
73     CheckBox        aSyncZoomCB;
74 
75     FixedLine       aSeparator2FL;
76 
77     FixedLine       aWindowGB;
78 	CheckBox		aRowColHeaderCB;
79 	CheckBox		aHScrollCB;
80 	CheckBox		aVScrollCB;
81 	CheckBox		aTblRegCB;
82 	CheckBox		aOutlineCB;
83 
84     ScViewOptions*  pLocalOptions;
85 
86     void    InitGridOpt();
87 	DECL_LINK( GridHdl, CheckBox* );
88     DECL_LINK( SelLbObjHdl, ListBox* );
89 	DECL_LINK( CBHdl, CheckBox* );
90 
91 			ScTpContentOptions( Window*			pParent,
92 							 const SfxItemSet&	rArgSet );
93 			~ScTpContentOptions();
94 
95 public:
96 	static	SfxTabPage*	Create			( Window*		 		pParent,
97 										  const SfxItemSet&		rCoreSet );
98 	virtual	sal_Bool		FillItemSet		( SfxItemSet& rCoreSet );
99 	virtual	void		Reset			( const SfxItemSet& rCoreSet );
100     using SfxTabPage::ActivatePage;
101     using SfxTabPage::DeactivatePage;
102 	virtual void		ActivatePage( const SfxItemSet& );
103 	virtual int			DeactivatePage( SfxItemSet* pSet = 0 );
104 
105 
106 };
107 
108 //========================================================================
109 // TabPage Layout
110 class ScDocument;
111 class ScTpLayoutOptions : public SfxTabPage
112 {
113     FixedLine       aUnitGB;
114     FixedText       aUnitFT;
115     ListBox         aUnitLB;
116     FixedText       aTabFT;
117     MetricField     aTabMF;
118 
119     FixedLine       aSeparatorFL;
120     FixedLine       aLinkGB;
121     FixedText       aLinkFT;
122     RadioButton     aAlwaysRB;
123     RadioButton     aRequestRB;
124     RadioButton     aNeverRB;
125 
126     FixedLine       aOptionsGB;
127 	CheckBox		aAlignCB;
128 	ListBox			aAlignLB;
129 	CheckBox		aEditModeCB;
130 	CheckBox		aFormatCB;
131     CheckBox        aExpRefCB;
132 	CheckBox		aMarkHdrCB;
133 	CheckBox		aTextFmtCB;
134     CheckBox        aReplWarnCB;
135 
136 	SvxStringArray 	aUnitArr;
137 
138     DECL_LINK( CBHdl, CheckBox* );
139 
140     DECL_LINK(MetricHdl, ListBox*);
141     DECL_LINK( AlignHdl, CheckBox* );
142 
143     ScDocument *pDoc;
144 
145 	DECL_LINK(	UpdateHdl, CheckBox* );
146 
147 			ScTpLayoutOptions( Window*			pParent,
148 							 const SfxItemSet&	rArgSet );
149 			~ScTpLayoutOptions();
150 
151 public:
152 	static	SfxTabPage*	Create			( Window*		 		pParent,
153 										  const SfxItemSet&		rCoreSet );
154 	virtual	sal_Bool		FillItemSet		( SfxItemSet& rCoreSet );
155 	virtual	void		Reset			( const SfxItemSet& rCoreSet );
156     using SfxTabPage::ActivatePage;
157     using SfxTabPage::DeactivatePage;
158 	virtual void		ActivatePage( const SfxItemSet& );
159 	virtual int			DeactivatePage( SfxItemSet* pSet = 0 );
160 
SetDocument(ScDocument * pPtr)161     void                SetDocument(ScDocument* pPtr){pDoc = pPtr;}
162 
163 };
164 //========================================================================
165 
166 #endif // SC_TPUSRLST_HXX
167 
168