Lines Matching refs:pItem
283 Size TabControl::ImplGetItemSize( ImplTabItem* pItem, long nMaxWidth ) in ImplGetItemSize() argument
285 pItem->maFormatText = pItem->maText; in ImplGetItemSize()
286 Size aSize( GetCtrlTextWidth( pItem->maFormatText ), GetTextHeight() ); in ImplGetItemSize()
288 if( !!pItem->maTabImage ) in ImplGetItemSize()
290 aImageSize = pItem->maTabImage.GetSizePixel(); in ImplGetItemSize()
291 if( pItem->maFormatText.Len() ) in ImplGetItemSize()
316 else if ( pItem->maFormatText.Len() < TAB_EXTRASPACE_X ) in ImplGetItemSize()
317 aSize.Width() += TAB_EXTRASPACE_X-pItem->maFormatText.Len(); in ImplGetItemSize()
323 pItem->maFormatText += aAppendStr; in ImplGetItemSize()
326 pItem->maFormatText.Erase( pItem->maFormatText.Len()-aAppendStr.Len()-1, 1 ); in ImplGetItemSize()
327 aSize.Width() = GetCtrlTextWidth( pItem->maFormatText ); in ImplGetItemSize()
331 while ( (aSize.Width()+4 >= nMaxWidth) && (pItem->maFormatText.Len() > aAppendStr.Len()) ); in ImplGetItemSize()
334 pItem->maFormatText.Assign( '.' ); in ImplGetItemSize()
339 if( pItem->maFormatText.Len() == 0 ) in ImplGetItemSize()
557 ImplTabItem* pItem = ImplGetItem( nId ); in ImplChangeTabPage() local
559 TabPage* pPage = (pItem) ? pItem->mpTabPage : NULL; in ImplChangeTabPage()
567 if ( !pOldItem || (pOldItem->mnLine != pItem->mnLine) ) in ImplChangeTabPage()
657 ImplTabItem* pItem = ImplGetItem( GetCurPageId() ); in ImplPosCurTabPage() local
658 if ( pItem && pItem->mpTabPage ) in ImplPosCurTabPage()
661 pItem->mpTabPage->SetPosSizePixel( aRect.TopLeft(), aRect.GetSize() ); in ImplPosCurTabPage()
751 void TabControl::ImplDrawItem( ImplTabItem* pItem, const Rectangle& rCurRect, bool bLayout, bool bF… in ImplDrawItem() argument
753 if ( pItem->maRect.IsEmpty() ) in ImplDrawItem()
768 Rectangle aRect = pItem->maRect; in ImplDrawItem()
785 if ( pItem->mnId == mnCurPageId ) in ImplDrawItem()
815 Rectangle aCtrlRegion( pItem->maRect ); in ImplDrawItem()
818 if( pItem->mnId == mnCurPageId ) in ImplDrawItem()
827 if( IsMouseOver() && pItem->maRect.IsInside( GetPointerPosPixel() ) ) in ImplDrawItem()
833 if( (&(*it) != pItem) && (it->maRect.IsInside( GetPointerPosPixel() ) ) ) in ImplDrawItem()
842 if(pItem->maRect.Left() < 5) in ImplDrawItem()
844 if(pItem->maRect.Right() > mnLastWidth - 5) in ImplDrawItem()
904 mpTabCtrlData->maLayoutPageIdToLine[ (int)pItem->mnId ] = nLine; in ImplDrawItem()
905 mpTabCtrlData->maLayoutLineToPageId[ nLine ] = (int)pItem->mnId; in ImplDrawItem()
919 long nTextWidth = GetCtrlTextWidth( pItem->maFormatText ); in ImplDrawItem()
920 if( !! pItem->maTabImage ) in ImplDrawItem()
922 aImageSize = pItem->maTabImage.GetSizePixel(); in ImplDrawItem()
923 if( pItem->maFormatText.Len() ) in ImplDrawItem()
928 if( pItem->maFormatText.Len() ) in ImplDrawItem()
931 if( ! pItem->mbEnabled ) in ImplDrawItem()
934 pItem->maFormatText, in ImplDrawItem()
941 if( !! pItem->maTabImage ) in ImplDrawItem()
946 DrawImage( aImgTL, pItem->maTabImage, pItem->mbEnabled ? 0 : IMAGE_DRAW_DISABLE ); in ImplDrawItem()
1021 ImplTabItem* pItem = ImplGetItem( nPageId ); in MouseButtonDown() local
1022 if( pItem && pItem->mbEnabled ) in MouseButtonDown()
1203 ImplTabItem* pItem = &mpTabCtrlData->maItemList[idx]; in ImplPaint() local
1204 if ( pItem != pCurItem ) in ImplPaint()
1207 aClipRgn.Intersect( pItem->maRect ); in ImplPaint()
1211 ImplDrawItem( pItem, aCurRect, bLayout, (pItem==pFirstTab), (pItem==pLastTab), sal_False ); in ImplPaint()
1366 ImplTabItem* pItem = ImplGetItem( nItemId ); in RequestHelp() local
1367 const XubString& rStr = pItem->maText; in RequestHelp()
1368 if ( rStr != pItem->maFormatText ) in RequestHelp()
1390 ImplTabItem* pItem = ImplGetItem( nItemId ); in RequestHelp() local
1391 const XubString& rHelpText = pItem->maHelpText; in RequestHelp()
1393 if ( rHelpText.Len() > 0 && pItem->maText.Len() == 0 && !!pItem->maTabImage ) in RequestHelp()
1660 ImplTabItem* pItem = NULL; in InsertPage() local
1664 pItem = &mpTabCtrlData->maItemList.back(); in InsertPage()
1672 pItem = &(*new_it); in InsertPage()
1688 pItem->mnId = nPageId; in InsertPage()
1689 pItem->mpTabPage = NULL; in InsertPage()
1690 pItem->mnTabPageResId = 0; in InsertPage()
1691 pItem->maText = rText; in InsertPage()
1692 pItem->mbFullVisible = sal_False; in InsertPage()
1776 ImplTabItem* pItem = ImplGetItem( i_nPageId ); in EnablePage() local
1778 if ( pItem && pItem->mbEnabled != i_bEnable ) in EnablePage()
1780 pItem->mbEnabled = i_bEnable; in EnablePage()
1785 if( pItem->mnId == mnCurPageId ) in EnablePage()
1913 ImplTabItem* pItem = ImplGetItem( nPageId ); in SetTabPage() local
1915 if ( pItem && (pItem->mpTabPage != pTabPage) ) in SetTabPage()
1925 pItem->mpTabPage = pTabPage; in SetTabPage()
1926 if ( pItem->mnId == mnCurPageId ) in SetTabPage()
1927 ImplChangeTabPage( pItem->mnId, 0 ); in SetTabPage()
1930 pItem->mpTabPage = NULL; in SetTabPage()
1938 ImplTabItem* pItem = ImplGetItem( nPageId ); in GetTabPage() local
1940 if ( pItem ) in GetTabPage()
1941 return pItem->mpTabPage; in GetTabPage()
1950 ImplTabItem* pItem = ImplGetItem( nPageId ); in GetTabPageResId() local
1952 if ( pItem ) in GetTabPageResId()
1953 return pItem->mnTabPageResId; in GetTabPageResId()
1962 ImplTabItem* pItem = ImplGetItem( nPageId ); in SetPageText() local
1964 if ( pItem && pItem->maText != rText ) in SetPageText()
1966 pItem->maText = rText; in SetPageText()
1985 ImplTabItem* pItem = ImplGetItem( nPageId ); in GetPageText() local
1987 if ( pItem ) in GetPageText()
1988 return pItem->maText; in GetPageText()
1997 ImplTabItem* pItem = ImplGetItem( nPageId ); in SetHelpText() local
1999 if ( pItem ) in SetHelpText()
2000 pItem->maHelpText = rText; in SetHelpText()
2007 ImplTabItem* pItem = ImplGetItem( nPageId ); in GetHelpText() local
2009 if ( pItem ) in GetHelpText()
2011 if ( !pItem->maHelpText.Len() && pItem->maHelpId.getLength() ) in GetHelpText()
2015 …pItem->maHelpText = pHelp->GetHelpText( rtl::OStringToOUString( pItem->maHelpId, RTL_TEXTENCODING_… in GetHelpText()
2018 return pItem->maHelpText; in GetHelpText()
2028 ImplTabItem* pItem = ImplGetItem( nPageId ); in SetHelpId() local
2030 if ( pItem ) in SetHelpId()
2031 pItem->maHelpId = rHelpId; in SetHelpId()
2039 ImplTabItem* pItem = ImplGetItem( nPageId ); in GetHelpId() local
2041 if ( pItem ) in GetHelpId()
2042 aRet = pItem->maHelpId; in GetHelpId()
2051 ImplTabItem* pItem = ImplGetItem( i_nPageId ); in SetPageImage() local
2053 if ( pItem ) in SetPageImage()
2055 pItem->maTabImage = i_rImage; in SetPageImage()
2066 const ImplTabItem* pItem = ImplGetItem( i_nPageId ); in GetPageImage() local
2067 return pItem ? &pItem->maTabImage : NULL; in GetPageImage()
2166 ImplTabItem* pItem = ImplGetItem( nPageId ); in GetTabBounds() local
2167 if(pItem) in GetTabBounds()
2168 aRet = pItem->maRect; in GetTabBounds()