LibreOffice Module sw (master) 1
Public Member Functions | Public Attributes | Private Attributes | List of all members
sw::util::HdFtDistanceGlue Class Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ HdFtDistanceGlue()

sw::util::HdFtDistanceGlue::HdFtDistanceGlue ( const SfxItemSet rPage)
explicit

Member Function Documentation

◆ HasFooter()

bool sw::util::HdFtDistanceGlue::HasFooter ( ) const
inline

◆ HasHeader()

bool sw::util::HdFtDistanceGlue::HasHeader ( ) const
inline

◆ 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.

Parameters
rOtherthe other HdFtDistanceGlue to compare against
Returns
true if the main text areas top and bottom is at the same location, false otherwise (assuming both objects have\don't have a header\footer)

Definition at line 446 of file writerwordglue.cxx.

References HasFooter(), HasHeader(), m_DyaBottom, and m_DyaTop.

Referenced by sw::util::IsPlausableSingleWordSection().

Member Data Documentation

◆ m_DyaBottom

sal_uInt16 sw::util::HdFtDistanceGlue::m_DyaBottom

◆ m_DyaHdrBottom

sal_uInt16 sw::util::HdFtDistanceGlue::m_DyaHdrBottom

◆ m_DyaHdrTop

sal_uInt16 sw::util::HdFtDistanceGlue::m_DyaHdrTop

◆ m_DyaTop

sal_uInt16 sw::util::HdFtDistanceGlue::m_DyaTop

◆ mbHasFooter

bool sw::util::HdFtDistanceGlue::mbHasFooter
private

Definition at line 118 of file writerwordglue.hxx.

Referenced by HasFooter(), and HdFtDistanceGlue().

◆ mbHasHeader

bool sw::util::HdFtDistanceGlue::mbHasHeader
private

Definition at line 117 of file writerwordglue.hxx.

Referenced by HasHeader(), and HdFtDistanceGlue().


The documentation for this class was generated from the following files: