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 #pragma once
21 
22 #include <sfx2/tabdlg.hxx>
23 
24 class ScTablePage : public SfxTabPage
25 {
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;
31 
33  virtual bool FillItemSet ( SfxItemSet* rCoreSet ) override;
34  virtual void Reset ( const SfxItemSet* rCoreSet ) override;
35  virtual DeactivateRC DeactivatePage ( SfxItemSet* pSet ) override;
36 
37 private:
38  void ShowImage();
39 
40 private:
43 
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;
49 
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;
58 
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;
69 
70 private:
71 
72  // Handler:
73  DECL_LINK(PageDirHdl, weld::Toggleable&, void);
75  void PageNoHdl(const weld::Toggleable* pBtn);
76  DECL_LINK(ScaleHdl, weld::ComboBox&, void);
77  DECL_LINK(ToggleHdl, weld::Toggleable&, void);
78 };
79 
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::CheckButton > m_xBtnPageNo
Definition: tptable.hxx:47
std::unique_ptr< weld::CheckButton > m_xBtnHeaders
Definition: tptable.hxx:50
std::unique_ptr< weld::SpinButton > m_xEdScalePageNum
Definition: tptable.hxx:68
const SfxItemSet * pSet
std::unique_ptr< weld::SpinButton > m_xEdPageNo
Definition: tptable.hxx:48
std::unique_ptr< weld::CheckButton > m_xBtnFormulas
Definition: tptable.hxx:56
std::unique_ptr< weld::ComboBox > m_xLbScaleMode
Definition: tptable.hxx:59
virtual bool FillItemSet(SfxItemSet *rCoreSet) override
Definition: tptable.cxx:248
sal_uInt16 m_nOrigScalePageHeight
Definition: tptable.hxx:42
std::unique_ptr< weld::Widget > m_xGrHeightWidth
Definition: tptable.hxx:62
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rCoreSet)
Definition: tptable.cxx:137
std::unique_ptr< weld::MetricSpinButton > m_xEdScaleAll
Definition: tptable.hxx:61
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tptable.cxx:341
std::unique_ptr< weld::Widget > m_xBxScalePageNum
Definition: tptable.hxx:67
std::unique_ptr< weld::SpinButton > m_xEdScalePageWidth
Definition: tptable.hxx:63
std::unique_ptr< weld::CheckButton > m_xBtnObjects
Definition: tptable.hxx:53
std::unique_ptr< weld::Widget > m_xBxScaleAll
Definition: tptable.hxx:60
std::unique_ptr< weld::CheckButton > m_xBtnNotes
Definition: tptable.hxx:52
std::unique_ptr< weld::RadioButton > m_xBtnTopDown
Definition: tptable.hxx:44
std::unique_ptr< weld::RadioButton > m_xBtnLeftRight
Definition: tptable.hxx:45
sal_uInt16 m_nOrigScalePageWidth
Definition: tptable.hxx:41
static const WhichRangesContainer pPageTableRanges
Definition: tptable.hxx:26
std::unique_ptr< weld::CheckButton > m_xCbScalePageHeight
Definition: tptable.hxx:66
void PageNoHdl(const weld::Toggleable *pBtn)
Definition: tptable.cxx:361
virtual void Reset(const SfxItemSet *rCoreSet) override
Definition: tptable.cxx:142
std::unique_ptr< weld::CheckButton > m_xBtnNullVals
Definition: tptable.hxx:57
virtual ~ScTablePage() override
Definition: tptable.cxx:133
ScTablePage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rCoreSet)
Definition: tptable.cxx:89
std::unique_ptr< weld::CheckButton > m_xBtnCharts
Definition: tptable.hxx:54
std::unique_ptr< weld::CheckButton > m_xBtnGrid
Definition: tptable.hxx:51
static WhichRangesContainer GetRanges()
Definition: tptable.hxx:32
DECL_LINK(PageDirHdl, weld::Toggleable &, void)
DeactivateRC
std::unique_ptr< weld::CheckButton > m_xBtnDrawings
Definition: tptable.hxx:55
std::unique_ptr< weld::SpinButton > m_xEdScalePageHeight
Definition: tptable.hxx:65
std::unique_ptr< weld::Image > m_xBmpPageDir
Definition: tptable.hxx:46
std::unique_ptr< weld::CheckButton > m_xCbScalePageWidth
Definition: tptable.hxx:64
void ShowImage()
Definition: tptable.cxx:127