LibreOffice Module sw (master) 1
Classes | Macros | Typedefs | Enumerations | Functions | Variables
calc.hxx File Reference
#include <memory>
#include <vector>
#include <i18nlangtag/lang.h>
#include <basic/sbxvar.hxx>
#include <unotools/syslocale.hxx>
#include <rtl/ustrbuf.hxx>
#include <tools/solar.h>
#include <tools/long.hxx>
#include <o3tl/safeint.hxx>
#include "swdllapi.h"
Include dependency graph for calc.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SwSbxValue
 
struct  SwHash
 
struct  SwCalcExp
 
class  SwHashTable< T >
 T should be a subclass of SwHash. More...
 
class  SwCalc
 

Macros

#define TBLSZ   47
 

Typedefs

typedef double(* pfCalc) (double)
 

Enumerations

enum  SwCalcOper {
  CALC_NAME ,
  CALC_NUMBER ,
  CALC_ENDCALC ,
  CALC_PLUS ='+' ,
  CALC_MINUS ='-' ,
  CALC_MUL ='*' ,
  CALC_DIV ='/' ,
  CALC_PRINT =';' ,
  CALC_ASSIGN ='=' ,
  CALC_LP ='(' ,
  CALC_RP =')' ,
  CALC_PHD ='' ,
  CALC_POW ='^' ,
  CALC_NOT =256 ,
  CALC_AND =257 ,
  CALC_OR =258 ,
  CALC_XOR =259 ,
  CALC_EQ =260 ,
  CALC_NEQ =261 ,
  CALC_LEQ =262 ,
  CALC_GEQ =263 ,
  CALC_LES =264 ,
  CALC_GRE =265 ,
  CALC_SUM =266 ,
  CALC_MEAN =267 ,
  CALC_SQRT =268 ,
  CALC_MIN =269 ,
  CALC_MIN_IN =270 ,
  CALC_MAX =271 ,
  CALC_MAX_IN =272 ,
  CALC_SIN =273 ,
  CALC_COS =274 ,
  CALC_TAN =275 ,
  CALC_ASIN =276 ,
  CALC_ACOS =278 ,
  CALC_ATAN =279 ,
  CALC_TDIF =280 ,
  CALC_ROUND =281 ,
  CALC_DATE =282 ,
  CALC_MONTH =283 ,
  CALC_DAY =284 ,
  CALC_PRODUCT =285 ,
  CALC_AVERAGE =286 ,
  CALC_COUNT =287 ,
  CALC_SIGN =288 ,
  CALC_ABS =289 ,
  CALC_INT =290
}
 
enum class  SwCalcError {
  NONE =0 ,
  NaN ,
  Syntax ,
  DivByZero ,
  FaultyBrackets ,
  OverflowInPower ,
  Overflow
}
 

Functions

CalcOpFindOperator (const OUString &rSearch)
 

Variables

const sal_Unicode cListDelim = '|'
 
const char sCalc_Add []
 
const char sCalc_Sub []
 
const char sCalc_Mul []
 
const char sCalc_Div []
 
const char sCalc_Phd []
 
const char sCalc_Sqrt []
 
const char sCalc_Pow []
 
const char sCalc_Or []
 
const char sCalc_Xor []
 
const char sCalc_And []
 
const char sCalc_Not []
 
const char sCalc_Eq []
 
const char sCalc_Neq []
 
const char sCalc_Leq []
 
const char sCalc_Geq []
 
const char sCalc_L []
 
const char sCalc_G []
 
const char sCalc_Sum []
 
const char sCalc_Mean []
 
const char sCalc_Average []
 
const char sCalc_Product []
 
const char sCalc_Count []
 
const char sCalc_Min []
 
const char sCalc_Max []
 
const char sCalc_Sin []
 
const char sCalc_Cos []
 
const char sCalc_Tan []
 
const char sCalc_Asin []
 
const char sCalc_Acos []
 
const char sCalc_Atan []
 
const char sCalc_Round []
 
const char sCalc_Date []
 
const char sCalc_Sign []
 
const char sCalc_Abs []
 
const char sCalc_Int []
 

Macro Definition Documentation

◆ TBLSZ

#define TBLSZ   47

Definition at line 40 of file calc.hxx.

Typedef Documentation

◆ pfCalc

typedef double(* pfCalc) (double)

Definition at line 197 of file calc.hxx.

Enumeration Type Documentation

◆ SwCalcError

enum class SwCalcError
strong
Enumerator
NONE 
NaN 
Syntax 
DivByZero 
FaultyBrackets 
OverflowInPower 
Overflow 

Definition at line 103 of file calc.hxx.

◆ SwCalcOper

