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

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

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

Member Function Documentation

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

Definition at line 126 of file writerwordglue.hxx.

References mbHasFooter.

Referenced by StrictEqualTopBottom().

bool sw::util::HdFtDistanceGlue::HasHeader ( ) const
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.

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't have a header)

Definition at line 431 of file writerwordglue.cxx.

References dyaBottom, dyaTop, HasFooter(), and HasHeader().

Member Data Documentation

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
bool sw::util::HdFtDistanceGlue::mbHasFooter
private

Definition at line 118 of file writerwordglue.hxx.

Referenced by HasFooter().

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

Definition at line 117 of file writerwordglue.hxx.

Referenced by HasHeader().


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