Lines Matching refs:pItem
437 ImplTabBarItem* pItem = mpItemList->First(); in ~TabBar() local
438 while ( pItem ) in ~TabBar()
440 delete pItem; in ~TabBar()
441 pItem = mpItemList->Next(); in ~TabBar()
553 ImplTabBarItem* pItem = mpItemList->First(); in ImplCalcWidth() local
554 while ( pItem ) in ImplCalcWidth()
556 long nNewWidth = GetTextWidth( pItem->maText ); in ImplCalcWidth()
559 pItem->mbShort = sal_True; in ImplCalcWidth()
563 pItem->mbShort = sal_False; in ImplCalcWidth()
565 if ( pItem->mnWidth != nNewWidth ) in ImplCalcWidth()
567 pItem->mnWidth = nNewWidth; in ImplCalcWidth()
568 if ( !pItem->maRect.IsEmpty() ) in ImplCalcWidth()
571 pItem = mpItemList->Next(); in ImplCalcWidth()
589 ImplTabBarItem* pItem = mpItemList->First(); in ImplFormat() local
590 while ( pItem ) in ImplFormat()
595 pItem->maRect.SetEmpty(); in ImplFormat()
601 pItem->maRect.Left() = x-pItem->mnWidth; in ImplFormat()
604 pItem->maRect.Left() = x; in ImplFormat()
605 x += pItem->mnWidth; in ImplFormat()
607 pItem->maRect.Right() = x+TABBAR_OFFSET_X+TABBAR_OFFSET_X2; in ImplFormat()
608 pItem->maRect.Bottom() = maWinSize.Height()-1; in ImplFormat()
612 long nTmp = mnOffX + mnLastOffX - pItem->maRect.Right(); in ImplFormat()
613 pItem->maRect.Right() = mnOffX + mnLastOffX - pItem->maRect.Left(); in ImplFormat()
614 pItem->maRect.Left() = nTmp; in ImplFormat()
619 pItem = mpItemList->Next(); in ImplFormat()
745 ImplTabBarItem* pItem = mpItemList->GetObject( nPos ); in ImplShowPage() local
747 SetFirstPageId( pItem->mnId ); in ImplShowPage()
748 else if ( pItem->maRect.Right() > nWidth ) in ImplShowPage()
750 while ( pItem->maRect.Right() > nWidth ) in ImplShowPage()
816 ImplTabBarItem* pItem; in MouseButtonDown() local
825 pItem = mpItemList->GetObject( nPos ); in MouseButtonDown()
827 if ( pItem->mbEnable ) in MouseButtonDown()
854 pItem = mpItemList->GetObject( nPos ); in MouseButtonDown()
856 if ( pItem->mbEnable ) in MouseButtonDown()
880 pItem = mpItemList->GetObject( n ); in MouseButtonDown()
886 if ( pItem->mbSelect != bSelect ) in MouseButtonDown()
888 pItem->mbSelect = bSelect; in MouseButtonDown()
889 if ( !pItem->maRect.IsEmpty() ) in MouseButtonDown()
890 Invalidate( pItem->maRect ); in MouseButtonDown()
906 pItem = mpItemList->GetObject( n ); in MouseButtonDown()
913 if ( pItem->mbSelect != bSelect ) in MouseButtonDown()
915 pItem->mbSelect = bSelect; in MouseButtonDown()
916 if ( !pItem->maRect.IsEmpty() ) in MouseButtonDown()
917 Invalidate( pItem->maRect ); in MouseButtonDown()
964 pItem = mpItemList->GetObject( nPos ); in MouseButtonDown()
966 if ( pItem->mbEnable ) in MouseButtonDown()
968 if ( !pItem->mbSelect ) in MouseButtonDown()
976 pItem = mpItemList->First(); in MouseButtonDown()
977 while ( pItem ) in MouseButtonDown()
979 if ( pItem->mbSelect || (pItem->mnId == mnCurPageId) ) in MouseButtonDown()
981 pItem->mbSelect = sal_False; in MouseButtonDown()
983 Invalidate( pItem->maRect ); in MouseButtonDown()
986 pItem = mpItemList->Next(); in MouseButtonDown()
1024 ImplTabBarItem* pItem; in Paint() local
1040 pItem = mpItemList->GetObject( GetPagePos( mnCurPageId ) ); in Paint()
1041 if ( pItem->maRect.IsEmpty() ) in Paint()
1099 pItem = mpItemList->Seek( n ); in Paint()
1100 while ( pItem ) in Paint()
1102 if ( !pItem->maRect.IsEmpty() ) in Paint()
1105 pItem = mpItemList->Next(); in Paint()
1112 if ( pItem ) in Paint()
1116 pItem = mpItemList->Seek( n ); in Paint()
1118 while ( pItem ) in Paint()
1121 if ( !pCurItem && (pItem->mnId == mnCurPageId) ) in Paint()
1123 pCurItem = pItem; in Paint()
1124 pItem = mpItemList->Prev(); in Paint()
1125 if ( !pItem ) in Paint()
1126 pItem = pCurItem; in Paint()
1130 if ( !pItem->maRect.IsEmpty() ) in Paint()
1132 Rectangle aRect = pItem->maRect; in Paint()
1135 if ( pItem->mnId == mnCurPageId ) in Paint()
1142 if ( pItem->mbSelect || (pItem->mnId == mnCurPageId) ) in Paint()
1150 if ( !pItem->IsDefaultTabBgColor() && !rStyleSettings.GetHighContrastMode() ) in Paint()
1152 SetFillColor( pItem->maTabBgColor ); in Paint()
1153 SetTextColor( pItem->maTabTextColor ); in Paint()
1161 if ( pItem->mnBits & TPB_SPECIAL ) in Paint()
1181 XubString aText = pItem->maText; in Paint()
1182 if ( pItem->mbShort ) in Paint()
1189 if ( pItem->IsDefaultTabBgColor() || (!pItem->mbSelect) ) in Paint()
1191 if ( !pItem->mbEnable ) in Paint()
1204 if ( pItem->mbSelect || (pItem->mnId == mnCurPageId) ) { in Paint()
1207 if ( !pItem->IsDefaultTabBgColor() && ! rStyleSettings.GetHighContrastMode() ) in Paint()
1209 SetLineColor( pItem->maTabBgColor ); in Paint()
1217 if ( !pItem->mbSelect && (pItem->mnId != mnCurPageId) ) in Paint()
1230 … if ( !pItem->IsDefaultTabBgColor() && ( pItem->mbSelect || (pItem->mnId == mnCurPageId) ) ) in Paint()
1232 SetLineColor( pItem->maTabBgColor ); in Paint()
1239 if ( !pItem->IsDefaultTabBgColor() ) in Paint()
1241 … if ( pItem->mbSelect || (pItem->mnId == mnCurPageId) || rStyleSettings.GetHighContrastMode() ) { in Paint()
1242 SetLineColor( pItem->maTabBgColor ); in Paint()
1244 if ( !pItem->mbEnable ) in Paint()
1260 if ( pItem == pCurItem ) in Paint()
1277 pItem = mpItemList->Prev(); in Paint()
1281 if ( pItem == pCurItem ) in Paint()
1284 pItem = NULL; in Paint()
1287 if ( !pItem ) in Paint()
1288 pItem = pCurItem; in Paint()
1419 ImplTabBarItem* pItem = mpItemList->GetObject( nPos ); in RequestHelp() local
1420 if ( pItem->mbShort || in RequestHelp()
1421 (pItem->maRect.Right()-TABBAR_OFFSET_X-5 > mnLastOffX) ) in RequestHelp()
1610 ImplTabBarItem* pItem = new ImplTabBarItem( nPageId, rText, nBits ); in InsertPage() local
1611 mpItemList->Insert( pItem, nPos ); in InsertPage()
1640 ImplTabBarItem* pItem; in SetTabBgColor() local
1643 pItem = mpItemList->GetObject( nPos ); in SetTabBgColor()
1646 pItem->maTabBgColor = aTabBgColor; in SetTabBgColor()
1648 pItem->maTabTextColor = Color( COL_WHITE ); in SetTabBgColor()
1650 pItem->maTabTextColor = Color( COL_BLACK ); in SetTabBgColor()
1654 pItem->maTabBgColor = Color( COL_AUTO ); in SetTabBgColor()
1655 pItem->maTabTextColor = Color( COL_AUTO ); in SetTabBgColor()
1705 ImplTabBarItem* pItem = mpItemList->Remove( nPos ); in MovePage() local
1706 mpItemList->Insert( pItem, nNewPos ); in MovePage()
1722 ImplTabBarItem* pItem = mpItemList->First(); in Clear() local
1723 while ( pItem ) in Clear()
1726 delete pItem; in Clear()
1727 pItem = mpItemList->Next(); in Clear()
1751 ImplTabBarItem* pItem = mpItemList->GetObject( nPos ); in EnablePage() local
1753 if ( pItem->mbEnable != bEnable ) in EnablePage()
1755 pItem->mbEnable = bEnable; in EnablePage()
1759 Invalidate( pItem->maRect ); in EnablePage()
1786 ImplTabBarItem* pItem = mpItemList->GetObject( nPos ); in SetPageBits() local
1788 if ( pItem->mnBits != nBits ) in SetPageBits()
1790 pItem->mnBits = nBits; in SetPageBits()
1794 Invalidate( pItem->maRect ); in SetPageBits()
1822 ImplTabBarItem* pItem = mpItemList->GetObject( nPos ); in GetPageId() local
1823 if ( pItem ) in GetPageId()
1824 return pItem->mnId; in GetPageId()
1833 ImplTabBarItem* pItem = mpItemList->First(); in GetPagePos() local
1834 while ( pItem ) in GetPagePos()
1836 if ( pItem->mnId == nPageId ) in GetPagePos()
1839 pItem = mpItemList->Next(); in GetPagePos()
1849 ImplTabBarItem* pItem = mpItemList->First(); in GetPageId() local
1850 while ( pItem ) in GetPageId()
1852 if ( pItem->maRect.IsInside( rPos ) ) in GetPageId()
1853 return pItem->mnId; in GetPageId()
1855 pItem = mpItemList->Next(); in GetPageId()
1892 ImplTabBarItem* pItem = mpItemList->GetObject( nPos ); in SetCurPageId() local
1902 if ( !pItem->mbSelect && pOldItem ) in SetCurPageId()
1907 pItem->mbSelect = sal_True; in SetCurPageId()
1927 if ( pItem->maRect.IsEmpty() ) in SetCurPageId()
1930 … while ( (mbMirrored ? (pItem->maRect.Left() < mnOffX) : (pItem->maRect.Right() > nWidth)) || in SetCurPageId()
1931 pItem->maRect.IsEmpty() ) in SetCurPageId()
1955 Invalidate( pItem->maRect ); in SetCurPageId()
1978 ImplTabBarItem* pItem = mpItemList->GetObject( nPos ); in MakeVisible() local
1985 if ( mbFormat || pItem->maRect.IsEmpty() ) in MakeVisible()
1991 while ( (pItem->maRect.Right() > nWidth) || in MakeVisible()
1992 pItem->maRect.IsEmpty() ) in MakeVisible()
2057 ImplTabBarItem* pItem = mpItemList->GetObject( nPos ); in SelectPage() local
2059 if ( pItem->mbSelect != bSelect ) in SelectPage()
2061 pItem->mbSelect = bSelect; in SelectPage()
2065 Invalidate( pItem->maRect ); in SelectPage()
2076 ImplTabBarItem* pItem = mpItemList->Seek( nPos ); in SelectPageRange() local
2077 while ( pItem && (nPos <= nEndPos) ) in SelectPageRange()
2079 if ( (pItem->mbSelect != bSelect) && (pItem->mnId != mnCurPageId) ) in SelectPageRange()
2081 pItem->mbSelect = bSelect; in SelectPageRange()
2082 aPaintRect.Union( pItem->maRect ); in SelectPageRange()
2086 pItem = mpItemList->Next(); in SelectPageRange()
2099 ImplTabBarItem* pItem = mpItemList->First(); in GetSelectPage() local
2100 while ( pItem ) in GetSelectPage()
2102 if ( pItem->mbSelect ) in GetSelectPage()
2106 return pItem->mnId; in GetSelectPage()
2108 pItem = mpItemList->Next(); in GetSelectPage()
2119 ImplTabBarItem* pItem = mpItemList->First(); in GetSelectPageCount() local
2120 while ( pItem ) in GetSelectPageCount()
2122 if ( pItem->mbSelect ) in GetSelectPageCount()
2125 pItem = mpItemList->Next(); in GetSelectPageCount()
2408 ImplTabBarItem* pItem = mpItemList->GetObject( nPos ); in GetHelpText() local
2409 if ( !pItem->maHelpText.Len() && pItem->maHelpId.getLength() ) in GetHelpText()
2413 …pItem->maHelpText = pHelp->GetHelpText( rtl::OStringToOUString( pItem->maHelpId, RTL_TEXTENCODING_… in GetHelpText()
2416 return pItem->maHelpText; in GetHelpText()
2504 ImplTabBarItem* pItem; in ShowDropPos() local
2512 pItem = mpItemList->GetObject( mpItemList->Count()-1 ); in ShowDropPos()
2513 if ( !pItem->maRect.IsEmpty() && (rPos.X() > pItem->maRect.Right()) ) in ShowDropPos()
2577 pItem = mpItemList->GetObject( mnDropPos ); in ShowDropPos()
2578 nX = pItem->maRect.Left()+TABBAR_OFFSET_X; in ShowDropPos()
2583 if ( !pItem->IsDefaultTabBgColor() && !pItem->mbSelect) in ShowDropPos()
2584 SetLineColor( pItem->maTabTextColor ); in ShowDropPos()
2592 pItem = mpItemList->GetObject( mnDropPos-1 ); in ShowDropPos()
2593 nX = pItem->maRect.Right()-TABBAR_OFFSET_X; in ShowDropPos()
2596 if ( !pItem->IsDefaultTabBgColor() && !pItem->mbSelect) in ShowDropPos()
2597 SetLineColor( pItem->maTabTextColor ); in ShowDropPos()
2612 ImplTabBarItem* pItem; in HideDropPos() local
2620 pItem = mpItemList->GetObject( mnDropPos ); in HideDropPos()
2621 nX = pItem->maRect.Left()+TABBAR_OFFSET_X; in HideDropPos()
2632 pItem = mpItemList->GetObject( mnDropPos-1 ); in HideDropPos()
2633 nX = pItem->maRect.Right()-TABBAR_OFFSET_X; in HideDropPos()
2716 ImplTabBarItem* pItem = mpItemList->First(); in CalcWindowSizePixel() local
2717 while ( pItem ) in CalcWindowSizePixel()
2719 nWidth += pItem->mnWidth; in CalcWindowSizePixel()
2720 pItem = mpItemList->Next(); in CalcWindowSizePixel()