Lines Matching refs:rSize
100 void SC_DLLPUBLIC ScLimitSizeOnDrawPage( Size& rSize, Point& rPos, const Size& rPage ) in ScLimitSizeOnDrawPage() argument
111 rPos.X() = -rPos.X() - rSize.Width(); in ScLimitSizeOnDrawPage()
114 if ( rSize.Width() > aPageSize.Width() || rSize.Height() > aPageSize.Height() ) in ScLimitSizeOnDrawPage()
116 double fX = aPageSize.Width() / (double) rSize.Width(); in ScLimitSizeOnDrawPage()
117 double fY = aPageSize.Height() / (double) rSize.Height(); in ScLimitSizeOnDrawPage()
121 rSize.Width() = aPageSize.Width(); in ScLimitSizeOnDrawPage()
122 rSize.Height() = (long) ( rSize.Height() * fX ); in ScLimitSizeOnDrawPage()
126 rSize.Height() = aPageSize.Height(); in ScLimitSizeOnDrawPage()
127 rSize.Width() = (long) ( rSize.Width() * fY ); in ScLimitSizeOnDrawPage()
130 if (!rSize.Width()) in ScLimitSizeOnDrawPage()
131 rSize.Width() = 1; in ScLimitSizeOnDrawPage()
132 if (!rSize.Height()) in ScLimitSizeOnDrawPage()
133 rSize.Height() = 1; in ScLimitSizeOnDrawPage()
136 if ( rPos.X() + rSize.Width() > aPageSize.Width() ) in ScLimitSizeOnDrawPage()
137 rPos.X() = aPageSize.Width() - rSize.Width(); in ScLimitSizeOnDrawPage()
138 if ( rPos.Y() + rSize.Height() > aPageSize.Height() ) in ScLimitSizeOnDrawPage()
139 rPos.Y() = aPageSize.Height() - rSize.Height(); in ScLimitSizeOnDrawPage()
142 rPos.X() = -rPos.X() - rSize.Width(); // back to real position in ScLimitSizeOnDrawPage()