Lines Matching refs:mpImpl
174 return mpImpl->mnMinZoom; in Offset2Zoom()
176 return mpImpl->mnMaxZoom; in Offset2Zoom()
181 for ( aSnappingPointIter = mpImpl->maSnappingPointOffsets.begin(); in Offset2Zoom()
182 aSnappingPointIter != mpImpl->maSnappingPointOffsets.end(); in Offset2Zoom()
189 nRet = mpImpl->maSnappingPointZooms[ nCount ]; in Offset2Zoom()
200 const long nFirstHalfRange = mpImpl->mnSliderCenter - mpImpl->mnMinZoom; in Offset2Zoom()
204 … nRet = mpImpl->mnMinZoom + sal_uInt16( nOffsetToSliderLeft * nZoomPerSliderPixel / 1000 ); in Offset2Zoom()
209 const long nSecondHalfRange = mpImpl->mnMaxZoom - mpImpl->mnSliderCenter; in Offset2Zoom()
213 … nRet = mpImpl->mnSliderCenter + sal_uInt16( nOffsetToSliderCenter * nZoomPerSliderPixel / 1000 ); in Offset2Zoom()
217 if( nRet < mpImpl->mnMinZoom ) in Offset2Zoom()
218 return mpImpl->mnMinZoom; in Offset2Zoom()
220 else if( nRet > mpImpl->mnMaxZoom ) in Offset2Zoom()
221 return mpImpl->mnMaxZoom; in Offset2Zoom()
235 if( nCurrentZoom <= mpImpl->mnSliderCenter ) in Zoom2Offset()
237 nCurrentZoom = nCurrentZoom - mpImpl->mnMinZoom; in Zoom2Offset()
238 const long nFirstHalfRange = mpImpl->mnSliderCenter - mpImpl->mnMinZoom; in Zoom2Offset()
245 nCurrentZoom = nCurrentZoom - mpImpl->mnSliderCenter; in Zoom2Offset()
246 const long nSecondHalfRange = mpImpl->mnMaxZoom - mpImpl->mnSliderCenter; in Zoom2Offset()
260 mpImpl( new ScZoomSliderWnd_Impl( nCurrentZoom ) ), in ScZoomSliderWnd()
266 …mpImpl->maSliderButton = Image( SVX_RES( bIsHC ? RID_SVXBMP_SLIDERBUTTON_HC : RID_SVXBMP_SLID… in ScZoomSliderWnd()
267 …mpImpl->maIncreaseButton = Image( SVX_RES( bIsHC ? RID_SVXBMP_SLIDERINCREASE_HC : RID_SVXBMP_SL… in ScZoomSliderWnd()
268 …mpImpl->maDecreaseButton = Image( SVX_RES( bIsHC ? RID_SVXBMP_SLIDERDECREASE_HC : RID_SVXBMP_SL… in ScZoomSliderWnd()
277 delete mpImpl; in ~ScZoomSliderWnd()
284 if ( !mpImpl->mbValuesSet ) in MouseButtonDown()
293 const long nOldZoom = mpImpl->mnCurrentZoom; in MouseButtonDown()
298 mpImpl->mnCurrentZoom = mpImpl->mnCurrentZoom - 5; in MouseButtonDown()
304 mpImpl->mnCurrentZoom = mpImpl->mnCurrentZoom + 5; in MouseButtonDown()
308 mpImpl->mnCurrentZoom = Offset2Zoom( aPoint.X() ); in MouseButtonDown()
311 if( mpImpl->mnCurrentZoom < mpImpl->mnMinZoom ) in MouseButtonDown()
312 mpImpl->mnCurrentZoom = mpImpl->mnMinZoom; in MouseButtonDown()
313 else if( mpImpl->mnCurrentZoom > mpImpl->mnMaxZoom ) in MouseButtonDown()
314 mpImpl->mnCurrentZoom = mpImpl->mnMaxZoom; in MouseButtonDown()
316 if( nOldZoom == mpImpl->mnCurrentZoom ) in MouseButtonDown()
322 mpImpl->mbOmitPaint = true; in MouseButtonDown()
324 SvxZoomSliderItem aZoomSliderItem( mpImpl->mnCurrentZoom ); in MouseButtonDown()
335 mpImpl->mbOmitPaint = false; in MouseButtonDown()
342 if ( !mpImpl->mbValuesSet ) in MouseMove()
356 mpImpl->mnCurrentZoom = Offset2Zoom( aPoint.X() ); in MouseMove()
361 mpImpl->mbOmitPaint = true; // optimization: paint before executing command, in MouseMove()
364 SvxZoomSliderItem aZoomSliderItem( mpImpl->mnCurrentZoom ); in MouseMove()
375 mpImpl->mbOmitPaint = false; in MouseMove()
386 mpImpl->mnCurrentZoom = pZoomSliderItem->GetValue(); in UpdateFromItem()
387 mpImpl->mnMinZoom = pZoomSliderItem->GetMinZoom(); in UpdateFromItem()
388 mpImpl->mnMaxZoom = pZoomSliderItem->GetMaxZoom(); in UpdateFromItem()
390 DBG_ASSERT( mpImpl->mnMinZoom <= mpImpl->mnCurrentZoom && in UpdateFromItem()
391 mpImpl->mnMinZoom < mpImpl->mnSliderCenter && in UpdateFromItem()
392 mpImpl->mnMaxZoom >= mpImpl->mnCurrentZoom && in UpdateFromItem()
393 mpImpl->mnMaxZoom > mpImpl->mnSliderCenter, in UpdateFromItem()
396 mpImpl->maSnappingPointOffsets.clear(); in UpdateFromItem()
397 mpImpl->maSnappingPointZooms.clear(); in UpdateFromItem()
418 mpImpl->maSnappingPointOffsets.push_back( nCurrentOffset ); in UpdateFromItem()
419 mpImpl->maSnappingPointZooms.push_back( nCurrent ); in UpdateFromItem()
428 if ( !mpImpl->mbOmitPaint ) in UpdateFromItem()
443 if( mpImpl->mbOmitPaint ) in DoPaint()
497 for ( aSnappingPointIter = mpImpl->maSnappingPointOffsets.begin(); in DoPaint()
498 aSnappingPointIter != mpImpl->maSnappingPointOffsets.end(); in DoPaint()
516 aImagePoint.X() += Zoom2Offset( mpImpl->mnCurrentZoom ); in DoPaint()
519 pVDev->DrawImage( aImagePoint, mpImpl->maSliderButton ); in DoPaint()
525 pVDev->DrawImage( aImagePoint, mpImpl->maDecreaseButton ); in DoPaint()
529 pVDev->DrawImage( aImagePoint, mpImpl->maIncreaseButton ); in DoPaint()