Lines Matching refs:rParam
627 void lcl_FillHFParam( ScPrintHFParam& rParam, const SfxItemSet* pHFSet ) in lcl_FillHFParam() argument
633 rParam.bEnable = sal_False; in lcl_FillHFParam()
634 rParam.pBorder = NULL; in lcl_FillHFParam()
635 rParam.pBack = NULL; in lcl_FillHFParam()
636 rParam.pShadow = NULL; in lcl_FillHFParam()
640 rParam.bEnable = ((const SfxBoolItem&) pHFSet->Get(ATTR_PAGE_ON)).GetValue(); in lcl_FillHFParam()
641 rParam.bDynamic = ((const SfxBoolItem&) pHFSet->Get(ATTR_PAGE_DYNAMIC)).GetValue(); in lcl_FillHFParam()
642 rParam.bShared = ((const SfxBoolItem&) pHFSet->Get(ATTR_PAGE_SHARED)).GetValue(); in lcl_FillHFParam()
643 rParam.nHeight = ((const SvxSizeItem&) pHFSet->Get(ATTR_PAGE_SIZE)).GetSize().Height(); in lcl_FillHFParam()
647 rParam.nLeft = nTmp < 0 ? 0 : sal_uInt16(nTmp); in lcl_FillHFParam()
649 rParam.nRight = nTmp < 0 ? 0 : sal_uInt16(nTmp); in lcl_FillHFParam()
650 rParam.pBorder = (const SvxBoxItem*) &pHFSet->Get(ATTR_BORDER); in lcl_FillHFParam()
651 rParam.pBack = (const SvxBrushItem*) &pHFSet->Get(ATTR_BACKGROUND); in lcl_FillHFParam()
652 rParam.pShadow = (const SvxShadowItem*)&pHFSet->Get(ATTR_SHADOW);; in lcl_FillHFParam()
657 if (rParam.pBorder) in lcl_FillHFParam()
658 rParam.nHeight += lcl_LineTotal( rParam.pBorder->GetTop() ) + in lcl_FillHFParam()
659 lcl_LineTotal( rParam.pBorder->GetBottom() ); in lcl_FillHFParam()
661 rParam.nManHeight = rParam.nHeight; in lcl_FillHFParam()
664 if (!rParam.bEnable) in lcl_FillHFParam()
665 rParam.nHeight = 0; in lcl_FillHFParam()
767 void ScPrintFunc::UpdateHFHeight( ScPrintHFParam& rParam ) in UpdateHFHeight() argument
771 if (rParam.bEnable && rParam.bDynamic) in UpdateHFHeight()
777 rParam.nLeft - rParam.nRight ) * 100 / nZoom; in UpdateHFHeight()
778 if (rParam.pBorder) in UpdateHFHeight()
779 nPaperWidth -= ( rParam.pBorder->GetDistance(BOX_LINE_LEFT) + in UpdateHFHeight()
780 rParam.pBorder->GetDistance(BOX_LINE_RIGHT) + in UpdateHFHeight()
781 lcl_LineTotal(rParam.pBorder->GetLeft()) + in UpdateHFHeight()
782 lcl_LineTotal(rParam.pBorder->GetRight()) ) * 100 / nZoom; in UpdateHFHeight()
784 if (rParam.pShadow && rParam.pShadow->GetLocation() != SVX_SHADOW_NONE) in UpdateHFHeight()
785 nPaperWidth -= ( rParam.pShadow->CalcShadowSpace(SHADOW_LEFT) + in UpdateHFHeight()
786 rParam.pShadow->CalcShadowSpace(SHADOW_RIGHT) ) * 100L / nZoom; in UpdateHFHeight()
791 if ( rParam.pLeft ) in UpdateHFHeight()
793 nMaxHeight = Max( nMaxHeight, TextHeight( rParam.pLeft->GetLeftArea() ) ); in UpdateHFHeight()
794 nMaxHeight = Max( nMaxHeight, TextHeight( rParam.pLeft->GetCenterArea() ) ); in UpdateHFHeight()
795 nMaxHeight = Max( nMaxHeight, TextHeight( rParam.pLeft->GetRightArea() ) ); in UpdateHFHeight()
797 if ( rParam.pRight ) in UpdateHFHeight()
799 nMaxHeight = Max( nMaxHeight, TextHeight( rParam.pRight->GetLeftArea() ) ); in UpdateHFHeight()
800 nMaxHeight = Max( nMaxHeight, TextHeight( rParam.pRight->GetCenterArea() ) ); in UpdateHFHeight()
801 nMaxHeight = Max( nMaxHeight, TextHeight( rParam.pRight->GetRightArea() ) ); in UpdateHFHeight()
804 rParam.nHeight = nMaxHeight + rParam.nDistance; in UpdateHFHeight()
805 if (rParam.pBorder) in UpdateHFHeight()
806 rParam.nHeight += rParam.pBorder->GetDistance(BOX_LINE_TOP) + in UpdateHFHeight()
807 rParam.pBorder->GetDistance(BOX_LINE_BOTTOM) + in UpdateHFHeight()
808 lcl_LineTotal( rParam.pBorder->GetTop() ) + in UpdateHFHeight()
809 lcl_LineTotal( rParam.pBorder->GetBottom() ); in UpdateHFHeight()
810 if (rParam.pShadow && rParam.pShadow->GetLocation() != SVX_SHADOW_NONE) in UpdateHFHeight()
811 rParam.nHeight += rParam.pShadow->CalcShadowSpace(SHADOW_TOP) + in UpdateHFHeight()
812 rParam.pShadow->CalcShadowSpace(SHADOW_BOTTOM); in UpdateHFHeight()
814 if (rParam.nHeight < rParam.nManHeight) in UpdateHFHeight()
815 rParam.nHeight = rParam.nManHeight; // eingestelltes Minimum in UpdateHFHeight()
1756 const ScPrintHFParam& rParam = bHeader ? aHdr : aFtr; in PrintHF() local
1760 sal_Bool bLeft = IsLeft(nPageNo) && !rParam.bShared; in PrintHF()
1761 const ScPageHFItem* pHFItem = bLeft ? rParam.pLeft : rParam.pRight; in PrintHF()
1763 long nLineStartX = aPageRect.Left() + rParam.nLeft; in PrintHF()
1764 long nLineEndX = aPageRect.Right() - rParam.nRight; in PrintHF()
1770 Size aPaperSize( nLineWidth, rParam.nHeight-rParam.nDistance ); in PrintHF()
1771 if ( rParam.pBorder ) in PrintHF()
1773 …long nLeft = lcl_LineTotal( rParam.pBorder->GetLeft() ) + rParam.pBorder->GetDistance(BOX_LINE_LEF… in PrintHF()
1774 long nTop = lcl_LineTotal( rParam.pBorder->GetTop() ) + rParam.pBorder->GetDistance(BOX_LINE_TOP); in PrintHF()
1777 …aPaperSize.Width() -= nLeft + lcl_LineTotal( rParam.pBorder->GetRight() ) + rParam.pBorder->GetDis… in PrintHF()
1778 …aPaperSize.Height() -= nTop + lcl_LineTotal( rParam.pBorder->GetBottom() ) + rParam.pBorder->GetDi… in PrintHF()
1781 if ( rParam.pShadow && rParam.pShadow->GetLocation() != SVX_SHADOW_NONE ) in PrintHF()
1783 long nLeft = rParam.pShadow->CalcShadowSpace(SHADOW_LEFT); in PrintHF()
1784 long nTop = rParam.pShadow->CalcShadowSpace(SHADOW_TOP); in PrintHF()
1787 aPaperSize.Width() -= nLeft + rParam.pShadow->CalcShadowSpace(SHADOW_RIGHT); in PrintHF()
1788 aPaperSize.Height() -= nTop + rParam.pShadow->CalcShadowSpace(SHADOW_BOTTOM); in PrintHF()
1800 Size aBorderSize( nLineWidth, rParam.nHeight-rParam.nDistance ); in PrintHF()
1801 if ( rParam.bDynamic ) in PrintHF()
1810 if (rParam.pBorder) in PrintHF()
1811 nMaxHeight += lcl_LineTotal( rParam.pBorder->GetTop() ) + in PrintHF()
1812 lcl_LineTotal( rParam.pBorder->GetBottom() ) + in PrintHF()
1813 rParam.pBorder->GetDistance(BOX_LINE_TOP) + in PrintHF()
1814 rParam.pBorder->GetDistance(BOX_LINE_BOTTOM); in PrintHF()
1815 if (rParam.pShadow && rParam.pShadow->GetLocation() != SVX_SHADOW_NONE) in PrintHF()
1816 nMaxHeight += rParam.pShadow->CalcShadowSpace(SHADOW_TOP) + in PrintHF()
1817 rParam.pShadow->CalcShadowSpace(SHADOW_BOTTOM); in PrintHF()
1819 if (nMaxHeight < rParam.nManHeight-rParam.nDistance) in PrintHF()
1820 nMaxHeight = rParam.nManHeight-rParam.nDistance; // eingestelltes Minimum in PrintHF()
1831 rParam.pBorder, rParam.pBack, rParam.pShadow ); in PrintHF()