Lines Matching refs:rSection

221 void SwWW8ImplReader::SetDocumentGrid(SwFrmFmt &rFmt, const wwSection &rSection)  in SetDocumentGrid()  argument
226 rFmt.SetFmtAttr(SvxFrameDirectionItem(rSection.meDir, RES_FRAMEDIR)); in SetDocumentGrid()
238 switch (rSection.maSep.clm) in SetDocumentGrid()
274 const sal_Int32 nLinePitch = rSection.maSep.dyaLinePitch; in SetDocumentGrid()
291 if (rSection.maSep.dxtCharSpace) in SetDocumentGrid()
293 sal_uInt32 nCharSpace = rSection.maSep.dxtCharSpace; in SetDocumentGrid()
310 if (rSection.IsVertical()) in SetDocumentGrid()
347 bool wwSectionManager::SetCols(SwFrmFmt &rFmt, const wwSection &rSection, in SetCols() argument
351 sal_Int16 nCols = rSection.NoCols(); in SetCols()
359 sal_Int32 nColSpace = rSection.StandardColSeperation(); in SetCols()
362 if (rSection.maSep.fLBetween) in SetCols()
374 if (!rSection.maSep.fEvenlySpaced) in SetCols()
381 sal_Int32 nLeft = rSection.maSep.rgdxaColumnWidthSpacing[nIdx-1]/2; in SetCols()
382 sal_Int32 nRight = rSection.maSep.rgdxaColumnWidthSpacing[nIdx+1]/2; in SetCols()
383 sal_Int32 nWishWidth = rSection.maSep.rgdxaColumnWidthSpacing[nIdx] in SetCols()
396 void wwSectionManager::SetLeftRight(wwSection &rSection) in SetLeftRight() argument
399 sal_uInt32 nWWLe = MSRoundTweak(rSection.maSep.dxaLeft); in SetLeftRight()
400 sal_uInt32 nWWRi = MSRoundTweak(rSection.maSep.dxaRight); in SetLeftRight()
401 sal_uInt32 nWWGu = rSection.maSep.dzaGutter; in SetLeftRight()
408 if (rSection.maSep.fRTLGutter) in SetLeftRight()
414 if ((rSection.nPgWidth - nWWLe - nWWRi) < MINLAY) in SetLeftRight()
429 nWWRi = rSection.nPgWidth - nWWLe - MINLAY; in SetLeftRight()
432 rSection.nPgLeft = nWWLe; in SetLeftRight()
433 rSection.nPgRight = nWWRi; in SetLeftRight()
437 const wwSection &rSection, bool bIgnoreCols) const in SetPage() argument
440 rInPageDesc.SetLandscape(rSection.IsLandScape()); in SetPage()
444 aSz.SetWidth(rSection.GetPageWidth()); in SetPage()
445 aSz.SetHeight(SvxPaperInfo::GetSloppyPaperDimension(rSection.GetPageHeight())); in SetPage()
449 SvxLRSpaceItem(rSection.GetPageLeft(), rSection.GetPageRight(), 0, 0, RES_LR_SPACE)); in SetPage()
452 SetCols(rFmt, rSection, rSection.GetTextAreaWidth()); in SetPage()
462 void SwWW8ImplReader::SetPageBorder(SwFrmFmt &rFmt, const wwSection &rSection) const in SetPageBorder()
464 if (!IsBorder(rSection.brc)) in SetPageBorder()
469 SetFlyBordersShadow(aSet, rSection.brc, &aSizeArray[0]); in SetPageBorder()
476 if (rSection.maSep.pgbOffsetFrom == 1) in SetPageBorder()
536 void wwSectionManager::GetPageULData(const wwSection &rSection, bool bFirst, in GetPageULData() argument
539 sal_Int32 nWWUp = rSection.maSep.dyaTop; in GetPageULData()
540 sal_Int32 nWWLo = rSection.maSep.dyaBottom; in GetPageULData()
541 sal_uInt32 nWWHTop = rSection.maSep.dyaHdrTop; in GetPageULData()
542 sal_uInt32 nWWFBot = rSection.maSep.dyaHdrBottom; in GetPageULData()
553 rSection.maSep.fRTLGutter) in GetPageULData()
556 nWWUp += rSection.maSep.dzaGutter; in GetPageULData()
560 rData.bHasHeader = (rSection.maSep.grpfIhdt & WW8_HEADER_FIRST) !=0; in GetPageULData()
563 rData.bHasHeader = (rSection.maSep.grpfIhdt & in GetPageULData()
587 rData.bHasFooter = (rSection.maSep.grpfIhdt & WW8_FOOTER_FIRST) !=0; in GetPageULData()
590 rData.bHasFooter = (rSection.maSep.grpfIhdt & in GetPageULData()
615 wwSectionManager::wwULSpaceData& rData, const wwSection &rSection) const in SetPageULSpaceItems()
623 if (!rSection.IsFixedHeightHeader()) //normal in SetPageULSpaceItems()
636 … const SwTwips nHdLowerSpace( Abs(rSection.maSep.dyaTop) - rData.nSwUp - rData.nSwHLo ); in SetPageULSpaceItems()
652 if (!rSection.IsFixedHeightFooter()) //normal in SetPageULSpaceItems()
665 … const SwTwips nFtUpperSpace( Abs(rSection.maSep.dyaBottom) - rData.nSwLo - rData.nSwFUp ); in SetPageULSpaceItems()
682 SwPaM& rMyPaM, wwSection &rSection) in InsertSection() argument
698 aSection.SetProtectFlag(SectionIsProtected(rSection)); in InsertSection()
700 rSection.mpSection = in InsertSection()
702 ASSERT(rSection.mpSection, "section not inserted!"); in InsertSection()
703 if (!rSection.mpSection) in InsertSection()
722 SwSectionFmt *pFmt = rSection.mpSection->GetFmt(); in InsertSection()
731 long nSectionLeft = rSection.GetPageLeft() - nPageLeft; in InsertSection()
732 long nSectionRight = rSection.GetPageRight() - nPageRight; in InsertSection()
739 SetCols(*pFmt, rSection, rSection.GetTextAreaWidth()); in InsertSection()
743 void SwWW8ImplReader::HandleLineNumbering(const wwSection &rSection) in HandleLineNumbering() argument
746 if (mbNewDoc && rSection.maSep.nLnnMod) in HandleLineNumbering()
749 bool bRestartLnNumPerSection = (1 == rSection.maSep.lnc); in HandleLineNumbering()
757 aInfo.SetRestartEachPage(rSection.maSep.lnc == 0); in HandleLineNumbering()
759 aInfo.SetPosFromLeft(writer_cast<sal_uInt16>(rSection.maSep.dxaLnn)); in HandleLineNumbering()
762 aInfo.SetCountBy(rSection.maSep.nLnnMod); in HandleLineNumbering()
776 (0 < rSection.maSep.lnnMin) || in HandleLineNumbering()
786 aLN.SetStartValue(1 + rSection.maSep.lnnMin); in HandleLineNumbering()