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