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#pragma once
20
21#include <address.hxx>
22
23#include "anyrefdg.hxx"
24
25class ScDocument;
26class ScViewData;
27class SfxStringItem;
28
30{
31public:
33 virtual ~ScPrintAreasDlg() override;
34
35 virtual void SetReference( const ScRange& rRef, ScDocument& rDoc ) override;
36 virtual void AddRefEntry() override;
37
38 virtual bool IsTableLocked() const override;
39
40 virtual void SetActive() override;
41 virtual void Deactivate() override;
42 virtual void Close() override;
43
44private:
49
51
52 std::unique_ptr<weld::ComboBox> m_xLbPrintArea;
53 std::unique_ptr<formula::RefEdit> m_xEdPrintArea;
54 std::unique_ptr<formula::RefButton> m_xRbPrintArea;
55
56 std::unique_ptr<weld::ComboBox> m_xLbRepeatRow;
57 std::unique_ptr<formula::RefEdit> m_xEdRepeatRow;
58 std::unique_ptr<formula::RefButton> m_xRbRepeatRow;
59
60 std::unique_ptr<weld::ComboBox> m_xLbRepeatCol;
61 std::unique_ptr<formula::RefEdit> m_xEdRepeatCol;
62 std::unique_ptr<formula::RefButton> m_xRbRepeatCol;
63
64 std::unique_ptr<weld::Button> m_xBtnOk;
65 std::unique_ptr<weld::Button> m_xBtnCancel;
66
67 std::unique_ptr<weld::Frame> m_xPrintFrame;
68 std::unique_ptr<weld::Frame> m_xRowFrame;
69 std::unique_ptr<weld::Frame> m_xColFrame;
70
71 std::unique_ptr<weld::Label> m_xPrintFrameFT;
72 std::unique_ptr<weld::Label> m_xRowFrameFT;
73 std::unique_ptr<weld::Label> m_xColFrameFT;
74
75 void Impl_Reset();
77 void Impl_FillLists();
78 bool Impl_GetItem( const formula::RefEdit* pEd, SfxStringItem& rItem );
79
80 // Handler:
81 DECL_LINK( Impl_SelectHdl, weld::ComboBox&, void );
82 DECL_LINK( Impl_ModifyHdl, formula::RefEdit&, void );
83 DECL_LINK( Impl_BtnHdl, weld::Button&, void );
84 DECL_LINK( Impl_GetEditFocusHdl, formula::RefEdit&, void );
85 DECL_LINK( Impl_GetFocusHdl, weld::Widget&, void );
86};
87
88/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< formula::RefButton > m_xRbPrintArea
Definition: areasdlg.hxx:54
std::unique_ptr< weld::Button > m_xBtnOk
Definition: areasdlg.hxx:64
bool Impl_CheckRefStrings()
Definition: areasdlg.cxx:315
virtual void AddRefEntry() override
Definition: areasdlg.cxx:197
DECL_LINK(Impl_SelectHdl, weld::ComboBox &, void)
void Impl_Reset()
Definition: areasdlg.cxx:235
std::unique_ptr< weld::ComboBox > m_xLbRepeatRow
Definition: areasdlg.hxx:56
virtual ~ScPrintAreasDlg() override
Definition: areasdlg.cxx:149
virtual void Deactivate() override
Definition: areasdlg.cxx:212
DECL_LINK(Impl_GetEditFocusHdl, formula::RefEdit &, void)
std::unique_ptr< weld::ComboBox > m_xLbPrintArea
Definition: areasdlg.hxx:52
DECL_LINK(Impl_BtnHdl, weld::Button &, void)
DECL_LINK(Impl_GetFocusHdl, weld::Widget &, void)
virtual void SetReference(const ScRange &rRef, ScDocument &rDoc) override
Definition: areasdlg.cxx:166
std::unique_ptr< formula::RefEdit > m_xEdRepeatRow
Definition: areasdlg.hxx:57
std::unique_ptr< weld::Label > m_xPrintFrameFT
Definition: areasdlg.hxx:71
ScPrintAreasDlg(SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent)
Definition: areasdlg.cxx:97
void Impl_FillLists()
Definition: areasdlg.cxx:379
std::unique_ptr< formula::RefEdit > m_xEdPrintArea
Definition: areasdlg.hxx:53
formula::RefEdit * m_pRefInputEdit
Definition: areasdlg.hxx:50
std::unique_ptr< weld::Button > m_xBtnCancel
Definition: areasdlg.hxx:65
DECL_LINK(Impl_ModifyHdl, formula::RefEdit &, void)
std::unique_ptr< weld::Label > m_xRowFrameFT
Definition: areasdlg.hxx:72
virtual bool IsTableLocked() const override
Definition: areasdlg.cxx:158
virtual void SetActive() override
Definition: areasdlg.cxx:217
std::unique_ptr< formula::RefEdit > m_xEdRepeatCol
Definition: areasdlg.hxx:61
std::unique_ptr< formula::RefButton > m_xRbRepeatCol
Definition: areasdlg.hxx:62
ScViewData * pViewData
Definition: areasdlg.hxx:47
std::unique_ptr< weld::Frame > m_xColFrame
Definition: areasdlg.hxx:69
bool bDlgLostFocus
Definition: areasdlg.hxx:45
std::unique_ptr< weld::Frame > m_xRowFrame
Definition: areasdlg.hxx:68
std::unique_ptr< formula::RefButton > m_xRbRepeatRow
Definition: areasdlg.hxx:58
std::unique_ptr< weld::ComboBox > m_xLbRepeatCol
Definition: areasdlg.hxx:60
std::unique_ptr< weld::Frame > m_xPrintFrame
Definition: areasdlg.hxx:67
std::unique_ptr< weld::Label > m_xColFrameFT
Definition: areasdlg.hxx:73
ScDocument * pDoc
Definition: areasdlg.hxx:46
virtual void Close() override
Definition: areasdlg.cxx:153
bool Impl_GetItem(const formula::RefEdit *pEd, SfxStringItem &rItem)
Definition: areasdlg.cxx:297
sal_Int16 SCTAB
Definition: types.hxx:22