nss: upgrade to release 3.73
[LibreOffice.git] / sc / source / ui / inc / simpref.hxx
blobce62242f6de299cf7f92f368b48b4031a2a8a561
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_SIMPREF_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_SIMPREF_HXX
23 #include "anyrefdg.hxx"
25 class ScDocument;
27 class ScSimpleRefDlg: public ScAnyRefDlgController
29 private:
30 Link<const OUString*,void> aCloseHdl;
31 Link<const OUString&,void> aDoneHdl;
32 Link<const OUString&,void> aAbortedHdl;
33 Link<const OUString&,void> aChangeHdl;
35 ScRange theCurArea;
36 bool bCloseFlag;
37 bool bAutoReOpen;
38 bool bCloseOnButtonUp;
39 bool bSingleCell;
40 bool bMultiSelection;
42 std::unique_ptr<weld::Label> m_xFtAssign;
43 std::unique_ptr<formula::RefEdit> m_xEdAssign;
44 std::unique_ptr<formula::RefButton> m_xRbAssign;
45 std::unique_ptr<weld::Button> m_xBtnOk;
46 std::unique_ptr<weld::Button> m_xBtnCancel;
48 void Init();
50 DECL_LINK( CancelBtnHdl, weld::Button&, void );
51 DECL_LINK( OkBtnHdl, weld::Button&, void );
53 protected:
55 virtual void RefInputDone( bool bForced = false ) override;
57 public:
58 ScSimpleRefDlg( SfxBindings* pB, SfxChildWindow* pCW, weld::Window* pParent);
59 virtual ~ScSimpleRefDlg() override;
61 virtual void SetReference( const ScRange& rRef, ScDocument& rDoc ) override;
63 virtual bool IsRefInputMode() const override;
64 virtual void SetActive() override;
65 virtual void Close() override;
67 void StartRefInput();
69 void SetRefString(const OUString &rStr);
70 virtual void FillInfo(SfxChildWinInfo&) const override;
72 void SetCloseHdl( const Link<const OUString*,void>& rLink );
73 void SetUnoLinks( const Link<const OUString&,void>& rDone, const Link<const OUString&,void>& rAbort,
74 const Link<const OUString&,void>& rChange );
76 void SetFlags( bool bSetCloseOnButtonUp, bool bSetSingleCell, bool bSetMultiSelection );
79 #endif // INCLUDED_SC_SOURCE_UI_INC_SIMPREF_HXX
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */