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 const SwFormatCol & | GetFormatCol (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 > | m_aSects |
Class to collect and output the sections/headers/footers.
Definition at line 195 of file wrtww8.hxx.
|
protected |
|
explicit |
Definition at line 1031 of file wrtw8sty.cxx.
References AppendSection(), Content, SwNode::FindSectionNode(), SfxItemSet::Get(), SwFormat::GetAttrSet(), SwSection::GetFormat(), SwTable::GetFrameFormat(), SfxItemSet::GetItemIfSet(), 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 1093 of file wrtw8sty.cxx.
void MSWordSections::AppendSection | ( | const SwFormatPageDesc & | rPd, |
const SwNode & | rNd, | ||
const SwSectionFormat * | pSectionFormat, | ||
sal_uLong | nLnNumRestartNo | ||
) |
Definition at line 1165 of file wrtw8sty.cxx.
References SwFormatPageDesc::GetNumOffset(), SwFormatPageDesc::GetPageDesc(), HeaderFooterWritten(), m_aSects, and NeedsDocumentProtected().
void MSWordSections::AppendSection | ( | const SwPageDesc * | pPd, |
const SwSectionFormat * | pSectionFormat, | ||
sal_uLong | nLnNumRestartNo, | ||
bool | bIsFirstParagraph = false |
||
) |
Definition at line 1145 of file wrtw8sty.cxx.
References HeaderFooterWritten(), m_aSects, and NeedsDocumentProtected().
Referenced by WW8_WrPlcSepx::AppendSep(), and MSWordSections().
|
protected |
Definition at line 1309 of file wrtw8sty.cxx.
References All, SwPageDesc::GetFollow(), SwPageDesc::IsFollowNextPageOfNode(), SwPageDesc::IsFooterShared(), SwPageDesc::IsHeaderShared(), Left, m_aSects, WW8Export::m_pDop, Mirror, 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 1111 of file wrtw8sty.cxx.
References GetFormatCol(), SwFormatCol::GetNumCols(), and m_aSects.
const WW8_SepInfo * MSWordSections::CurrentSectionInfo | ( | ) |
|
inline |
Definition at line 228 of file wrtww8.hxx.
References mbDocumentIsProtected.
|
static |
Number of columns of the provided WW8_SepInfo.
Definition at line 1120 of file wrtw8sty.cxx.
References SfxItemSet::Get(), SwFormat::GetAttrSet(), SwFormat::GetFormatAttr(), SwPageDesc::GetMaster(), SwDoc::GetPageDesc(), SfxItemSet::GetPool(), WW8_SepInfo::pPageDesc, WW8_SepInfo::pSectionFormat, SfxItemSet::Put(), RES_COL(), rSet, and SfxItemSet::SetParent().
Referenced by CurrentNumberOfColumns(), and MSWordExportBase::OutputSectionBreaks().
|
static |
Should we output borders?
Definition at line 1360 of file wrtw8sty.cxx.
References SvxBoxItem::GetBottom(), SwFormat::GetItemIfSet(), SvxBoxItem::GetLeft(), SvxBoxItem::GetRight(), SvxBoxItem::GetTop(), and RES_BOX().
Referenced by WW8AttributeOutput::SectionPageBorders().
|
virtual |
Reimplemented in WW8_WrPlcSepx.
Definition at line 1101 of file wrtw8sty.cxx.
Referenced by AppendSection().
|
protected |
Definition at line 1286 of file wrtw8sty.cxx.
References WW8_SepInfo::IsProtected(), and mbDocumentIsProtected.
Referenced by AppendSection().
|
protected |
|
static |
Definition at line 1255 of file wrtw8sty.cxx.
References SwFormatFooter::GetFooterFormat(), SwFormat::GetItemIfSet(), SwFormatFooter::IsActive(), and RES_FOOTER().
Referenced by MSWordExportBase::SectionProperties().
|
static |
Definition at line 1247 of file wrtw8sty.cxx.
References SwFormatHeader::GetHeaderFormat(), SwFormat::GetItemIfSet(), SwFormatHeader::IsActive(), and RES_HEADER().
Referenced by MSWordExportBase::SectionProperties().
|
protected |
Definition at line 199 of file wrtww8.hxx.
Referenced by AppendSection(), CheckForFacinPg(), CurrentNumberOfColumns(), CurrentSectionInfo(), WW8_WrPlcSepx::WriteKFText(), WW8_WrPlcSepx::WritePlcSed(), and WW8_WrPlcSepx::WriteSepx().
|
protected |
Definition at line 198 of file wrtww8.hxx.
Referenced by DocumentIsProtected(), and NeedsDocumentProtected().