LibreOffice Module sw (master)  1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MSWordSections Class Reference

Class to collect and output the sections/headers/footers. More...

#include <wrtww8.hxx>

Inheritance diagram for MSWordSections:
[legend]

Public Member Functions

 MSWordSections (MSWordExportBase &rExport)
 
virtual ~MSWordSections ()
 
virtual bool HeaderFooterWritten ()
 
void AppendSection (const SwPageDesc *pPd, const SwSectionFormat *pSectionFormat, sal_uLong nLnNumRestartNo, bool bIsFirstParagraph=false)
 
void AppendSection (const SwFormatPageDesc &rPd, const SwNode &rNd, const SwSectionFormat *pSectionFormat, sal_uLong nLnNumRestartNo)
 
sal_uInt16 CurrentNumberOfColumns (const SwDoc &rDoc) const
 Number of columns based on the most recent WW8_SepInfo. More...
 
bool DocumentIsProtected () const
 
const WW8_SepInfoCurrentSectionInfo ()
 The most recent WW8_SepInfo. More...
 

Static Public Member Functions

static sal_uInt16 NumberOfColumns (const SwDoc &rDoc, const WW8_SepInfo &rInfo)
 Number of columns of the provided WW8_SepInfo. More...
 
static void SetHeaderFlag (sal_uInt8 &rHeadFootFlags, const SwFormat &rFormat, sal_uInt8 nFlag)
 
static void SetFooterFlag (sal_uInt8 &rHeadFootFlags, const SwFormat &rFormat, sal_uInt8 nFlag)
 
static bool HasBorderItem (const SwFormat &rFormat)
 Should we output borders? More...
 

Protected Member Functions

void CheckForFacinPg (const WW8Export &rWrt) const
 
void NeedsDocumentProtected (const WW8_SepInfo &rInfo)
 
 MSWordSections (const MSWordSections &)
 
MSWordSectionsoperator= (const MSWordSections &)
 

Protected Attributes

bool mbDocumentIsProtected
 
std::vector< WW8_SepInfoaSects
 

Detailed Description

Class to collect and output the sections/headers/footers.

Definition at line 198 of file wrtww8.hxx.

Constructor & Destructor Documentation

MSWordSections::MSWordSections ( const MSWordSections )
protected
MSWordSections::MSWordSections ( MSWordExportBase rExport)
explicit
MSWordSections::~MSWordSections ( )
virtual

Definition at line 1034 of file wrtw8sty.cxx.

Member Function Documentation

void MSWordSections::AppendSection ( const SwPageDesc pPd,
const SwSectionFormat pSectionFormat,
sal_uLong  nLnNumRestartNo,
bool  bIsFirstParagraph = false 
)
void MSWordSections::AppendSection ( const SwFormatPageDesc rPd,
const SwNode rNd,
const SwSectionFormat pSectionFormat,
sal_uLong  nLnNumRestartNo 
)
void MSWordSections::CheckForFacinPg ( const WW8Export rWrt) const
protected
sal_uInt16 MSWordSections::CurrentNumberOfColumns ( const SwDoc rDoc) const

Number of columns based on the most recent WW8_SepInfo.

Definition at line 1052 of file wrtw8sty.cxx.

References aSects, and NumberOfColumns().

const WW8_SepInfo * MSWordSections::CurrentSectionInfo ( )

The most recent WW8_SepInfo.

Definition at line 1080 of file wrtw8sty.cxx.

References aSects.

Referenced by RtfExport::AppendSection(), RtfExport::ExportDocument_Impl(), and RtfExport::PrepareNewPageDesc().

bool MSWordSections::DocumentIsProtected ( ) const
inline

Definition at line 231 of file wrtww8.hxx.

References mbDocumentIsProtected.

bool MSWordSections::HasBorderItem ( const SwFormat rFormat)
static

Should we output borders?

Definition at line 1307 of file wrtw8sty.cxx.

References SwFormat::GetItemState(), and RES_BOX.

Referenced by WW8AttributeOutput::SectionPageBorders().

bool MSWordSections::HeaderFooterWritten ( )
virtual

Reimplemented in WW8_WrPlcSepx.

Definition at line 1042 of file wrtw8sty.cxx.

Referenced by AppendSection().

void MSWordSections::NeedsDocumentProtected ( const WW8_SepInfo rInfo)
protected

Definition at line 1233 of file wrtw8sty.cxx.

References WW8_SepInfo::IsProtected(), and mbDocumentIsProtected.

Referenced by AppendSection().

sal_uInt16 MSWordSections::NumberOfColumns ( const SwDoc rDoc,
const WW8_SepInfo rInfo 
)
static
MSWordSections& MSWordSections::operator= ( const MSWordSections )
protected
void MSWordSections::SetFooterFlag ( sal_uInt8 rHeadFootFlags,
const SwFormat rFormat,
sal_uInt8  nFlag 
)
static

Definition at line 1200 of file wrtw8sty.cxx.

References SwFormat::GetItemState(), and RES_FOOTER.

Referenced by MSWordExportBase::SectionProperties().

void MSWordSections::SetHeaderFlag ( sal_uInt8 rHeadFootFlags,
const SwFormat rFormat,
sal_uInt8  nFlag 
)
static

Definition at line 1190 of file wrtw8sty.cxx.

References SwFormat::GetItemState(), and RES_HEADER.

Referenced by MSWordExportBase::SectionProperties().

Member Data Documentation

std::vector<WW8_SepInfo> MSWordSections::aSects
protected
bool MSWordSections::mbDocumentIsProtected
protected

Definition at line 201 of file wrtww8.hxx.

Referenced by DocumentIsProtected(), and NeedsDocumentProtected().


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