Lines Matching refs:pTblData
157 pTblData(0), in SwFormatTablePage()
224 DBG_ASSERT(pTblData, "Tabellendaten nicht da?"); in IMPL_LINK()
234 aWidthMF.SetRefValue(pTblData->GetSpace()); in IMPL_LINK()
235 aLeftMF.SetRefValue(pTblData->GetSpace()); in IMPL_LINK()
236 aRightMF.SetRefValue(pTblData->GetSpace()); in IMPL_LINK()
272 aWidthMF.SetPrcntValue(aWidthMF.NormalizePercent(pTblData->GetSpace() ), FUNIT_TWIP ); in IMPL_LINK()
370 nDiff = nRight + nLeft + nCurWidth - pTblData->GetSpace() ; in IMPL_LINK_INLINE_END()
392 nCurWidth = pTblData->GetSpace(); in IMPL_LINK_INLINE_END()
422 if( nRight + nLeft > pTblData->GetSpace() - MINLAY ) in IMPL_LINK_INLINE_END()
423 nRight = pTblData->GetSpace() -nLeft - MINLAY; in IMPL_LINK_INLINE_END()
425 nCurWidth = pTblData->GetSpace() - nLeft - nRight; in IMPL_LINK_INLINE_END()
434 if(nRight + nLeft > pTblData->GetSpace() - MINLAY ) in IMPL_LINK_INLINE_END()
436 nLeft = bCenter ? (pTblData->GetSpace() - MINLAY) /2 : in IMPL_LINK_INLINE_END()
437 (pTblData->GetSpace() - MINLAY) - nRight; in IMPL_LINK_INLINE_END()
438 nRight = bCenter ? (pTblData->GetSpace() - MINLAY) /2 : nRight; in IMPL_LINK_INLINE_END()
440 nCurWidth = pTblData->GetSpace() - nLeft - nRight; in IMPL_LINK_INLINE_END()
446 nDiff = nRight + nLeft + nCurWidth - pTblData->GetSpace() ; in IMPL_LINK_INLINE_END()
449 nCurWidth = pTblData->GetSpace() - nLeft - nRight; in IMPL_LINK_INLINE_END()
548 pTblData = (SwTableRep*)((const SwPtrItem*) pItem)->GetValue(); in Reset()
549 nMinTableWidth = pTblData->GetColCount() * MINLAY; in Reset()
551 if(pTblData->GetWidthPercent()) in Reset()
555 aWidthMF.SetPrcntValue(pTblData->GetWidthPercent(), FUNIT_CUSTOM); in Reset()
563 pTblData->GetWidth()), FUNIT_TWIP); in Reset()
565 nSaveWidth = pTblData->GetWidth(); in Reset()
569 aWidthMF.SetRefValue(pTblData->GetSpace()); in Reset()
570 aWidthMF.SetLast(aWidthMF.NormalizePercent( pTblData->GetSpace() )); in Reset()
571 aLeftMF.SetLast(aLeftMF.NormalizePercent( pTblData->GetSpace() )); in Reset()
572 aRightMF.SetLast(aRightMF.NormalizePercent( pTblData->GetSpace() )); in Reset()
575 pTblData->GetLeftSpace()), FUNIT_TWIP); in Reset()
577 pTblData->GetRightSpace()), FUNIT_TWIP); in Reset()
581 nOldAlign = pTblData->GetAlign(); in Reset()
659 aWidthMF.SetMax( 2*aWidthMF.NormalizePercent( pTblData->GetSpace() ), FUNIT_TWIP ); in Reset()
660 aRightMF.SetMax( aRightMF.NormalizePercent( pTblData->GetSpace() ), FUNIT_TWIP ); in Reset()
661 aLeftMF.SetMax( aLeftMF.NormalizePercent( pTblData->GetSpace() ), FUNIT_TWIP ); in Reset()
670 DBG_ASSERT(pTblData, "Tabellendaten nicht da?"); in ActivatePage()
673 SwTwips nCurWidth = text::HoriOrientation::FULL != pTblData->GetAlign() ? in ActivatePage()
674 pTblData->GetWidth() : in ActivatePage()
675 pTblData->GetSpace(); in ActivatePage()
676 if(pTblData->GetWidthPercent() == 0 && in ActivatePage()
684 pTblData->GetLeftSpace()), FUNIT_TWIP); in ActivatePage()
687 pTblData->GetRightSpace()), FUNIT_TWIP); in ActivatePage()
720 pTblData->SetWidthChanged(); in DeactivatePage()
721 pTblData->SetLeftSpace( lLeft); in DeactivatePage()
722 pTblData->SetRightSpace( lRight); in DeactivatePage()
728 lWidth = pTblData->GetSpace() - lRight - lLeft; in DeactivatePage()
730 if(pTblData->GetWidthPercent() != nPercentWidth) in DeactivatePage()
732 pTblData->SetWidthPercent(nPercentWidth); in DeactivatePage()
733 pTblData->SetWidthChanged(); in DeactivatePage()
738 pTblData->SetWidthPercent(0); in DeactivatePage()
741 pTblData->SetWidth(lWidth); in DeactivatePage()
746 for( i = 0; i < pTblData->GetColCount(); i++) in DeactivatePage()
748 nColSum += pTblData->GetColumns()[i].nWidth; in DeactivatePage()
750 if(nColSum != pTblData->GetWidth()) in DeactivatePage()
753 (long) (pTblData->GetWidth() / in DeactivatePage()
754 pTblData->GetColCount() - 1)); in DeactivatePage()
755 SwTwips nDiff = nColSum - pTblData->GetWidth(); in DeactivatePage()
756 while ( Abs(nDiff) > pTblData->GetColCount() + 1 ) in DeactivatePage()
758 SwTwips nSub = nDiff / pTblData->GetColCount(); in DeactivatePage()
759 for( i = 0; i < pTblData->GetColCount(); i++) in DeactivatePage()
761 if(pTblData->GetColumns()[i].nWidth - nMinWidth > nSub) in DeactivatePage()
763 pTblData->GetColumns()[i].nWidth -= nSub; in DeactivatePage()
768 nDiff -= pTblData->GetColumns()[i].nWidth - nMinWidth; in DeactivatePage()
769 pTblData->GetColumns()[i].nWidth = nMinWidth; in DeactivatePage()
792 if(nAlign != pTblData->GetAlign()) in DeactivatePage()
794 pTblData->SetWidthChanged(); in DeactivatePage()
795 pTblData->SetAlign(nAlign); in DeactivatePage()
800 if(pTblData->GetWidth() != lWidth ) in DeactivatePage()
802 pTblData->SetWidthChanged(); in DeactivatePage()
803 pTblData->SetWidth( in DeactivatePage()
804 nAlign == text::HoriOrientation::FULL ? pTblData->GetSpace() : lWidth ); in DeactivatePage()
806 if(pTblData->HasWidthChanged()) in DeactivatePage()
807 _pSet->Put(SwPtrItem(FN_TABLE_REP, pTblData)); in DeactivatePage()
810 DbgTblRep(pTblData) in DeactivatePage()
899 pTblData = (SwTableRep*)((const SwPtrItem*) pItem)->GetValue(); in Reset()
900 nNoOfVisibleCols = pTblData->GetColCount(); in Reset()
901 nNoOfCols = pTblData->GetAllColCount(); in Reset()
902 nTableWidth = pTblData->GetAlign() != text::HoriOrientation::FULL && in Reset()
903 pTblData->GetAlign() != text::HoriOrientation::LEFT_AND_WIDTH? in Reset()
904 pTblData->GetWidth() : pTblData->GetSpace(); in Reset()
909 if( pTblData->GetColumns()[i].nWidth < nMinWidth ) in Reset()
910 nMinWidth = pTblData->GetColumns()[i].nWidth; in Reset()
1066 pTblData->SetColsChanged(); in FillItemSet()
1103 nSum += (pTblData->GetColumns())[i].nWidth; in UpdateCols()
1154 DBG_ASSERT(nDiff <= pTblData->GetSpace() - nTableWidth, "Maximum falsch eingestellt" ); in UpdateCols()
1155 SwTwips nActSpace = pTblData->GetSpace() - nTableWidth; in UpdateCols()
1158 nTableWidth = pTblData->GetSpace(); in UpdateCols()
1170 …DBG_ASSERT(nDiff * nNoOfVisibleCols <= pTblData->GetSpace() - nTableWidth, "Maximum falsch eingest… in UpdateCols()
1172 if(nDiff * nNoOfVisibleCols > pTblData->GetSpace() - nTableWidth) in UpdateCols()
1174 nAdd = (pTblData->GetSpace() - nTableWidth) / nNoOfVisibleCols; in UpdateCols()
1223 DbgTblRep(pTblData) in UpdateCols()
1227 aSpaceED.SetValue(aSpaceED.Normalize( pTblData->GetSpace() - nTableWidth) , FUNIT_TWIP); in UpdateCols()
1242 bPercentMode = pTblData->GetWidthPercent() != 0; in ActivatePage()
1245 pFieldArr[i]->SetRefValue(pTblData->GetWidth()); in ActivatePage()
1249 sal_uInt16 nTblAlign = pTblData->GetAlign(); in ActivatePage()
1250 if((text::HoriOrientation::FULL != nTblAlign && nTableWidth != pTblData->GetWidth()) || in ActivatePage()
1251 (text::HoriOrientation::FULL == nTblAlign && nTableWidth != pTblData->GetSpace())) in ActivatePage()
1254 pTblData->GetSpace() : in ActivatePage()
1255 pTblData->GetWidth(); in ActivatePage()
1259 if(pTblData->GetWidthPercent() || in ActivatePage()
1261 pTblData->IsLineSelected() ) in ActivatePage()
1283 pTblData->GetSpace() - nTableWidth) , FUNIT_TWIP); in ActivatePage()
1294 … if(text::HoriOrientation::FULL != pTblData->GetAlign() && pTblData->GetWidth() != nTableWidth) in DeactivatePage()
1296 pTblData->SetWidth(nTableWidth); in DeactivatePage()
1297 SwTwips nDiff = pTblData->GetSpace() - pTblData->GetWidth() - in DeactivatePage()
1298 pTblData->GetLeftSpace() - pTblData->GetRightSpace(); in DeactivatePage()
1299 switch( pTblData->GetAlign() ) in DeactivatePage()
1302 pTblData->SetLeftSpace(pTblData->GetLeftSpace() + nDiff); in DeactivatePage()
1305 pTblData->SetRightSpace(pTblData->GetRightSpace() + nDiff); in DeactivatePage()
1311 (-nDiff2 < pTblData->GetRightSpace() && - nDiff2 < pTblData->GetLeftSpace())) in DeactivatePage()
1313 pTblData->SetRightSpace(pTblData->GetRightSpace() + nDiff2); in DeactivatePage()
1314 pTblData->SetLeftSpace(pTblData->GetLeftSpace() + nDiff2); in DeactivatePage()
1318 if(pTblData->GetRightSpace() > pTblData->GetLeftSpace()) in DeactivatePage()
1320 pTblData->SetLeftSpace(0); in DeactivatePage()
1321 pTblData->SetRightSpace(pTblData->GetSpace() - pTblData->GetWidth()); in DeactivatePage()
1325 pTblData->SetRightSpace(0); in DeactivatePage()
1326 pTblData->SetLeftSpace(pTblData->GetSpace() - pTblData->GetWidth()); in DeactivatePage()
1332 pTblData->SetRightSpace(pTblData->GetRightSpace() + nDiff/2); in DeactivatePage()
1333 pTblData->SetLeftSpace(pTblData->GetLeftSpace() + nDiff/2); in DeactivatePage()
1336 if(nDiff > pTblData->GetRightSpace()) in DeactivatePage()
1338 pTblData->SetLeftSpace(pTblData->GetSpace() - pTblData->GetWidth()); in DeactivatePage()
1340 pTblData->SetRightSpace( in DeactivatePage()
1341 pTblData->GetSpace() - pTblData->GetWidth() - pTblData->GetLeftSpace()); in DeactivatePage()
1344 pTblData->SetWidthChanged(); in DeactivatePage()
1347 DbgTblRep(pTblData) in DeactivatePage()
1349 _pSet->Put(SwPtrItem( FN_TABLE_REP, pTblData )); in DeactivatePage()
1362 if(pTblData->GetColumns()[i].bVisible && nPos) in GetVisibleWidth()
1366 SwTwips nReturn = pTblData->GetColumns()[i].nWidth; in GetVisibleWidth()
1368 while(!pTblData->GetColumns()[i].bVisible && (i + 1) < nNoOfCols) in GetVisibleWidth()
1369 nReturn += pTblData->GetColumns()[++i].nWidth; in GetVisibleWidth()
1382 if(pTblData->GetColumns()[i].bVisible && nPos) in SetVisibleWidth()
1387 pTblData->GetColumns()[i].nWidth = nNewWidth; in SetVisibleWidth()
1388 while(!pTblData->GetColumns()[i].bVisible && (i + 1) < nNoOfCols) in SetVisibleWidth()
1389 pTblData->GetColumns()[++i].nWidth = 0; in SetVisibleWidth()