Lines Matching refs:pValidation

814 IMPL_LINK(SwDrawBaseShell, ValidatePosition, SvxSwFrameValidation*, pValidation )  in IMPL_LINK()  argument
817 pValidation->nMinHeight = MINFLY; in IMPL_LINK()
818 pValidation->nMinWidth = MINFLY; in IMPL_LINK()
824 const RndStdIds eAnchorType = static_cast<RndStdIds >(pValidation->nAnchorType); in IMPL_LINK()
836 pValidation->nHRelOrient, in IMPL_LINK()
837 pValidation->nVRelOrient, in IMPL_LINK()
839 pValidation->bFollowTextFlow, in IMPL_LINK()
840 pValidation->bMirror, NULL, &pValidation->aPercentSize); in IMPL_LINK()
860 nTmp = pValidation->nWidth; in IMPL_LINK()
861 pValidation->nWidth = pValidation->nHeight; in IMPL_LINK()
862 pValidation->nHeight = nTmp; in IMPL_LINK()
867 pValidation->nMinHPos = aBoundRect.Left(); in IMPL_LINK()
868 pValidation->nMinVPos = aBoundRect.Top(); in IMPL_LINK()
869 SwTwips nH = pValidation->nHPos; in IMPL_LINK()
870 SwTwips nV = pValidation->nVPos; in IMPL_LINK()
872 if (pValidation->nHPos + pValidation->nWidth > aBoundRect.Right()) in IMPL_LINK()
874 if (pValidation->nHoriOrient == text::HoriOrientation::NONE) in IMPL_LINK()
876pValidation->nHPos -= ((pValidation->nHPos + pValidation->nWidth) - aBoundRect.Right()); in IMPL_LINK()
877 nH = pValidation->nHPos; in IMPL_LINK()
880 pValidation->nWidth = aBoundRect.Right() - pValidation->nHPos; in IMPL_LINK()
883 if (pValidation->nHPos + pValidation->nWidth > aBoundRect.Right()) in IMPL_LINK()
884 pValidation->nWidth = aBoundRect.Right() - pValidation->nHPos; in IMPL_LINK()
886 if (pValidation->nVPos + pValidation->nHeight > aBoundRect.Bottom()) in IMPL_LINK()
888 if (pValidation->nVertOrient == text::VertOrientation::NONE) in IMPL_LINK()
890pValidation->nVPos -= ((pValidation->nVPos + pValidation->nHeight) - aBoundRect.Bottom()); in IMPL_LINK()
891 nV = pValidation->nVPos; in IMPL_LINK()
894 pValidation->nHeight = aBoundRect.Bottom() - pValidation->nVPos; in IMPL_LINK()
897 if (pValidation->nVPos + pValidation->nHeight > aBoundRect.Bottom()) in IMPL_LINK()
898 pValidation->nHeight = aBoundRect.Bottom() - pValidation->nVPos; in IMPL_LINK()
900 if ( pValidation->nVertOrient != text::VertOrientation::NONE ) in IMPL_LINK()
903 if ( pValidation->nHoriOrient != text::HoriOrientation::NONE ) in IMPL_LINK()
906 pValidation->nMaxHPos = aBoundRect.Right() - pValidation->nWidth; in IMPL_LINK()
907 pValidation->nMaxHeight = aBoundRect.Bottom() - nV; in IMPL_LINK()
909 pValidation->nMaxVPos = aBoundRect.Bottom() - pValidation->nHeight; in IMPL_LINK()
910 pValidation->nMaxWidth = aBoundRect.Right() - nH; in IMPL_LINK()
914 if (pValidation->nHPos + pValidation->nWidth > aBoundRect.Right()) in IMPL_LINK()
916 if (pValidation->nHoriOrient == text::HoriOrientation::NONE) in IMPL_LINK()
918pValidation->nHPos -= ((pValidation->nHPos + pValidation->nWidth) - aBoundRect.Right()); in IMPL_LINK()
921 pValidation->nWidth = aBoundRect.Right() - pValidation->nHPos; in IMPL_LINK()
926 const bool bMaxVPosAtBottom = !pValidation->bFollowTextFlow || in IMPL_LINK()
927pValidation->nVRelOrient == text::RelOrientation::PAGE_FRAME || in IMPL_LINK()
928pValidation->nVRelOrient == text::RelOrientation::PAGE_PRINT_AREA; in IMPL_LINK()
933 pValidation->nHeight; in IMPL_LINK()
934 if ( pValidation->nVPos > nTmpMaxVPos ) in IMPL_LINK()
936 if (pValidation->nVertOrient == text::VertOrientation::NONE) in IMPL_LINK()
938 pValidation->nVPos = nTmpMaxVPos; in IMPL_LINK()
942 pValidation->nHeight = ( bMaxVPosAtBottom in IMPL_LINK()
944 : aBoundRect.Height() ) - pValidation->nVPos; in IMPL_LINK()
949 pValidation->nMinHPos = aBoundRect.Left(); in IMPL_LINK()
950 pValidation->nMaxHPos = aBoundRect.Right() - pValidation->nWidth; in IMPL_LINK()
952 pValidation->nMinVPos = aBoundRect.Top(); in IMPL_LINK()
956 pValidation->nMaxVPos = aBoundRect.Bottom() - pValidation->nHeight; in IMPL_LINK()
960 pValidation->nMaxVPos = aBoundRect.Height() - pValidation->nHeight; in IMPL_LINK()
964 const SwTwips nH = ( pValidation->nHoriOrient != text::HoriOrientation::NONE ) in IMPL_LINK()
966 : pValidation->nHPos; in IMPL_LINK()
967 const SwTwips nV = ( pValidation->nVertOrient != text::VertOrientation::NONE ) in IMPL_LINK()
969 : pValidation->nVPos; in IMPL_LINK()
970 pValidation->nMaxHeight = pValidation->nMaxVPos + pValidation->nHeight - nV; in IMPL_LINK()
971 pValidation->nMaxWidth = pValidation->nMaxHPos + pValidation->nWidth - nH; in IMPL_LINK()
975 pValidation->nMinHPos = 0; in IMPL_LINK()
976 pValidation->nMaxHPos = 0; in IMPL_LINK()
978 pValidation->nMaxHeight = aBoundRect.Height(); in IMPL_LINK()
979 pValidation->nMaxWidth = aBoundRect.Width(); in IMPL_LINK()
981 pValidation->nMaxVPos = aBoundRect.Height(); in IMPL_LINK()
982 pValidation->nMinVPos = -aBoundRect.Height() + pValidation->nHeight; in IMPL_LINK()
983 if (pValidation->nMaxVPos < pValidation->nMinVPos) in IMPL_LINK()
985 pValidation->nMinVPos = pValidation->nMaxVPos; in IMPL_LINK()
986 pValidation->nMaxVPos = -aBoundRect.Height(); in IMPL_LINK()
992 long nTmp = pValidation->nWidth; in IMPL_LINK()
993 pValidation->nWidth = pValidation->nHeight; in IMPL_LINK()
994 pValidation->nHeight = nTmp; in IMPL_LINK()
997 if (pValidation->nMaxWidth < pValidation->nWidth) in IMPL_LINK()
998 pValidation->nWidth = pValidation->nMaxWidth; in IMPL_LINK()
999 if (pValidation->nMaxHeight < pValidation->nHeight) in IMPL_LINK()
1000 pValidation->nHeight = pValidation->nMaxHeight; in IMPL_LINK()