2 * This file is part of the LibreOffice project.
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/.
8 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_SC_SOURCE_UI_INC_AREASDLG_HXX
20 #define INCLUDED_SC_SOURCE_UI_INC_AREASDLG_HXX
22 #include <address.hxx>
24 #include "anyrefdg.hxx"
30 class ScPrintAreasDlg
: public ScAnyRefDlgController
33 ScPrintAreasDlg(SfxBindings
* pB
, SfxChildWindow
* pCW
, weld::Window
* pParent
);
34 virtual ~ScPrintAreasDlg() override
;
36 virtual void SetReference( const ScRange
& rRef
, ScDocument
& rDoc
) override
;
37 virtual void AddRefEntry() override
;
39 virtual bool IsTableLocked() const override
;
41 virtual void SetActive() override
;
42 virtual void Deactivate() override
;
43 virtual void Close() override
;
48 ScViewData
* pViewData
;
51 formula::RefEdit
* m_pRefInputEdit
;
53 std::unique_ptr
<weld::ComboBox
> m_xLbPrintArea
;
54 std::unique_ptr
<formula::RefEdit
> m_xEdPrintArea
;
55 std::unique_ptr
<formula::RefButton
> m_xRbPrintArea
;
57 std::unique_ptr
<weld::ComboBox
> m_xLbRepeatRow
;
58 std::unique_ptr
<formula::RefEdit
> m_xEdRepeatRow
;
59 std::unique_ptr
<formula::RefButton
> m_xRbRepeatRow
;
61 std::unique_ptr
<weld::ComboBox
> m_xLbRepeatCol
;
62 std::unique_ptr
<formula::RefEdit
> m_xEdRepeatCol
;
63 std::unique_ptr
<formula::RefButton
> m_xRbRepeatCol
;
65 std::unique_ptr
<weld::Button
> m_xBtnOk
;
66 std::unique_ptr
<weld::Button
> m_xBtnCancel
;
68 std::unique_ptr
<weld::Frame
> m_xPrintFrame
;
69 std::unique_ptr
<weld::Frame
> m_xRowFrame
;
70 std::unique_ptr
<weld::Frame
> m_xColFrame
;
72 std::unique_ptr
<weld::Label
> m_xPrintFrameFT
;
73 std::unique_ptr
<weld::Label
> m_xRowFrameFT
;
74 std::unique_ptr
<weld::Label
> m_xColFrameFT
;
77 bool Impl_CheckRefStrings();
78 void Impl_FillLists();
79 bool Impl_GetItem( const formula::RefEdit
* pEd
, SfxStringItem
& rItem
);
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 );
91 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */