1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
22 #include "anyrefdg.hxx"
24 #include <svx/ctredlin.hxx>
25 #include <chgviset.hxx>
31 class ScHighlightChgDlg
: public ScAnyRefDlgController
34 ScViewData
& m_rViewData
;
36 ScChangeViewSettings aChangeViewSet
;
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
;
43 std::unique_ptr
<formula::RefEdit
> m_xEdAssign
;
44 std::unique_ptr
<formula::RefButton
> m_xRbAssign
;
46 std::unique_ptr
<weld::Container
> m_xBox
;
48 std::unique_ptr
<SvxTPFilter
> m_xFilterCtr
;
52 DECL_LINK( RefHandle
, SvxTPFilter
*, void );
53 DECL_LINK( HighlightHandle
, weld::Toggleable
&, void );
54 DECL_LINK( OKBtnHdl
, weld::Button
&, void );
58 virtual void RefInputDone( bool bForced
= false ) override
;
61 ScHighlightChgDlg(SfxBindings
* pB
, SfxChildWindow
* pCW
, weld::Window
* pParent
,
62 ScViewData
& rViewData
);
64 virtual ~ScHighlightChgDlg() override
;
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
;
73 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */