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