LibreOffice Module sc (master) 1
Classes | Namespaces | Typedefs | Enumerations | Functions | Variables
xlstring.hxx File Reference
#include <vector>
#include <sal/types.h>
#include <o3tl/typed_flags_set.hxx>
Include dependency graph for xlstring.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  o3tl::typed_flags< XclStrFlags >
 
struct  XclFormatRun
 NUL character (unicode). More...
 

Namespaces

namespace  o3tl
 

Typedefs

typedef ::std::vector< XclFormatRunXclFormatRunVec
 A vector with all formatting runs for a rich-string. More...
 

Enumerations

enum class  XclStrFlags : sal_uInt16 {
  NONE = 0x0000 ,
  ForceUnicode = 0x0001 ,
  EightBitLength = 0x0002 ,
  SmartFlags = 0x0004 ,
  SeparateFormats = 0x0008 ,
  NoHeader = 0x0010
}
 Flags used to specify import/export mode of strings. More...
 

Functions

bool operator== (const XclFormatRun &rLeft, const XclFormatRun &rRight)
 
bool operator< (const XclFormatRun &rLeft, const XclFormatRun &rRight)
 

Variables

const sal_uInt16 EXC_STR_MAXLEN_8BIT = 0x00FF
 
const sal_uInt16 EXC_STR_MAXLEN = 0x7FFF
 
const sal_uInt8 EXC_STRF_16BIT = 0x01
 
const sal_uInt8 EXC_STRF_FAREAST = 0x04
 
const sal_uInt8 EXC_STRF_RICH = 0x08
 
const sal_uInt8 EXC_STRF_UNKNOWN = 0xF2
 
const sal_uInt8 EXC_LF_C = '\x0A'
 
const sal_uInt16 EXC_LF = EXC_LF_C
 LF character (used for line break). More...
 
const sal_uInt8 EXC_NUL_C = '\x00'
 LF character (unicode). More...
 
const sal_uInt16 EXC_NUL = EXC_NUL_C
 NUL character. More...
 

Typedef Documentation

◆ XclFormatRunVec

typedef ::std::vector< XclFormatRun > XclFormatRunVec

A vector with all formatting runs for a rich-string.

Definition at line 85 of file xlstring.hxx.

Enumeration Type Documentation

◆ XclStrFlags

enum class XclStrFlags : sal_uInt16
strong

Flags used to specify import/export mode of strings.

Enumerator
NONE 
ForceUnicode 

Default string settings.

EightBitLength 

Always use UCS-2 characters (default: try to compress). BIFF8 only.

SmartFlags 

8-bit string length field (default: 16-bit).

SeparateFormats 

Omit flags on empty string (default: read/write always). BIFF8 only.

NoHeader 

Import: Keep old formats when reading unformatted string (default: clear formats); Export: Write unformatted string.

Definition at line 29 of file xlstring.hxx.

Function Documentation

◆ operator<()

bool operator< ( const XclFormatRun rLeft,
const XclFormatRun rRight 
)
inline

Definition at line 79 of file xlstring.hxx.

References XclFormatRun::mnChar, and XclFormatRun::mnFontIdx.

◆ operator==()

bool operator== ( const XclFormatRun rLeft,
const XclFormatRun rRight 
)
inline

Definition at line 74 of file xlstring.hxx.

References XclFormatRun::mnChar, and XclFormatRun::mnFontIdx.

Variable Documentation

◆ EXC_LF

const sal_uInt16 EXC_LF = EXC_LF_C

LF character (used for line break).

Definition at line 52 of file xlstring.hxx.

Referenced by XclExpString::CharsToBuffer().

◆ EXC_LF_C

const sal_uInt8 EXC_LF_C = '\x0A'

Definition at line 51 of file xlstring.hxx.

Referenced by XclExpString::CharsToBuffer().

◆ EXC_NUL

const sal_uInt16 EXC_NUL = EXC_NUL_C

NUL character.

Definition at line 54 of file xlstring.hxx.

Referenced by XclImpStream::ReadRawUniString().

◆ EXC_NUL_C

const sal_uInt8 EXC_NUL_C = '\x00'

LF character (unicode).

Definition at line 53 of file xlstring.hxx.

Referenced by XclImpStream::ReadRawUniString().

◆ EXC_STR_MAXLEN

const sal_uInt16 EXC_STR_MAXLEN = 0x7FFF

◆ EXC_STR_MAXLEN_8BIT

const sal_uInt16 EXC_STR_MAXLEN_8BIT = 0x00FF

Definition at line 42 of file xlstring.hxx.

Referenced by XclExpString::AppendFormat().

◆ EXC_STRF_16BIT

const sal_uInt8 EXC_STRF_16BIT = 0x01

◆ EXC_STRF_FAREAST

const sal_uInt8 EXC_STRF_FAREAST = 0x04

Definition at line 46 of file xlstring.hxx.

Referenced by XclImpStream::ReadUniStringExtHeader().

◆ EXC_STRF_RICH

const sal_uInt8 EXC_STRF_RICH = 0x08

◆ EXC_STRF_UNKNOWN

const sal_uInt8 EXC_STRF_UNKNOWN = 0xF2

Definition at line 48 of file xlstring.hxx.

Referenced by XclImpStream::ReadUniStringExtHeader().