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::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
65public:
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
76class 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_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::Toggleable&, void );
101
102
103public:
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/* 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:36
DECL_LINK(GridHdl, weld::ComboBox &, void)
std::unique_ptr< weld::CheckButton > m_xRangeFindCB
Definition: tpview.hxx:43
std::unique_ptr< weld::CheckButton > m_xGuideLineCB
Definition: tpview.hxx:35
std::unique_ptr< weld::Label > m_xColorFT
Definition: tpview.hxx:32
std::unique_ptr< weld::CheckButton > m_xOutlineCB
Definition: tpview.hxx:55
std::unique_ptr< ColorListBox > m_xColorLB
Definition: tpview.hxx:33
std::unique_ptr< weld::CheckButton > m_xValueCB
Definition: tpview.hxx:40
std::unique_ptr< weld::ComboBox > m_xGridLB
Definition: tpview.hxx:31
std::unique_ptr< weld::CheckButton > m_xVScrollCB
Definition: tpview.hxx:53
virtual ~ScTpContentOptions() override
Definition: tpview.cxx:94
std::unique_ptr< weld::CheckButton > m_xNilCB
Definition: tpview.hxx:38
std::unique_ptr< weld::ComboBox > m_xDiagramLB
Definition: tpview.hxx:46
std::unique_ptr< weld::CheckButton > m_xRowColHeaderCB
Definition: tpview.hxx:51
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tpview.cxx:222
std::unique_ptr< weld::CheckButton > m_xFormulaCB
Definition: tpview.hxx:37
std::unique_ptr< weld::CheckButton > m_xHScrollCB
Definition: tpview.hxx:52
std::unique_ptr< weld::CheckButton > m_xSummaryCB
Definition: tpview.hxx:56
virtual void Reset(const SfxItemSet *rCoreSet) override
Definition: tpview.cxx:153
std::unique_ptr< weld::CheckButton > m_xBreakCB
Definition: tpview.hxx:34
std::unique_ptr< weld::RadioButton > m_xThemedCursorRB
Definition: tpview.hxx:57
virtual void ActivatePage(const SfxItemSet &) override
Definition: tpview.cxx:216
std::unique_ptr< weld::CheckButton > m_xTblRegCB
Definition: tpview.hxx:54
std::unique_ptr< weld::ComboBox > m_xDrawLB
Definition: tpview.hxx:47
std::unique_ptr< weld::RadioButton > m_xSystemCursorRB
Definition: tpview.hxx:58
std::unique_ptr< weld::CheckButton > m_xAnnotCB
Definition: tpview.hxx:39
std::unique_ptr< weld::ComboBox > m_xObjGrfLB
Definition: tpview.hxx:45
std::unique_ptr< weld::CheckButton > m_xSyncZoomCB
Definition: tpview.hxx:49
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rCoreSet)
Definition: tpview.cxx:99
DECL_LINK(SelLbObjHdl, weld::ComboBox &, void)
virtual bool FillItemSet(SfxItemSet *rCoreSet) override
Definition: tpview.cxx:105
std::unique_ptr< weld::CheckButton > m_xAnchorCB
Definition: tpview.hxx:41
void InitGridOpt()
Definition: tpview.cxx:267
DECL_LINK(CBHdl, weld::Toggleable &, void)
std::unique_ptr< weld::CheckButton > m_xClipMarkCB
Definition: tpview.hxx:42
std::unique_ptr< weld::RadioButton > m_xAlwaysRB
Definition: tpview.hxx:84
std::unique_ptr< weld::CheckButton > m_xExpRefCB
Definition: tpview.hxx:92
DECL_LINK(MetricHdl, weld::ComboBox &, void)
ScTpLayoutOptions(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rArgSet)
Definition: tpview.cxx:313
DECL_LINK(AlignHdl, weld::Toggleable &, void)
std::unique_ptr< weld::RadioButton > m_xRequestRB
Definition: tpview.hxx:85
virtual void ActivatePage(const SfxItemSet &) override
Definition: tpview.cxx:579
std::unique_ptr< weld::MetricSpinButton > m_xTabMF
Definition: tpview.hxx:82
std::unique_ptr< weld::CheckButton > m_xFormatCB
Definition: tpview.hxx:91
std::unique_ptr< weld::CheckButton > m_xReplWarnCB
Definition: tpview.hxx:95
std::unique_ptr< weld::CheckButton > m_xAlignCB
Definition: tpview.hxx:88
ScDocument * pDoc
Definition: tpview.hxx:79
std::unique_ptr< weld::CheckButton > m_xLegacyCellSelectionCB
Definition: tpview.hxx:96
std::unique_ptr< weld::CheckButton > m_xSortRefUpdateCB
Definition: tpview.hxx:93
virtual bool FillItemSet(SfxItemSet *rCoreSet) override
Definition: tpview.cxx:377
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tpview.cxx:583
virtual ~ScTpLayoutOptions() override
Definition: tpview.cxx:362
std::unique_ptr< weld::CheckButton > m_xEnterPasteModeCB
Definition: tpview.hxx:97
virtual void Reset(const SfxItemSet *rCoreSet) override
Definition: tpview.cxx:479
std::unique_ptr< weld::CheckButton > m_xEditModeCB
Definition: tpview.hxx:90
std::unique_ptr< weld::CheckButton > m_xMarkHdrCB
Definition: tpview.hxx:94
std::unique_ptr< weld::ComboBox > m_xUnitLB
Definition: tpview.hxx:81
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rCoreSet)
Definition: tpview.cxx:366
std::unique_ptr< weld::ComboBox > m_xAlignLB
Definition: tpview.hxx:89
std::unique_ptr< weld::RadioButton > m_xNeverRB
Definition: tpview.hxx:86
const SfxItemSet * pSet
DeactivateRC