tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sc / source / ui / inc / tpview.hxx
blob3ed12e49898287fd33c4fb9ba5b612947fc70283
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #pragma once
22 #include <sfx2/tabdlg.hxx>
23 #include <svx/colorbox.hxx>
25 class ScViewOptions;
27 class ScTpContentOptions : public SfxTabPage
29 std::unique_ptr<ScViewOptions> m_xLocalOptions;
31 std::unique_ptr<weld::ComboBox> m_xGridLB;
32 std::unique_ptr<weld::Widget> m_xGridImg;
33 std::unique_ptr<weld::CheckButton> m_xBreakCB;
34 std::unique_ptr<weld::Widget> m_xBreakImg;
35 std::unique_ptr<weld::CheckButton> m_xGuideLineCB;
36 std::unique_ptr<weld::Widget> m_xGuideLineImg;
38 std::unique_ptr<weld::CheckButton> m_xFormulaCB;
39 std::unique_ptr<weld::Widget> m_xFormulaImg;
40 std::unique_ptr<weld::CheckButton> m_xNilCB;
41 std::unique_ptr<weld::Widget> m_xNilImg;
42 std::unique_ptr<weld::CheckButton> m_xAnnotCB;
43 std::unique_ptr<weld::Widget> m_xAnnotImg;
44 std::unique_ptr<weld::CheckButton> m_xNoteAuthorCB;
45 std::unique_ptr<weld::Widget> m_xNoteAuthorImg;
46 std::unique_ptr<weld::CheckButton> m_xFormulaMarkCB;
47 std::unique_ptr<weld::Widget> m_xFormulaMarkImg;
48 std::unique_ptr<weld::CheckButton> m_xValueCB;
49 std::unique_ptr<weld::Widget> m_xValueImg;
50 std::unique_ptr<weld::CheckButton> m_xColRowHighCB;
51 std::unique_ptr<weld::Widget> m_xColRowHighImg;
52 std::unique_ptr<weld::CheckButton> m_xEditCellBgHighCB;
53 std::unique_ptr<weld::Widget> m_xEditCellBgHighImg;
54 std::unique_ptr<weld::CheckButton> m_xAnchorCB;
55 std::unique_ptr<weld::Widget> m_xAnchorImg;
56 std::unique_ptr<weld::CheckButton> m_xRangeFindCB;
57 std::unique_ptr<weld::Widget> m_xRangeFindImg;
59 std::unique_ptr<weld::ComboBox> m_xObjGrfLB;
60 std::unique_ptr<weld::Widget> m_xObjGrfImg;
61 std::unique_ptr<weld::ComboBox> m_xDiagramLB;
62 std::unique_ptr<weld::Widget> m_xDiagramImg;
63 std::unique_ptr<weld::ComboBox> m_xDrawLB;
64 std::unique_ptr<weld::Widget> m_xDrawImg;
66 std::unique_ptr<weld::CheckButton> m_xSyncZoomCB;
67 std::unique_ptr<weld::Widget> m_xSyncZoomImg;
69 std::unique_ptr<weld::CheckButton> m_xRowColHeaderCB;
70 std::unique_ptr<weld::Widget> m_xRowColHeaderImg;
71 std::unique_ptr<weld::CheckButton> m_xHScrollCB;
72 std::unique_ptr<weld::Widget> m_xHScrollImg;
73 std::unique_ptr<weld::CheckButton> m_xVScrollCB;
74 std::unique_ptr<weld::Widget> m_xVScrollImg;
75 std::unique_ptr<weld::CheckButton> m_xTblRegCB;
76 std::unique_ptr<weld::Widget> m_xTblRegImg;
77 std::unique_ptr<weld::CheckButton> m_xOutlineCB;
78 std::unique_ptr<weld::Widget> m_xOutlineImg;
79 std::unique_ptr<weld::CheckButton> m_xSummaryCB;
80 std::unique_ptr<weld::Widget> m_xSummaryImg;
81 std::unique_ptr<weld::RadioButton> m_xThemedCursorRB;
82 std::unique_ptr<weld::RadioButton> m_xSystemCursorRB;
83 std::unique_ptr<weld::Widget> m_xCursorImg;
85 void InitGridOpt();
86 DECL_LINK( GridHdl, weld::ComboBox&, void );
87 DECL_LINK( SelLbObjHdl, weld::ComboBox&, void );
88 DECL_LINK( CBHdl, weld::Toggleable&, void );
90 public:
91 ScTpContentOptions(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rArgSet);
92 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rCoreSet);
93 virtual ~ScTpContentOptions() override;
95 virtual OUString GetAllStrings() override;
97 virtual bool FillItemSet ( SfxItemSet* rCoreSet ) override;
98 virtual void Reset ( const SfxItemSet* rCoreSet ) override;
99 virtual void ActivatePage( const SfxItemSet& ) override;
100 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
104 class ScDocument;
105 class ScTpLayoutOptions : public SfxTabPage
107 ScDocument *pDoc;
109 std::unique_ptr<weld::ComboBox> m_xUnitLB;
110 std::unique_ptr<weld::Widget> m_xUnitImg;
111 std::unique_ptr<weld::MetricSpinButton> m_xTabMF;
112 std::unique_ptr<weld::Widget> m_xTabImg;
114 std::unique_ptr<weld::RadioButton> m_xAlwaysRB;
115 std::unique_ptr<weld::RadioButton> m_xRequestRB;
116 std::unique_ptr<weld::RadioButton> m_xNeverRB;
117 std::unique_ptr<weld::Widget> m_xUpdateLinksImg;
119 std::unique_ptr<weld::CheckButton> m_xAlignCB;
120 std::unique_ptr<weld::Widget> m_xAlignImg;
121 std::unique_ptr<weld::ComboBox> m_xAlignLB;
122 std::unique_ptr<weld::CheckButton> m_xEditModeCB;
123 std::unique_ptr<weld::Widget> m_xEditModeImg;
124 std::unique_ptr<weld::CheckButton> m_xFormatCB;
125 std::unique_ptr<weld::Widget> m_xFormatImg;
126 std::unique_ptr<weld::CheckButton> m_xExpRefCB;
127 std::unique_ptr<weld::Widget> m_xExpRefImg;
128 std::unique_ptr<weld::CheckButton> m_xSortRefUpdateCB;
129 std::unique_ptr<weld::Widget> m_xSortRefUpdateImg;
130 std::unique_ptr<weld::CheckButton> m_xMarkHdrCB;
131 std::unique_ptr<weld::Widget> m_xMarkHdrImg;
132 std::unique_ptr<weld::CheckButton> m_xReplWarnCB;
133 std::unique_ptr<weld::Widget> m_xReplWarnImg;
134 std::unique_ptr<weld::CheckButton> m_xLegacyCellSelectionCB;
135 std::unique_ptr<weld::Widget> m_xLegacyCellSelectionImg;
136 std::unique_ptr<weld::CheckButton> m_xEnterPasteModeCB;
137 std::unique_ptr<weld::Widget> m_xEnterPasteModeImg;
138 std::unique_ptr<weld::CheckButton> m_xWarnActiveSheetCB;
139 std::unique_ptr<weld::Widget> m_xWarnActiveSheetImg;
141 DECL_LINK(MetricHdl, weld::ComboBox&, void );
142 DECL_LINK( AlignHdl, weld::Toggleable&, void );
145 public:
146 ScTpLayoutOptions(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rArgSet );
147 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController,
148 const SfxItemSet* rCoreSet);
149 virtual ~ScTpLayoutOptions() override;
151 virtual OUString GetAllStrings() override;
153 virtual bool FillItemSet ( SfxItemSet* rCoreSet ) override;
154 virtual void Reset ( const SfxItemSet* rCoreSet ) override;
155 virtual void ActivatePage( const SfxItemSet& ) override;
156 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
159 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */