Lines Matching refs:pItem
285 Size TabControl::ImplGetItemSize( ImplTabItem* pItem, long nMaxWidth ) in ImplGetItemSize() argument
287 pItem->maFormatText = pItem->maText; in ImplGetItemSize()
288 Size aSize( GetCtrlTextWidth( pItem->maFormatText ), GetTextHeight() ); in ImplGetItemSize()
290 if( !!pItem->maTabImage ) in ImplGetItemSize()
292 aImageSize = pItem->maTabImage.GetSizePixel(); in ImplGetItemSize()
293 if( pItem->maFormatText.Len() ) in ImplGetItemSize()
318 else if ( pItem->maFormatText.Len() < TAB_EXTRASPACE_X ) in ImplGetItemSize()
319 aSize.Width() += TAB_EXTRASPACE_X-pItem->maFormatText.Len(); in ImplGetItemSize()
325 pItem->maFormatText += aAppendStr; in ImplGetItemSize()
328 pItem->maFormatText.Erase( pItem->maFormatText.Len()-aAppendStr.Len()-1, 1 ); in ImplGetItemSize()
329 aSize.Width() = GetCtrlTextWidth( pItem->maFormatText ); in ImplGetItemSize()
333 while ( (aSize.Width()+4 >= nMaxWidth) && (pItem->maFormatText.Len() > aAppendStr.Len()) ); in ImplGetItemSize()
336 pItem->maFormatText.Assign( '.' ); in ImplGetItemSize()
341 if( pItem->maFormatText.Len() == 0 ) in ImplGetItemSize()
559 ImplTabItem* pItem = ImplGetItem( nId ); in ImplChangeTabPage() local
561 TabPage* pPage = (pItem) ? pItem->mpTabPage : NULL; in ImplChangeTabPage()
569 if ( !pOldItem || (pOldItem->mnLine != pItem->mnLine) ) in ImplChangeTabPage()
659 ImplTabItem* pItem = ImplGetItem( GetCurPageId() ); in ImplPosCurTabPage() local
660 if ( pItem && pItem->mpTabPage ) in ImplPosCurTabPage()
663 pItem->mpTabPage->SetPosSizePixel( aRect.TopLeft(), aRect.GetSize() ); in ImplPosCurTabPage()
753 void TabControl::ImplDrawItem( ImplTabItem* pItem, const Rectangle& rCurRect, bool bLayout, bool bF… in ImplDrawItem() argument
755 if ( pItem->maRect.IsEmpty() ) in ImplDrawItem()
770 Rectangle aRect = pItem->maRect; in ImplDrawItem()
787 if ( pItem->mnId == mnCurPageId ) in ImplDrawItem()
817 Rectangle aCtrlRegion( pItem->maRect ); in ImplDrawItem()
820 if( pItem->mnId == mnCurPageId ) in ImplDrawItem()
829 if( IsMouseOver() && pItem->maRect.IsInside( GetPointerPosPixel() ) ) in ImplDrawItem()
835 if( (&(*it) != pItem) && (it->maRect.IsInside( GetPointerPosPixel() ) ) ) in ImplDrawItem()
844 if(pItem->maRect.Left() < 5) in ImplDrawItem()
846 if(pItem->maRect.Right() > mnLastWidth - 5) in ImplDrawItem()
906 mpTabCtrlData->maLayoutPageIdToLine[ (int)pItem->mnId ] = nLine; in ImplDrawItem()
907 mpTabCtrlData->maLayoutLineToPageId[ nLine ] = (int)pItem->mnId; in ImplDrawItem()
921 long nTextWidth = GetCtrlTextWidth( pItem->maFormatText ); in ImplDrawItem()
922 if( !! pItem->maTabImage ) in ImplDrawItem()
924 aImageSize = pItem->maTabImage.GetSizePixel(); in ImplDrawItem()
925 if( pItem->maFormatText.Len() ) in ImplDrawItem()
930 if( pItem->maFormatText.Len() ) in ImplDrawItem()
933 if( ! pItem->mbEnabled ) in ImplDrawItem()
936 pItem->maFormatText, in ImplDrawItem()
943 if( !! pItem->maTabImage ) in ImplDrawItem()
948 DrawImage( aImgTL, pItem->maTabImage, pItem->mbEnabled ? 0 : IMAGE_DRAW_DISABLE ); in ImplDrawItem()
1023 ImplTabItem* pItem = ImplGetItem( nPageId ); in MouseButtonDown() local
1024 if( pItem && pItem->mbEnabled ) in MouseButtonDown()
1205 ImplTabItem* pItem = &mpTabCtrlData->maItemList[idx]; in ImplPaint() local
1206 if ( pItem != pCurItem ) in ImplPaint()
1209 aClipRgn.Intersect( pItem->maRect ); in ImplPaint()
1213 … ImplDrawItem( pItem, aCurRect, bLayout, (pItem==pFirstTab), (pItem==pLastTab), sal_False ); in ImplPaint()
1368 ImplTabItem* pItem = ImplGetItem( nItemId ); in RequestHelp() local
1369 const XubString& rStr = pItem->maText; in RequestHelp()
1370 if ( rStr != pItem->maFormatText ) in RequestHelp()
1392 ImplTabItem* pItem = ImplGetItem( nItemId ); in RequestHelp() local
1393 const XubString& rHelpText = pItem->maHelpText; in RequestHelp()
1395 if ( rHelpText.Len() > 0 && pItem->maText.Len() == 0 && !!pItem->maTabImage ) in RequestHelp()
1662 ImplTabItem* pItem = NULL; in InsertPage() local
1666 pItem = &mpTabCtrlData->maItemList.back(); in InsertPage()
1674 pItem = &(*new_it); in InsertPage()
1690 pItem->mnId = nPageId; in InsertPage()
1691 pItem->mpTabPage = NULL; in InsertPage()
1692 pItem->mnTabPageResId = 0; in InsertPage()
1693 pItem->maText = rText; in InsertPage()
1694 pItem->mbFullVisible = sal_False; in InsertPage()
1778 ImplTabItem* pItem = ImplGetItem( i_nPageId ); in EnablePage() local
1780 if ( pItem && pItem->mbEnabled != i_bEnable ) in EnablePage()
1782 pItem->mbEnabled = i_bEnable; in EnablePage()
1787 if( pItem->mnId == mnCurPageId ) in EnablePage()
1915 ImplTabItem* pItem = ImplGetItem( nPageId ); in SetTabPage() local
1917 if ( pItem && (pItem->mpTabPage != pTabPage) ) in SetTabPage()
1927 pItem->mpTabPage = pTabPage; in SetTabPage()
1928 if ( pItem->mnId == mnCurPageId ) in SetTabPage()
1929 ImplChangeTabPage( pItem->mnId, 0 ); in SetTabPage()
1932 pItem->mpTabPage = NULL; in SetTabPage()
1940 ImplTabItem* pItem = ImplGetItem( nPageId ); in GetTabPage() local
1942 if ( pItem ) in GetTabPage()
1943 return pItem->mpTabPage; in GetTabPage()
1952 ImplTabItem* pItem = ImplGetItem( nPageId ); in GetTabPageResId() local
1954 if ( pItem ) in GetTabPageResId()
1955 return pItem->mnTabPageResId; in GetTabPageResId()
1964 ImplTabItem* pItem = ImplGetItem( nPageId ); in SetPageText() local
1966 if ( pItem && pItem->maText != rText ) in SetPageText()
1968 pItem->maText = rText; in SetPageText()
1987 ImplTabItem* pItem = ImplGetItem( nPageId ); in GetPageText() local
1989 if ( pItem ) in GetPageText()
1990 return pItem->maText; in GetPageText()
1999 ImplTabItem* pItem = ImplGetItem( nPageId ); in SetHelpText() local
2001 if ( pItem ) in SetHelpText()
2002 pItem->maHelpText = rText; in SetHelpText()
2009 ImplTabItem* pItem = ImplGetItem( nPageId ); in GetHelpText() local
2011 if ( pItem ) in GetHelpText()
2013 if ( !pItem->maHelpText.Len() && pItem->maHelpId.getLength() ) in GetHelpText()
2017 …pItem->maHelpText = pHelp->GetHelpText( rtl::OStringToOUString( pItem->maHelpId, RTL_TEXTENCODING_… in GetHelpText()
2020 return pItem->maHelpText; in GetHelpText()
2030 ImplTabItem* pItem = ImplGetItem( nPageId ); in SetHelpId() local
2032 if ( pItem ) in SetHelpId()
2033 pItem->maHelpId = rHelpId; in SetHelpId()
2041 ImplTabItem* pItem = ImplGetItem( nPageId ); in GetHelpId() local
2043 if ( pItem ) in GetHelpId()
2044 aRet = pItem->maHelpId; in GetHelpId()
2053 ImplTabItem* pItem = ImplGetItem( i_nPageId ); in SetPageImage() local
2055 if ( pItem ) in SetPageImage()
2057 pItem->maTabImage = i_rImage; in SetPageImage()
2068 const ImplTabItem* pItem = ImplGetItem( i_nPageId ); in GetPageImage() local
2069 return pItem ? &pItem->maTabImage : NULL; in GetPageImage()
2168 ImplTabItem* pItem = ImplGetItem( nPageId ); in GetTabBounds() local
2169 if(pItem) in GetTabBounds()
2170 aRet = pItem->maRect; in GetTabBounds()