48 :
PanelLayout(pParent,
"FunctionPanel",
"modules/scalc/ui/functionpanel.ui")
49 , xCatBox(m_xBuilder->weld_combo_box(
"category"))
50 , xFuncList(m_xBuilder->weld_tree_view(
"funclist"))
51 , xInsertButton(m_xBuilder->weld_button(
"insert"))
52 , xFiFuncDesc(m_xBuilder->weld_text_view(
"funcdesc"))
53 , xConfigListener(new
comphelper::ConfigurationListener(
"/org.openoffice.Office.Calc/Formula/Syntax"))
121 sal_Int32 nSelPos =
xCatBox->get_active();
168 weld::fromId<const ScFuncDesc*>(
xFuncList->get_selected_id());
182 const OUString sHelpId = pDesc->
getHelpId();
183 if (!sHelpId.isEmpty())
206 sal_Int32 nSelPos =
xCatBox->get_active();
207 sal_Int32 nCategory = ( -1 != nSelPos )
221 pDesc = pFuncMgr->
Next();
265 OUStringBuffer aArgStr;
266 OUString aString=
xFuncList->get_selected_text();
270 if(!aString.isEmpty())
272 OUString aFirstArgStr;
281 if (xDetectDisposed->isDisposed())
283 aString =
"=" +
xFuncList->get_selected_text();
288 weld::fromId<const ScFuncDesc*>(
xFuncList->get_selected_id());
300 aFirstArgStr = aFirstArgStr.replaceAll(
" ",
"_");
301 aArgStr = aFirstArgStr;
311 for ( sal_uInt16 nArg = 1;
314 aArgStr.append(
"; ");
317 sTmp = sTmp.replaceAll(
" ",
"_");
318 aArgStr.append(sTmp);
327 aString =
"=" +
xFuncList->get_selected_text();
335 pEdView->
InsertText(aArgStr.makeStringAndClear(),
true);
377 UpdateFunctionList();
413 ConfigurationListenerProperty::setProperty(rProperty);
ESelection GetSelection() const
void SetSelection(const ESelection &rNewSel)
void InsertText(const OUString &rNew, bool bSelect=false, bool bLOKShowSelect=true)
virtual void setProperty(const css::uno::Any &rProperty) override
ScFunctionWin * m_pFunctionWin
Stores and generates human readable descriptions for spreadsheet-functions, e.g. functions used in fo...
sal_uInt16 nArgCount
All parameter count, suppressed and unsuppressed.
virtual void initArgumentInfo() const override
Requests function data from AddInCollection.
std::vector< OUString > maDefArgNames
Parameter name(s)
virtual OUString getHelpId() const override
Returns the help id of the function.
std::optional< OUString > mxFuncDesc
Description of function.
ParameterFlags * pDefArgFlags
Flags for each parameter.
sal_uInt16 nFIndex
Unique function index.
std::optional< OUString > mxFuncName
Function name.
OUString GetParamList() const
Returns list of all parameter names.
Stores spreadsheet functions in categories, including a cumulative ('All') category and makes them ac...
const ScFuncDesc * Next() const
Returns the next function of the current category.
const ScFuncDesc * First(sal_uInt16 nCategory=0) const
Returns the first function in category nCategory.
virtual void fillLastRecentlyUsedFunctions(::std::vector< const formula::IFunctionDescription * > &_rLastRUFunctions) const override
Appends the last recently used functions.
::std::vector< const formula::IFunctionDescription * > aLRUList
ScFunctionWin(weld::Widget *pParent)
std::unique_ptr< weld::TextView > xFiFuncDesc
std::unique_ptr< weld::TreeView > xFuncList
void UpdateFunctionList()
std::unique_ptr< weld::Button > xInsertButton
std::unique_ptr< EnglishFunctionNameChange > xConfigChange
const ScFuncDesc * pFuncDesc
rtl::Reference< comphelper::ConfigurationListener > xConfigListener
std::unique_ptr< weld::ComboBox > xCatBox
virtual ~ScFunctionWin() override
static ScFunctionMgr * GetStarCalcFunctionMgr()
ScInputHandler * GetInputHdl(ScTabViewShell *pViewSh=nullptr, bool bUseRef=true)
Input-Handler.
void SetInputMode(ScInputMode eMode, const OUString *pInitText=nullptr)
void InsertEntryToLRUList(sal_uInt16 nFIndex)
static SAL_WARN_UNUSED_RESULT SfxViewShell * Current()
vcl::Window * GetWindow() const
IMPL_LINK_NOARG(ScFunctionWin, SelComboHdl, weld::ComboBox &, void)
#define LINK(Instance, Class, Member)
OString strip(const OString &rIn, char c)
OUString toId(const void *pValue)
bool bOptional
Parameter is optional.