nss: upgrade to release 3.73
[LibreOffice.git] / sc / source / ui / inc / tptable.hxx
blobfe86f338ec9a7292d79baebc3071550362fd876c
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 #ifndef INCLUDED_SC_SOURCE_UI_INC_TPTABLE_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_TPTABLE_HXX
23 #include <sfx2/tabdlg.hxx>
25 class ScTablePage : public SfxTabPage
27 static const sal_uInt16 pPageTableRanges[];
28 public:
29 ScTablePage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rCoreSet);
30 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rCoreSet);
31 virtual ~ScTablePage() override;
33 static const sal_uInt16* GetRanges () { return pPageTableRanges; }
34 virtual bool FillItemSet ( SfxItemSet* rCoreSet ) override;
35 virtual void Reset ( const SfxItemSet* rCoreSet ) override;
36 virtual DeactivateRC DeactivatePage ( SfxItemSet* pSet ) override;
38 private:
39 void ShowImage();
41 private:
42 sal_uInt16 m_nOrigScalePageWidth;
43 sal_uInt16 m_nOrigScalePageHeight;
45 std::unique_ptr<weld::RadioButton> m_xBtnTopDown;
46 std::unique_ptr<weld::RadioButton> m_xBtnLeftRight;
47 std::unique_ptr<weld::Image> m_xBmpPageDir;
48 std::unique_ptr<weld::CheckButton> m_xBtnPageNo;
49 std::unique_ptr<weld::SpinButton> m_xEdPageNo;
51 std::unique_ptr<weld::CheckButton> m_xBtnHeaders;
52 std::unique_ptr<weld::CheckButton> m_xBtnGrid;
53 std::unique_ptr<weld::CheckButton> m_xBtnNotes;
54 std::unique_ptr<weld::CheckButton> m_xBtnObjects;
55 std::unique_ptr<weld::CheckButton> m_xBtnCharts;
56 std::unique_ptr<weld::CheckButton> m_xBtnDrawings;
57 std::unique_ptr<weld::CheckButton> m_xBtnFormulas;
58 std::unique_ptr<weld::CheckButton> m_xBtnNullVals;
60 std::unique_ptr<weld::ComboBox> m_xLbScaleMode;
61 std::unique_ptr<weld::Widget> m_xBxScaleAll;
62 std::unique_ptr<weld::MetricSpinButton> m_xEdScaleAll;
63 std::unique_ptr<weld::Widget> m_xGrHeightWidth;
64 std::unique_ptr<weld::SpinButton> m_xEdScalePageWidth;
65 std::unique_ptr<weld::CheckButton> m_xCbScalePageWidth;
66 std::unique_ptr<weld::SpinButton> m_xEdScalePageHeight;
67 std::unique_ptr<weld::CheckButton> m_xCbScalePageHeight;
68 std::unique_ptr<weld::Widget> m_xBxScalePageNum;
69 std::unique_ptr<weld::SpinButton> m_xEdScalePageNum;
71 private:
73 // Handler:
74 DECL_LINK(PageDirHdl, weld::ToggleButton&, void);
75 DECL_LINK(PageNoHdl, weld::ToggleButton&, void);
76 void PageNoHdl(const weld::ToggleButton* pBtn);
77 DECL_LINK(ScaleHdl, weld::ComboBox&, void);
78 DECL_LINK(ToggleHdl, weld::ToggleButton&, void);
81 #endif // INCLUDED_SC_SOURCE_UI_INC_TPTABLE_HXX
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */