LibreOffice Module sc (master)  1
tpview.hxx
Go to the documentation of this file.
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 <svx/colorbox.hxx>
25 
26 class ScViewOptions;
27 
29 {
30  std::unique_ptr<ScViewOptions> m_xLocalOptions;
31 
32  std::unique_ptr<weld::ComboBox> m_xGridLB;
33  std::unique_ptr<weld::Label> m_xColorFT;
34  std::unique_ptr<ColorListBox> m_xColorLB;
35  std::unique_ptr<weld::CheckButton> m_xBreakCB;
36  std::unique_ptr<weld::CheckButton> m_xGuideLineCB;
37 
38  std::unique_ptr<weld::CheckButton> m_xFormulaCB;
39  std::unique_ptr<weld::CheckButton> m_xNilCB;
40  std::unique_ptr<weld::CheckButton> m_xAnnotCB;
41  std::unique_ptr<weld::CheckButton> m_xValueCB;
42  std::unique_ptr<weld::CheckButton> m_xAnchorCB;
43  std::unique_ptr<weld::CheckButton> m_xClipMarkCB;
44  std::unique_ptr<weld::CheckButton> m_xRangeFindCB;
45 
46  std::unique_ptr<weld::ComboBox> m_xObjGrfLB;
47  std::unique_ptr<weld::ComboBox> m_xDiagramLB;
48  std::unique_ptr<weld::ComboBox> m_xDrawLB;
49 
50  std::unique_ptr<weld::CheckButton> m_xSyncZoomCB;
51 
52  std::unique_ptr<weld::CheckButton> m_xRowColHeaderCB;
53  std::unique_ptr<weld::CheckButton> m_xHScrollCB;
54  std::unique_ptr<weld::CheckButton> m_xVScrollCB;
55  std::unique_ptr<weld::CheckButton> m_xTblRegCB;
56  std::unique_ptr<weld::CheckButton> m_xOutlineCB;
57  std::unique_ptr<weld::CheckButton> m_xSummaryCB;
58 
59  void InitGridOpt();
60  DECL_LINK( GridHdl, weld::ComboBox&, void );
61  DECL_LINK( SelLbObjHdl, weld::ComboBox&, void );
62  DECL_LINK( CBHdl, weld::ToggleButton&, void );
63 
64 public:
65  ScTpContentOptions(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rArgSet);
66  static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rCoreSet);
67  virtual ~ScTpContentOptions() override;
68  virtual bool FillItemSet ( SfxItemSet* rCoreSet ) override;
69  virtual void Reset ( const SfxItemSet* rCoreSet ) override;
70  virtual void ActivatePage( const SfxItemSet& ) override;
71  virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
72 
73 };
74 
75 class ScDocument;
77 {
79 
80  std::unique_ptr<weld::ComboBox> m_xUnitLB;
81  std::unique_ptr<weld::MetricSpinButton> m_xTabMF;
82 
83  std::unique_ptr<weld::RadioButton> m_xAlwaysRB;
84  std::unique_ptr<weld::RadioButton> m_xRequestRB;
85  std::unique_ptr<weld::RadioButton> m_xNeverRB;
86 
87  std::unique_ptr<weld::CheckButton> m_xAlignCB;
88  std::unique_ptr<weld::ComboBox> m_xAlignLB;
89  std::unique_ptr<weld::CheckButton> m_xEditModeCB;
90  std::unique_ptr<weld::CheckButton> m_xFormatCB;
91  std::unique_ptr<weld::CheckButton> m_xExpRefCB;
92  std::unique_ptr<weld::CheckButton> m_xSortRefUpdateCB;
93  std::unique_ptr<weld::CheckButton> m_xMarkHdrCB;
94  std::unique_ptr<weld::CheckButton> m_xTextFmtCB;
95  std::unique_ptr<weld::CheckButton> m_xReplWarnCB;
96  std::unique_ptr<weld::CheckButton> m_xLegacyCellSelectionCB;
97  std::unique_ptr<weld::CheckButton> m_xEnterPasteModeCB;
98 
99  DECL_LINK(MetricHdl, weld::ComboBox&, void );
100  DECL_LINK( AlignHdl, weld::ToggleButton&, void );
101 
102 
103 public:
104  ScTpLayoutOptions(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rArgSet );
105  static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController,
106  const SfxItemSet* rCoreSet);
107  virtual ~ScTpLayoutOptions() override;
108  virtual bool FillItemSet ( SfxItemSet* rCoreSet ) override;
109  virtual void Reset ( const SfxItemSet* rCoreSet ) override;
110  virtual void ActivatePage( const SfxItemSet& ) override;
111  virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
112 };
113 
114 #endif // INCLUDED_SC_SOURCE_UI_INC_TPVIEW_HXX
115 
116 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::ComboBox > m_xObjGrfLB
Definition: tpview.hxx:46
std::unique_ptr< weld::CheckButton > m_xOutlineCB
Definition: tpview.hxx:56
virtual void ActivatePage(const SfxItemSet &) override
Definition: tpview.cxx:206
virtual void ActivatePage(const SfxItemSet &) override
Definition: tpview.cxx:581
void InitGridOpt()
Definition: tpview.cxx:257
const SfxItemSet * pSet
DECL_LINK(GridHdl, weld::ComboBox &, void)
virtual bool FillItemSet(SfxItemSet *rCoreSet) override
Definition: tpview.cxx:99
virtual void Reset(const SfxItemSet *rCoreSet) override
Definition: tpview.cxx:146
std::unique_ptr< weld::CheckButton > m_xRowColHeaderCB
Definition: tpview.hxx:52
std::unique_ptr< weld::CheckButton > m_xSyncZoomCB
Definition: tpview.hxx:50
std::unique_ptr< weld::CheckButton > m_xTextFmtCB
Definition: tpview.hxx:94
virtual ~ScTpLayoutOptions() override
Definition: tpview.cxx:353
std::unique_ptr< weld::CheckButton > m_xRangeFindCB
Definition: tpview.hxx:44
std::unique_ptr< weld::CheckButton > m_xExpRefCB
Definition: tpview.hxx:91
virtual ~ScTpContentOptions() override
Definition: tpview.cxx:88
std::unique_ptr< weld::RadioButton > m_xRequestRB
Definition: tpview.hxx:84
std::unique_ptr< weld::CheckButton > m_xGuideLineCB
Definition: tpview.hxx:36
std::unique_ptr< weld::CheckButton > m_xMarkHdrCB
Definition: tpview.hxx:93
std::unique_ptr< weld::CheckButton > m_xHScrollCB
Definition: tpview.hxx:53
std::unique_ptr< weld::CheckButton > m_xValueCB
Definition: tpview.hxx:41
virtual bool FillItemSet(SfxItemSet *rCoreSet) override
Definition: tpview.cxx:368
std::unique_ptr< weld::CheckButton > m_xLegacyCellSelectionCB
Definition: tpview.hxx:96
std::unique_ptr< weld::ComboBox > m_xUnitLB
Definition: tpview.hxx:80
std::unique_ptr< weld::CheckButton > m_xClipMarkCB
Definition: tpview.hxx:43
std::unique_ptr< weld::ComboBox > m_xGridLB
Definition: tpview.hxx:32
std::unique_ptr< weld::CheckButton > m_xEditModeCB
Definition: tpview.hxx:89
DECL_LINK(MetricHdl, weld::ComboBox &, void)
std::unique_ptr< weld::CheckButton > m_xNilCB
Definition: tpview.hxx:39
std::unique_ptr< weld::CheckButton > m_xTblRegCB
Definition: tpview.hxx:55
std::unique_ptr< weld::CheckButton > m_xAnchorCB
Definition: tpview.hxx:42
virtual void Reset(const SfxItemSet *rCoreSet) override
Definition: tpview.cxx:476
std::unique_ptr< ScViewOptions > m_xLocalOptions
Definition: tpview.hxx:30
std::unique_ptr< weld::ComboBox > m_xDiagramLB
Definition: tpview.hxx:47
ScTpLayoutOptions(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rArgSet)
Definition: tpview.cxx:303
std::unique_ptr< weld::CheckButton > m_xSummaryCB
Definition: tpview.hxx:57
std::unique_ptr< ColorListBox > m_xColorLB
Definition: tpview.hxx:34
std::unique_ptr< weld::CheckButton > m_xEnterPasteModeCB
Definition: tpview.hxx:97
std::unique_ptr< weld::CheckButton > m_xReplWarnCB
Definition: tpview.hxx:95
std::unique_ptr< weld::CheckButton > m_xAnnotCB
Definition: tpview.hxx:40
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rCoreSet)
Definition: tpview.cxx:357
std::unique_ptr< weld::CheckButton > m_xSortRefUpdateCB
Definition: tpview.hxx:92
std::unique_ptr< weld::MetricSpinButton > m_xTabMF
Definition: tpview.hxx:81
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tpview.cxx:585
std::unique_ptr< weld::CheckButton > m_xVScrollCB
Definition: tpview.hxx:54
std::unique_ptr< weld::CheckButton > m_xFormatCB
Definition: tpview.hxx:90
std::unique_ptr< weld::CheckButton > m_xAlignCB
Definition: tpview.hxx:87
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tpview.cxx:213
std::unique_ptr< weld::CheckButton > m_xFormulaCB
Definition: tpview.hxx:38
DeactivateRC
std::unique_ptr< weld::ComboBox > m_xDrawLB
Definition: tpview.hxx:48
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rCoreSet)
Definition: tpview.cxx:93
std::unique_ptr< weld::RadioButton > m_xAlwaysRB
Definition: tpview.hxx:83
ScDocument * pDoc
Definition: tpview.hxx:78
std::unique_ptr< weld::CheckButton > m_xBreakCB
Definition: tpview.hxx:35
std::unique_ptr< weld::RadioButton > m_xNeverRB
Definition: tpview.hxx:85
std::unique_ptr< weld::Label > m_xColorFT
Definition: tpview.hxx:33
std::unique_ptr< weld::ComboBox > m_xAlignLB
Definition: tpview.hxx:88
ScTpContentOptions(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rArgSet)
Definition: tpview.cxx:35