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::TextView> xFiFuncDesc;
50
52 std::unique_ptr<EnglishFunctionNameChange> xConfigChange;
54 sal_uInt16 nArgs;
55 OUString m_aHelpId;
56
57 ::std::vector< const formula::IFunctionDescription*> aLRUList;
58
59 void UpdateLRUList();
60 void DoEnter();
61 void SetDescription();
62
63 DECL_LINK( SetRowActivatedHdl, weld::TreeView&, bool );
64 DECL_LINK( SetSelectionClickHdl, weld::Button&, void );
65 DECL_LINK( SelComboHdl, weld::ComboBox&, void );
66 DECL_LINK( SelTreeHdl, weld::TreeView&, void );
67
68public:
70
71 virtual ~ScFunctionWin() override;
72
73 void InitLRUList();
74 void UpdateFunctionList();
75};
76
77/* 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:411
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:57
void SetDescription()
Definition: dwfunctr.cxx:164
ScFunctionWin(weld::Widget *pParent)
Definition: dwfunctr.cxx:47
DECL_LINK(SelComboHdl, weld::ComboBox &, void)
OUString m_aHelpId
Definition: dwfunctr.hxx:55
void UpdateLRUList()
Definition: dwfunctr.cxx:141
std::unique_ptr< weld::TextView > xFiFuncDesc
Definition: dwfunctr.hxx:49
DECL_LINK(SetRowActivatedHdl, weld::TreeView &, bool)
void InitLRUList()
Definition: dwfunctr.cxx:116
std::unique_ptr< weld::TreeView > xFuncList
Definition: dwfunctr.hxx:47
DECL_LINK(SelTreeHdl, weld::TreeView &, void)
void UpdateFunctionList()
Definition: dwfunctr.cxx:204
void DoEnter()
Definition: dwfunctr.cxx:263
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:90
sal_uInt16 nArgs
Definition: dwfunctr.hxx:54
ConfigurationListenerProperty(const rtl::Reference< ConfigurationListener > &xListener, const OUString &rProp)