Lines Matching refs:pImpl
230 pImpl(new SwAddressPreview_Impl()) in SwAddressPreview()
260 pImpl->aAdresses.push_back(rAddress); in AddAddress()
268 pImpl->aAdresses.clear(); in SetAddress()
269 pImpl->aAdresses.push_back(rAddress); in SetAddress()
278 DBG_ASSERT(pImpl->nSelectedAddress < pImpl->aAdresses.size(), "selection invalid"); in GetSelectedAddress()
279 return pImpl->nSelectedAddress; in GetSelectedAddress()
286 DBG_ASSERT(pImpl->nSelectedAddress < pImpl->aAdresses.size(), "selection invalid"); in SelectAddress()
287 pImpl->nSelectedAddress = nSelect; in SelectAddress()
289 sal_uInt16 nSelectRow = nSelect / pImpl->nColumns; in SelectAddress()
291 if( (nSelectRow < nStartRow) || (nSelectRow >= (nStartRow + pImpl->nRows) )) in SelectAddress()
299 pImpl->aAdresses.clear(); in Clear()
300 pImpl->nSelectedAddress = 0; in Clear()
308 pImpl->aAdresses[pImpl->nSelectedAddress] = rNew; in ReplaceSelectedAddress()
316 pImpl->aAdresses.erase(pImpl->aAdresses.begin() + pImpl->nSelectedAddress); in RemoveSelectedAddress()
317 if(pImpl->nSelectedAddress) in RemoveSelectedAddress()
318 --pImpl->nSelectedAddress; in RemoveSelectedAddress()
327 pImpl->nRows = nRows; in SetLayout()
328 pImpl->nColumns = nColumns; in SetLayout()
336 pImpl->bEnableScrollBar = bEnable; in EnableScrollBar()
343 if(pImpl->nColumns) in UpdateScrollBar()
345 aVScrollBar.SetVisibleSize(pImpl->nRows); in UpdateScrollBar()
346 …sal_uInt16 nResultingRows = (sal_uInt16)(pImpl->aAdresses.size() + pImpl->nColumns - 1) / pImpl->n… in UpdateScrollBar()
348 aVScrollBar.Show(pImpl->bEnableScrollBar && nResultingRows > pImpl->nRows); in UpdateScrollBar()
376 Size aPartSize( aSize.Width()/pImpl->nColumns, aSize.Height()/pImpl->nRows ); in Paint()
380 sal_uInt16 nAddress = nStartRow * pImpl->nColumns; in Paint()
381 const sal_uInt16 nNumAddresses = static_cast< sal_uInt16 >(pImpl->aAdresses.size()); in Paint()
382 for(sal_uInt16 nRow = 0; nRow < pImpl->nRows ; ++nRow) in Paint()
384 for(sal_uInt16 nCol = 0; nCol < pImpl->nColumns; ++nCol) in Paint()
390 bool bIsSelected = nAddress == pImpl->nSelectedAddress; in Paint()
391 if((pImpl->nColumns * pImpl->nRows) == 1) in Paint()
393 ::rtl::OUString adr(pImpl->aAdresses[nAddress]); in Paint()
407 if(rMEvt.IsLeft() && ( pImpl->nRows || pImpl->nColumns)) in MouseButtonDown()
412 Size aPartSize( aSize.Width()/pImpl->nColumns, aSize.Height()/pImpl->nRows ); in MouseButtonDown()
419 sal_uInt32 nSelect = nRow * pImpl->nColumns + nCol; in MouseButtonDown()
421 if( nSelect < pImpl->aAdresses.size() && in MouseButtonDown()
422 pImpl->nSelectedAddress != (sal_uInt16)nSelect) in MouseButtonDown()
424 pImpl->nSelectedAddress = (sal_uInt16)nSelect; in MouseButtonDown()
436 if(pImpl->nRows || pImpl->nColumns) in KeyInput()
438 sal_uInt32 nSelectedRow = (pImpl->nSelectedAddress + 1)/ pImpl->nColumns; in KeyInput()
439 sal_uInt32 nSelectedColumn = pImpl->nSelectedAddress % nSelectedRow; in KeyInput()
447 if(pImpl->aAdresses.size() > sal_uInt32(pImpl->nSelectedAddress + pImpl->nColumns)) in KeyInput()
455 if(nSelectedColumn < sal_uInt32(pImpl->nColumns - 1) && in KeyInput()
456 pImpl->aAdresses.size() - 1 > pImpl->nSelectedAddress ) in KeyInput()
460 sal_uInt32 nSelect = nSelectedRow * pImpl->nColumns + nSelectedColumn; in KeyInput()
461 if( nSelect < pImpl->aAdresses.size() && in KeyInput()
462 pImpl->nSelectedAddress != (sal_uInt16)nSelect) in KeyInput()
464 pImpl->nSelectedAddress = (sal_uInt16)nSelect; in KeyInput()