Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / sc / source / ui / inc / highred.hxx
blobb53d51edf9cf60246fd732a6962e3348dd2cc5a5
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
20 #ifndef INCLUDED_SC_SOURCE_UI_INC_HIGHRED_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_HIGHRED_HXX
23 #include <vcl/morebtn.hxx>
24 #include <vcl/combobox.hxx>
25 #include <vcl/group.hxx>
26 #include <svtools/headbar.hxx>
27 #include <svtools/simptabl.hxx>
28 #include <svtools/svtabbx.hxx>
30 #include "rangenam.hxx"
31 #include "anyrefdg.hxx"
33 #include <vcl/lstbox.hxx>
35 #include <svx/ctredlin.hxx>
36 #include "chgtrack.hxx"
37 #include "chgviset.hxx"
39 class ScViewData;
40 class ScDocument;
43 class ScHighlightChgDlg : public ScAnyRefDlg
45 private:
46 VclPtr<CheckBox> m_pHighlightBox;
47 VclPtr<SvxTPFilter> m_pFilterCtr;
48 VclPtr<CheckBox> m_pCbAccept;
49 VclPtr<CheckBox> m_pCbReject;
50 VclPtr<OKButton> m_pOkButton;
52 VclPtr<formula::RefEdit> m_pEdAssign;
53 VclPtr<formula::RefButton> m_pRbAssign;
55 ScViewData* pViewData;
56 ScDocument* pDoc;
57 ScChangeViewSettings aChangeViewSet;
59 void Init();
61 DECL_LINK_TYPED( RefHandle, SvxTPFilter*, void );
62 DECL_LINK_TYPED( HighlightHandle, Button*, void );
63 DECL_LINK_TYPED( OKBtnHdl, Button*, void );
65 protected:
67 virtual void RefInputDone( bool bForced = false ) override;
69 public:
70 ScHighlightChgDlg( SfxBindings* pB, SfxChildWindow* pCW, vcl::Window* pParent,
71 ScViewData* ptrViewData);
73 virtual ~ScHighlightChgDlg();
74 virtual void dispose() override;
76 virtual void SetActive() override;
77 virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ) override;
78 virtual bool Close() override;
79 virtual bool IsRefInputMode() const override;
83 #endif // INCLUDED_SC_SOURCE_UI_INC_HIGHRED_HXX
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */