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  std::unique_ptr<weld::RadioButton> m_xThemedCursorRB;
58  std::unique_ptr<weld::RadioButton> m_xSystemCursorRB;
59 
60  void InitGridOpt();
61  DECL_LINK( GridHdl, weld::ComboBox&, void );
62  DECL_LINK( SelLbObjHdl, weld::ComboBox&, void );
63  DECL_LINK( CBHdl, weld::Toggleable&, void );
64 
65 public:
66  ScTpContentOptions(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rArgSet);
67  static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rCoreSet);
68  virtual ~ScTpContentOptions() override;
69  virtual bool FillItemSet ( SfxItemSet* rCoreSet ) override;
70  virtual void Reset ( const SfxItemSet* rCoreSet ) override;
71  virtual void ActivatePage( const SfxItemSet& ) override;
72  virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
73 
74 };
75 
76 class ScDocument;
78 {
80 
81  std::unique_ptr<weld::ComboBox> m_xUnitLB;
82  std::unique_ptr<weld::MetricSpinButton> m_xTabMF;
83 
84  std::unique_ptr<weld::RadioButton> m_xAlwaysRB;
85  std::unique_ptr<weld::RadioButton> m_xRequestRB;
86  std::unique_ptr<weld::RadioButton> m_xNeverRB;
87 
88  std::unique_ptr<weld::CheckButton> m_xAlignCB;
89  std::unique_ptr<weld::ComboBox> m_xAlignLB;
90  std::unique_ptr<weld::CheckButton> m_xEditModeCB;
91  std::unique_ptr<weld::CheckButton> m_xFormatCB;
92  std::unique_ptr<weld::CheckButton> m_xExpRefCB;
93  std::unique_ptr<weld::CheckButton> m_xSortRefUpdateCB;
94  std::unique_ptr<weld::CheckButton> m_xMarkHdrCB;
95  std::unique_ptr<weld::CheckButton> m_xTextFmtCB;
96  std::unique_ptr<weld::CheckButton> m_xReplWarnCB;
97  std::unique_ptr<weld::CheckButton> m_xLegacyCellSelectionCB;
98  std::unique_ptr<weld::CheckButton> m_xEnterPasteModeCB;
99 
100  DECL_LINK(MetricHdl, weld::ComboBox&, void );
101  DECL_LINK( AlignHdl, weld::Toggleable&, void );
102 
103 
104 public:
105  ScTpLayoutOptions(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rArgSet );
106  static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController,
107  const SfxItemSet* rCoreSet);
108  virtual ~ScTpLayoutOptions() override;
109  virtual bool FillItemSet ( SfxItemSet* rCoreSet ) override;
110  virtual void Reset ( const SfxItemSet* rCoreSet ) override;
111  virtual void ActivatePage( const SfxItemSet& ) override;
112  virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
113 };
114 
115 /* 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:216
virtual void ActivatePage(const SfxItemSet &) override
Definition: tpview.cxx:592
void InitGridOpt()
Definition: tpview.cxx:268
const SfxItemSet * pSet
DECL_LINK(GridHdl, weld::ComboBox &, void)
virtual bool FillItemSet(SfxItemSet *rCoreSet) override
Definition: tpview.cxx:103
virtual void Reset(const SfxItemSet *rCoreSet) override
Definition: tpview.cxx:151
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:95
virtual ~ScTpLayoutOptions() override
Definition: tpview.cxx:364
std::unique_ptr< weld::CheckButton > m_xRangeFindCB
Definition: tpview.hxx:43
std::unique_ptr< weld::RadioButton > m_xThemedCursorRB
Definition: tpview.hxx:57
std::unique_ptr< weld::CheckButton > m_xExpRefCB
Definition: tpview.hxx:92
virtual ~ScTpContentOptions() override
Definition: tpview.cxx:92
std::unique_ptr< weld::RadioButton > m_xRequestRB
Definition: tpview.hxx:85
std::unique_ptr< weld::CheckButton > m_xGuideLineCB
Definition: tpview.hxx:35
std::unique_ptr< weld::CheckButton > m_xMarkHdrCB
Definition: tpview.hxx:94
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:379
std::unique_ptr< weld::CheckButton > m_xLegacyCellSelectionCB
Definition: tpview.hxx:97
std::unique_ptr< weld::ComboBox > m_xUnitLB
Definition: tpview.hxx:81
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:90
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:487
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:314
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:98
std::unique_ptr< weld::CheckButton > m_xReplWarnCB
Definition: tpview.hxx:96
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:368
std::unique_ptr< weld::CheckButton > m_xSortRefUpdateCB
Definition: tpview.hxx:93
std::unique_ptr< weld::MetricSpinButton > m_xTabMF
Definition: tpview.hxx:82
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tpview.cxx:596
std::unique_ptr< weld::CheckButton > m_xVScrollCB
Definition: tpview.hxx:53
std::unique_ptr< weld::CheckButton > m_xFormatCB
Definition: tpview.hxx:91
std::unique_ptr< weld::CheckButton > m_xAlignCB
Definition: tpview.hxx:88
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tpview.cxx:223
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:97
std::unique_ptr< weld::RadioButton > m_xAlwaysRB
Definition: tpview.hxx:84
ScDocument * pDoc
Definition: tpview.hxx:79
std::unique_ptr< weld::CheckButton > m_xBreakCB
Definition: tpview.hxx:34
std::unique_ptr< weld::RadioButton > m_xNeverRB
Definition: tpview.hxx:86
std::unique_ptr< weld::Label > m_xColorFT
Definition: tpview.hxx:32
std::unique_ptr< weld::ComboBox > m_xAlignLB
Definition: tpview.hxx:89
ScTpContentOptions(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rArgSet)
Definition: tpview.cxx:35
std::unique_ptr< weld::RadioButton > m_xSystemCursorRB
Definition: tpview.hxx:58