LibreOffice Module sc (master)  1
highred.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 #ifndef INCLUDED_SC_SOURCE_UI_INC_HIGHRED_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_HIGHRED_HXX
22 
23 #include "anyrefdg.hxx"
24 
25 #include <svx/ctredlin.hxx>
26 #include <chgviset.hxx>
27 
28 class ScViewData;
29 class ScDocument;
30 
31 
33 {
34 private:
38 
39  std::unique_ptr<weld::CheckButton> m_xHighlightBox;
40  std::unique_ptr<weld::CheckButton> m_xCbAccept;
41  std::unique_ptr<weld::CheckButton> m_xCbReject;
42  std::unique_ptr<weld::Button> m_xOkButton;
43 
44  std::unique_ptr<formula::RefEdit> m_xEdAssign;
45  std::unique_ptr<formula::RefButton> m_xRbAssign;
46 
47  std::unique_ptr<weld::Container> m_xBox;
48 
49  std::unique_ptr<SvxTPFilter> m_xFilterCtr;
50 
51  void Init();
52 
53  DECL_LINK( RefHandle, SvxTPFilter*, void );
54  DECL_LINK( HighlightHandle, weld::Button&, void );
55  DECL_LINK( OKBtnHdl, weld::Button&, void );
56 
57 protected:
58 
59  virtual void RefInputDone( bool bForced = false ) override;
60 
61 public:
63  ScViewData& rViewData);
64 
65  virtual ~ScHighlightChgDlg() override;
66 
67  virtual void SetActive() override;
68  virtual void SetReference( const ScRange& rRef, ScDocument& rDoc ) override;
69  virtual void Close() override;
70  virtual bool IsRefInputMode() const override;
71 
72 };
73 
74 #endif // INCLUDED_SC_SOURCE_UI_INC_HIGHRED_HXX
75 
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::CheckButton > m_xCbAccept
Definition: highred.hxx:40
std::unique_ptr< formula::RefEdit > m_xEdAssign
Definition: highred.hxx:44
virtual bool IsRefInputMode() const override
Definition: highred.cxx:159
ScHighlightChgDlg(SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, ScViewData &rViewData)
Definition: highred.cxx:28
std::unique_ptr< weld::CheckButton > m_xCbReject
Definition: highred.hxx:41
std::unique_ptr< formula::RefButton > m_xRbAssign
Definition: highred.hxx:45
virtual void SetActive() override
Definition: highred.cxx:155
virtual void Close() override
Definition: highred.cxx:138
std::unique_ptr< weld::Button > m_xOkButton
Definition: highred.hxx:42
virtual void SetReference(const ScRange &rRef, ScDocument &rDoc) override
Definition: highred.cxx:126
std::unique_ptr< SvxTPFilter > m_xFilterCtr
Definition: highred.hxx:49
std::unique_ptr< weld::Container > m_xBox
Definition: highred.hxx:47
ScDocument & rDoc
Definition: highred.hxx:36
virtual void RefInputDone(bool bForced=false) override
Definition: highred.cxx:143
ScViewData & m_rViewData
Definition: highred.hxx:35
virtual ~ScHighlightChgDlg() override
Definition: highred.cxx:55
std::unique_ptr< weld::CheckButton > m_xHighlightBox
Definition: highred.hxx:39
ScChangeViewSettings aChangeViewSet
Definition: highred.hxx:37
DECL_LINK(RefHandle, SvxTPFilter *, void)