LibreOffice Module sw (master)
1
|
#include <ww8par.hxx>
Classes | |
struct | wwULSpaceData |
Public Member Functions | |
wwSectionManager (SwWW8ImplReader &rReader) | |
void | SetCurrentSectionHasFootnote () |
void | SetCurrentSectionVerticalAdjustment (const css::drawing::TextVerticalAdjust nVA) |
bool | CurrentSectionIsVertical () const |
bool | CurrentSectionIsProtected () const |
void | PrependedInlineNode (const SwPosition &rPos, const SwNode &rNode) |
sal_uInt16 | CurrentSectionColCount () const |
bool | WillHavePageDescHere (const SwNodeIndex &rIdx) const |
void | CreateSep (const tools::Long nTextPos) |
void | InsertSegments () |
void | JoinNode (const SwPosition &rPos, const SwNode &rNode) |
sal_uInt32 | GetPageLeft () const |
sal_uInt32 | GetPageRight () const |
sal_uInt32 | GetPageWidth () const |
sal_uInt32 | GetWWPageTopMargin () const |
sal_uInt32 | GetTextAreaWidth () const |
Private Types | |
typedef std::deque< wwSection >::iterator | mySegIter |
Private Member Functions | |
void | SetSegmentToPageDesc (const wwSection &rSection, bool bIgnoreCols) |
void | GetPageULData (const wwSection &rNewSection, wwULSpaceData &rData) const |
void | SetUseOn (wwSection &rSection) |
void | SetHdFt (wwSection const &rSection, int nSect, const wwSection *pPrevious) |
SwSectionFormat * | InsertSection (SwPaM const &rMyPaM, wwSection &rSection) |
bool | SectionIsProtected (const wwSection &rSection) const |
void | SetLeftRight (wwSection &rSection) |
SwFormatPageDesc | SetSwFormatPageDesc (mySegIter const &rIter, mySegIter const &rStart, bool bIgnoreCols) |
Map a word section to a writer page descriptor. More... | |
wwSectionManager (const wwSectionManager &)=delete | |
wwSectionManager & | operator= (const wwSectionManager &)=delete |
Static Private Member Functions | |
static void | SetPageULSpaceItems (SwFrameFormat &rFormat, wwULSpaceData const &rData, const wwSection &rSection) |
static void | SetPage (SwPageDesc &rPageDesc, SwFrameFormat &rFormat, const wwSection &rSection, bool bIgnoreCols) |
static void | SetNumberingType (const wwSection &rNewSection, SwPageDesc &rPageDesc) |
static bool | SetCols (SwFrameFormat &rFormat, const wwSection &rSection, sal_uInt32 nNetWidth) |
Private Attributes | |
SwWW8ImplReader & | mrReader |
std::deque< wwSection > | maSegments |
sal_uInt16 | mnDesc |
Definition at line 826 of file ww8par.hxx.
|
private |
Definition at line 834 of file ww8par.hxx.
|
privatedelete |
|
inlineexplicit |
Definition at line 884 of file ww8par.hxx.
void wwSectionManager::CreateSep | ( | const tools::Long | nTextPos | ) |
Definition at line 846 of file ww8par6.cxx.
References SwWW8ImplReader::AppendTextNode(), SwWW8ImplReader::ConvertFFileName(), ww::eWW2, ww::eWW6, ww::eWW7, ww::eWW8, FileLink, fnMoveBackward, WW8PLCFspecial::Get(), SwWW8ImplReader::GetFib(), WW8Fib::GetFIBVersion(), SwNodeIndex::GetNode(), SwPaM::GetPoint(), SvxPaperInfo::GetSloppyPaperDimension(), SwNode::GetTextNode(), GoInNode(), SwWW8ImplReader::HandleLineNumbering(), WW8PLCFx_SEPX::HasSprm(), SwWW8ImplReader::InLocalApo(), SwDoc::InsertSwSection(), lcl_ReadBorders(), lLetterHeight, lLetterWidth, SwWW8ImplReader::m_aLinkStringMap, SwWW8ImplReader::m_bTxbxFlySection, SwWW8ImplReader::m_nInTable, SwWW8ImplReader::m_pLastAnchorPos, SwWW8ImplReader::m_pPaM, SwWW8ImplReader::m_rDoc, SwWW8ImplReader::m_xHdFt, SwWW8ImplReader::m_xPlcxMan, SwWW8ImplReader::m_xWDop, SwWW8ImplReader::m_xWwFib, maSegments, MAX_NO_OF_SEP_COLUMNS, MM_200, MM_250, SwPaM::Move(), mrReader, SwPosition::nNode, SprmResult::nRemainingData, pData, SprmResult::pSprm, ReadBSprm(), ReadSprm(), ReadUSprm(), WW8PLCFspecial::SeekPosExact(), SetLeftRight(), SwSectionData::SetLinkFileName(), SwSectionData::SetProtectFlag(), NS_sprm::v6::sprmSBkc, NS_sprm::v6::sprmSBOrientation, NS_sprm::v6::sprmSCcolumns, NS_sprm::v6::sprmSDmBinFirst, NS_sprm::v6::sprmSDmBinOther, NS_sprm::v6::sprmSDxaColSpacing, NS_sprm::v6::sprmSDxaColumns, NS_sprm::v6::sprmSDxaColWidth, NS_sprm::v6::sprmSDxaLeft, NS_sprm::v6::sprmSDxaLnn, NS_sprm::v6::sprmSDxaRight, NS_sprm::v6::sprmSDyaBottom, NS_sprm::v6::sprmSDyaHdrBottom, NS_sprm::v6::sprmSDyaHdrTop, NS_sprm::v6::sprmSDyaTop, NS_sprm::v6::sprmSDzaGutter, NS_sprm::v6::sprmSFEvenlySpaced, NS_sprm::v6::sprmSFPgnRestart, NS_sprm::v6::sprmSFProtected, NS_sprm::v6::sprmSFTitlePage, NS_sprm::v6::sprmSiHeadingPgn, NS_sprm::v6::sprmSLBetween, NS_sprm::v6::sprmSLnc, NS_sprm::v6::sprmSLnnMin, NS_sprm::v6::sprmSNfcPgn, NS_sprm::v6::sprmSNLnnMod, NS_sprm::v6::sprmSPgnStart, NS_sprm::v6::sprmSScnsPgn, NS_sprm::v6::sprmSXaPage, NS_sprm::v6::sprmSYaPage, NS_sprm::sprm< ispmd, fSpec, sgc, spra >::val, WW8PLCFspecial::Where(), nsHdFtFlags::WW8_FOOTER_EVEN, nsHdFtFlags::WW8_FOOTER_FIRST, nsHdFtFlags::WW8_FOOTER_ODD, nsHdFtFlags::WW8_HEADER_EVEN, nsHdFtFlags::WW8_HEADER_FIRST, and nsHdFtFlags::WW8_HEADER_ODD.
Referenced by SwWW8ImplReader::ReadTextAttr().
sal_uInt16 wwSectionManager::CurrentSectionColCount | ( | ) | const |
Definition at line 2911 of file ww8par5.cxx.
References maSegments.
Referenced by SwWW8ImplReader::FloatingTableConversion(), and SwWW8ImplReader::ReadChar().
bool wwSectionManager::CurrentSectionIsProtected | ( | ) | const |
Definition at line 135 of file ww8par2.cxx.
References maSegments, and SectionIsProtected().
Referenced by SwWW8ImplReader::Read_F_Tox().
bool wwSectionManager::CurrentSectionIsVertical | ( | ) | const |
sal_uInt32 wwSectionManager::GetPageLeft | ( | ) | const |
Definition at line 144 of file ww8par2.cxx.
References maSegments.
Referenced by WW8TabDesc::CreateSwTable(), and SwWW8ImplReader::ImportGraf().
sal_uInt32 wwSectionManager::GetPageRight | ( | ) | const |
Definition at line 149 of file ww8par2.cxx.
References maSegments.
Referenced by WW8TabDesc::CreateSwTable(), and SwWW8ImplReader::ImportGraf().
|
private |
Definition at line 573 of file ww8par6.cxx.
References abs(), wwSectionManager::wwULSpaceData::bHasFooter, wwSectionManager::wwULSpaceData::bHasHeader, cMinHdFtHeight, SEPr::dyaBottom, SEPr::dyaHdrBottom, SEPr::dyaHdrTop, SEPr::dyaTop, SEPr::dzaGutter, SEPr::fRTLGutter, SEPr::grpfIhdt, wwSection::HasTitlePage(), o3tl::make_unsigned(), wwSection::maSep, wwSectionManager::wwULSpaceData::nSwFUp, wwSectionManager::wwULSpaceData::nSwHLo, wwSectionManager::wwULSpaceData::nSwLo, wwSectionManager::wwULSpaceData::nSwUp, nsHdFtFlags::WW8_FOOTER_EVEN, nsHdFtFlags::WW8_FOOTER_FIRST, nsHdFtFlags::WW8_FOOTER_ODD, nsHdFtFlags::WW8_HEADER_EVEN, nsHdFtFlags::WW8_HEADER_FIRST, and nsHdFtFlags::WW8_HEADER_ODD.
Referenced by SetSegmentToPageDesc().
sal_uInt32 wwSectionManager::GetPageWidth | ( | ) | const |
Definition at line 154 of file ww8par2.cxx.
References maSegments.
Referenced by SwWW8ImplReader::ImportGraf().
sal_uInt32 wwSectionManager::GetTextAreaWidth | ( | ) | const |
Definition at line 159 of file ww8par2.cxx.
References maSegments.
Referenced by WW8TabDesc::CreateSwTable(), SwWW8ImplReader::FloatingTableConversion(), SwWW8ImplReader::StartApo(), and SwWW8ImplReader::StartTable().
sal_uInt32 wwSectionManager::GetWWPageTopMargin | ( | ) | const |
Definition at line 164 of file ww8par2.cxx.
References maSegments.
Referenced by SwWW8ImplReader::StartApo(), and SwWW8ImplReader::StartTable().
|
private |
Definition at line 707 of file ww8par6.cxx.
References aFrameFormatSetRange, Content, FTNEND_ATTXTEND, SwSection::GetFormat(), SvxLRSpaceItem::GetLeft(), SwFormat::GetLRSpace(), SwPageDesc::GetMaster(), wwSection::GetPageLeft(), wwSection::GetPageRight(), SvxLRSpaceItem::GetRight(), wwSection::GetTextAreaWidth(), wwSection::mpSection, RES_FRAMEDIR(), RES_LR_SPACE(), and SwFormat::SetFormatAttr().
Referenced by InsertSegments().
void wwSectionManager::InsertSegments | ( | ) |
Definition at line 4525 of file ww8par.cxx.
References SwIndex::Assign(), SwNodeIndex::Assign(), IDocumentContentOperations::DelFullPara(), SwPaM::End(), SwNode::FindTableNode(), fnMoveBackward, SwPaM::GetContentNode(), SwDoc::getIDocumentContentOperations(), SwDoc::getIDocumentStylePoolAccess(), SwNodeIndex::GetIndex(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwFormatPageDesc::GetPageDesc(), SwPaM::GetPoint(), IDocumentStylePoolAccess::GetTextCollFromPool(), SwNode::GetTextNode(), GiveNodePageDesc(), SwWW8ImplReader::HasOwnHeaderFooter(), sw::util::HasPageBreak(), IDocumentContentOperations::InsertPoolItem(), InsertSection(), Left, SwWW8ImplReader::m_pPaM, SwWW8ImplReader::m_rDoc, SwWW8ImplReader::m_xWDop, SwNodes::MakeTextNode(), maSegments, SwPaM::Move(), mrReader, SwPosition::nContent, SwPosition::nNode, RES_BREAK(), RES_POOLCOLL_TEXT, Right, SectionIsProtected(), SwPageDesc::SetFollow(), SwFormat::SetFormatAttr(), SwPaM::SetMark(), SetSwFormatPageDesc(), SwPageDesc::SetUseOn(), SwPaM::Start(), nsHdFtFlags::WW8_FOOTER_FIRST, and nsHdFtFlags::WW8_HEADER_FIRST.
Referenced by SwWW8ImplReader::CoreLoad().
void wwSectionManager::JoinNode | ( | const SwPosition & | rPos, |
const SwNode & | rNode | ||
) |
Definition at line 2504 of file ww8par6.cxx.
References maSegments, and SwPosition::nNode.
Referenced by SwWW8ImplReader::JoinNode().
|
privatedelete |
void wwSectionManager::PrependedInlineNode | ( | const SwPosition & | rPos, |
const SwNode & | rNode | ||
) |
Definition at line 2355 of file ww8par2.cxx.
References maSegments, and SwPosition::nNode.
Referenced by WW8TabDesc::CreateSwTable(), SwWW8ImplReader::Read_F_IncludeText(), and SwWW8ImplReader::Read_F_Tox().
|
private |
Definition at line 2397 of file ww8par.cxx.
References wwSection::IsNotProtected(), SwWW8ImplReader::m_xWDop, and mrReader.
Referenced by CurrentSectionIsProtected(), and InsertSegments().
|
staticprivate |
Definition at line 419 of file ww8par6.cxx.
References COL_BLACK, COLADJ_TOP, SEPr::fEvenlySpaced, SEPr::fLBetween, SwFormatCol::GetColumns(), i, SwFormatCol::Init(), wwSection::maSep, wwSection::NoCols(), SEPr::rgdxaColumnWidthSpacing, SAL_N_ELEMENTS, SwFormat::SetFormatAttr(), SwColumn::SetLeft(), SwFormatCol::SetLineAdj(), SwFormatCol::SetLineColor(), SwFormatCol::SetLineHeight(), SwFormatCol::SetLineWidth(), SwFormatCol::SetOrtho_(), SwColumn::SetRight(), SwColumn::SetWishWidth(), SwFormatCol::SetWishWidth(), wwSection::StandardColSeparation(), and sw::types::writer_cast().
void wwSectionManager::SetCurrentSectionHasFootnote | ( | ) |
Definition at line 110 of file ww8par2.cxx.
References maSegments.
void wwSectionManager::SetCurrentSectionVerticalAdjustment | ( | const css::drawing::TextVerticalAdjust | nVA | ) |
Definition at line 118 of file ww8par2.cxx.
References maSegments.
Referenced by SwWW8ImplReader::Read_TextVerticalAdjustment().
|
private |
Definition at line 2402 of file ww8par.cxx.
References SEPr::grpfIhdt, SwWW8ImplReader::m_xHdFt, wwSection::maSep, wwSection::mpPage, mrReader, and SwWW8ImplReader::Read_HdFt().
Referenced by SetSwFormatPageDesc().
Definition at line 472 of file ww8par6.cxx.
References SEPr::dxaLeft, SEPr::dxaRight, SEPr::dzaGutter, SEPr::fRTLGutter, wwSection::maSep, MINLAY, MSRoundTweak(), wwSection::nPgLeft, wwSection::nPgRight, and wwSection::nPgWidth.
Referenced by CreateSep().
|
staticprivate |
Definition at line 826 of file ww8par6.cxx.
References wwSection::maSep, SEPr::nfcPgn, SvxNumberType::SetNumberingType(), SwPageDesc::SetNumType(), SVX_NUM_ARABIC, SVX_NUM_CHARS_LOWER_LETTER_N, SVX_NUM_CHARS_UPPER_LETTER_N, SVX_NUM_ROMAN_LOWER, and SVX_NUM_ROMAN_UPPER.
Referenced by SetSegmentToPageDesc().
|
staticprivate |
Definition at line 512 of file ww8par6.cxx.
References SwFormat::GetFrameSize(), wwSection::GetPageHeight(), wwSection::GetPageLeft(), wwSection::GetPageRight(), wwSection::GetPageWidth(), SvxPaperInfo::GetSloppyPaperDimension(), wwSection::GetTextAreaWidth(), wwSection::IsLandScape(), RES_LR_SPACE(), SwFormat::SetFormatAttr(), SwPageDesc::SetLandscape(), and SvxSizeItem::SetWidth().
Referenced by SetSegmentToPageDesc().
|
staticprivate |
Definition at line 644 of file ww8par6.cxx.
References wwSectionManager::wwULSpaceData::bHasFooter, wwSectionManager::wwULSpaceData::bHasHeader, cMinHdFtHeight, SEPr::dyaBottom, SEPr::dyaTop, Fixed, SwFormat::GetFooter(), SwFormatFooter::GetFooterFormat(), SwFormat::GetHeader(), SwFormatHeader::GetHeaderFormat(), wwSection::IsFixedHeightFooter(), wwSection::IsFixedHeightHeader(), wwSection::maSep, Minimum, wwSectionManager::wwULSpaceData::nSwFUp, wwSectionManager::wwULSpaceData::nSwHLo, wwSectionManager::wwULSpaceData::nSwLo, wwSectionManager::wwULSpaceData::nSwUp, RES_HEADER_FOOTER_EAT_SPACING(), RES_UL_SPACE(), SwFormat::SetFormatAttr(), SvxULSpaceItem::SetLower(), and SvxULSpaceItem::SetUpper().
Referenced by SetSegmentToPageDesc().
|
private |
Definition at line 4384 of file ww8par.cxx.
References SL::aData, SvxMSDffImportData::begin(), SvxMSDffImportData::empty(), SdrObject::Free(), SwDoc::GetAttrPool(), SwFormat::GetDoc(), SwPageDesc::GetFirstMaster(), SwPageDesc::GetMaster(), GetPageULData(), SwWW8ImplReader::GrafikCtor(), SwWW8ImplReader::m_xMSDffManager, SwWW8ImplReader::m_xWDop, wwSection::maSep, SwWW8ImplReader::MatchSdrItemsIntoFlySet(), wwSection::mnVerticalAdjustment, wwSection::mpPage, mrReader, mso_lineSimple, mso_lineSolid, mso_sptRectangle, SEPr::pgbApplyTo, pObject, RES_BACKGROUND(), SwWW8ImplReader::SetDocumentGrid(), SwFormat::SetFormatAttr(), SetNumberingType(), SetPage(), SwWW8ImplReader::SetPageBorder(), SetPageULSpaceItems(), and SwPageDesc::SetVerticalAdjustment().
Referenced by SetSwFormatPageDesc().
|
private |
Map a word section to a writer page descriptor.
Definition at line 4486 of file ww8par.cxx.
References SwDoc::getIDocumentStylePoolAccess(), IDocumentStylePoolAccess::GetPageDescFromPool(), SwViewShell::GetShellRes(), SwWW8ImplReader::m_bNewDoc, SwWW8ImplReader::m_rDoc, SwDoc::MakePageDesc(), mnDesc, mrReader, ShellResource::NORMAL_PAGE, RES_POOLPAGE_STANDARD, SetHdFt(), SwFormatPageDesc::SetNumOffset(), SetSegmentToPageDesc(), and SetUseOn().
Referenced by InsertSegments().
Definition at line 4434 of file ww8par.cxx.
References All, FirstShare, FooterShare, wwSection::HasTitlePage(), HeaderShare, SwWW8ImplReader::m_xWDop, Mirror, wwSection::mpPage, mrReader, and SwPageDesc::WriteUseOn().
Referenced by SetSwFormatPageDesc().
bool wwSectionManager::WillHavePageDescHere | ( | const SwNodeIndex & | rIdx | ) | const |
Definition at line 2921 of file ww8par5.cxx.
References maSegments.
Referenced by SwWW8ImplReader::Read_F_Tox().
|
private |
Definition at line 833 of file ww8par.hxx.
Referenced by CreateSep(), CurrentSectionColCount(), CurrentSectionIsProtected(), CurrentSectionIsVertical(), GetPageLeft(), GetPageRight(), GetPageWidth(), GetTextAreaWidth(), GetWWPageTopMargin(), InsertSegments(), JoinNode(), PrependedInlineNode(), SetCurrentSectionHasFootnote(), SetCurrentSectionVerticalAdjustment(), and WillHavePageDescHere().
|
private |
Definition at line 837 of file ww8par.hxx.
Referenced by SetSwFormatPageDesc().
|
private |
Definition at line 832 of file ww8par.hxx.
Referenced by CreateSep(), InsertSegments(), SectionIsProtected(), SetHdFt(), SetSegmentToPageDesc(), SetSwFormatPageDesc(), and SetUseOn().