Stop leaking all ScPostIt instances.
[LibreOffice.git] / sc / source / ui / inc / tpview.hxx
blob2b99c09d663781ca6795cb41a27a1c71587a4c24
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 ListBox* pGridLB;
39 FixedText* pColorFT;
40 ColorListBox* pColorLB;
41 CheckBox* pBreakCB;
42 CheckBox* pGuideLineCB;
44 CheckBox* pFormulaCB;
45 CheckBox* pNilCB;
46 CheckBox* pAnnotCB;
47 CheckBox* pValueCB;
48 CheckBox* pAnchorCB;
49 CheckBox* pClipMarkCB;
50 CheckBox* pRangeFindCB;
52 ListBox* pObjGrfLB;
53 ListBox* pDiagramLB;
54 ListBox* pDrawLB;
56 CheckBox* pSyncZoomCB;
58 CheckBox* pRowColHeaderCB;
59 CheckBox* pHScrollCB;
60 CheckBox* pVScrollCB;
61 CheckBox* pTblRegCB;
62 CheckBox* pOutlineCB;
64 ScViewOptions* pLocalOptions;
66 void InitGridOpt();
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();
75 public:
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 //========================================================================
90 class ScDocument;
91 class ScTpLayoutOptions : public SfxTabPage
93 ListBox* m_pUnitLB;
94 MetricField* m_pTabMF;
96 RadioButton* m_pAlwaysRB;
97 RadioButton* m_pRequestRB;
98 RadioButton* m_pNeverRB;
100 CheckBox* m_pAlignCB;
101 ListBox* m_pAlignLB;
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* );
117 ScDocument *pDoc;
119 DECL_LINK( UpdateHdl, CheckBox* );
121 ScTpLayoutOptions( Window* pParent,
122 const SfxItemSet& rArgSet );
123 ~ScTpLayoutOptions();
125 public:
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: */