LibreOffice Module sw (master)  1
Classes | Macros | Typedefs | Enumerations | Functions | Variables
calc.hxx File Reference
#include <memory>
#include <vector>
#include <basic/sbxvar.hxx>
#include <unotools/syslocale.hxx>
#include <rtl/ustrbuf.hxx>
#include <tools/solar.h>
#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
}
 
enum  SwCalcError {
  SwCalcError::NONE =0,
  SwCalcError::Syntax,
  SwCalcError::DivByZero,
  SwCalcError::FaultyBrackets,
  SwCalcError::OverflowInPower,
  SwCalcError::Overflow
}
 

Functions

CalcOpFindOperator (const OUString &rSearch)
 

Variables

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

Macro Definition Documentation

#define TBLSZ   47

Definition at line 37 of file calc.hxx.

Typedef Documentation

typedef double(* pfCalc) (double)

Definition at line 182 of file calc.hxx.

Enumeration Type Documentation

enum SwCalcError
strong
Enumerator
NONE 
Syntax 
DivByZero 
FaultyBrackets 
OverflowInPower 
Overflow 

Definition at line 93 of file calc.hxx.

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 

Definition at line 41 of file calc.hxx.

Function Documentation

CalcOp* FindOperator ( const OUString &  rSearch)

Variable Documentation

const sal_Unicode cListDelim = '|'

Definition at line 39 of file calc.hxx.

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

const sal_Char sCalc_Acos[]

Definition at line 82 of file calc.cxx.

const sal_Char sCalc_Add[]

Definition at line 57 of file calc.cxx.

const sal_Char sCalc_And[]

Definition at line 66 of file calc.cxx.

const sal_Char sCalc_Asin[]

Definition at line 81 of file calc.cxx.

const sal_Char sCalc_Atan[]

Definition at line 83 of file calc.cxx.

const sal_Char sCalc_Cos[]

Definition at line 79 of file calc.cxx.

const sal_Char sCalc_Date[]

Definition at line 85 of file calc.cxx.

const sal_Char sCalc_Div[]

Definition at line 60 of file calc.cxx.

const sal_Char sCalc_Eq[]

Definition at line 68 of file calc.cxx.

const sal_Char sCalc_G[]

Definition at line 73 of file calc.cxx.

const sal_Char sCalc_Geq[]

Definition at line 71 of file calc.cxx.

const sal_Char sCalc_L[]

Definition at line 72 of file calc.cxx.

const sal_Char sCalc_Leq[]

Definition at line 70 of file calc.cxx.

const sal_Char sCalc_Max[]

Definition at line 77 of file calc.cxx.

const sal_Char sCalc_Mean[]

Definition at line 75 of file calc.cxx.

const sal_Char sCalc_Min[]

Definition at line 76 of file calc.cxx.

const sal_Char sCalc_Mul[]

Definition at line 59 of file calc.cxx.

const sal_Char sCalc_Neq[]

Definition at line 69 of file calc.cxx.

const sal_Char sCalc_Not[]

Definition at line 67 of file calc.cxx.

const sal_Char sCalc_Or[]

Definition at line 64 of file calc.cxx.

const sal_Char sCalc_Phd[]

Definition at line 61 of file calc.cxx.

const sal_Char sCalc_Pow[]

Definition at line 63 of file calc.cxx.

const sal_Char sCalc_Round[]

Definition at line 84 of file calc.cxx.

const sal_Char sCalc_Sin[]

Definition at line 78 of file calc.cxx.

const sal_Char sCalc_Sqrt[]

Definition at line 62 of file calc.cxx.

const sal_Char sCalc_Sub[]

Definition at line 58 of file calc.cxx.

const sal_Char sCalc_Sum[]

Definition at line 74 of file calc.cxx.

Referenced by SwFEShell::GetAutoSum().

const sal_Char sCalc_Tan[]

Definition at line 80 of file calc.cxx.

const sal_Char sCalc_Tdif[]
const sal_Char sCalc_Xor[]

Definition at line 65 of file calc.cxx.