Lines Matching refs:rVal
278 void SwFlyFrmAttrMgr::ValidateMetrics( SvxSwFrameValidation& rVal, in ValidateMetrics() argument
284 rVal.nMinHeight = MINFLY + CalcTopSpace() + CalcBottomSpace(); in ValidateMetrics()
285 rVal.nMinWidth = MINFLY + CalcLeftSpace()+ CalcRightSpace(); in ValidateMetrics()
292 const RndStdIds eAnchorType = static_cast<RndStdIds >(rVal.nAnchorType); in ValidateMetrics()
294 rVal.nHRelOrient, in ValidateMetrics()
295 rVal.nVRelOrient, in ValidateMetrics()
297 rVal.bFollowTextFlow, in ValidateMetrics()
298 rVal.bMirror, NULL, &rVal.aPercentSize); in ValidateMetrics()
317 nTmp = rVal.nWidth; in ValidateMetrics()
318 rVal.nWidth = rVal.nHeight; in ValidateMetrics()
319 rVal.nHeight = nTmp; in ValidateMetrics()
324 rVal.nMinHPos = aBoundRect.Left(); in ValidateMetrics()
325 rVal.nMinVPos = aBoundRect.Top(); in ValidateMetrics()
326 SwTwips nH = rVal.nHPos; in ValidateMetrics()
327 SwTwips nV = rVal.nVPos; in ValidateMetrics()
329 if (rVal.nHPos + rVal.nWidth > aBoundRect.Right()) in ValidateMetrics()
331 if (rVal.nHoriOrient == text::HoriOrientation::NONE) in ValidateMetrics()
333 rVal.nHPos -= ((rVal.nHPos + rVal.nWidth) - aBoundRect.Right()); in ValidateMetrics()
334 nH = rVal.nHPos; in ValidateMetrics()
337 rVal.nWidth = aBoundRect.Right() - rVal.nHPos; in ValidateMetrics()
340 if (rVal.nHPos + rVal.nWidth > aBoundRect.Right()) in ValidateMetrics()
341 rVal.nWidth = aBoundRect.Right() - rVal.nHPos; in ValidateMetrics()
343 if (rVal.nVPos + rVal.nHeight > aBoundRect.Bottom()) in ValidateMetrics()
345 if (rVal.nVertOrient == text::VertOrientation::NONE) in ValidateMetrics()
347 rVal.nVPos -= ((rVal.nVPos + rVal.nHeight) - aBoundRect.Bottom()); in ValidateMetrics()
348 nV = rVal.nVPos; in ValidateMetrics()
351 rVal.nHeight = aBoundRect.Bottom() - rVal.nVPos; in ValidateMetrics()
354 if (rVal.nVPos + rVal.nHeight > aBoundRect.Bottom()) in ValidateMetrics()
355 rVal.nHeight = aBoundRect.Bottom() - rVal.nVPos; in ValidateMetrics()
357 if ( rVal.nVertOrient != text::VertOrientation::NONE ) in ValidateMetrics()
360 if ( rVal.nHoriOrient != text::HoriOrientation::NONE ) in ValidateMetrics()
363 rVal.nMaxHPos = aBoundRect.Right() - rVal.nWidth; in ValidateMetrics()
364 rVal.nMaxHeight = aBoundRect.Bottom() - nV; in ValidateMetrics()
366 rVal.nMaxVPos = aBoundRect.Bottom() - rVal.nHeight; in ValidateMetrics()
367 rVal.nMaxWidth = aBoundRect.Right() - nH; in ValidateMetrics()
373 !(rVal.nVRelOrient == text::RelOrientation::CHAR) && in ValidateMetrics()
374 !(rVal.nVRelOrient == text::RelOrientation::TEXT_LINE) ) ) in ValidateMetrics()
376 if (rVal.nHPos + rVal.nWidth > aBoundRect.Right()) in ValidateMetrics()
378 if (rVal.nHoriOrient == text::HoriOrientation::NONE) in ValidateMetrics()
380 rVal.nHPos -= ((rVal.nHPos + rVal.nWidth) - aBoundRect.Right()); in ValidateMetrics()
383 rVal.nWidth = aBoundRect.Right() - rVal.nHPos; in ValidateMetrics()
388 const bool bMaxVPosAtBottom = !rVal.bFollowTextFlow || in ValidateMetrics()
389 rVal.nVRelOrient == text::RelOrientation::PAGE_FRAME || in ValidateMetrics()
390 rVal.nVRelOrient == text::RelOrientation::PAGE_PRINT_AREA; in ValidateMetrics()
395 rVal.nHeight; in ValidateMetrics()
396 if ( rVal.nVPos > nTmpMaxVPos ) in ValidateMetrics()
398 if (rVal.nVertOrient == text::VertOrientation::NONE) in ValidateMetrics()
400 rVal.nVPos = nTmpMaxVPos; in ValidateMetrics()
404 rVal.nHeight = ( bMaxVPosAtBottom in ValidateMetrics()
406 : aBoundRect.Height() ) - rVal.nVPos; in ValidateMetrics()
411 rVal.nMinHPos = aBoundRect.Left(); in ValidateMetrics()
412 rVal.nMaxHPos = aBoundRect.Right() - rVal.nWidth; in ValidateMetrics()
414 rVal.nMinVPos = aBoundRect.Top(); in ValidateMetrics()
418 rVal.nMaxVPos = aBoundRect.Bottom() - rVal.nHeight; in ValidateMetrics()
422 rVal.nMaxVPos = aBoundRect.Height() - rVal.nHeight; in ValidateMetrics()
426 const SwTwips nH = ( rVal.nHoriOrient != text::HoriOrientation::NONE ) in ValidateMetrics()
428 : rVal.nHPos; in ValidateMetrics()
429 const SwTwips nV = ( rVal.nVertOrient != text::VertOrientation::NONE ) in ValidateMetrics()
431 : rVal.nVPos; in ValidateMetrics()
432 rVal.nMaxHeight = rVal.nMaxVPos + rVal.nHeight - nV; in ValidateMetrics()
433 rVal.nMaxWidth = rVal.nMaxHPos + rVal.nWidth - nH; in ValidateMetrics()
440 ( rVal.nVRelOrient == text::RelOrientation::CHAR || in ValidateMetrics()
441 rVal.nVRelOrient == text::RelOrientation::TEXT_LINE ) ) in ValidateMetrics()
444 rVal.nMinHPos = aBoundRect.Left(); in ValidateMetrics()
446 rVal.nMaxHPos = aBoundRect.Right() - rVal.nWidth; in ValidateMetrics()
447 if (rVal.nHPos + rVal.nWidth > aBoundRect.Right()) in ValidateMetrics()
449 if (rVal.nHoriOrient == text::HoriOrientation::NONE) in ValidateMetrics()
451 rVal.nHPos -= ((rVal.nHPos + rVal.nWidth) - aBoundRect.Right()); in ValidateMetrics()
454 rVal.nWidth = aBoundRect.Right() - rVal.nHPos; in ValidateMetrics()
457 const SwTwips nH = ( rVal.nHoriOrient != text::HoriOrientation::NONE ) in ValidateMetrics()
459 : rVal.nHPos; in ValidateMetrics()
460 rVal.nMaxWidth = rVal.nMaxHPos + rVal.nWidth - nH; in ValidateMetrics()
463 rVal.nMinVPos = -( aBoundRect.Bottom() - rVal.nHeight ); in ValidateMetrics()
464 if ( rVal.nVPos < rVal.nMinVPos && in ValidateMetrics()
465 rVal.nVertOrient == text::VertOrientation::NONE ) in ValidateMetrics()
467 rVal.nVPos = rVal.nMinVPos; in ValidateMetrics()
470 rVal.nMaxVPos = -aBoundRect.Top(); in ValidateMetrics()
471 if ( rVal.nVPos > rVal.nMaxVPos && in ValidateMetrics()
472 rVal.nVertOrient == text::VertOrientation::NONE ) in ValidateMetrics()
474 rVal.nVPos = rVal.nMaxVPos; in ValidateMetrics()
477 if ( rVal.nVertOrient == text::VertOrientation::NONE ) in ValidateMetrics()
479 rVal.nMaxHeight = aBoundRect.Bottom() + rVal.nVPos; in ValidateMetrics()
483 rVal.nMaxHeight = aBoundRect.Height(); in ValidateMetrics()
488 rVal.nMinHPos = 0; in ValidateMetrics()
489 rVal.nMaxHPos = 0; in ValidateMetrics()
491 rVal.nMaxHeight = aBoundRect.Height(); in ValidateMetrics()
492 rVal.nMaxWidth = aBoundRect.Width(); in ValidateMetrics()
494 rVal.nMaxVPos = aBoundRect.Height(); in ValidateMetrics()
495 rVal.nMinVPos = -aBoundRect.Height() + rVal.nHeight; in ValidateMetrics()
496 if (rVal.nMaxVPos < rVal.nMinVPos) in ValidateMetrics()
498 rVal.nMinVPos = rVal.nMaxVPos; in ValidateMetrics()
499 rVal.nMaxVPos = -aBoundRect.Height(); in ValidateMetrics()
507 long nTmp = rVal.nWidth; in ValidateMetrics()
508 rVal.nWidth = rVal.nHeight; in ValidateMetrics()
509 rVal.nHeight = nTmp; in ValidateMetrics()
512 if (rVal.nMaxWidth < rVal.nWidth) in ValidateMetrics()
513 rVal.nWidth = rVal.nMaxWidth; in ValidateMetrics()
514 if (rVal.nMaxHeight < rVal.nHeight) in ValidateMetrics()
515 rVal.nHeight = rVal.nMaxHeight; in ValidateMetrics()