LibreOffice Module sw (master)
1
|
Class to collect and output the sections/headers/footers. More...
#include <wrtww8.hxx>
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_SepInfo * | CurrentSectionInfo () |
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 &) | |
MSWordSections & | operator= (const MSWordSections &) |
Protected Attributes | |
bool | mbDocumentIsProtected |
std::vector< WW8_SepInfo > | aSects |
Class to collect and output the sections/headers/footers.
Definition at line 194 of file wrtww8.hxx.
|
protected |
|
explicit |
Definition at line 980 of file wrtw8sty.cxx.
References AppendSection(), Content, SwNode::FindSectionNode(), SfxItemSet::Get(), SwFormat::GetAttrSet(), SwSection::GetFormat(), SwTable::GetFrameFormat(), SfxItemSet::GetItemState(), SwDoc::GetPageDesc(), SwSectionNode::GetSection(), SwNode::GetSectionNode(), SwTableNode::GetTable(), SwSection::GetType(), SwNode::IsSectionNode(), MSWordExportBase::m_bFirstTOCNodeWithSection, MSWordExportBase::m_pCurPam, MSWordExportBase::m_pCurrentPageDesc, MSWordExportBase::m_rDoc, RES_LINENUMBER(), RES_PAGEDESC(), SwNode::StartOfSectionNode(), ToxContent, and ToxHeader.
|
virtual |
Definition at line 1042 of file wrtw8sty.cxx.
void MSWordSections::AppendSection | ( | const SwPageDesc * | pPd, |
const SwSectionFormat * | pSectionFormat, | ||
sal_uLong | nLnNumRestartNo, | ||
bool | bIsFirstParagraph = false |
||
) |
Definition at line 1096 of file wrtw8sty.cxx.
References aSects, HeaderFooterWritten(), and NeedsDocumentProtected().
Referenced by RtfExport::AppendSection(), WW8_WrPlcSepx::AppendSep(), MSWordSections(), and RtfExport::PrepareNewPageDesc().
void MSWordSections::AppendSection | ( | const SwFormatPageDesc & | rPd, |
const SwNode & | rNd, | ||
const SwSectionFormat * | pSectionFormat, | ||
sal_uLong | nLnNumRestartNo | ||
) |
Definition at line 1116 of file wrtw8sty.cxx.
References aSects, SwFormatPageDesc::GetNumOffset(), SwFormatPageDesc::GetPageDesc(), HeaderFooterWritten(), and NeedsDocumentProtected().
Definition at line 1264 of file wrtw8sty.cxx.
References All, aSects, SwPageDesc::GetFollow(), SwPageDesc::IsFollowNextPageOfNode(), SwPageDesc::IsFooterShared(), SwPageDesc::IsHeaderShared(), Left, Mirror, WW8Export::pDop, SwPageDesc::ReadUseOn(), and Right.
Referenced by WW8_WrPlcSepx::WriteKFText().
sal_uInt16 MSWordSections::CurrentNumberOfColumns | ( | const SwDoc & | rDoc | ) | const |
Number of columns based on the most recent WW8_SepInfo.
Definition at line 1060 of file wrtw8sty.cxx.
References aSects, and NumberOfColumns().
const WW8_SepInfo * MSWordSections::CurrentSectionInfo | ( | ) |
The most recent WW8_SepInfo.
Definition at line 1088 of file wrtw8sty.cxx.
References aSects.
Referenced by RtfExport::AppendSection(), RtfExport::ExportDocument_Impl(), and RtfExport::PrepareNewPageDesc().
|
inline |
Definition at line 227 of file wrtww8.hxx.
References mbDocumentIsProtected.
|
static |
Should we output borders?
Definition at line 1315 of file wrtw8sty.cxx.
References SwFormat::GetItemState(), and RES_BOX().
Referenced by WW8AttributeOutput::SectionPageBorders().
|
virtual |
Reimplemented in WW8_WrPlcSepx.
Definition at line 1050 of file wrtw8sty.cxx.
Referenced by AppendSection().
|
protected |
Definition at line 1241 of file wrtw8sty.cxx.
References WW8_SepInfo::IsProtected(), and mbDocumentIsProtected.
Referenced by AppendSection().
|
static |
Number of columns of the provided WW8_SepInfo.
Definition at line 1069 of file wrtw8sty.cxx.
References SwFormat::GetAttrSet(), SwFormatCol::GetColumns(), SwFormat::GetFormatAttr(), SwPageDesc::GetMaster(), SwDoc::GetPageDesc(), SfxItemSet::GetPool(), WW8_SepInfo::pPageDesc, WW8_SepInfo::pSectionFormat, and RES_COL().
Referenced by CurrentNumberOfColumns().
|
protected |
|
static |
Definition at line 1208 of file wrtw8sty.cxx.
References SwFormat::GetItemState(), and RES_FOOTER().
Referenced by MSWordExportBase::SectionProperties().
|
static |
Definition at line 1198 of file wrtw8sty.cxx.
References SwFormat::GetItemState(), and RES_HEADER().
Referenced by MSWordExportBase::SectionProperties().
|
protected |
Definition at line 198 of file wrtww8.hxx.
Referenced by AppendSection(), CheckForFacinPg(), CurrentNumberOfColumns(), CurrentSectionInfo(), WW8_WrPlcSepx::WriteKFText(), WW8_WrPlcSepx::WritePlcSed(), and WW8_WrPlcSepx::WriteSepx().
|
protected |
Definition at line 197 of file wrtww8.hxx.
Referenced by DocumentIsProtected(), and NeedsDocumentProtected().