LibreOffice Module sw (master)  1
Classes | Namespaces | Typedefs | Enumerations | Functions | Variables
fldbas.hxx File Reference
#include <i18nlangtag/lang.h>
#include "swdllapi.h"
#include "calbck.hxx"
#include <cppuhelper/weakref.hxx>
#include <editeng/svxenum.hxx>
#include <vector>
#include <climits>
Include dependency graph for fldbas.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SwFieldType
 Instances of SwFields and those derived from it occur 0 to n times. More...
 
class  SwField
 Base class of all fields. More...
 
class  SwValueFieldType
 Fields containing values that have to be formatted via number formatter. More...
 
class  SwValueField
 
class  SwFormulaField
 

Namespaces

 com
 
 com::sun
 
 com::sun::star
 
 com::sun::star::beans
 
 com::sun::star::uno
 
 nsSwGetSetExpType
 
 nsSwExtendedSubType
 

Typedefs

typedef struct _xmlTextWriter * xmlTextWriterPtr
 
typedef sal_uInt16 SwGetSetExpType
 
typedef sal_uInt16 SwExtendedSubType
 

Enumerations

enum  SwFieldIds : sal_uInt16 {
  SwFieldIds::Database,
  SwFieldIds::User,
  SwFieldIds::Filename,
  SwFieldIds::DatabaseName,
  SwFieldIds::Date,
  SwFieldIds::Time,
  SwFieldIds::PageNumber,
  SwFieldIds::Author,
  SwFieldIds::Chapter,
  SwFieldIds::DocStat,
  SwFieldIds::GetExp,
  SwFieldIds::SetExp,
  SwFieldIds::GetRef,
  SwFieldIds::HiddenText,
  SwFieldIds::Postit,
  SwFieldIds::FixDate,
  SwFieldIds::FixTime,
  SwFieldIds::Reg,
  SwFieldIds::VarReg,
  SwFieldIds::SetRef,
  SwFieldIds::Input,
  SwFieldIds::Macro,
  SwFieldIds::Dde,
  SwFieldIds::Table,
  SwFieldIds::HiddenPara,
  SwFieldIds::DocInfo,
  SwFieldIds::TemplateName,
  SwFieldIds::DbNextSet,
  SwFieldIds::DbNumSet,
  SwFieldIds::DbSetNumber,
  SwFieldIds::ExtUser,
  SwFieldIds::RefPageSet,
  SwFieldIds::RefPageGet,
  SwFieldIds::Internet,
  SwFieldIds::JumpEdit,
  SwFieldIds::Script,
  SwFieldIds::DateTime,
  SwFieldIds::TableOfAuthorities,
  SwFieldIds::CombinedChars,
  SwFieldIds::Dropdown,
  SwFieldIds::ParagraphSignature,
  SwFieldIds::LAST = ParagraphSignature,
  SwFieldIds::Unknown = USHRT_MAX
}
 
enum  SwFieldTypesEnum {
  TYP_BEGIN,
  TYP_DATEFLD = TYP_BEGIN,
  TYP_TIMEFLD,
  TYP_FILENAMEFLD,
  TYP_DBNAMEFLD,
  TYP_CHAPTERFLD,
  TYP_PAGENUMBERFLD,
  TYP_DOCSTATFLD,
  TYP_AUTHORFLD,
  TYP_SETFLD,
  TYP_GETFLD,
  TYP_FORMELFLD,
  TYP_HIDDENTXTFLD,
  TYP_SETREFFLD,
  TYP_GETREFFLD,
  TYP_DDEFLD,
  TYP_MACROFLD,
  TYP_INPUTFLD,
  TYP_HIDDENPARAFLD,
  TYP_DOCINFOFLD,
  TYP_DBFLD,
  TYP_USERFLD,
  TYP_POSTITFLD,
  TYP_TEMPLNAMEFLD,
  TYP_SEQFLD,
  TYP_DBNEXTSETFLD,
  TYP_DBNUMSETFLD,
  TYP_DBSETNUMBERFLD,
  TYP_CONDTXTFLD,
  TYP_NEXTPAGEFLD,
  TYP_PREVPAGEFLD,
  TYP_EXTUSERFLD,
  TYP_FIXDATEFLD,
  TYP_FIXTIMEFLD,
  TYP_SETINPFLD,
  TYP_USRINPFLD,
  TYP_SETREFPAGEFLD,
  TYP_GETREFPAGEFLD,
  TYP_INTERNETFLD,
  TYP_JUMPEDITFLD,
  TYP_SCRIPTFLD,
  TYP_AUTHORITY,
  TYP_COMBINED_CHARS,
  TYP_DROPDOWN,
  TYP_CUSTOM,
  TYP_PARAGRAPHSIGFLD,
  TYP_END
}
 List of FieldTypes at UI. More...
 
enum  SwAttrFieldType {
  ATTR_NONE,
  ATTR_DATEFLD,
  ATTR_TIMEFLD,
  ATTR_PAGENUMBERFLD,
  ATTR_PAGECOOUNTFLD,
  ATTR_BOOKMARKFLD,
  ATTR_SETREFATTRFLD
}
 
enum  SwFileNameFormat {
  FF_BEGIN,
  FF_NAME = FF_BEGIN,
  FF_PATHNAME,
  FF_PATH,
  FF_NAME_NOEXT,
  FF_UI_NAME,
  FF_UI_RANGE,
  FF_END,
  FF_FIXED = 0x8000
}
 
enum  SwVarFormat {
  VVF_CMD = 0x0010,
  VVF_INVISIBLE = 0x0040,
  VVF_XXP = 0x0400,
  VVF_XX_XXP = 0x0800,
  VVF_CLEAR = 0x000f,
  VVF_SYS = 0x2000,
  VVF_X = 0x2100,
  VVF_X_X = 0x2200,
  VVF_X_XX = 0x2300,
  VVF_XX_X = 0x2400,
  VVF_XX_XX = 0x2500,
  VVF_XX_XXX = 0x2600,
  VVF_SYS_CUR = 0x2700,
  VVF_CUR_X = 0x2800,
  VVF_CUR_XX_XX = 0x2900,
  VVF_CUR_XX_X0 = 0x2a00,
  VVF_X_CUR = 0x2b00,
  VVF_XX_XX_CUR = 0x2c00,
  VVF_XX_X0_CUR = 0x2d00,
  VF_CMD = VVF_CMD,
  VF_INVISIBLE = VVF_INVISIBLE,
  VF_XXP = VVF_XXP,
  VF_XX_XXP = VVF_XX_XXP,
  VF_VISIBLE = VVF_SYS,
  VF_XX = VVF_X,
  VF_XX_XX = VVF_XX_XX,
  VF_XX_XX_CUR = VVF_SYS_CUR,
  VF_CLEAR = VVF_CLEAR
}
 
enum  SwInputFieldSubType {
  INP_TXT = 0x01,
  INP_USR = 0x02,
  INP_VAR = 0x03
}
 
enum  SwUserType {
  UF_STRING = 0x01,
  UF_EXPR = 0x02
}
 
enum  SwDateTimeSubType {
  FIXEDFLD = 1,
  DATEFLD = 2,
  TIMEFLD = 4
}
 

Functions

OUString FormatNumber (sal_uInt32 nNum, SvxNumType nFormat, LanguageType nLang=LANGUAGE_NONE)
 General tools. More...
 

Variables

const SwGetSetExpType nsSwGetSetExpType::GSE_STRING = 0x0001
 String. More...
 
const SwGetSetExpType nsSwGetSetExpType::GSE_EXPR = 0x0002
 Expression. More...
 
const SwGetSetExpType nsSwGetSetExpType::GSE_SEQ = 0x0008
 Sequence. More...
 
const SwGetSetExpType nsSwGetSetExpType::GSE_FORMULA = 0x0010
 Formula. More...
 
const SwExtendedSubType nsSwExtendedSubType::SUB_CMD = 0x0100
 Show command. More...
 
const SwExtendedSubType nsSwExtendedSubType::SUB_INVISIBLE = 0x0200
 Invisible. More...
 
const SwExtendedSubType nsSwExtendedSubType::SUB_OWN_FMT = 0x0400
 SwDBField: Don't accept formatting from database. More...
 

Typedef Documentation

typedef sal_uInt16 SwExtendedSubType

Definition at line 201 of file fldbas.hxx.

typedef sal_uInt16 SwGetSetExpType

Definition at line 192 of file fldbas.hxx.

typedef struct _xmlTextWriter* xmlTextWriterPtr

Definition at line 36 of file fldbas.hxx.

Enumeration Type Documentation

Enumerator
ATTR_NONE 
ATTR_DATEFLD 
ATTR_TIMEFLD 
ATTR_PAGENUMBERFLD 
ATTR_PAGECOOUNTFLD 
ATTR_BOOKMARKFLD 
ATTR_SETREFATTRFLD 

Definition at line 136 of file fldbas.hxx.

Enumerator
FIXEDFLD 
DATEFLD 
TIMEFLD 

Definition at line 220 of file fldbas.hxx.

enum SwFieldIds : sal_uInt16
strong
Enumerator
Database 

For old documents the Field-Which IDs must be preserved !!!

User 
Filename 
DatabaseName 
Date 
Time 
PageNumber 
Author 
Chapter 
DocStat 
GetExp 
SetExp 
GetRef 
HiddenText 
Postit 
FixDate 
FixTime 
Reg 
VarReg 
SetRef 
Input 
Macro 
Dde 
Table 
HiddenPara 
DocInfo 
TemplateName 
DbNextSet 
DbNumSet 
DbSetNumber 
ExtUser 
RefPageSet 
RefPageGet 
Internet 
JumpEdit 
Script 
DateTime 
TableOfAuthorities 
CombinedChars 
Dropdown 
ParagraphSignature 
LAST 
Unknown 

Definition at line 38 of file fldbas.hxx.

List of FieldTypes at UI.

Enumerator
TYP_BEGIN 
TYP_DATEFLD 
TYP_TIMEFLD 
TYP_FILENAMEFLD 
TYP_DBNAMEFLD 
TYP_CHAPTERFLD 
TYP_PAGENUMBERFLD 
TYP_DOCSTATFLD 
TYP_AUTHORFLD 
TYP_SETFLD 
TYP_GETFLD 
TYP_FORMELFLD 
TYP_HIDDENTXTFLD 
TYP_SETREFFLD 
TYP_GETREFFLD 
TYP_DDEFLD 
TYP_MACROFLD 
TYP_INPUTFLD 
TYP_HIDDENPARAFLD 
TYP_DOCINFOFLD 
TYP_DBFLD 
TYP_USERFLD 
TYP_POSTITFLD 
TYP_TEMPLNAMEFLD 
TYP_SEQFLD 
TYP_DBNEXTSETFLD 
TYP_DBNUMSETFLD 
TYP_DBSETNUMBERFLD 
TYP_CONDTXTFLD 
TYP_NEXTPAGEFLD 
TYP_PREVPAGEFLD 
TYP_EXTUSERFLD 
TYP_FIXDATEFLD 
TYP_FIXTIMEFLD 
TYP_SETINPFLD 
TYP_USRINPFLD 
TYP_SETREFPAGEFLD 
TYP_GETREFPAGEFLD 
TYP_INTERNETFLD 
TYP_JUMPEDITFLD 
TYP_SCRIPTFLD 
TYP_AUTHORITY 
TYP_COMBINED_CHARS 
TYP_DROPDOWN 
TYP_CUSTOM 
TYP_PARAGRAPHSIGFLD 
TYP_END 

Definition at line 87 of file fldbas.hxx.

Enumerator
FF_BEGIN 
FF_NAME 
FF_PATHNAME 
FF_PATH 
FF_NAME_NOEXT 
FF_UI_NAME 
FF_UI_RANGE 
FF_END 
FF_FIXED 

Definition at line 145 of file fldbas.hxx.

Enumerator
INP_TXT 
INP_USR 
INP_VAR 

Definition at line 209 of file fldbas.hxx.

enum SwUserType
Enumerator
UF_STRING 
UF_EXPR 

Definition at line 215 of file fldbas.hxx.

Enumerator
VVF_CMD 

Show command.

VVF_INVISIBLE 

Invisible.

VVF_XXP 

1234%

VVF_XX_XXP 

1.234,56%

VVF_CLEAR 
VVF_SYS 

Format for numbers from system.

VVF_X 

1234

VVF_X_X 

1234.5

VVF_X_XX 

1245.56

VVF_XX_X 

1.234.5

VVF_XX_XX 

1.234.56

VVF_XX_XXX 

1.234.567

VVF_SYS_CUR 

Format for currency from system.

VVF_CUR_X 

EUR 1234.

VVF_CUR_XX_XX 

EUR 1234.56 EUR 1234.00.

VVF_CUR_XX_X0 

EUR 1234.56 EUR 1234.–.

VVF_X_CUR 

1234 EUR

VVF_XX_XX_CUR 

1234.56 EUR 1234.00 EUR

VVF_XX_X0_CUR 

1234.56 EUR 1234.

– EUR

VF_CMD 

Compatibility:

VF_INVISIBLE 
VF_XXP 
VF_XX_XXP 
VF_VISIBLE 
VF_XX 
VF_XX_XX 
VF_XX_XX_CUR 
VF_CLEAR 

Definition at line 157 of file fldbas.hxx.

Function Documentation

OUString FormatNumber ( sal_uInt32  nNum,
SvxNumType  nFormat,
LanguageType  nLang 
)