LibreOffice Module sc (master) 1
dwfunctr.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#pragma once
20
23
24class ScFuncDesc;
25namespace formula { class IFunctionDescription; }
26
27class ScFunctionWin;
28
30{
32protected:
33 virtual void setProperty(const css::uno::Any &rProperty) override;
34public:
36 : ConfigurationListenerProperty(rListener, "EnglishFunctionName")
37 , m_pFunctionWin(pFunctionWin)
38 {
39 }
40};
41
43{
44
45private:
46 std::unique_ptr<weld::ComboBox> xCatBox;
47 std::unique_ptr<weld::TreeView> xFuncList;
48 std::unique_ptr<weld::Button> xInsertButton;
49 std::unique_ptr<weld::Label> xFiFuncDesc;
50
52 std::unique_ptr<EnglishFunctionNameChange> xConfigChange;
54 sal_uInt16 nArgs;
55
56 ::std::vector< const formula::IFunctionDescription*> aLRUList;
57
58 void UpdateLRUList();
59 void DoEnter();
60 void SetDescription();
61
62 DECL_LINK( SetRowActivatedHdl, weld::TreeView&, bool );
63 DECL_LINK( SetSelectionClickHdl, weld::Button&, void );
64 DECL_LINK( SelComboHdl, weld::ComboBox&, void );
65 DECL_LINK( SelTreeHdl, weld::TreeView&, void );
66
67public:
69
70 virtual ~ScFunctionWin() override;
71
72 void InitLRUList();
73 void UpdateFunctionList();
74};
75
76/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
EnglishFunctionNameChange(const rtl::Reference< comphelper::ConfigurationListener > &rListener, ScFunctionWin *pFunctionWin)
Definition: dwfunctr.hxx:35
virtual void setProperty(const css::uno::Any &rProperty) override
Definition: dwfunctr.cxx:403
ScFunctionWin * m_pFunctionWin
Definition: dwfunctr.hxx:31
Stores and generates human readable descriptions for spreadsheet-functions, e.g. functions used in fo...
Definition: funcdesc.hxx:41
::std::vector< const formula::IFunctionDescription * > aLRUList
Definition: dwfunctr.hxx:56
void SetDescription()
Definition: dwfunctr.cxx:163
ScFunctionWin(weld::Widget *pParent)
Definition: dwfunctr.cxx:47
DECL_LINK(SelComboHdl, weld::ComboBox &, void)
void UpdateLRUList()
Definition: dwfunctr.cxx:140
DECL_LINK(SetRowActivatedHdl, weld::TreeView &, bool)
void InitLRUList()
Definition: dwfunctr.cxx:115
std::unique_ptr< weld::TreeView > xFuncList
Definition: dwfunctr.hxx:47
std::unique_ptr< weld::Label > xFiFuncDesc
Definition: dwfunctr.hxx:49
DECL_LINK(SelTreeHdl, weld::TreeView &, void)
void UpdateFunctionList()
Definition: dwfunctr.cxx:196
void DoEnter()
Definition: dwfunctr.cxx:255
std::unique_ptr< weld::Button > xInsertButton
Definition: dwfunctr.hxx:48
std::unique_ptr< EnglishFunctionNameChange > xConfigChange
Definition: dwfunctr.hxx:52
const ScFuncDesc * pFuncDesc
Definition: dwfunctr.hxx:53
DECL_LINK(SetSelectionClickHdl, weld::Button &, void)
rtl::Reference< comphelper::ConfigurationListener > xConfigListener
Definition: dwfunctr.hxx:51
std::unique_ptr< weld::ComboBox > xCatBox
Definition: dwfunctr.hxx:46
virtual ~ScFunctionWin() override
Definition: dwfunctr.cxx:89
sal_uInt16 nArgs
Definition: dwfunctr.hxx:54
ConfigurationListenerProperty(const rtl::Reference< ConfigurationListener > &xListener, const OUString &rProp)