LibreOffice Module sw (master) 1
Classes | Namespaces | Typedefs | Enumerations | Functions | Variables
fldbas.hxx File Reference
#include <i18nlangtag/lang.h>
#include "swdllapi.h"
#include "swtypes.hxx"
#include "calbck.hxx"
#include "nodeoffset.hxx"
#include <com/sun/star/beans/XPropertySet.hpp>
#include <cppuhelper/weakref.hxx>
#include <editeng/svxenum.hxx>
#include <unotools/weakref.hxx>
#include <rtl/ref.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

namespace  com
 
namespace  com::sun
 
namespace  com::sun::star
 
namespace  com::sun::star::uno
 
namespace  nsSwGetSetExpType
 
namespace  nsSwExtendedSubType
 

Typedefs

typedef struct _xmlTextWriter * xmlTextWriterPtr
 
typedef sal_uInt16 SwGetSetExpType
 
typedef sal_uInt16 SwExtendedSubType
 

Enumerations

enum class  SwFieldIds : sal_uInt16 {
  Database ,
  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 = ParagraphSignature ,
  Unknown = USHRT_MAX
}
 
enum class  SwFieldTypesEnum : sal_uInt16 {
  Begin ,
  Date = Begin ,
  Time ,
  Filename ,
  DatabaseName ,
  Chapter ,
  PageNumber ,
  DocumentStatistics ,
  Author ,
  Set ,
  Get ,
  Formel ,
  HiddenText ,
  SetRef ,
  GetRef ,
  DDE ,
  Macro ,
  Input ,
  HiddenParagraph ,
  DocumentInfo ,
  Database ,
  User ,
  Postit ,
  TemplateName ,
  Sequence ,
  DatabaseNextSet ,
  DatabaseNumberSet ,
  DatabaseSetNumber ,
  ConditionalText ,
  NextPage ,
  PreviousPage ,
  ExtendedUser ,
  FixedDate ,
  FixedTime ,
  SetInput ,
  UserInput ,
  SetRefPage ,
  GetRefPage ,
  Internet ,
  JumpEdit ,
  Script ,
  Authority ,
  CombinedChars ,
  Dropdown ,
  Custom ,
  ParagraphSignature ,
  LAST ,
  Unknown = USHRT_MAX
}
 List of FieldTypes at UI. More...
 
enum  SwAttrFieldType {
  ATTR_NONE ,
  ATTR_DATEFLD ,
  ATTR_TIMEFLD ,
  ATTR_PAGENUMBERFLD ,
  ATTR_PAGECOUNTFLD ,
  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...
 
SwFieldTypesEnum SwFieldTypeFromString (std::u16string_view rString)
 

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

◆ SwExtendedSubType

typedef sal_uInt16 SwExtendedSubType

Definition at line 213 of file fldbas.hxx.

◆ SwGetSetExpType

typedef sal_uInt16 SwGetSetExpType

Definition at line 204 of file fldbas.hxx.

◆ xmlTextWriterPtr

typedef struct _xmlTextWriter* xmlTextWriterPtr

Definition at line 47 of file fldbas.hxx.

Enumeration Type Documentation

◆ SwAttrFieldType

Enumerator
ATTR_NONE 
ATTR_DATEFLD 
ATTR_TIMEFLD 
ATTR_PAGENUMBERFLD 
ATTR_PAGECOUNTFLD 
ATTR_BOOKMARKFLD 
ATTR_SETREFATTRFLD 

Definition at line 148 of file fldbas.hxx.

◆ SwDateTimeSubType

Enumerator
FIXEDFLD 
DATEFLD 
TIMEFLD 

Definition at line 232 of file fldbas.hxx.

◆ SwFieldIds

enum class 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 49 of file fldbas.hxx.

◆ SwFieldTypesEnum

enum class SwFieldTypesEnum : sal_uInt16
strong

List of FieldTypes at UI.

Enumerator
Begin 
Date 
Time 
Filename 
DatabaseName 
Chapter 
PageNumber 
DocumentStatistics 
Author 
Set 
Get 
Formel 
HiddenText 
SetRef 
GetRef 
DDE 
Macro 
Input 
HiddenParagraph 
DocumentInfo 
Database 
User 
Postit 
TemplateName 
Sequence 
DatabaseNextSet 
DatabaseNumberSet 
DatabaseSetNumber 
ConditionalText 
NextPage 
PreviousPage 
ExtendedUser 
FixedDate 
FixedTime 
SetInput 
UserInput 
SetRefPage 
GetRefPage 
Internet 
JumpEdit 
Script 
Authority 
CombinedChars 
Dropdown 
Custom 
ParagraphSignature 
LAST 
Unknown 

Definition at line 98 of file fldbas.hxx.

◆ SwFileNameFormat

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 157 of file fldbas.hxx.

◆ SwInputFieldSubType

Enumerator
INP_TXT 
INP_USR 
INP_VAR 

Definition at line 221 of file fldbas.hxx.

◆ SwUserType

enum SwUserType
Enumerator
UF_STRING 
UF_EXPR 

Definition at line 227 of file fldbas.hxx.

◆ SwVarFormat

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 169 of file fldbas.hxx.

Function Documentation

◆ FormatNumber()

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

◆ SwFieldTypeFromString()

SwFieldTypesEnum SwFieldTypeFromString ( std::u16string_view  rString)