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
40 ColorListBox
* pColorLB
;
42 CheckBox
* pGuideLineCB
;
49 CheckBox
* pClipMarkCB
;
50 CheckBox
* pRangeFindCB
;
56 CheckBox
* pSyncZoomCB
;
58 CheckBox
* pRowColHeaderCB
;
64 ScViewOptions
* pLocalOptions
;
67 DECL_LINK( GridHdl
, ListBox
* );
68 DECL_LINK( SelLbObjHdl
, ListBox
* );
69 DECL_LINK( CBHdl
, CheckBox
* );
71 ScTpContentOptions( Window
* pParent
,
72 const SfxItemSet
& rArgSet
);
73 ~ScTpContentOptions();
76 static SfxTabPage
* Create ( Window
* pParent
,
77 const SfxItemSet
& rCoreSet
);
78 virtual sal_Bool
FillItemSet ( SfxItemSet
& rCoreSet
);
79 virtual void Reset ( const SfxItemSet
& rCoreSet
);
80 using SfxTabPage::ActivatePage
;
81 using SfxTabPage::DeactivatePage
;
82 virtual void ActivatePage( const SfxItemSet
& );
83 virtual int DeactivatePage( SfxItemSet
* pSet
= 0 );
88 //========================================================================
91 class ScTpLayoutOptions
: public SfxTabPage
94 MetricField
* m_pTabMF
;
96 RadioButton
* m_pAlwaysRB
;
97 RadioButton
* m_pRequestRB
;
98 RadioButton
* m_pNeverRB
;
100 CheckBox
* m_pAlignCB
;
102 CheckBox
* m_pEditModeCB
;
103 CheckBox
* m_pFormatCB
;
104 CheckBox
* m_pExpRefCB
;
105 CheckBox
* m_pMarkHdrCB
;
106 CheckBox
* m_pTextFmtCB
;
107 CheckBox
* m_pReplWarnCB
;
108 CheckBox
* m_pLegacyCellSelectionCB
;
110 SvxStringArray aUnitArr
;
112 DECL_LINK( CBHdl
, CheckBox
* );
114 DECL_LINK(MetricHdl
, void *);
115 DECL_LINK( AlignHdl
, CheckBox
* );
119 DECL_LINK( UpdateHdl
, CheckBox
* );
121 ScTpLayoutOptions( Window
* pParent
,
122 const SfxItemSet
& rArgSet
);
123 ~ScTpLayoutOptions();
126 static SfxTabPage
* Create ( Window
* pParent
,
127 const SfxItemSet
& rCoreSet
);
128 virtual sal_Bool
FillItemSet ( SfxItemSet
& rCoreSet
);
129 virtual void Reset ( const SfxItemSet
& rCoreSet
);
130 using SfxTabPage::ActivatePage
;
131 using SfxTabPage::DeactivatePage
;
132 virtual void ActivatePage( const SfxItemSet
& );
133 virtual int DeactivatePage( SfxItemSet
* pSet
= 0 );
135 void SetDocument(ScDocument
* pPtr
){pDoc
= pPtr
;}
138 //========================================================================
140 #endif // SC_TPUSRLST_HXX
142 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */