1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
23 #include <sfx2/tabdlg.hxx>
24 #include <vcl/field.hxx>
25 #include <vcl/fixed.hxx>
26 #include <vcl/group.hxx>
27 #include <svtools/ctrlbox.hxx>
28 #include <svx/strarray.hxx>
30 //========================================================================
34 //========================================================================
36 class ScTpContentOptions
: public SfxTabPage
42 ColorListBox aColorLB
;
44 CheckBox aGuideLineCB
;
46 FixedLine aSeparator1FL
;
55 CheckBox aRangeFindCB
;
68 FixedLine aSeparator2FL
;
71 CheckBox aRowColHeaderCB
;
77 ScViewOptions
* pLocalOptions
;
80 DECL_LINK( GridHdl
, ListBox
* );
81 DECL_LINK( SelLbObjHdl
, ListBox
* );
82 DECL_LINK( CBHdl
, CheckBox
* );
84 ScTpContentOptions( Window
* pParent
,
85 const SfxItemSet
& rArgSet
);
86 ~ScTpContentOptions();
89 static SfxTabPage
* Create ( Window
* pParent
,
90 const SfxItemSet
& rCoreSet
);
91 virtual sal_Bool
FillItemSet ( SfxItemSet
& rCoreSet
);
92 virtual void Reset ( const SfxItemSet
& rCoreSet
);
93 using SfxTabPage::ActivatePage
;
94 using SfxTabPage::DeactivatePage
;
95 virtual void ActivatePage( const SfxItemSet
& );
96 virtual int DeactivatePage( SfxItemSet
* pSet
= 0 );
101 //========================================================================
104 class ScTpLayoutOptions
: public SfxTabPage
112 FixedLine aSeparatorFL
;
115 RadioButton aAlwaysRB
;
116 RadioButton aRequestRB
;
117 RadioButton aNeverRB
;
119 FixedLine aOptionsGB
;
122 CheckBox aEditModeCB
;
127 CheckBox aReplWarnCB
;
129 SvxStringArray aUnitArr
;
131 DECL_LINK( CBHdl
, CheckBox
* );
133 DECL_LINK(MetricHdl
, void *);
134 DECL_LINK( AlignHdl
, CheckBox
* );
138 DECL_LINK( UpdateHdl
, CheckBox
* );
140 ScTpLayoutOptions( Window
* pParent
,
141 const SfxItemSet
& rArgSet
);
142 ~ScTpLayoutOptions();
145 static SfxTabPage
* Create ( Window
* pParent
,
146 const SfxItemSet
& rCoreSet
);
147 virtual sal_Bool
FillItemSet ( SfxItemSet
& rCoreSet
);
148 virtual void Reset ( const SfxItemSet
& rCoreSet
);
149 using SfxTabPage::ActivatePage
;
150 using SfxTabPage::DeactivatePage
;
151 virtual void ActivatePage( const SfxItemSet
& );
152 virtual int DeactivatePage( SfxItemSet
* pSet
= 0 );
154 void SetDocument(ScDocument
* pPtr
){pDoc
= pPtr
;}
157 //========================================================================
159 #endif // SC_TPUSRLST_HXX
161 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */