fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / sc / source / ui / inc / tpview.hxx
blobbaece6cffd4a087b77cad1b614af93dab6ba1ac2
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 INCLUDED_SC_SOURCE_UI_INC_TPVIEW_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_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 class ScViewOptions;
32 class ScTpContentOptions : public SfxTabPage
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;
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;
49 VclPtr<ListBox> pObjGrfLB;
50 VclPtr<ListBox> pDiagramLB;
51 VclPtr<ListBox> pDrawLB;
53 VclPtr<CheckBox> pSyncZoomCB;
55 VclPtr<CheckBox> pRowColHeaderCB;
56 VclPtr<CheckBox> pHScrollCB;
57 VclPtr<CheckBox> pVScrollCB;
58 VclPtr<CheckBox> pTblRegCB;
59 VclPtr<CheckBox> pOutlineCB;
61 ScViewOptions* pLocalOptions;
63 void InitGridOpt();
64 DECL_LINK( GridHdl, ListBox* );
65 DECL_LINK( SelLbObjHdl, ListBox* );
66 DECL_LINK( CBHdl, CheckBox* );
68 ScTpContentOptions( vcl::Window* pParent,
69 const SfxItemSet& rArgSet );
70 virtual ~ScTpContentOptions();
71 virtual void dispose() SAL_OVERRIDE;
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;
85 class ScDocument;
86 class ScTpLayoutOptions : public SfxTabPage
88 friend class VclPtrInstance<ScTpLayoutOptions>;
89 VclPtr<ListBox> m_pUnitLB;
90 VclPtr<MetricField> m_pTabMF;
92 VclPtr<RadioButton> m_pAlwaysRB;
93 VclPtr<RadioButton> m_pRequestRB;
94 VclPtr<RadioButton> m_pNeverRB;
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;
107 SvxStringArray aUnitArr;
109 DECL_LINK( CBHdl, CheckBox* );
111 DECL_LINK(MetricHdl, void *);
112 DECL_LINK( AlignHdl, CheckBox* );
114 ScDocument *pDoc;
116 DECL_LINK( UpdateHdl, CheckBox* );
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;
132 void SetDocument(ScDocument* pPtr){pDoc = pPtr;}
136 #endif // INCLUDED_SC_SOURCE_UI_INC_TPVIEW_HXX
138 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */