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,
  CALC_PRODUCT =285,
  CALC_AVERAGE =286,
  CALC_COUNT =287,
  CALC_SIGN =288,
  CALC_ABS =289
}
 
enum  SwCalcError {
  SwCalcError::NONE =0,
  SwCalcError::NaN,
  SwCalcError::Syntax,
  SwCalcError::DivByZero,
  SwCalcError::FaultyBrackets,
  SwCalcError::OverflowInPower,
  SwCalcError::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 []
 

Macro Definition Documentation

#define TBLSZ   47

Definition at line 37 of file calc.hxx.

Typedef Documentation

typedef double(* pfCalc) (double)

Definition at line 188 of file calc.hxx.

Enumeration Type Documentation

enum SwCalcError
strong
Enumerator
NONE 
NaN 
Syntax 
DivByZero 
FaultyBrackets 
OverflowInPower 
Overflow 

Definition at line 98 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 
CALC_PRODUCT 
CALC_AVERAGE 
CALC_COUNT 
CALC_SIGN 
CALC_ABS 

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 char sCalc_Abs[]

Definition at line 90 of file calc.cxx.

const char sCalc_Acos[]

Definition at line 82 of file calc.cxx.

const char sCalc_Add[]

Definition at line 57 of file calc.cxx.

const char sCalc_And[]

Definition at line 66 of file calc.cxx.

const char sCalc_Asin[]

Definition at line 81 of file calc.cxx.

const char sCalc_Atan[]

Definition at line 83 of file calc.cxx.

const char sCalc_Average[]

Definition at line 87 of file calc.cxx.

const char sCalc_Cos[]

Definition at line 79 of file calc.cxx.

const char sCalc_Count[]

Definition at line 88 of file calc.cxx.

const char sCalc_Date[]

Definition at line 85 of file calc.cxx.

const char sCalc_Div[]

Definition at line 60 of file calc.cxx.

const char sCalc_Eq[]

Definition at line 68 of file calc.cxx.

const char sCalc_G[]

Definition at line 73 of file calc.cxx.

const char sCalc_Geq[]

Definition at line 71 of file calc.cxx.

const char sCalc_L[]

Definition at line 72 of file calc.cxx.

const char sCalc_Leq[]

Definition at line 70 of file calc.cxx.

const char sCalc_Max[]

Definition at line 77 of file calc.cxx.

const char sCalc_Mean[]

Definition at line 75 of file calc.cxx.

const char sCalc_Min[]

Definition at line 76 of file calc.cxx.

const char sCalc_Mul[]

Definition at line 59 of file calc.cxx.

const char sCalc_Neq[]

Definition at line 69 of file calc.cxx.

const char sCalc_Not[]

Definition at line 67 of file calc.cxx.

const char sCalc_Or[]

Definition at line 64 of file calc.cxx.

const char sCalc_Phd[]

Definition at line 61 of file calc.cxx.

const char sCalc_Pow[]

Definition at line 63 of file calc.cxx.

const char sCalc_Product[]

Definition at line 86 of file calc.cxx.

const char sCalc_Round[]

Definition at line 84 of file calc.cxx.

const char sCalc_Sign[]

Definition at line 89 of file calc.cxx.

const char sCalc_Sin[]

Definition at line 78 of file calc.cxx.

const char sCalc_Sqrt[]

Definition at line 62 of file calc.cxx.

const char sCalc_Sub[]

Definition at line 58 of file calc.cxx.

const char sCalc_Sum[]

Definition at line 74 of file calc.cxx.

Referenced by SwFEShell::GetAutoSum().

const char sCalc_Tan[]

Definition at line 80 of file calc.cxx.

const char sCalc_Xor[]

Definition at line 65 of file calc.cxx.