Lines Matching refs:rVal

273 void SwFlyFrmAttrMgr::ValidateMetrics( SvxSwFrameValidation& rVal,  in ValidateMetrics()  argument
279 rVal.nMinHeight = MINFLY + CalcTopSpace() + CalcBottomSpace(); in ValidateMetrics()
280 rVal.nMinWidth = MINFLY + CalcLeftSpace()+ CalcRightSpace(); in ValidateMetrics()
287 const RndStdIds eAnchorType = static_cast<RndStdIds >(rVal.nAnchorType); in ValidateMetrics()
289 rVal.nHRelOrient, in ValidateMetrics()
290 rVal.nVRelOrient, in ValidateMetrics()
292 rVal.bFollowTextFlow, in ValidateMetrics()
293 rVal.bMirror, NULL, &rVal.aPercentSize); in ValidateMetrics()
312 nTmp = rVal.nWidth; in ValidateMetrics()
313 rVal.nWidth = rVal.nHeight; in ValidateMetrics()
314 rVal.nHeight = nTmp; in ValidateMetrics()
319 rVal.nMinHPos = aBoundRect.Left(); in ValidateMetrics()
320 rVal.nMinVPos = aBoundRect.Top(); in ValidateMetrics()
321 SwTwips nH = rVal.nHPos; in ValidateMetrics()
322 SwTwips nV = rVal.nVPos; in ValidateMetrics()
324 if (rVal.nHPos + rVal.nWidth > aBoundRect.Right()) in ValidateMetrics()
326 if (rVal.nHoriOrient == text::HoriOrientation::NONE) in ValidateMetrics()
328 rVal.nHPos -= ((rVal.nHPos + rVal.nWidth) - aBoundRect.Right()); in ValidateMetrics()
329 nH = rVal.nHPos; in ValidateMetrics()
332 rVal.nWidth = aBoundRect.Right() - rVal.nHPos; in ValidateMetrics()
335 if (rVal.nHPos + rVal.nWidth > aBoundRect.Right()) in ValidateMetrics()
336 rVal.nWidth = aBoundRect.Right() - rVal.nHPos; in ValidateMetrics()
338 if (rVal.nVPos + rVal.nHeight > aBoundRect.Bottom()) in ValidateMetrics()
340 if (rVal.nVertOrient == text::VertOrientation::NONE) in ValidateMetrics()
342 rVal.nVPos -= ((rVal.nVPos + rVal.nHeight) - aBoundRect.Bottom()); in ValidateMetrics()
343 nV = rVal.nVPos; in ValidateMetrics()
346 rVal.nHeight = aBoundRect.Bottom() - rVal.nVPos; in ValidateMetrics()
349 if (rVal.nVPos + rVal.nHeight > aBoundRect.Bottom()) in ValidateMetrics()
350 rVal.nHeight = aBoundRect.Bottom() - rVal.nVPos; in ValidateMetrics()
352 if ( rVal.nVertOrient != text::VertOrientation::NONE ) in ValidateMetrics()
355 if ( rVal.nHoriOrient != text::HoriOrientation::NONE ) in ValidateMetrics()
358 rVal.nMaxHPos = aBoundRect.Right() - rVal.nWidth; in ValidateMetrics()
359 rVal.nMaxHeight = aBoundRect.Bottom() - nV; in ValidateMetrics()
361 rVal.nMaxVPos = aBoundRect.Bottom() - rVal.nHeight; in ValidateMetrics()
362 rVal.nMaxWidth = aBoundRect.Right() - nH; in ValidateMetrics()
368 !(rVal.nVRelOrient == text::RelOrientation::CHAR) && in ValidateMetrics()
369 !(rVal.nVRelOrient == text::RelOrientation::TEXT_LINE) ) ) in ValidateMetrics()
371 if (rVal.nHPos + rVal.nWidth > aBoundRect.Right()) in ValidateMetrics()
373 if (rVal.nHoriOrient == text::HoriOrientation::NONE) in ValidateMetrics()
375 rVal.nHPos -= ((rVal.nHPos + rVal.nWidth) - aBoundRect.Right()); in ValidateMetrics()
378 rVal.nWidth = aBoundRect.Right() - rVal.nHPos; in ValidateMetrics()
383 const bool bMaxVPosAtBottom = !rVal.bFollowTextFlow || in ValidateMetrics()
384 rVal.nVRelOrient == text::RelOrientation::PAGE_FRAME || in ValidateMetrics()
385 rVal.nVRelOrient == text::RelOrientation::PAGE_PRINT_AREA; in ValidateMetrics()
390 rVal.nHeight; in ValidateMetrics()
391 if ( rVal.nVPos > nTmpMaxVPos ) in ValidateMetrics()
393 if (rVal.nVertOrient == text::VertOrientation::NONE) in ValidateMetrics()
395 rVal.nVPos = nTmpMaxVPos; in ValidateMetrics()
399 rVal.nHeight = ( bMaxVPosAtBottom in ValidateMetrics()
401 : aBoundRect.Height() ) - rVal.nVPos; in ValidateMetrics()
406 rVal.nMinHPos = aBoundRect.Left(); in ValidateMetrics()
407 rVal.nMaxHPos = aBoundRect.Right() - rVal.nWidth; in ValidateMetrics()
409 rVal.nMinVPos = aBoundRect.Top(); in ValidateMetrics()
413 rVal.nMaxVPos = aBoundRect.Bottom() - rVal.nHeight; in ValidateMetrics()
417 rVal.nMaxVPos = aBoundRect.Height() - rVal.nHeight; in ValidateMetrics()
421 const SwTwips nH = ( rVal.nHoriOrient != text::HoriOrientation::NONE ) in ValidateMetrics()
423 : rVal.nHPos; in ValidateMetrics()
424 const SwTwips nV = ( rVal.nVertOrient != text::VertOrientation::NONE ) in ValidateMetrics()
426 : rVal.nVPos; in ValidateMetrics()
427 rVal.nMaxHeight = rVal.nMaxVPos + rVal.nHeight - nV; in ValidateMetrics()
428 rVal.nMaxWidth = rVal.nMaxHPos + rVal.nWidth - nH; in ValidateMetrics()
435 ( rVal.nVRelOrient == text::RelOrientation::CHAR || in ValidateMetrics()
436 rVal.nVRelOrient == text::RelOrientation::TEXT_LINE ) ) in ValidateMetrics()
439 rVal.nMinHPos = aBoundRect.Left(); in ValidateMetrics()
441 rVal.nMaxHPos = aBoundRect.Right() - rVal.nWidth; in ValidateMetrics()
442 if (rVal.nHPos + rVal.nWidth > aBoundRect.Right()) in ValidateMetrics()
444 if (rVal.nHoriOrient == text::HoriOrientation::NONE) in ValidateMetrics()
446 rVal.nHPos -= ((rVal.nHPos + rVal.nWidth) - aBoundRect.Right()); in ValidateMetrics()
449 rVal.nWidth = aBoundRect.Right() - rVal.nHPos; in ValidateMetrics()
452 const SwTwips nH = ( rVal.nHoriOrient != text::HoriOrientation::NONE ) in ValidateMetrics()
454 : rVal.nHPos; in ValidateMetrics()
455 rVal.nMaxWidth = rVal.nMaxHPos + rVal.nWidth - nH; in ValidateMetrics()
458 rVal.nMinVPos = -( aBoundRect.Bottom() - rVal.nHeight ); in ValidateMetrics()
459 if ( rVal.nVPos < rVal.nMinVPos && in ValidateMetrics()
460 rVal.nVertOrient == text::VertOrientation::NONE ) in ValidateMetrics()
462 rVal.nVPos = rVal.nMinVPos; in ValidateMetrics()
465 rVal.nMaxVPos = -aBoundRect.Top(); in ValidateMetrics()
466 if ( rVal.nVPos > rVal.nMaxVPos && in ValidateMetrics()
467 rVal.nVertOrient == text::VertOrientation::NONE ) in ValidateMetrics()
469 rVal.nVPos = rVal.nMaxVPos; in ValidateMetrics()
472 if ( rVal.nVertOrient == text::VertOrientation::NONE ) in ValidateMetrics()
474 rVal.nMaxHeight = aBoundRect.Bottom() + rVal.nVPos; in ValidateMetrics()
478 rVal.nMaxHeight = aBoundRect.Height(); in ValidateMetrics()
483 rVal.nMinHPos = 0; in ValidateMetrics()
484 rVal.nMaxHPos = 0; in ValidateMetrics()
486 rVal.nMaxHeight = aBoundRect.Height(); in ValidateMetrics()
487 rVal.nMaxWidth = aBoundRect.Width(); in ValidateMetrics()
489 rVal.nMaxVPos = aBoundRect.Height(); in ValidateMetrics()
490 rVal.nMinVPos = -aBoundRect.Height() + rVal.nHeight; in ValidateMetrics()
491 if (rVal.nMaxVPos < rVal.nMinVPos) in ValidateMetrics()
493 rVal.nMinVPos = rVal.nMaxVPos; in ValidateMetrics()
494 rVal.nMaxVPos = -aBoundRect.Height(); in ValidateMetrics()
502 long nTmp = rVal.nWidth; in ValidateMetrics()
503 rVal.nWidth = rVal.nHeight; in ValidateMetrics()
504 rVal.nHeight = nTmp; in ValidateMetrics()
507 if (rVal.nMaxWidth < rVal.nWidth) in ValidateMetrics()
508 rVal.nWidth = rVal.nMaxWidth; in ValidateMetrics()
509 if (rVal.nMaxHeight < rVal.nHeight) in ValidateMetrics()
510 rVal.nHeight = rVal.nMaxHeight; in ValidateMetrics()