Lines Matching refs:it
738 std::vector< ImplToolItem >::const_iterator it; in ImplGetFirstClippedItem() local
739 it = pThis->mpData->m_aItems.begin(); in ImplGetFirstClippedItem()
740 while ( it != pThis->mpData->m_aItems.end() ) in ImplGetFirstClippedItem()
742 if( it->IsClipped() ) in ImplGetFirstClippedItem()
743 return &(*it); in ImplGetFirstClippedItem()
744 ++it; in ImplGetFirstClippedItem()
882 std::vector< ImplToolItem >::const_iterator it; in ImplCalcFloatSizes() local
883 it = pThis->mpData->m_aItems.begin(); in ImplCalcFloatSizes()
884 while ( it != pThis->mpData->m_aItems.end() ) in ImplCalcFloatSizes()
886 if ( it->mbVisible ) in ImplCalcFloatSizes()
888 if ( it->mpWindow ) in ImplCalcFloatSizes()
890 long nTempSize = it->mpWindow->GetSizePixel().Width(); in ImplCalcFloatSizes()
896 if( it->maItemSize.Width() > nCalcSize ) in ImplCalcFloatSizes()
897 nCalcSize = it->maItemSize.Width(); in ImplCalcFloatSizes()
900 ++it; in ImplCalcFloatSizes()
1191 std::vector< ImplToolItem >::const_iterator it = pBox->mpData->m_aItems.begin(); in ImplFindItemPos() local
1192 while ( it != pBox->mpData->m_aItems.end() ) in ImplFindItemPos()
1194 if ( it->mbVisible ) in ImplFindItemPos()
1196 if ( nLast || !it->maRect.IsEmpty() ) in ImplFindItemPos()
1201 ((nLast < it->maRect.Top()) || it->maRect.IsEmpty()) ) in ImplFindItemPos()
1204 if ( aPos.Y() <= it->maRect.Bottom() ) in ImplFindItemPos()
1206 if ( aPos.X() < it->maRect.Left() ) in ImplFindItemPos()
1208 else if ( aPos.X() < it->maRect.Right() ) in ImplFindItemPos()
1211 nLast = it->maRect.Bottom(); in ImplFindItemPos()
1217 ((nLast < it->maRect.Left()) || it->maRect.IsEmpty()) ) in ImplFindItemPos()
1220 if ( aPos.X() <= it->maRect.Right() ) in ImplFindItemPos()
1222 if ( aPos.Y() < it->maRect.Top() ) in ImplFindItemPos()
1224 else if ( aPos.Y() < it->maRect.Bottom() ) in ImplFindItemPos()
1227 nLast = it->maRect.Right(); in ImplFindItemPos()
1234 ++it; in ImplFindItemPos()
1845 std::vector< ImplToolItem >::iterator it = mpData->m_aItems.begin(); in ImplGetItem() local
1846 while ( it != mpData->m_aItems.end() ) in ImplGetItem()
1848 if ( it->mnId == nItemId ) in ImplGetItem()
1849 return &(*it); in ImplGetItem()
1850 ++it; in ImplGetItem()
1975 std::vector< ImplToolItem >::iterator it = mpData->m_aItems.begin(); in ImplCalcItem() local
1976 while ( it != mpData->m_aItems.end() ) in ImplCalcItem()
1981 …it->mbVisibleText = sal_False; // indicates if text will definitely be drawn, influences dropdown… in ImplCalcItem()
1983 if ( it->meType == TOOLBOXITEM_BUTTON ) in ImplCalcItem()
1986 if ( !(it->maImage) ) in ImplCalcItem()
1990 if ( !it->maText.Len() ) in ImplCalcItem()
1994 …ButtonType tmpButtonType = determineButtonType( &(*it), meButtonType ); // default to toolbox sett… in ImplCalcItem()
1998 it->mbEmptyBtn = sal_False; in ImplCalcItem()
2005 it->maItemSize = it->maImage.GetSizePixel(); in ImplCalcItem()
2009 it->maItemSize = Size( GetCtrlTextWidth( it->maText )+TB_TEXTOFFSET, in ImplCalcItem()
2011 it->mbVisibleText = sal_True; in ImplCalcItem()
2019 it->maItemSize = Size( GetCtrlTextWidth( it->maText )+TB_TEXTOFFSET, in ImplCalcItem()
2021 it->mbVisibleText = sal_True; in ImplCalcItem()
2025 it->maItemSize = it->maImage.GetSizePixel(); in ImplCalcItem()
2031 … it->maItemSize.Width() = bText ? GetCtrlTextWidth( it->maText )+TB_TEXTOFFSET : 0; in ImplCalcItem()
2032 it->maItemSize.Height() = bText ? GetTextHeight() : 0; in ImplCalcItem()
2036 it->maItemSize.Width() += TB_IMAGETEXTOFFSET; in ImplCalcItem()
2039 it->maItemSize.Width() += it->maImage.GetSizePixel().Width(); in ImplCalcItem()
2040 if ( it->maImage.GetSizePixel().Height() > it->maItemSize.Height() ) in ImplCalcItem()
2041 it->maItemSize.Height() = it->maImage.GetSizePixel().Height(); in ImplCalcItem()
2043 it->mbVisibleText = bText; in ImplCalcItem()
2048 it->maItemSize = Size( nDefWidth, nDefHeight ); in ImplCalcItem()
2049 it->mbEmptyBtn = sal_True; in ImplCalcItem()
2053 if ( it->mpWindow ) in ImplCalcItem()
2055 nHeight = it->mpWindow->GetSizePixel().Height(); in ImplCalcItem()
2061 if( it->mnBits & TIB_DROPDOWN ) in ImplCalcItem()
2063 it->maItemSize.Width() += nDropDownArrowWidth; in ImplCalcItem()
2064 it->mnDropDownArrowWidth = nDropDownArrowWidth; in ImplCalcItem()
2069 if( it->mbVisibleText && !mbHorz ) in ImplCalcItem()
2071 long tmp = it->maItemSize.Width(); in ImplCalcItem()
2072 it->maItemSize.Width() = it->maItemSize.Height(); in ImplCalcItem()
2073 it->maItemSize.Height() = tmp; in ImplCalcItem()
2076 else if ( it->meType == TOOLBOXITEM_SPACE ) in ImplCalcItem()
2078 it->maItemSize = Size( nDefWidth, nDefHeight ); in ImplCalcItem()
2081 if ( it->meType == TOOLBOXITEM_BUTTON || it->meType == TOOLBOXITEM_SPACE ) in ImplCalcItem()
2084 …ImplAddButtonBorder( it->maItemSize.Width(), it->maItemSize.Height(), mnOutStyle, mpData->mbNative… in ImplCalcItem()
2086 if( it->meType == TOOLBOXITEM_BUTTON ) in ImplCalcItem()
2088 if( it->maItemSize.Width() < nMinWidth ) in ImplCalcItem()
2089 it->maItemSize.Width() = nMinWidth; in ImplCalcItem()
2090 if( it->maItemSize.Height() < nMinHeight ) in ImplCalcItem()
2091 it->maItemSize.Height() = nMinHeight; in ImplCalcItem()
2095 if ( it->maItemSize.Width() > nMaxWidth ) in ImplCalcItem()
2096 nMaxWidth = it->maItemSize.Width(); in ImplCalcItem()
2097 if ( it->maItemSize.Height() > nMaxHeight ) in ImplCalcItem()
2098 nMaxHeight = it->maItemSize.Height(); in ImplCalcItem()
2101 ++it; in ImplCalcItem()
2164 std::vector< ImplToolItem >::iterator it = mpData->m_aItems.begin(); in ImplCalcBreaks() local
2165 while ( it != mpData->m_aItems.end() ) in ImplCalcBreaks()
2167 it->mbBreak = bBreak; in ImplCalcBreaks()
2170 if ( it->mbVisible ) in ImplCalcBreaks()
2176 if ( it->meType == TOOLBOXITEM_BUTTON || it->meType == TOOLBOXITEM_SPACE ) in ImplCalcBreaks()
2179 nCurWidth = it->maItemSize.Width(); in ImplCalcBreaks()
2181 nCurWidth = it->maItemSize.Height(); in ImplCalcBreaks()
2183 if ( it->mpWindow && bCalcHorz ) in ImplCalcBreaks()
2185 long nWinItemWidth = it->mpWindow->GetSizePixel().Width(); in ImplCalcBreaks()
2193 if ( it->mbEmptyBtn ) in ImplCalcBreaks()
2204 else if ( it->meType == TOOLBOXITEM_SEPARATOR ) in ImplCalcBreaks()
2205 nCurWidth = it->mnSepSize; in ImplCalcBreaks()
2207 else if ( (it->meType == TOOLBOXITEM_BREAK) && !IsMenuEnabled() ) in ImplCalcBreaks()
2215 if ( (it->meType == TOOLBOXITEM_BREAK) || in ImplCalcBreaks()
2222 nLineStart = it - mpData->m_aItems.begin(); in ImplCalcBreaks()
2224 it->mbBreak = sal_True; in ImplCalcBreaks()
2236 it = mpData->m_aItems.begin() + nGroupStart; in ImplCalcBreaks()
2244 if ( (it->meType != TOOLBOXITEM_BUTTON) || bWindow ) in ImplCalcBreaks()
2248 nGroupStart = it - mpData->m_aItems.begin(); in ImplCalcBreaks()
2258 ++it; in ImplCalcBreaks()
2399 std::vector< ImplToolItem >::iterator it; in ImplFormat() local
2540 it = mpData->m_aItems.begin(); in ImplFormat()
2541 while ( it != mpData->m_aItems.end() ) in ImplFormat()
2543 it->maRect = aEmptyRect; in ImplFormat()
2554 ++it; in ImplFormat()
2695 it = mpData->m_aItems.begin(); in ImplFormat()
2696 while ( it != mpData->m_aItems.end() ) in ImplFormat()
2699 if ( it->meType == TOOLBOXITEM_SEPARATOR ) in ImplFormat()
2701 it->mbVisible = sal_False; in ImplFormat()
2705 temp_it = it+1; in ImplFormat()
2712 it->mbVisible = sal_True; in ImplFormat()
2720 else if ( it->mbVisible ) in ImplFormat()
2723 it->mbShowWindow = sal_False; in ImplFormat()
2726 if ( it->mbBreak ) in ImplFormat()
2752 if ( !it->mbVisible || (nFormatLine < mnCurLine) || in ImplFormat()
2755 it->maCalcRect = aEmptyRect; in ImplFormat()
2761 …Size aCurrentItemSize( it->GetSize( mbHorz, mbScroll, nMax, Size(mnMaxItemWidth, mnMaxItemHeight) … in ImplFormat()
2768 it->maCalcRect.Left() = nX; in ImplFormat()
2769 it->maCalcRect.Top() = nY+(nLineSize-aCurrentItemSize.Height())/2; in ImplFormat()
2770 it->maCalcRect.Right() = nX+aCurrentItemSize.Width()-1; in ImplFormat()
2771 … it->maCalcRect.Bottom() = it->maCalcRect.Top()+aCurrentItemSize.Height()-1; in ImplFormat()
2776 it->maCalcRect.Left() = nX+(nLineSize-aCurrentItemSize.Width())/2; in ImplFormat()
2777 it->maCalcRect.Top() = nY; in ImplFormat()
2778 … it->maCalcRect.Right() = it->maCalcRect.Left()+aCurrentItemSize.Width()-1; in ImplFormat()
2779 it->maCalcRect.Bottom() = nY+aCurrentItemSize.Height()-1; in ImplFormat()
2785 if ( it->mpWindow ) in ImplFormat()
2787 if ( it->mbShowWindow ) in ImplFormat()
2789 Point aPos( it->maCalcRect.Left(), it->maCalcRect.Top() ); in ImplFormat()
2790 it->mpWindow->SetPosPixel( aPos ); in ImplFormat()
2792 it->mpWindow->Show(); in ImplFormat()
2795 it->mpWindow->Hide(); in ImplFormat()
2798 ++it; in ImplFormat()
2866 it = mpData->m_aItems.begin(); in ImplFormat()
2867 while ( it != mpData->m_aItems.end() ) in ImplFormat()
2869 if ( it->maRect != it->maCalcRect ) in ImplFormat()
2871 maPaintRect.Union( it->maRect ); in ImplFormat()
2872 maPaintRect.Union( it->maCalcRect ); in ImplFormat()
2874 ++it; in ImplFormat()
2884 it = mpData->m_aItems.begin(); in ImplFormat()
2885 while ( it != mpData->m_aItems.end() ) in ImplFormat()
2887 it->maRect = it->maCalcRect; in ImplFormat()
2888 if (!it->maRect.IsOver(aVisibleRect)) in ImplFormat()
2899 ++it; in ImplFormat()
3813 std::vector< ImplToolItem >::const_iterator it = mpData->m_aItems.begin(); in ImplStartCustomizeMode() local
3814 while ( it != mpData->m_aItems.end() ) in ImplStartCustomizeMode()
3816 if ( it->mbShowWindow ) in ImplStartCustomizeMode()
3818 it->mpWindow->Hide(); in ImplStartCustomizeMode()
3820 if ( !(it->maRect.IsEmpty()) ) in ImplStartCustomizeMode()
3821 Invalidate( it->maRect ); in ImplStartCustomizeMode()
3824 ++it; in ImplStartCustomizeMode()
3844 std::vector< ImplToolItem >::const_iterator it = mpData->m_aItems.begin(); in ImplEndCustomizeMode() local
3845 while ( it != mpData->m_aItems.end() ) in ImplEndCustomizeMode()
3847 if ( it->mbShowWindow ) in ImplEndCustomizeMode()
3849 if ( !(it->maRect.IsEmpty()) ) in ImplEndCustomizeMode()
3850 Invalidate( it->maRect ); in ImplEndCustomizeMode()
3852 it->mpWindow->Show(); in ImplEndCustomizeMode()
3855 ++it; in ImplEndCustomizeMode()
4214 std::vector< ImplToolItem >::const_iterator it = mpData->m_aItems.begin(); in MouseMove() local
4215 while ( it != mpData->m_aItems.end() ) in MouseMove()
4219 if ( it->maRect.IsInside( aMousePos ) ) in MouseMove()
4222 if ( it->meType == TOOLBOXITEM_BUTTON ) in MouseMove()
4226 if ( !it->mbEnabled || it->mbShowWindow ) in MouseMove()
4236 ++it; in MouseMove()
4253 mnCurItemId = mnHighItemId = it->mnId; in MouseMove()
4303 std::vector< ImplToolItem >::const_iterator it = mpData->m_aItems.begin(); in MouseMove() local
4304 while ( it != mpData->m_aItems.end() ) in MouseMove()
4308 if ( it->mbShowWindow ) in MouseMove()
4310 if ( it->maRect.IsInside( aMousePos ) ) in MouseMove()
4312 if ( it->maRect.Right()-TB_RESIZE_OFFSET <= aMousePos.X() ) in MouseMove()
4318 ++it; in MouseMove()
4328 std::vector< ImplToolItem >::const_iterator it = mpData->m_aItems.begin(); in MouseMove() local
4329 while ( it != mpData->m_aItems.end() ) in MouseMove()
4331 if ( it->maRect.IsInside( aMousePos ) ) in MouseMove()
4333 if ( (it->meType == TOOLBOXITEM_BUTTON) && it->mbEnabled ) in MouseMove()
4338 if ( mnHighItemId != it->mnId ) in MouseMove()
4340 … sal_uInt16 nTempPos = sal::static_int_cast<sal_uInt16>(it - mpData->m_aItems.begin()); in MouseMove()
4353 mnHighItemId = it->mnId; in MouseMove()
4365 ++it; in MouseMove()
4433 std::vector< ImplToolItem >::const_iterator it = mpData->m_aItems.begin(); in MouseButtonDown() local
4434 while ( it != mpData->m_aItems.end() ) in MouseButtonDown()
4437 if ( it->maRect.IsInside( aMousePos ) ) in MouseButtonDown()
4441 if ( (it->meType == TOOLBOXITEM_BUTTON) && in MouseButtonDown()
4442 (!it->mbShowWindow || mbCustomizeMode) ) in MouseButtonDown()
4449 ++it; in MouseButtonDown()
4462 Rectangle aItemRect = GetItemRect( it->mnId ); in MouseButtonDown()
4463 mnConfigItem = it->mnId; in MouseButtonDown()
4466 if ( mbCustomizeMode && it->mbShowWindow && in MouseButtonDown()
4467 (it->maRect.Right()-TB_RESIZE_OFFSET <= aMousePos.X()) ) in MouseButtonDown()
4476 if ( !it->mbEnabled ) in MouseButtonDown()
4486 mnCurItemId = it->mnId; in MouseButtonDown()
4490 if ( it->mnBits & TIB_REPEAT ) in MouseButtonDown()
4518 if( (it->mnBits & TIB_DROPDOWN) ) in MouseButtonDown()
4520 …if( ( (it->mnBits & TIB_DROPDOWNONLY) == TIB_DROPDOWNONLY) || it->GetDropDownRect( mbHorz ).IsInsi… in MouseButtonDown()
4980 std::vector< ImplToolItem >::const_iterator it = mpData->m_aItems.begin(); in Notify() local
4981 while( it != mpData->m_aItems.end() ) in Notify()
4983 if ( it->mbVisible ) in Notify()
4985 if ( it->mpWindow && it->mpWindow->ImplIsWindowOrChild( rNEvt.GetWindow() ) ) in Notify()
4987 mnHighItemId = it->mnId; in Notify()
4992 ++it; in Notify()
5025 std::vector< ImplToolItem >::const_iterator it = mpData->m_aItems.begin(); in Command() local
5026 while ( it != mpData->m_aItems.end() ) in Command()
5029 if ( it->maRect.IsInside( aMousePos ) ) in Command()
5033 if ( (it->meType == TOOLBOXITEM_BUTTON) && in Command()
5034 !it->mbShowWindow ) in Command()
5039 ++it; in Command()
5385 std::vector< ImplToolItem >::const_iterator it = ((ToolBox*)pThis)->mpData->m_aItems.begin(); in ImplCountLineBreaks() local
5386 while ( it != ((ToolBox*)pThis)->mpData->m_aItems.end() ) in ImplCountLineBreaks()
5388 if( it->meType == TOOLBOXITEM_BREAK ) in ImplCountLineBreaks()
5390 it++; in ImplCountLineBreaks()
5456 std::vector< ImplToolItem >::iterator it = mpData->m_aItems.begin(); in CalcMinimumWindowSizePixel() local
5457 while( it != mpData->m_aItems.end() ) in CalcMinimumWindowSizePixel()
5459 pToolBox->CopyItem( *this, it->mnId ); in CalcMinimumWindowSizePixel()
5460 if( (it->meType != TOOLBOXITEM_BUTTON) || in CalcMinimumWindowSizePixel()
5461 !it->mbVisible || ImplIsFixedControl( &(*it) ) ) in CalcMinimumWindowSizePixel()
5462 it++; in CalcMinimumWindowSizePixel()
5900 std::vector< ImplToolItem >::const_iterator it = mpData->m_aItems.begin(); in ImplGetItemLine() local
5902 while( it != mpData->m_aItems.end() ) in ImplGetItemLine()
5904 if ( it->mbBreak ) in ImplGetItemLine()
5906 if( &(*it) == pCurrentItem) in ImplGetItemLine()
5908 ++it; in ImplGetItemLine()
5921 std::vector< ImplToolItem >::iterator it = mpData->m_aItems.begin(); in ImplGetFirstValidItem() local
5922 while( it != mpData->m_aItems.end() ) in ImplGetFirstValidItem()
5925 if ( it->mbBreak ) in ImplGetFirstValidItem()
5930 while( it != mpData->m_aItems.end() && ((it->meType != TOOLBOXITEM_BUTTON) || in ImplGetFirstValidItem()
5931 /*!it->mbEnabled ||*/ !it->mbVisible || ImplIsFixedControl( &(*it) )) ) in ImplGetFirstValidItem()
5933 ++it; in ImplGetFirstValidItem()
5934 if( it == mpData->m_aItems.end() || it->mbBreak ) in ImplGetFirstValidItem()
5937 return &(*it); in ImplGetFirstValidItem()
5939 ++it; in ImplGetFirstValidItem()
5942 return (it == mpData->m_aItems.end()) ? NULL : &(*it); in ImplGetFirstValidItem()
5953 std::vector< ImplToolItem >::iterator it = mpData->m_aItems.begin(); in ImplGetLastValidItem() local
5954 while( it != mpData->m_aItems.end() ) in ImplGetLastValidItem()
5957 if ( it->mbBreak ) in ImplGetLastValidItem()
5962 while( it != mpData->m_aItems.end() && ((it->meType == TOOLBOXITEM_BUTTON) && in ImplGetLastValidItem()
5963 /*it->mbEnabled &&*/ it->mbVisible && !ImplIsFixedControl( &(*it) )) ) in ImplGetLastValidItem()
5965 pFound = &(*it); in ImplGetLastValidItem()
5966 ++it; in ImplGetLastValidItem()
5967 if( it == mpData->m_aItems.end() || it->mbBreak ) in ImplGetLastValidItem()
5972 ++it; in ImplGetLastValidItem()
6101 std::vector< ImplToolItem >::iterator it = mpData->m_aItems.end(); in ImplChangeHighlightUpDn() local
6103 while( it != mpData->m_aItems.begin() ) in ImplChangeHighlightUpDn()
6105 --it; in ImplChangeHighlightUpDn()
6106 if ( ImplIsValidItem( &(*it), sal_True ) ) in ImplChangeHighlightUpDn()
6108 pItem = &(*it); in ImplChangeHighlightUpDn()
6118 std::vector< ImplToolItem >::iterator it = mpData->m_aItems.begin(); in ImplChangeHighlightUpDn() local
6119 while( it != mpData->m_aItems.end() ) in ImplChangeHighlightUpDn()
6121 if ( ImplIsValidItem( &(*it), sal_True ) ) in ImplChangeHighlightUpDn()
6123 ++it; in ImplChangeHighlightUpDn()
6125 if( it != mpData->m_aItems.end() ) in ImplChangeHighlightUpDn()
6128 ImplChangeHighlight( &(*it) ); in ImplChangeHighlightUpDn()
6137 std::vector< ImplToolItem >::iterator it = mpData->m_aItems.begin(); in ImplChangeHighlightUpDn() local
6138 while( it != mpData->m_aItems.end() ) in ImplChangeHighlightUpDn()
6140 if ( ImplIsValidItem( &(*it), sal_False ) ) in ImplChangeHighlightUpDn()
6142 ++it; in ImplChangeHighlightUpDn()
6146 …if( (it != mpData->m_aItems.end() && &(*it) == ImplGetFirstClippedItem( this )) && IsMenuEnabled()… in ImplChangeHighlightUpDn()
6152 ImplChangeHighlight( (it != mpData->m_aItems.end()) ? &(*it) : NULL ); in ImplChangeHighlightUpDn()
6167 std::vector< ImplToolItem >::iterator it = mpData->m_aItems.end(); in ImplChangeHighlightUpDn() local
6169 while( it != mpData->m_aItems.begin() ) in ImplChangeHighlightUpDn()
6171 --it; in ImplChangeHighlightUpDn()
6172 if ( ImplIsValidItem( &(*it), sal_False ) ) in ImplChangeHighlightUpDn()
6174 pItem = &(*it); in ImplChangeHighlightUpDn()