1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: tpview.hxx,v $
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 ************************************************************************/
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 //========================================================================
46 //========================================================================
49 class ScTpContentOptions
: public SfxTabPage
54 ColorListBox aColorLB
;
56 CheckBox aGuideLineCB
;
58 CheckBox aBigHandleCB
;
60 FixedLine aSeparator1FL
;
69 CheckBox aRangeFindCB
;
82 FixedLine aSeparator2FL
;
85 CheckBox aRowColHeaderCB
;
91 ScViewOptions
* pLocalOptions
;
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();
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 //========================================================================
118 class ScTpLayoutOptions
: public SfxTabPage
126 FixedLine aSeparatorFL
;
129 RadioButton aAlwaysRB
;
130 RadioButton aRequestRB
;
131 RadioButton aNeverRB
;
133 FixedLine aOptionsGB
;
136 CheckBox aEditModeCB
;
141 CheckBox aReplWarnCB
;
143 SvxStringArray aUnitArr
;
145 DECL_LINK( CBHdl
, CheckBox
* );
147 DECL_LINK(MetricHdl
, ListBox
*);
148 DECL_LINK( AlignHdl
, CheckBox
* );
152 DECL_LINK( UpdateHdl
, CheckBox
* );
154 ScTpLayoutOptions( Window
* pParent
,
155 const SfxItemSet
& rArgSet
);
156 ~ScTpLayoutOptions();
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