LibreOffice Module editeng (master) 1
Functions | Variables
legacy::SvxBox Namespace Reference

Functions

sal_uInt16 GetVersion (sal_uInt16 nFileFormatVersion)
 
::editeng::SvxBorderLine CreateBorderLine (SvStream &stream, sal_uInt16 version)
 Creates a border line from a stream. More...
 
static sal_uInt16 BorderLineVersionFromBoxVersion (sal_uInt16 boxVersion)
 Retrieves a BORDER_LINE_* version from a BOX_BORDER_* version. More...
 
void Create (SvxBoxItem &rItem, SvStream &rStrm, sal_uInt16 nItemVersion)
 
static SvStreamStoreBorderLine (SvStream &stream, const ::editeng::SvxBorderLine &l, sal_uInt16 version)
 Store a border line to a stream. More...
 
SvStreamStore (const SvxBoxItem &rItem, SvStream &rStrm, sal_uInt16 nItemVersion)
 
sal_uInt16 UNLESS_MERGELIBS (EDITENG_DLLPUBLIC) GetVersion(sal_uInt16 nFileFormatVersion)
 
void UNLESS_MERGELIBS (EDITENG_DLLPUBLIC) Create(SvxBoxItem &rItem
 

Variables

const int BORDER_LINE_OLD_VERSION = 0
 Item version for saved border lines. The old version saves the line without style information. More...
 
const int BORDER_LINE_WITH_STYLE_VERSION = 1
 Item version for saved border lies. The new version includes line style. More...
 
void SvStreamrStrm
 
void SvStream sal_uInt16 nItemVersion
 

Function Documentation

◆ BorderLineVersionFromBoxVersion()

static sal_uInt16 legacy::SvxBox::BorderLineVersionFromBoxVersion ( sal_uInt16  boxVersion)
static

Retrieves a BORDER_LINE_* version from a BOX_BORDER_* version.

Definition at line 331 of file legacyitem.cxx.

References BORDER_LINE_OLD_VERSION, BORDER_LINE_WITH_STYLE_VERSION, and BOX_BORDER_STYLE_VERSION.

Referenced by Create(), and Store().

◆ Create()

void legacy::SvxBox::Create ( SvxBoxItem rItem,
SvStream rStrm,
sal_uInt16  nItemVersion 
)

◆ CreateBorderLine()

::editeng::SvxBorderLine legacy::SvxBox::CreateBorderLine ( SvStream stream,
sal_uInt16  version 
)
static

Creates a border line from a stream.

Definition at line 313 of file legacyitem.cxx.

References BORDER_LINE_WITH_STYLE_VERSION, editeng::SvxBorderLine::GuessLinesWidths(), tools::GenericTypeSerializer::readColor(), and stream.

Referenced by Create().

◆ GetVersion()

sal_uInt16 legacy::SvxBox::GetVersion ( sal_uInt16  nFileFormatVersion)

◆ Store()

SvStream & legacy::SvxBox::Store ( const SvxBoxItem rItem,
SvStream rStrm,
sal_uInt16  nItemVersion 
)

◆ StoreBorderLine()

static SvStream & legacy::SvxBox::StoreBorderLine ( SvStream stream,
const ::editeng::SvxBorderLine l,
sal_uInt16  version 
)
static

Store a border line to a stream.

Definition at line 371 of file legacyitem.cxx.

References BORDER_LINE_WITH_STYLE_VERSION, stream, and tools::GenericTypeSerializer::writeColor().

Referenced by Store().

◆ UNLESS_MERGELIBS() [1/2]

legacy::SvxBox::UNLESS_MERGELIBS ( EDITENG_DLLPUBLIC  ) &

◆ UNLESS_MERGELIBS() [2/2]

sal_uInt16 legacy::SvxBox::UNLESS_MERGELIBS ( EDITENG_DLLPUBLIC  )

Variable Documentation

◆ BORDER_LINE_OLD_VERSION

const int legacy::SvxBox::BORDER_LINE_OLD_VERSION = 0

Item version for saved border lines. The old version saves the line without style information.

Definition at line 308 of file legacyitem.cxx.

Referenced by BorderLineVersionFromBoxVersion().

◆ BORDER_LINE_WITH_STYLE_VERSION

const int legacy::SvxBox::BORDER_LINE_WITH_STYLE_VERSION = 1

Item version for saved border lies. The new version includes line style.

Definition at line 310 of file legacyitem.cxx.

Referenced by BorderLineVersionFromBoxVersion(), CreateBorderLine(), and StoreBorderLine().

◆ nItemVersion

SvStream sal_uInt16 legacy::SvxBox::nItemVersion

Definition at line 123 of file legacyitem.hxx.

Referenced by Create(), and Store().

◆ rStrm

SvStream & legacy::SvxBox::rStrm

Definition at line 123 of file legacyitem.hxx.

Referenced by Create(), and Store().