LibreOffice Module sc (master)  1
tptable.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 #ifndef INCLUDED_SC_SOURCE_UI_INC_TPTABLE_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_TPTABLE_HXX
22 
23 #include <sfx2/tabdlg.hxx>
24 
25 class ScTablePage : public SfxTabPage
26 {
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;
32 
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;
37 
38 private:
39  void ShowImage();
40 
41 private:
44 
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;
50 
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;
59 
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;
70 
71 private:
72 
73  // Handler:
74  DECL_LINK(PageDirHdl, weld::ToggleButton&, void);
76  void PageNoHdl(const weld::ToggleButton* pBtn);
77  DECL_LINK(ScaleHdl, weld::ComboBox&, void);
78  DECL_LINK(ToggleHdl, weld::ToggleButton&, void);
79 };
80 
81 #endif // INCLUDED_SC_SOURCE_UI_INC_TPTABLE_HXX
82 
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::CheckButton > m_xBtnPageNo
Definition: tptable.hxx:48
std::unique_ptr< weld::CheckButton > m_xBtnHeaders
Definition: tptable.hxx:51
std::unique_ptr< weld::SpinButton > m_xEdScalePageNum
Definition: tptable.hxx:69
DECL_LINK(PageDirHdl, weld::ToggleButton &, void)
const SfxItemSet * pSet
std::unique_ptr< weld::SpinButton > m_xEdPageNo
Definition: tptable.hxx:49
std::unique_ptr< weld::CheckButton > m_xBtnFormulas
Definition: tptable.hxx:57
std::unique_ptr< weld::ComboBox > m_xLbScaleMode
Definition: tptable.hxx:60
virtual bool FillItemSet(SfxItemSet *rCoreSet) override
Definition: tptable.cxx:251
sal_uInt16 m_nOrigScalePageHeight
Definition: tptable.hxx:43
std::unique_ptr< weld::Widget > m_xGrHeightWidth
Definition: tptable.hxx:63
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rCoreSet)
Definition: tptable.cxx:140
std::unique_ptr< weld::MetricSpinButton > m_xEdScaleAll
Definition: tptable.hxx:62
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tptable.cxx:344
std::unique_ptr< weld::Widget > m_xBxScalePageNum
Definition: tptable.hxx:68
std::unique_ptr< weld::SpinButton > m_xEdScalePageWidth
Definition: tptable.hxx:64
std::unique_ptr< weld::CheckButton > m_xBtnObjects
Definition: tptable.hxx:54
std::unique_ptr< weld::Widget > m_xBxScaleAll
Definition: tptable.hxx:61
std::unique_ptr< weld::CheckButton > m_xBtnNotes
Definition: tptable.hxx:53
std::unique_ptr< weld::RadioButton > m_xBtnTopDown
Definition: tptable.hxx:45
std::unique_ptr< weld::RadioButton > m_xBtnLeftRight
Definition: tptable.hxx:46
static const sal_uInt16 pPageTableRanges[]
Definition: tptable.hxx:27
sal_uInt16 m_nOrigScalePageWidth
Definition: tptable.hxx:42
std::unique_ptr< weld::CheckButton > m_xCbScalePageHeight
Definition: tptable.hxx:67
virtual void Reset(const SfxItemSet *rCoreSet) override
Definition: tptable.cxx:145
std::unique_ptr< weld::CheckButton > m_xBtnNullVals
Definition: tptable.hxx:58
virtual ~ScTablePage() override
Definition: tptable.cxx:136
ScTablePage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rCoreSet)
Definition: tptable.cxx:92
std::unique_ptr< weld::CheckButton > m_xBtnCharts
Definition: tptable.hxx:55
std::unique_ptr< weld::CheckButton > m_xBtnGrid
Definition: tptable.hxx:52
void PageNoHdl(const weld::ToggleButton *pBtn)
Definition: tptable.cxx:364
DeactivateRC
std::unique_ptr< weld::CheckButton > m_xBtnDrawings
Definition: tptable.hxx:56
std::unique_ptr< weld::SpinButton > m_xEdScalePageHeight
Definition: tptable.hxx:66
std::unique_ptr< weld::Image > m_xBmpPageDir
Definition: tptable.hxx:47
static const sal_uInt16 * GetRanges()
Definition: tptable.hxx:33
std::unique_ptr< weld::CheckButton > m_xCbScalePageWidth
Definition: tptable.hxx:65
void ShowImage()
Definition: tptable.cxx:130