enum SwCalcOper
Enumerator
CALC_NAME 
CALC_NUMBER 
CALC_ENDCALC 
CALC_PLUS 
CALC_MINUS 
CALC_MUL 
CALC_DIV 
CALC_PRINT 
CALC_ASSIGN 
CALC_LP 
CALC_RP 
CALC_PHD 
CALC_POW 
CALC_NOT 
CALC_AND 
CALC_OR 
CALC_XOR 
CALC_EQ 
CALC_NEQ 
CALC_LEQ 
CALC_GEQ 
CALC_LES 
CALC_GRE 
CALC_SUM 
CALC_MEAN 
CALC_SQRT 
CALC_MIN 
CALC_MIN_IN 
CALC_MAX 
CALC_MAX_IN 
CALC_SIN 
CALC_COS 
CALC_TAN 
CALC_ASIN 
CALC_ACOS 
CALC_ATAN 
CALC_TDIF 
CALC_ROUND 
CALC_DATE 
CALC_MONTH 
CALC_DAY 
CALC_PRODUCT 
CALC_AVERAGE 
CALC_COUNT 
CALC_SIGN 
CALC_ABS 
CALC_INT 

Definition at line 44 of file calc.hxx.

Function Documentation

◆ FindOperator()

CalcOp * FindOperator ( const OUString &  rSearch)

Variable Documentation

◆ cListDelim

const sal_Unicode cListDelim = '|'

Definition at line 42 of file calc.hxx.

Referenced by SwFEShell::GetAutoSum(), SwCalc::GetToken(), and SwTableFormula::MakeFormula_().

◆ sCalc_Abs

const char sCalc_Abs[]
extern

Definition at line 91 of file calc.cxx.

◆ sCalc_Acos

const char sCalc_Acos[]
extern

Definition at line 83 of file calc.cxx.

◆ sCalc_Add

const char sCalc_Add[]
extern

Definition at line 58 of file calc.cxx.

◆ sCalc_And

const char sCalc_And[]
extern

Definition at line 67 of file calc.cxx.

◆ sCalc_Asin

const char sCalc_Asin[]
extern

Definition at line 82 of file calc.cxx.

◆ sCalc_Atan

const char sCalc_Atan[]
extern

Definition at line 84 of file calc.cxx.

◆ sCalc_Average

const char sCalc_Average[]
extern

Definition at line 88 of file calc.cxx.

◆ sCalc_Cos

const char sCalc_Cos[]
extern

Definition at line 80 of file calc.cxx.

◆ sCalc_Count

const char sCalc_Count[]
extern

Definition at line 89 of file calc.cxx.

◆ sCalc_Date

const char sCalc_Date[]
extern

Definition at line 86 of file calc.cxx.

◆ sCalc_Div

const char sCalc_Div[]
extern

Definition at line 61 of file calc.cxx.

◆ sCalc_Eq

const char sCalc_Eq[]
extern

Definition at line 69 of file calc.cxx.

◆ sCalc_G

const char sCalc_G[]
extern

Definition at line 74 of file calc.cxx.

◆ sCalc_Geq

const char sCalc_Geq[]
extern

Definition at line 72 of file calc.cxx.

◆ sCalc_Int

const char sCalc_Int[]
extern

Definition at line 92 of file calc.cxx.

◆ sCalc_L

const char sCalc_L[]
extern

Definition at line 73 of file calc.cxx.

◆ sCalc_Leq

const char sCalc_Leq[]
extern

Definition at line 71 of file calc.cxx.

◆ sCalc_Max

const char sCalc_Max[]
extern

Definition at line 78 of file calc.cxx.

◆ sCalc_Mean

const char sCalc_Mean[]
extern

Definition at line 76 of file calc.cxx.

◆ sCalc_Min

const char sCalc_Min[]
extern

Definition at line 77 of file calc.cxx.

◆ sCalc_Mul

const char sCalc_Mul[]
extern

Definition at line 60 of file calc.cxx.

◆ sCalc_Neq

const char sCalc_Neq[]
extern

Definition at line 70 of file calc.cxx.

◆ sCalc_Not

const char sCalc_Not[]
extern

Definition at line 68 of file calc.cxx.

◆ sCalc_Or

const char sCalc_Or[]
extern

Definition at line 65 of file calc.cxx.

◆ sCalc_Phd

const char sCalc_Phd[]
extern

Definition at line 62 of file calc.cxx.

◆ sCalc_Pow

const char sCalc_Pow[]
extern

Definition at line 64 of file calc.cxx.

◆ sCalc_Product

const char sCalc_Product[]
extern

Definition at line 87 of file calc.cxx.

◆ sCalc_Round

const char sCalc_Round[]
extern

Definition at line 85 of file calc.cxx.

◆ sCalc_Sign

const char sCalc_Sign[]
extern

Definition at line 90 of file calc.cxx.

◆ sCalc_Sin

const char sCalc_Sin[]
extern

Definition at line 79 of file calc.cxx.

◆ sCalc_Sqrt

const char sCalc_Sqrt[]
extern

Definition at line 63 of file calc.cxx.

◆ sCalc_Sub

const char sCalc_Sub[]
extern

Definition at line 59 of file calc.cxx.

◆ sCalc_Sum

const char sCalc_Sum[]
extern

Definition at line 75 of file calc.cxx.

Referenced by SwFEShell::GetAutoSum().

◆ sCalc_Tan

const char sCalc_Tan[]
extern

Definition at line 81 of file calc.cxx.

◆ sCalc_Xor

const char sCalc_Xor[]
extern

Definition at line 66 of file calc.cxx.