bump product version to 4.1.6.2
[LibreOffice.git] / sc / source / ui / inc / tpview.hxx
blob0bb22a5e6f91412114aba86786ef56d2b71142ca
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
20 #ifndef SC_TPVIEW_HXX
21 #define SC_TPVIEW_HXX
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 //========================================================================
32 class ScViewOptions;
34 //========================================================================
36 class ScTpContentOptions : public SfxTabPage
38 FixedLine aLinesGB;
39 FixedText aGridFT;
40 ListBox aGridLB;
41 FixedText aColorFT;
42 ColorListBox aColorLB;
43 CheckBox aBreakCB;
44 CheckBox aGuideLineCB;
46 FixedLine aSeparator1FL;
48 FixedLine aDisplayGB;
49 CheckBox aFormulaCB;
50 CheckBox aNilCB;
51 CheckBox aAnnotCB;
52 CheckBox aValueCB;
53 CheckBox aAnchorCB;
54 CheckBox aClipMarkCB;
55 CheckBox aRangeFindCB;
57 FixedLine aObjectGB;
58 FixedText aObjGrfFT;
59 ListBox aObjGrfLB;
60 FixedText aDiagramFT;
61 ListBox aDiagramLB;
62 FixedText aDrawFT;
63 ListBox aDrawLB;
65 FixedLine aZoomGB;
66 CheckBox aSyncZoomCB;
68 FixedLine aSeparator2FL;
70 FixedLine aWindowGB;
71 CheckBox aRowColHeaderCB;
72 CheckBox aHScrollCB;
73 CheckBox aVScrollCB;
74 CheckBox aTblRegCB;
75 CheckBox aOutlineCB;
77 ScViewOptions* pLocalOptions;
79 void InitGridOpt();
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();
88 public:
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 //========================================================================
103 class ScDocument;
104 class ScTpLayoutOptions : public SfxTabPage
106 FixedLine aUnitGB;
107 FixedText aUnitFT;
108 ListBox aUnitLB;
109 FixedText aTabFT;
110 MetricField aTabMF;
112 FixedLine aSeparatorFL;
113 FixedLine aLinkGB;
114 FixedText aLinkFT;
115 RadioButton aAlwaysRB;
116 RadioButton aRequestRB;
117 RadioButton aNeverRB;
119 FixedLine aOptionsGB;
120 CheckBox aAlignCB;
121 ListBox aAlignLB;
122 CheckBox aEditModeCB;
123 CheckBox aFormatCB;
124 CheckBox aExpRefCB;
125 CheckBox aMarkHdrCB;
126 CheckBox aTextFmtCB;
127 CheckBox aReplWarnCB;
129 SvxStringArray aUnitArr;
131 DECL_LINK( CBHdl, CheckBox* );
133 DECL_LINK(MetricHdl, void *);
134 DECL_LINK( AlignHdl, CheckBox* );
136 ScDocument *pDoc;
138 DECL_LINK( UpdateHdl, CheckBox* );
140 ScTpLayoutOptions( Window* pParent,
141 const SfxItemSet& rArgSet );
142 ~ScTpLayoutOptions();
144 public:
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: */