LibreOffice Module editeng (master) 1
|
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 SvStream & | StoreBorderLine (SvStream &stream, const ::editeng::SvxBorderLine &l, sal_uInt16 version) |
Store a border line to a stream. More... | |
SvStream & | Store (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 SvStream & | rStrm |
void SvStream sal_uInt16 | nItemVersion |
|
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.
void legacy::SvxBox::Create | ( | SvxBoxItem & | rItem, |
SvStream & | rStrm, | ||
sal_uInt16 | nItemVersion | ||
) |
Definition at line 336 of file legacyitem.cxx.
References BorderLineVersionFromBoxVersion(), BOTTOM, BOX_4DISTS_VERSION, CreateBorderLine(), SvStream::good(), i, LEFT, nItemVersion, SvStream::ReadSChar(), SvStream::ReadUInt16(), RIGHT, rStrm, SvxBoxItem::SetAllDistances(), SvxBoxItem::SetDistance(), SvxBoxItem::SetLine(), and TOP.
|
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().
sal_uInt16 legacy::SvxBox::GetVersion | ( | sal_uInt16 | nFileFormatVersion | ) |
Definition at line 297 of file legacyitem.cxx.
References BOX_BORDER_STYLE_VERSION, DBG_ASSERT, SOFFICE_FILEFORMAT_31, SOFFICE_FILEFORMAT_40, and SOFFICE_FILEFORMAT_50.
SvStream & legacy::SvxBox::Store | ( | const SvxBoxItem & | rItem, |
SvStream & | rStrm, | ||
sal_uInt16 | nItemVersion | ||
) |
Definition at line 386 of file legacyitem.cxx.
References BorderLineVersionFromBoxVersion(), BOTTOM, BOX_4DISTS_VERSION, SvxBoxItem::GetBottom(), SvxBoxItem::GetDistance(), SvxBoxItem::GetLeft(), SvxBoxItem::GetRight(), SvxBoxItem::GetSmallestDistance(), SvxBoxItem::GetTop(), i, LEFT, nItemVersion, RIGHT, rStrm, StoreBorderLine(), TOP, SvStream::WriteSChar(), and SvStream::WriteUInt16().
|
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().
legacy::SvxBox::UNLESS_MERGELIBS | ( | EDITENG_DLLPUBLIC | ) | & |
sal_uInt16 legacy::SvxBox::UNLESS_MERGELIBS | ( | EDITENG_DLLPUBLIC | ) |
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().
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().
SvStream sal_uInt16 legacy::SvxBox::nItemVersion |
Definition at line 123 of file legacyitem.hxx.
SvStream & legacy::SvxBox::rStrm |
Definition at line 123 of file legacyitem.hxx.