Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
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 .
18 : */
19 :
20 : #ifndef INCLUDED_SC_SOURCE_UI_INC_TPVIEW_HXX
21 : #define INCLUDED_SC_SOURCE_UI_INC_TPVIEW_HXX
22 :
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>
29 :
30 : class ScViewOptions;
31 :
32 : class ScTpContentOptions : public SfxTabPage
33 : {
34 : friend class VclPtr<ScTpContentOptions>;
35 : VclPtr<ListBox> pGridLB;
36 : VclPtr<FixedText> pColorFT;
37 : VclPtr<ColorListBox> pColorLB;
38 : VclPtr<CheckBox> pBreakCB;
39 : VclPtr<CheckBox> pGuideLineCB;
40 :
41 : VclPtr<CheckBox> pFormulaCB;
42 : VclPtr<CheckBox> pNilCB;
43 : VclPtr<CheckBox> pAnnotCB;
44 : VclPtr<CheckBox> pValueCB;
45 : VclPtr<CheckBox> pAnchorCB;
46 : VclPtr<CheckBox> pClipMarkCB;
47 : VclPtr<CheckBox> pRangeFindCB;
48 :
49 : VclPtr<ListBox> pObjGrfLB;
50 : VclPtr<ListBox> pDiagramLB;
51 : VclPtr<ListBox> pDrawLB;
52 :
53 : VclPtr<CheckBox> pSyncZoomCB;
54 :
55 : VclPtr<CheckBox> pRowColHeaderCB;
56 : VclPtr<CheckBox> pHScrollCB;
57 : VclPtr<CheckBox> pVScrollCB;
58 : VclPtr<CheckBox> pTblRegCB;
59 : VclPtr<CheckBox> pOutlineCB;
60 :
61 : ScViewOptions* pLocalOptions;
62 :
63 : void InitGridOpt();
64 : DECL_LINK( GridHdl, ListBox* );
65 : DECL_LINK( SelLbObjHdl, ListBox* );
66 : DECL_LINK( CBHdl, CheckBox* );
67 :
68 : ScTpContentOptions( vcl::Window* pParent,
69 : const SfxItemSet& rArgSet );
70 : virtual ~ScTpContentOptions();
71 : virtual void dispose() SAL_OVERRIDE;
72 :
73 : public:
74 : static VclPtr<SfxTabPage> Create ( vcl::Window* pParent,
75 : const SfxItemSet* rCoreSet );
76 : virtual bool FillItemSet ( SfxItemSet* rCoreSet ) SAL_OVERRIDE;
77 : virtual void Reset ( const SfxItemSet* rCoreSet ) SAL_OVERRIDE;
78 : using SfxTabPage::ActivatePage;
79 : using SfxTabPage::DeactivatePage;
80 : virtual void ActivatePage( const SfxItemSet& ) SAL_OVERRIDE;
81 : virtual sfxpg DeactivatePage( SfxItemSet* pSet = 0 ) SAL_OVERRIDE;
82 :
83 : };
84 :
85 : class ScDocument;
86 : class ScTpLayoutOptions : public SfxTabPage
87 : {
88 : friend class VclPtrInstance<ScTpLayoutOptions>;
89 : VclPtr<ListBox> m_pUnitLB;
90 : VclPtr<MetricField> m_pTabMF;
91 :
92 : VclPtr<RadioButton> m_pAlwaysRB;
93 : VclPtr<RadioButton> m_pRequestRB;
94 : VclPtr<RadioButton> m_pNeverRB;
95 :
96 : VclPtr<CheckBox> m_pAlignCB;
97 : VclPtr<ListBox> m_pAlignLB;
98 : VclPtr<CheckBox> m_pEditModeCB;
99 : VclPtr<CheckBox> m_pFormatCB;
100 : VclPtr<CheckBox> m_pExpRefCB;
101 : VclPtr<CheckBox> m_pSortRefUpdateCB;
102 : VclPtr<CheckBox> m_pMarkHdrCB;
103 : VclPtr<CheckBox> m_pTextFmtCB;
104 : VclPtr<CheckBox> m_pReplWarnCB;
105 : VclPtr<CheckBox> m_pLegacyCellSelectionCB;
106 :
107 : SvxStringArray aUnitArr;
108 :
109 : DECL_LINK( CBHdl, CheckBox* );
110 :
111 : DECL_LINK(MetricHdl, void *);
112 : DECL_LINK( AlignHdl, CheckBox* );
113 :
114 : ScDocument *pDoc;
115 :
116 : DECL_LINK( UpdateHdl, CheckBox* );
117 :
118 : ScTpLayoutOptions( vcl::Window* pParent,
119 : const SfxItemSet& rArgSet );
120 : public:
121 : virtual ~ScTpLayoutOptions();
122 : virtual void dispose() SAL_OVERRIDE;
123 : static VclPtr<SfxTabPage> Create ( vcl::Window* pParent,
124 : const SfxItemSet* rCoreSet );
125 : virtual bool FillItemSet ( SfxItemSet* rCoreSet ) SAL_OVERRIDE;
126 : virtual void Reset ( const SfxItemSet* rCoreSet ) SAL_OVERRIDE;
127 : using SfxTabPage::ActivatePage;
128 : using SfxTabPage::DeactivatePage;
129 : virtual void ActivatePage( const SfxItemSet& ) SAL_OVERRIDE;
130 : virtual sfxpg DeactivatePage( SfxItemSet* pSet = 0 ) SAL_OVERRIDE;
131 :
132 0 : void SetDocument(ScDocument* pPtr){pDoc = pPtr;}
133 :
134 : };
135 :
136 : #endif // INCLUDED_SC_SOURCE_UI_INC_TPVIEW_HXX
137 :
138 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|