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 #pragma once
21 
22 #include <sfx2/tabdlg.hxx>
23 #include <svx/colorbox.hxx>
24 
25 class ScViewOptions;
26 
28 {
29  std::unique_ptr<ScViewOptions> m_xLocalOptions;
30 
31  std::unique_ptr<weld::ComboBox> m_xGridLB;
32  std::unique_ptr<weld::Label> m_xColorFT;
33  std::unique_ptr<ColorListBox> m_xColorLB;
34  std::unique_ptr<weld::CheckButton> m_xBreakCB;
35  std::unique_ptr<weld::CheckButton> m_xGuideLineCB;
36 
37  std::unique_ptr<weld::CheckButton> m_xFormulaCB;
38  std::unique_ptr<weld::CheckButton> m_xNilCB;
39  std::unique_ptr<weld::CheckButton> m_xAnnotCB;
40  std::unique_ptr<weld::CheckButton> m_xValueCB;
41  std::unique_ptr<weld::CheckButton> m_xAnchorCB;
42  std::unique_ptr<weld::CheckButton> m_xClipMarkCB;
43  std::unique_ptr<weld::CheckButton> m_xRangeFindCB;
44 
45  std::unique_ptr<weld::ComboBox> m_xObjGrfLB;
46  std::unique_ptr<weld::ComboBox> m_xDiagramLB;
47  std::unique_ptr<weld::ComboBox> m_xDrawLB;
48 
49  std::unique_ptr<weld::CheckButton> m_xSyncZoomCB;
50 
51  std::unique_ptr<weld::CheckButton> m_xRowColHeaderCB;
52  std::unique_ptr<weld::CheckButton> m_xHScrollCB;
53  std::unique_ptr<weld::CheckButton> m_xVScrollCB;
54  std::unique_ptr<weld::CheckButton> m_xTblRegCB;
55  std::unique_ptr<weld::CheckButton> m_xOutlineCB;
56  std::unique_ptr<weld::CheckButton> m_xSummaryCB;
57 
58  void InitGridOpt();
59  DECL_LINK( GridHdl, weld::ComboBox&, void );
60  DECL_LINK( SelLbObjHdl, weld::ComboBox&, void );
61  DECL_LINK( CBHdl, weld::ToggleButton&, void );
62 
63 public:
64  ScTpContentOptions(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rArgSet);
65  static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rCoreSet);
66  virtual ~ScTpContentOptions() override;
67  virtual bool FillItemSet ( SfxItemSet* rCoreSet ) override;
68  virtual void Reset ( const SfxItemSet* rCoreSet ) override;
69  virtual void ActivatePage( const SfxItemSet& ) override;
70  virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
71 
72 };
73 
74 class ScDocument;
76 {
78 
79  std::unique_ptr<weld::ComboBox> m_xUnitLB;
80  std::unique_ptr<weld::MetricSpinButton> m_xTabMF;
81 
82  std::unique_ptr<weld::RadioButton> m_xAlwaysRB;
83  std::unique_ptr<weld::RadioButton> m_xRequestRB;
84  std::unique_ptr<weld::RadioButton> m_xNeverRB;
85 
86  std::unique_ptr<weld::CheckButton> m_xAlignCB;
87  std::unique_ptr<weld::ComboBox> m_xAlignLB;
88  std::unique_ptr<weld::CheckButton> m_xEditModeCB;
89  std::unique_ptr<weld::CheckButton> m_xFormatCB;
90  std::unique_ptr<weld::CheckButton> m_xExpRefCB;
91  std::unique_ptr<weld::CheckButton> m_xSortRefUpdateCB;
92  std::unique_ptr<weld::CheckButton> m_xMarkHdrCB;
93  std::unique_ptr<weld::CheckButton> m_xTextFmtCB;
94  std::unique_ptr<weld::CheckButton> m_xReplWarnCB;
95  std::unique_ptr<weld::CheckButton> m_xLegacyCellSelectionCB;
96  std::unique_ptr<weld::CheckButton> m_xEnterPasteModeCB;
97 
98  DECL_LINK(MetricHdl, weld::ComboBox&, void );
99  DECL_LINK( AlignHdl, weld::ToggleButton&, void );
100 
101 
102 public:
103  ScTpLayoutOptions(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rArgSet );
104  static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController,
105  const SfxItemSet* rCoreSet);
106  virtual ~ScTpLayoutOptions() override;
107  virtual bool FillItemSet ( SfxItemSet* rCoreSet ) override;
108  virtual void Reset ( const SfxItemSet* rCoreSet ) override;
109  virtual void ActivatePage( const SfxItemSet& ) override;
110  virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
111 };
112 
113 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::ComboBox > m_xObjGrfLB
Definition: tpview.hxx:45
std::unique_ptr< weld::CheckButton > m_xOutlineCB
Definition: tpview.hxx:55
virtual void ActivatePage(const SfxItemSet &) override
Definition: tpview.cxx:207
virtual void ActivatePage(const SfxItemSet &) override
Definition: tpview.cxx:582
void InitGridOpt()
Definition: tpview.cxx:258
const SfxItemSet * pSet
DECL_LINK(GridHdl, weld::ComboBox &, void)
virtual bool FillItemSet(SfxItemSet *rCoreSet) override
Definition: tpview.cxx:100
virtual void Reset(const SfxItemSet *rCoreSet) override
Definition: tpview.cxx:147
std::unique_ptr< weld::CheckButton > m_xRowColHeaderCB
Definition: tpview.hxx:51
std::unique_ptr< weld::CheckButton > m_xSyncZoomCB
Definition: tpview.hxx:49
std::unique_ptr< weld::CheckButton > m_xTextFmtCB
Definition: tpview.hxx:93
virtual ~ScTpLayoutOptions() override
Definition: tpview.cxx:354
std::unique_ptr< weld::CheckButton > m_xRangeFindCB
Definition: tpview.hxx:43
std::unique_ptr< weld::CheckButton > m_xExpRefCB
Definition: tpview.hxx:90
virtual ~ScTpContentOptions() override
Definition: tpview.cxx:89
std::unique_ptr< weld::RadioButton > m_xRequestRB
Definition: tpview.hxx:83
std::unique_ptr< weld::CheckButton > m_xGuideLineCB
Definition: tpview.hxx:35
std::unique_ptr< weld::CheckButton > m_xMarkHdrCB
Definition: tpview.hxx:92
std::unique_ptr< weld::CheckButton > m_xHScrollCB
Definition: tpview.hxx:52
std::unique_ptr< weld::CheckButton > m_xValueCB
Definition: tpview.hxx:40
virtual bool FillItemSet(SfxItemSet *rCoreSet) override
Definition: tpview.cxx:369
std::unique_ptr< weld::CheckButton > m_xLegacyCellSelectionCB
Definition: tpview.hxx:95
std::unique_ptr< weld::ComboBox > m_xUnitLB
Definition: tpview.hxx:79
std::unique_ptr< weld::CheckButton > m_xClipMarkCB
Definition: tpview.hxx:42
std::unique_ptr< weld::ComboBox > m_xGridLB
Definition: tpview.hxx:31
std::unique_ptr< weld::CheckButton > m_xEditModeCB
Definition: tpview.hxx:88
DECL_LINK(MetricHdl, weld::ComboBox &, void)
std::unique_ptr< weld::CheckButton > m_xNilCB
Definition: tpview.hxx:38
std::unique_ptr< weld::CheckButton > m_xTblRegCB
Definition: tpview.hxx:54
std::unique_ptr< weld::CheckButton > m_xAnchorCB
Definition: tpview.hxx:41
virtual void Reset(const SfxItemSet *rCoreSet) override
Definition: tpview.cxx:477
std::unique_ptr< ScViewOptions > m_xLocalOptions
Definition: tpview.hxx:29
std::unique_ptr< weld::ComboBox > m_xDiagramLB
Definition: tpview.hxx:46
ScTpLayoutOptions(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rArgSet)
Definition: tpview.cxx:304
std::unique_ptr< weld::CheckButton > m_xSummaryCB
Definition: tpview.hxx:56
std::unique_ptr< ColorListBox > m_xColorLB
Definition: tpview.hxx:33
std::unique_ptr< weld::CheckButton > m_xEnterPasteModeCB
Definition: tpview.hxx:96
std::unique_ptr< weld::CheckButton > m_xReplWarnCB
Definition: tpview.hxx:94
std::unique_ptr< weld::CheckButton > m_xAnnotCB
Definition: tpview.hxx:39
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rCoreSet)
Definition: tpview.cxx:358
std::unique_ptr< weld::CheckButton > m_xSortRefUpdateCB
Definition: tpview.hxx:91
std::unique_ptr< weld::MetricSpinButton > m_xTabMF
Definition: tpview.hxx:80
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tpview.cxx:586
std::unique_ptr< weld::CheckButton > m_xVScrollCB
Definition: tpview.hxx:53
std::unique_ptr< weld::CheckButton > m_xFormatCB
Definition: tpview.hxx:89
std::unique_ptr< weld::CheckButton > m_xAlignCB
Definition: tpview.hxx:86
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tpview.cxx:214
std::unique_ptr< weld::CheckButton > m_xFormulaCB
Definition: tpview.hxx:37
DeactivateRC
std::unique_ptr< weld::ComboBox > m_xDrawLB
Definition: tpview.hxx:47
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rCoreSet)
Definition: tpview.cxx:94
std::unique_ptr< weld::RadioButton > m_xAlwaysRB
Definition: tpview.hxx:82
ScDocument * pDoc
Definition: tpview.hxx:77
std::unique_ptr< weld::CheckButton > m_xBreakCB
Definition: tpview.hxx:34
std::unique_ptr< weld::RadioButton > m_xNeverRB
Definition: tpview.hxx:84
std::unique_ptr< weld::Label > m_xColorFT
Definition: tpview.hxx:32
std::unique_ptr< weld::ComboBox > m_xAlignLB
Definition: tpview.hxx:87
ScTpContentOptions(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rArgSet)
Definition: tpview.cxx:35