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\footers present or non-present in both objects. More... | |
Public Attributes | |
sal_uInt16 | m_DyaHdrTop |
sal_uInt16 | m_DyaHdrBottom |
sal_uInt16 | m_DyaTop |
sal_uInt16 | m_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 409 of file writerwordglue.cxx.
References myImplHelpers::CalcFtDist(), myImplHelpers::CalcHdDist(), SfxItemSet::Get(), SwFormatFooter::GetFooterFormat(), SwFormatHeader::GetHeaderFormat(), SfxItemSet::GetItem(), SvxULSpaceItem::GetLower(), SvxULSpaceItem::GetUpper(), SwFormatHeader::IsActive(), SwFormatFooter::IsActive(), m_DyaBottom, m_DyaHdrBottom, m_DyaHdrTop, m_DyaTop, mbHasFooter, mbHasHeader, RES_BOX(), RES_FOOTER(), RES_HEADER(), and RES_UL_SPACE().
|
inline |
Definition at line 126 of file writerwordglue.hxx.
References mbHasFooter.
Referenced by WW8AttributeOutput::FormatULSpace(), DocxAttributeOutput::FormatULSpace(), RtfAttributeOutput::FormatULSpace(), DocxAttributeOutput::SectionPageBorders(), and StrictEqualTopBottom().
|
inline |
Definition at line 125 of file writerwordglue.hxx.
References mbHasHeader.
Referenced by WW8AttributeOutput::FormatULSpace(), DocxAttributeOutput::FormatULSpace(), RtfAttributeOutput::FormatULSpace(), DocxAttributeOutput::SectionPageBorders(), and 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\footers 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 446 of file writerwordglue.cxx.
References HasFooter(), HasHeader(), m_DyaBottom, and m_DyaTop.
Referenced by sw::util::IsPlausableSingleWordSection().
sal_uInt16 sw::util::HdFtDistanceGlue::m_DyaBottom |
Definition at line 123 of file writerwordglue.hxx.
Referenced by WW8AttributeOutput::FormatULSpace(), DocxAttributeOutput::FormatULSpace(), RtfAttributeOutput::FormatULSpace(), HdFtDistanceGlue(), and StrictEqualTopBottom().
sal_uInt16 sw::util::HdFtDistanceGlue::m_DyaHdrBottom |
Definition at line 121 of file writerwordglue.hxx.
Referenced by WW8AttributeOutput::FormatULSpace(), DocxAttributeOutput::FormatULSpace(), RtfAttributeOutput::FormatULSpace(), HdFtDistanceGlue(), and DocxAttributeOutput::SectionPageBorders().
sal_uInt16 sw::util::HdFtDistanceGlue::m_DyaHdrTop |
Definition at line 120 of file writerwordglue.hxx.
Referenced by WW8AttributeOutput::FormatULSpace(), DocxAttributeOutput::FormatULSpace(), RtfAttributeOutput::FormatULSpace(), HdFtDistanceGlue(), and DocxAttributeOutput::SectionPageBorders().
sal_uInt16 sw::util::HdFtDistanceGlue::m_DyaTop |
Definition at line 122 of file writerwordglue.hxx.
Referenced by WW8AttributeOutput::FormatULSpace(), DocxAttributeOutput::FormatULSpace(), RtfAttributeOutput::FormatULSpace(), HdFtDistanceGlue(), and StrictEqualTopBottom().
|
private |
Definition at line 118 of file writerwordglue.hxx.
Referenced by HasFooter(), and HdFtDistanceGlue().
|
private |
Definition at line 117 of file writerwordglue.hxx.
Referenced by HasHeader(), and HdFtDistanceGlue().