LibreOffice Module sc (master)  1
areasdlg.hxx
Go to the documentation of this file.
1 /*
2  * This file is part of the LibreOffice project.
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  *
8  * This file incorporates work covered by the following license notice:
9  *
10  * Licensed to the Apache Software Foundation (ASF) under one or more
11  * contributor license agreements. See the NOTICE file distributed
12  * with this work for additional information regarding copyright
13  * ownership. The ASF licenses this file to you under the Apache
14  * License, Version 2.0 (the "License"); you may not use this file
15  * except in compliance with the License. You may obtain a copy of
16  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
17  */
18 
19 #ifndef INCLUDED_SC_SOURCE_UI_INC_AREASDLG_HXX
20 #define INCLUDED_SC_SOURCE_UI_INC_AREASDLG_HXX
21 
22 #include <address.hxx>
23 
24 #include "anyrefdg.hxx"
25 
26 class ScDocument;
27 class ScViewData;
28 class SfxStringItem;
29 
31 {
32 public:
34  virtual ~ScPrintAreasDlg() override;
35 
36  virtual void SetReference( const ScRange& rRef, ScDocument& rDoc ) override;
37  virtual void AddRefEntry() override;
38 
39  virtual bool IsTableLocked() const override;
40 
41  virtual void SetActive() override;
42  virtual void Deactivate() override;
43  virtual void Close() override;
44 
45 private:
50 
52 
53  std::unique_ptr<weld::ComboBox> m_xLbPrintArea;
54  std::unique_ptr<formula::RefEdit> m_xEdPrintArea;
55  std::unique_ptr<formula::RefButton> m_xRbPrintArea;
56 
57  std::unique_ptr<weld::ComboBox> m_xLbRepeatRow;
58  std::unique_ptr<formula::RefEdit> m_xEdRepeatRow;
59  std::unique_ptr<formula::RefButton> m_xRbRepeatRow;
60 
61  std::unique_ptr<weld::ComboBox> m_xLbRepeatCol;
62  std::unique_ptr<formula::RefEdit> m_xEdRepeatCol;
63  std::unique_ptr<formula::RefButton> m_xRbRepeatCol;
64 
65  std::unique_ptr<weld::Button> m_xBtnOk;
66  std::unique_ptr<weld::Button> m_xBtnCancel;
67 
68  std::unique_ptr<weld::Frame> m_xPrintFrame;
69  std::unique_ptr<weld::Frame> m_xRowFrame;
70  std::unique_ptr<weld::Frame> m_xColFrame;
71 
72  std::unique_ptr<weld::Label> m_xPrintFrameFT;
73  std::unique_ptr<weld::Label> m_xRowFrameFT;
74  std::unique_ptr<weld::Label> m_xColFrameFT;
75 
76  void Impl_Reset();
77  bool Impl_CheckRefStrings();
78  void Impl_FillLists();
79  bool Impl_GetItem( const formula::RefEdit* pEd, SfxStringItem& rItem );
80 
81  // Handler:
82  DECL_LINK( Impl_SelectHdl, weld::ComboBox&, void );
83  DECL_LINK( Impl_ModifyHdl, formula::RefEdit&, void );
84  DECL_LINK( Impl_BtnHdl, weld::Button&, void );
85  DECL_LINK( Impl_GetEditFocusHdl, formula::RefEdit&, void );
86  DECL_LINK( Impl_GetFocusHdl, weld::Widget&, void );
87 };
88 
89 #endif
90 
91 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual ~ScPrintAreasDlg() override
Definition: areasdlg.cxx:148
std::unique_ptr< weld::Label > m_xRowFrameFT
Definition: areasdlg.hxx:73
virtual bool IsTableLocked() const override
Definition: areasdlg.cxx:157
std::unique_ptr< weld::Label > m_xColFrameFT
Definition: areasdlg.hxx:74
std::unique_ptr< weld::ComboBox > m_xLbRepeatCol
Definition: areasdlg.hxx:61
bool Impl_CheckRefStrings()
Definition: areasdlg.cxx:314
std::unique_ptr< weld::ComboBox > m_xLbPrintArea
Definition: areasdlg.hxx:53
std::unique_ptr< weld::Button > m_xBtnOk
Definition: areasdlg.hxx:65
bool Impl_GetItem(const formula::RefEdit *pEd, SfxStringItem &rItem)
Definition: areasdlg.cxx:296
std::unique_ptr< weld::ComboBox > m_xLbRepeatRow
Definition: areasdlg.hxx:57
std::unique_ptr< formula::RefEdit > m_xEdRepeatCol
Definition: areasdlg.hxx:62
std::unique_ptr< formula::RefEdit > m_xEdRepeatRow
Definition: areasdlg.hxx:58
void Impl_FillLists()
Definition: areasdlg.cxx:378
ScPrintAreasDlg(SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent)
Definition: areasdlg.cxx:96
std::unique_ptr< weld::Button > m_xBtnCancel
Definition: areasdlg.hxx:66
void Impl_Reset()
Definition: areasdlg.cxx:234
DECL_LINK(Impl_SelectHdl, weld::ComboBox &, void)
virtual void AddRefEntry() override
Definition: areasdlg.cxx:196
std::unique_ptr< formula::RefButton > m_xRbPrintArea
Definition: areasdlg.hxx:55
virtual void Close() override
Definition: areasdlg.cxx:152
std::unique_ptr< formula::RefButton > m_xRbRepeatRow
Definition: areasdlg.hxx:59
ScViewData * pViewData
Definition: areasdlg.hxx:48
formula::RefEdit * m_pRefInputEdit
Definition: areasdlg.hxx:51
std::unique_ptr< formula::RefEdit > m_xEdPrintArea
Definition: areasdlg.hxx:54
virtual void Deactivate() override
Definition: areasdlg.cxx:211
std::unique_ptr< weld::Frame > m_xColFrame
Definition: areasdlg.hxx:70
std::unique_ptr< formula::RefButton > m_xRbRepeatCol
Definition: areasdlg.hxx:63
virtual void SetActive() override
Definition: areasdlg.cxx:216
std::unique_ptr< weld::Frame > m_xRowFrame
Definition: areasdlg.hxx:69
ScDocument * pDoc
Definition: areasdlg.hxx:47
std::unique_ptr< weld::Label > m_xPrintFrameFT
Definition: areasdlg.hxx:72
bool bDlgLostFocus
Definition: areasdlg.hxx:46
virtual void SetReference(const ScRange &rRef, ScDocument &rDoc) override
Definition: areasdlg.cxx:165
std::unique_ptr< weld::Frame > m_xPrintFrame
Definition: areasdlg.hxx:68
sal_Int16 SCTAB
Definition: types.hxx:23