tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sc / source / ui / inc / tptable.hxx
blob9e98c050a20edaf6373af0aaa626971942d12cf9
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>
24 class ScTablePage : public SfxTabPage
26 static const WhichRangesContainer pPageTableRanges;
27 public:
28 ScTablePage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rCoreSet);
29 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rCoreSet);
30 virtual ~ScTablePage() override;
32 static const WhichRangesContainer & GetRanges () { return pPageTableRanges; }
33 virtual bool FillItemSet ( SfxItemSet* rCoreSet ) override;
34 virtual void Reset ( const SfxItemSet* rCoreSet ) override;
35 virtual DeactivateRC DeactivatePage ( SfxItemSet* pSet ) override;
37 private:
38 void ShowImage();
40 private:
41 sal_uInt16 m_nOrigScalePageWidth;
42 sal_uInt16 m_nOrigScalePageHeight;
44 std::unique_ptr<weld::RadioButton> m_xBtnTopDown;
45 std::unique_ptr<weld::RadioButton> m_xBtnLeftRight;
46 std::unique_ptr<weld::Image> m_xBmpPageDir;
47 std::unique_ptr<weld::CheckButton> m_xBtnPageNo;
48 std::unique_ptr<weld::SpinButton> m_xEdPageNo;
50 std::unique_ptr<weld::CheckButton> m_xBtnHeaders;
51 std::unique_ptr<weld::CheckButton> m_xBtnGrid;
52 std::unique_ptr<weld::CheckButton> m_xBtnNotes;
53 std::unique_ptr<weld::CheckButton> m_xBtnObjects;
54 std::unique_ptr<weld::CheckButton> m_xBtnCharts;
55 std::unique_ptr<weld::CheckButton> m_xBtnDrawings;
56 std::unique_ptr<weld::CheckButton> m_xBtnFormulas;
57 std::unique_ptr<weld::CheckButton> m_xBtnNullVals;
59 std::unique_ptr<weld::ComboBox> m_xLbScaleMode;
60 std::unique_ptr<weld::Widget> m_xBxScaleAll;
61 std::unique_ptr<weld::MetricSpinButton> m_xEdScaleAll;
62 std::unique_ptr<weld::Widget> m_xGrHeightWidth;
63 std::unique_ptr<weld::SpinButton> m_xEdScalePageWidth;
64 std::unique_ptr<weld::CheckButton> m_xCbScalePageWidth;
65 std::unique_ptr<weld::SpinButton> m_xEdScalePageHeight;
66 std::unique_ptr<weld::CheckButton> m_xCbScalePageHeight;
67 std::unique_ptr<weld::Widget> m_xBxScalePageNum;
68 std::unique_ptr<weld::SpinButton> m_xEdScalePageNum;
70 private:
72 // Handler:
73 DECL_LINK(PageDirHdl, weld::Toggleable&, void);
74 DECL_LINK(PageNoHdl, weld::Toggleable&, void);
75 void PageNoHdl(const weld::Toggleable* pBtn);
76 DECL_LINK(ScaleHdl, weld::ComboBox&, void);
77 DECL_LINK(ToggleHdl, weld::Toggleable&, void);
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */