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
25class ScViewOptions;
26
28{
29 std::unique_ptr<ScViewOptions> m_xLocalOptions;
30
31 std::unique_ptr<weld::ComboBox> m_xGridLB;
32 std::unique_ptr<weld::CheckButton> m_xBreakCB;
33 std::unique_ptr<weld::CheckButton> m_xGuideLineCB;
34
35 std::unique_ptr<weld::CheckButton> m_xFormulaCB;
36 std::unique_ptr<weld::CheckButton> m_xNilCB;
37 std::unique_ptr<weld::CheckButton> m_xAnnotCB;
38 std::unique_ptr<weld::CheckButton> m_xFormulaMarkCB;
39 std::unique_ptr<weld::CheckButton> m_xValueCB;
40 std::unique_ptr<weld::CheckButton> m_xAnchorCB;
41 std::unique_ptr<weld::CheckButton> m_xRangeFindCB;
42
43 std::unique_ptr<weld::ComboBox> m_xObjGrfLB;
44 std::unique_ptr<weld::ComboBox> m_xDiagramLB;
45 std::unique_ptr<weld::ComboBox> m_xDrawLB;
46
47 std::unique_ptr<weld::CheckButton> m_xSyncZoomCB;
48
49 std::unique_ptr<weld::CheckButton> m_xRowColHeaderCB;
50 std::unique_ptr<weld::CheckButton> m_xHScrollCB;
51 std::unique_ptr<weld::CheckButton> m_xVScrollCB;
52 std::unique_ptr<weld::CheckButton> m_xTblRegCB;
53 std::unique_ptr<weld::CheckButton> m_xOutlineCB;
54 std::unique_ptr<weld::CheckButton> m_xSummaryCB;
55 std::unique_ptr<weld::RadioButton> m_xThemedCursorRB;
56 std::unique_ptr<weld::RadioButton> m_xSystemCursorRB;
57
58 void InitGridOpt();
59 DECL_LINK( GridHdl, weld::ComboBox&, void );
60 DECL_LINK( SelLbObjHdl, weld::ComboBox&, void );
61 DECL_LINK( CBHdl, weld::Toggleable&, void );
62
63public:
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
74class 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_xReplWarnCB;
94 std::unique_ptr<weld::CheckButton> m_xLegacyCellSelectionCB;
95 std::unique_ptr<weld::CheckButton> m_xEnterPasteModeCB;
96
97 DECL_LINK(MetricHdl, weld::ComboBox&, void );
98 DECL_LINK( AlignHdl, weld::Toggleable&, void );
99
100
101public:
102 ScTpLayoutOptions(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rArgSet );
103 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController,
104 const SfxItemSet* rCoreSet);
105 virtual ~ScTpLayoutOptions() override;
106 virtual bool FillItemSet ( SfxItemSet* rCoreSet ) override;
107 virtual void Reset ( const SfxItemSet* rCoreSet ) override;
108 virtual void ActivatePage( const SfxItemSet& ) override;
109 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
110};
111
112/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< ScViewOptions > m_xLocalOptions
Definition: tpview.hxx:29
ScTpContentOptions(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rArgSet)
Definition: tpview.cxx:35
DECL_LINK(GridHdl, weld::ComboBox &, void)
std::unique_ptr< weld::CheckButton > m_xRangeFindCB
Definition: tpview.hxx:41
std::unique_ptr< weld::CheckButton > m_xGuideLineCB
Definition: tpview.hxx:33
std::unique_ptr< weld::CheckButton > m_xOutlineCB
Definition: tpview.hxx:53
std::unique_ptr< weld::CheckButton > m_xValueCB
Definition: tpview.hxx:39
std::unique_ptr< weld::ComboBox > m_xGridLB
Definition: tpview.hxx:31
std::unique_ptr< weld::CheckButton > m_xVScrollCB
Definition: tpview.hxx:51
virtual ~ScTpContentOptions() override
Definition: tpview.cxx:87
std::unique_ptr< weld::CheckButton > m_xNilCB
Definition: tpview.hxx:36
std::unique_ptr< weld::CheckButton > m_xFormulaMarkCB
Definition: tpview.hxx:38
std::unique_ptr< weld::ComboBox > m_xDiagramLB
Definition: tpview.hxx:44
std::unique_ptr< weld::CheckButton > m_xRowColHeaderCB
Definition: tpview.hxx:49
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tpview.cxx:205
std::unique_ptr< weld::CheckButton > m_xFormulaCB
Definition: tpview.hxx:35
std::unique_ptr< weld::CheckButton > m_xHScrollCB
Definition: tpview.hxx:50
std::unique_ptr< weld::CheckButton > m_xSummaryCB
Definition: tpview.hxx:54
virtual void Reset(const SfxItemSet *rCoreSet) override
Definition: tpview.cxx:137
std::unique_ptr< weld::CheckButton > m_xBreakCB
Definition: tpview.hxx:32
std::unique_ptr< weld::RadioButton > m_xThemedCursorRB
Definition: tpview.hxx:55
virtual void ActivatePage(const SfxItemSet &) override
Definition: tpview.cxx:199
std::unique_ptr< weld::CheckButton > m_xTblRegCB
Definition: tpview.hxx:52
std::unique_ptr< weld::ComboBox > m_xDrawLB
Definition: tpview.hxx:45
std::unique_ptr< weld::RadioButton > m_xSystemCursorRB
Definition: tpview.hxx:56
std::unique_ptr< weld::CheckButton > m_xAnnotCB
Definition: tpview.hxx:37
std::unique_ptr< weld::ComboBox > m_xObjGrfLB
Definition: tpview.hxx:43
std::unique_ptr< weld::CheckButton > m_xSyncZoomCB
Definition: tpview.hxx:47
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rCoreSet)
Definition: tpview.cxx:91
DECL_LINK(SelLbObjHdl, weld::ComboBox &, void)
virtual bool FillItemSet(SfxItemSet *rCoreSet) override
Definition: tpview.cxx:97
std::unique_ptr< weld::CheckButton > m_xAnchorCB
Definition: tpview.hxx:40
void InitGridOpt()
Definition: tpview.cxx:250
DECL_LINK(CBHdl, weld::Toggleable &, void)
std::unique_ptr< weld::RadioButton > m_xAlwaysRB
Definition: tpview.hxx:82
std::unique_ptr< weld::CheckButton > m_xExpRefCB
Definition: tpview.hxx:90
DECL_LINK(MetricHdl, weld::ComboBox &, void)
ScTpLayoutOptions(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rArgSet)
Definition: tpview.cxx:279
DECL_LINK(AlignHdl, weld::Toggleable &, void)
std::unique_ptr< weld::RadioButton > m_xRequestRB
Definition: tpview.hxx:83
virtual void ActivatePage(const SfxItemSet &) override
Definition: tpview.cxx:545
std::unique_ptr< weld::MetricSpinButton > m_xTabMF
Definition: tpview.hxx:80
std::unique_ptr< weld::CheckButton > m_xFormatCB
Definition: tpview.hxx:89
std::unique_ptr< weld::CheckButton > m_xReplWarnCB
Definition: tpview.hxx:93
std::unique_ptr< weld::CheckButton > m_xAlignCB
Definition: tpview.hxx:86
ScDocument * pDoc
Definition: tpview.hxx:77
std::unique_ptr< weld::CheckButton > m_xLegacyCellSelectionCB
Definition: tpview.hxx:94
std::unique_ptr< weld::CheckButton > m_xSortRefUpdateCB
Definition: tpview.hxx:91
virtual bool FillItemSet(SfxItemSet *rCoreSet) override
Definition: tpview.cxx:343
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tpview.cxx:549
virtual ~ScTpLayoutOptions() override
Definition: tpview.cxx:328
std::unique_ptr< weld::CheckButton > m_xEnterPasteModeCB
Definition: tpview.hxx:95
virtual void Reset(const SfxItemSet *rCoreSet) override
Definition: tpview.cxx:445
std::unique_ptr< weld::CheckButton > m_xEditModeCB
Definition: tpview.hxx:88
std::unique_ptr< weld::CheckButton > m_xMarkHdrCB
Definition: tpview.hxx:92
std::unique_ptr< weld::ComboBox > m_xUnitLB
Definition: tpview.hxx:79
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rCoreSet)
Definition: tpview.cxx:332
std::unique_ptr< weld::ComboBox > m_xAlignLB
Definition: tpview.hxx:87
std::unique_ptr< weld::RadioButton > m_xNeverRB
Definition: tpview.hxx:84
DeactivateRC