LibreOffice Module sc (master)  1
generalfunction.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 #ifndef INCLUDED_SC_SHEET_GENERAL_FUNCTION_HXX
20 #define INCLUDED_SC_SHEET_GENERAL_FUNCTION_HXX
21 
22 #include <com/sun/star/sheet/GeneralFunction.hpp>
23 #include <com/sun/star/sheet/GeneralFunction2.hpp>
24 
30 {
33  NONE = int(css::sheet::GeneralFunction_NONE),
34 
39  AUTO = int(css::sheet::GeneralFunction_AUTO),
40 
43  SUM = int(css::sheet::GeneralFunction_SUM),
44 
47  COUNT = int(css::sheet::GeneralFunction_COUNT),
48 
51  AVERAGE = int(css::sheet::GeneralFunction_AVERAGE),
52 
55  MAX = int(css::sheet::GeneralFunction_MAX),
56 
59  MIN = int(css::sheet::GeneralFunction_MIN),
60 
63  PRODUCT = int(css::sheet::GeneralFunction_PRODUCT),
64 
67  COUNTNUMS = int(css::sheet::GeneralFunction_COUNTNUMS),
68 
71  STDEV = int(css::sheet::GeneralFunction_STDEV),
72 
75  STDEVP = int(css::sheet::GeneralFunction_STDEVP),
76 
79  VAR = int(css::sheet::GeneralFunction_VAR),
80 
83  VARP = int(css::sheet::GeneralFunction_VARP),
84 
89  MEDIAN = css::sheet::GeneralFunction2::MEDIAN
90 };
91 
92 #endif
function is determined automatically.
const wchar_t *typedef int(__stdcall *DllNativeUnregProc)(int
numerical values are counted.
sum of all numerical values is calculated.
product of all numerical values is calculated.
variance is calculated based on the entire population.
standard deviation is calculated based on the entire population.
average of all numerical values is calculated.
median of all numerical values is calculated.
ScGeneralFunction
the css::sheet::GeneralFunction enum is extended by constants in GeneralFunction2, which causes some type-safety issues.
variance is calculated based on a sample.
all values, including non-numerical values, are counted.
nothing is calculated.
minimum value of all numerical values is calculated.
standard deviation is calculated based on a sample.