tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sc / source / ui / inc / areasdlg.hxx
blobbe4d778d4ec8d9d5e83026be44b7ee1f5fdcb652
1 /*
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 #pragma once
21 #include <address.hxx>
23 #include "anyrefdg.hxx"
25 class ScDocument;
26 class ScViewData;
27 class SfxStringItem;
29 class ScPrintAreasDlg : public ScAnyRefDlgController
31 public:
32 ScPrintAreasDlg(SfxBindings* pB, SfxChildWindow* pCW, weld::Window* pParent);
33 virtual ~ScPrintAreasDlg() override;
35 virtual void SetReference( const ScRange& rRef, ScDocument& rDoc ) override;
36 virtual void AddRefEntry() override;
38 virtual bool IsTableLocked() const override;
40 virtual void SetActive() override;
41 virtual void Deactivate() override;
42 virtual void Close() override;
44 private:
45 bool bDlgLostFocus;
46 ScDocument* pDoc;
47 ScViewData* pViewData;
48 SCTAB nCurTab;
50 formula::RefEdit* m_pRefInputEdit;
52 std::unique_ptr<weld::ComboBox> m_xLbPrintArea;
53 std::unique_ptr<formula::RefEdit> m_xEdPrintArea;
54 std::unique_ptr<formula::RefButton> m_xRbPrintArea;
56 std::unique_ptr<weld::ComboBox> m_xLbRepeatRow;
57 std::unique_ptr<formula::RefEdit> m_xEdRepeatRow;
58 std::unique_ptr<formula::RefButton> m_xRbRepeatRow;
60 std::unique_ptr<weld::ComboBox> m_xLbRepeatCol;
61 std::unique_ptr<formula::RefEdit> m_xEdRepeatCol;
62 std::unique_ptr<formula::RefButton> m_xRbRepeatCol;
64 std::unique_ptr<weld::Button> m_xBtnOk;
65 std::unique_ptr<weld::Button> m_xBtnCancel;
67 std::unique_ptr<weld::Frame> m_xPrintFrame;
68 std::unique_ptr<weld::Frame> m_xRowFrame;
69 std::unique_ptr<weld::Frame> m_xColFrame;
71 std::unique_ptr<weld::Label> m_xPrintFrameFT;
72 std::unique_ptr<weld::Label> m_xRowFrameFT;
73 std::unique_ptr<weld::Label> m_xColFrameFT;
75 void Impl_Reset();
76 bool Impl_CheckRefStrings();
77 void Impl_FillLists();
78 bool Impl_GetItem( const formula::RefEdit* pEd, SfxStringItem& rItem );
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 );
88 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */