LibreOffice Module sw (master)
1
|
Make export a word section top/bottom values easy. More...
#include <writerwordglue.hxx>
Public Member Functions | |
HdFtDistanceGlue (const SfxItemSet &rPage) | |
bool | HasHeader () const |
bool | HasFooter () const |
bool | StrictEqualTopBottom (const HdFtDistanceGlue &rOther) const |
Is the top of the page the same in both objects when there are headers present or non-present in both objects. More... | |
Public Attributes | |
sal_uInt16 | dyaHdrTop |
sal_uInt16 | dyaHdrBottom |
sal_uInt16 | dyaTop |
sal_uInt16 | dyaBottom |
Private Attributes | |
bool | mbHasHeader |
bool | mbHasFooter |
Make export a word section top/bottom values easy.
The top and bottom margins in word and writer are expressed in very different ways. This class provides the equivalent word values for header/footer distances from a given writer attrset of a page
Definition at line 114 of file writerwordglue.hxx.
|
explicit |
Definition at line 395 of file writerwordglue.cxx.
References myImplHelpers::CalcFtDist(), myImplHelpers::CalcHdDist(), SwFormatFooter::GetFooterFormat(), SwFormatHeader::GetHeaderFormat(), SfxItemSet::GetItem(), SvxULSpaceItem::GetLower(), SvxULSpaceItem::GetUpper(), SwFormatHeader::IsActive(), SwFormatFooter::IsActive(), RES_BOX(), RES_FOOTER(), RES_HEADER(), and RES_UL_SPACE().
|
inline |
Definition at line 126 of file writerwordglue.hxx.
References mbHasFooter.
Referenced by StrictEqualTopBottom().
|
inline |
Definition at line 125 of file writerwordglue.hxx.
References mbHasHeader.
Referenced by StrictEqualTopBottom().
bool sw::util::HdFtDistanceGlue::StrictEqualTopBottom | ( | const HdFtDistanceGlue & | rOther | ) | const |
Is the top of the page the same in both objects when there are headers present or non-present in both objects.
This test is important, because we would like to ignore cases when there is a header in one object and no header in the second object - because it is wrong to compare between them.
rOther | the other HdFtDistanceGlue to compare against |
Definition at line 433 of file writerwordglue.cxx.
References dyaBottom, dyaTop, HasFooter(), and HasHeader().
sal_uInt16 sw::util::HdFtDistanceGlue::dyaBottom |
Definition at line 123 of file writerwordglue.hxx.
Referenced by StrictEqualTopBottom().
sal_uInt16 sw::util::HdFtDistanceGlue::dyaHdrBottom |
Definition at line 121 of file writerwordglue.hxx.
sal_uInt16 sw::util::HdFtDistanceGlue::dyaHdrTop |
Definition at line 120 of file writerwordglue.hxx.
sal_uInt16 sw::util::HdFtDistanceGlue::dyaTop |
Definition at line 122 of file writerwordglue.hxx.
Referenced by WW8AttributeOutput::FormatULSpace(), and StrictEqualTopBottom().
|
private |
Definition at line 118 of file writerwordglue.hxx.
Referenced by HasFooter().
|
private |
Definition at line 117 of file writerwordglue.hxx.
Referenced by HasHeader().