Lines Matching refs:mpData
463 Invalidate( mpData->m_aItems[nIndex].maRect ); in ImplUpdateItem()
466 maPaintRect.Union( mpData->m_aItems[nIndex].maRect ); in ImplUpdateItem()
647 …mpData->m_aItems.insert( (nPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nPos : mpData… in InsertItem()
648 mpData->ImplClearLayoutData(); in InsertItem()
654 …sal_uInt16 nNewPos = sal::static_int_cast<sal_uInt16>(( nPos == TOOLBOX_APPEND ) ? ( mpData->m_aIt… in InsertItem()
668 …mpData->m_aItems.insert( (nPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nPos : mpData… in InsertItem()
669 mpData->ImplClearLayoutData(); in InsertItem()
674 …sal_uInt16 nNewPos = sal::static_int_cast<sal_uInt16>(( nPos == TOOLBOX_APPEND ) ? ( mpData->m_aIt… in InsertItem()
689 …mpData->m_aItems.insert( (nPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nPos : mpData… in InsertItem()
690 mpData->ImplClearLayoutData(); in InsertItem()
695 …sal_uInt16 nNewPos = sal::static_int_cast<sal_uInt16>(( nPos == TOOLBOX_APPEND ) ? ( mpData->m_aIt… in InsertItem()
709 …mpData->m_aItems.insert( (nPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nPos : mpData… in InsertItem()
710 mpData->ImplClearLayoutData(); in InsertItem()
715 …sal_uInt16 nNewPos = sal::static_int_cast<sal_uInt16>(( nPos == TOOLBOX_APPEND ) ? ( mpData->m_aIt… in InsertItem()
734 …mpData->m_aItems.insert( (nPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nPos : mpData… in InsertWindow()
735 mpData->ImplClearLayoutData(); in InsertWindow()
743 …sal_uInt16 nNewPos = sal::static_int_cast<sal_uInt16>(( nPos == TOOLBOX_APPEND ) ? ( mpData->m_aIt… in InsertWindow()
755 …mpData->m_aItems.insert( (nPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nPos : mpData… in InsertSpace()
756 mpData->ImplClearLayoutData(); in InsertSpace()
761 …sal_uInt16 nNewPos = sal::static_int_cast<sal_uInt16>(( nPos == TOOLBOX_APPEND ) ? ( mpData->m_aIt… in InsertSpace()
775 …mpData->m_aItems.insert( (nPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nPos : mpData… in InsertSeparator()
776 mpData->ImplClearLayoutData(); in InsertSeparator()
781 …sal_uInt16 nNewPos = sal::static_int_cast<sal_uInt16>(( nPos == TOOLBOX_APPEND ) ? ( mpData->m_aIt… in InsertSeparator()
793 …mpData->m_aItems.insert( (nPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nPos : mpData… in InsertBreak()
794 mpData->ImplClearLayoutData(); in InsertBreak()
799 …sal_uInt16 nNewPos = sal::static_int_cast<sal_uInt16>(( nPos == TOOLBOX_APPEND ) ? ( mpData->m_aIt… in InsertBreak()
807 if( nPos < mpData->m_aItems.size() ) in RemoveItem()
810 if ( mpData->m_aItems[nPos].meType == TOOLBOXITEM_BUTTON ) in RemoveItem()
815 if ( mpData->m_aItems[nPos].mpWindow ) in RemoveItem()
816 mpData->m_aItems[nPos].mpWindow->Hide(); in RemoveItem()
819 maPaintRect.Union( mpData->m_aItems[nPos].maRect ); in RemoveItem()
822 if ( mpData->m_aItems[nPos].mnId == mnCurItemId ) in RemoveItem()
824 if ( mpData->m_aItems[nPos].mnId == mnHighItemId ) in RemoveItem()
829 mpData->m_aItems.erase( mpData->m_aItems.begin()+nPos ); in RemoveItem()
830 mpData->ImplClearLayoutData(); in RemoveItem()
853 ImplToolItem aItem = mpData->m_aItems[nPos]; in MoveItem()
854 mpData->m_aItems.erase( mpData->m_aItems.begin()+nPos ); in MoveItem()
855 …mpData->m_aItems.insert( (nNewPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nNewPos : … in MoveItem()
856 mpData->ImplClearLayoutData(); in MoveItem()
866 …sal_uInt16 nNewPos2 = sal::static_int_cast<sal_uInt16>(( nNewPos == TOOLBOX_APPEND ) ? ( mpData->m… in MoveItem()
886 ImplToolItem aNewItem = rToolBox.mpData->m_aItems[nPos]; in CopyItem()
891 …mpData->m_aItems.insert( (nNewPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nNewPos : … in CopyItem()
892 mpData->ImplClearLayoutData(); in CopyItem()
897 …sal_uInt16 nNewPos2 = sal::static_int_cast<sal_uInt16>(( nNewPos == TOOLBOX_APPEND ) ? ( mpData->m… in CopyItem()
906 mpData->ImplClearLayoutData(); in CopyItems()
907 mpData->m_aItems = rToolBox.mpData->m_aItems; in CopyItems()
912 for( std::vector< ImplToolItem >::iterator it = mpData->m_aItems.begin(); in CopyItems()
913 it != mpData->m_aItems.end(); ++it ) in CopyItems()
929 mpData->m_aItems.clear(); in Clear()
930 mpData->ImplClearLayoutData(); in Clear()
960 if( mpData->meButtonSize != eSize ) in SetToolboxButtonSize()
962 mpData->meButtonSize = eSize; in SetToolboxButtonSize()
970 return mpData->meButtonSize; in GetToolboxButtonSize()
1045 mpData->mbPageScroll = b; in SetPageScroll()
1050 return mpData->mbPageScroll; in GetPageScroll()
1067 return (sal_uInt16)mpData->m_aItems.size(); in GetItemCount()
1074 return (nPos < mpData->m_aItems.size()) ? mpData->m_aItems[nPos].meType : TOOLBOXITEM_DONTKNOW; in GetItemType()
1081 int nCount = mpData->m_aItems.size(); in GetItemPos()
1083 if( mpData->m_aItems[nPos].mnId == nItemId ) in GetItemPos()
1096 std::vector< ImplToolItem >::const_iterator it = mpData->m_aItems.begin(); in GetItemPos()
1097 while( it != mpData->m_aItems.end() ) in GetItemPos()
1117 return (nPos < mpData->m_aItems.size()) ? mpData->m_aItems[nPos].mnId : 0; in GetItemId()
1125 std::vector< ImplToolItem >::const_iterator it = mpData->m_aItems.begin(); in GetItemId()
1126 while( it != mpData->m_aItems.end() ) in GetItemId()
1223 if ( nPos < mpData->m_aItems.size() ) in GetItemPosRect()
1224 return mpData->m_aItems[nPos].maRect; in GetItemPosRect()
1246 if ( nPos < mpData->m_aItems.size() ) in GetItemPosDropDownRect()
1247 return mpData->m_aItems[nPos].GetDropDownRect( mbHorz ); in GetItemPosDropDownRect()
1256 return mpData->maMenubuttonItem.maRect; in GetMenubuttonRect()
1278 if ( nPos < mpData->m_aItems.size() ) in SetItemBits()
1280 ToolBoxItemBits nOldBits = mpData->m_aItems[nPos].mnBits; in SetItemBits()
1281 mpData->m_aItems[nPos].mnBits = nBits; in SetItemBits()
1309 if ( nPos < mpData->m_aItems.size() ) in SetItemData()
1311 mpData->m_aItems[nPos].mpUserData = pNewData; in SetItemData()
1336 ImplToolItem* pItem = &mpData->m_aItems[nPos]; in SetItemImage()
1358 sal_uInt16 nCount = (sal_uInt16)mpData->m_aItems.size(); in SetImageList()
1362 if ( mpData->m_aItems[i].mnId ) in SetImageList()
1363 aImage = maImageList.GetImage( mpData->m_aItems[i].mnId ); in SetImageList()
1365 SetItemImage( mpData->m_aItems[i].mnId, aImage ); in SetImageList()
1387 ImplToolItem* pItem = &mpData->m_aItems[nPos]; in SetItemImageAngle()
1430 ImplToolItem* pItem = &mpData->m_aItems[nPos]; in SetItemImageMirrorMode()
1519 ImplToolItem* pItem = &mpData->m_aItems[nPos]; in SetItemText()
1526 mpData->ImplClearLayoutData(); in SetItemText()
1563 ImplToolItem* pItem = &mpData->m_aItems[nPos]; in SetItemWindow()
1691 ImplToolItem* pItem = &mpData->m_aItems[nPos]; in SetItemState()
1707 pGroupItem = &mpData->m_aItems[nGroupPos-1]; in SetItemState()
1721 pGroupItem = &mpData->m_aItems[nGroupPos]; in SetItemState()
1767 ImplToolItem* pItem = &mpData->m_aItems[nPos]; in EnableItem()
1808 mpData->ImplClearLayoutData(); in ShowItem()
1812 ImplToolItem* pItem = &mpData->m_aItems[nPos]; in ShowItem()
1987 for( std::vector< ImplToolItem >::const_iterator it = mpData->m_aItems.begin(); in ImplUpdateInputEnable()
1988 it != mpData->m_aItems.end(); ++it ) in ImplUpdateInputEnable()
1993 mpData->mbKeyInputDisabled = sal_False; in ImplUpdateInputEnable()
1997 mpData->mbKeyInputDisabled = sal_True; in ImplUpdateInputEnable()
2004 mpData->m_pLayoutData = new ToolBoxLayoutData(); in ImplFillLayoutData()
2006 sal_uInt16 nCount = (sal_uInt16)mpData->m_aItems.size(); in ImplFillLayoutData()
2009 ImplToolItem* pItem = &mpData->m_aItems[i]; in ImplFillLayoutData()
2021 if( ! mpData->m_pLayoutData ) in GetDisplayText()
2023 return mpData->m_pLayoutData ? mpData->m_pLayoutData->m_aDisplayText : String(); in GetDisplayText()
2031 if( ! mpData->m_pLayoutData ) in GetCharacterBounds()
2033 if( mpData->m_pLayoutData ) in GetCharacterBounds()
2035 for( sal_uLong i = 0; i < mpData->m_pLayoutData->m_aLineItemIds.size(); i++ ) in GetCharacterBounds()
2037 if( mpData->m_pLayoutData->m_aLineItemIds[i] == nItemID ) in GetCharacterBounds()
2039 nItemIndex = mpData->m_pLayoutData->m_aLineIndices[i]; in GetCharacterBounds()
2044 …return (mpData->m_pLayoutData && nItemIndex != -1) ? mpData->m_pLayoutData->GetCharacterBounds( nI… in GetCharacterBounds()
2053 if( ! mpData->m_pLayoutData ) in GetIndexForPoint()
2055 if( mpData->m_pLayoutData ) in GetIndexForPoint()
2057 nIndex = mpData->m_pLayoutData->GetIndexForPoint( rPoint ); in GetIndexForPoint()
2058 for( sal_uLong i = 0; i < mpData->m_pLayoutData->m_aLineIndices.size(); i++ ) in GetIndexForPoint()
2060 if( mpData->m_pLayoutData->m_aLineIndices[i] <= nIndex && in GetIndexForPoint()
2061 …(i == mpData->m_pLayoutData->m_aLineIndices.size()-1 || mpData->m_pLayoutData->m_aLineIndices[i+1]… in GetIndexForPoint()
2063 rItemID = mpData->m_pLayoutData->m_aLineItemIds[i]; in GetIndexForPoint()
2075 if( ! mpData->m_pLayoutData ) in GetTextCount()
2077 return mpData->m_pLayoutData ? mpData->m_pLayoutData->GetLineCount() : 0; in GetTextCount()
2084 if( ! mpData->m_pLayoutData ) in GetTextStartEnd()
2086 return mpData->m_pLayoutData ? mpData->m_pLayoutData->GetLineStartEnd( nText ) : Pair( -1, -1 ); in GetTextStartEnd()
2094 if( ! mpData->m_pLayoutData ) in GetDisplayItemId()
2096 …if( mpData->m_pLayoutData && nText >= 0 && (sal_uLong)nText < mpData->m_pLayoutData->m_aLineItemId… in GetDisplayItemId()
2097 nItemId = mpData->m_pLayoutData->m_aLineItemIds[nText]; in GetDisplayItemId()
2106 mpData->maDropdownClickHdl = rLink; in SetDropdownClickHdl()
2111 return mpData->maDropdownClickHdl; in GetDropdownClickHdl()
2118 if( aType != mpData->maMenuType ) in SetMenuType()
2120 mpData->maMenuType = aType; in SetMenuType()
2135 if( !mpData->maMenubuttonItem.maRect.IsEmpty() ) in SetMenuType()
2136 Invalidate(mpData->maMenubuttonItem.maRect); in SetMenuType()
2143 return mpData->maMenuType; in GetMenuType()
2148 return mpData->maMenuType != TOOLBOX_MENUTYPE_NONE; in IsMenuEnabled()
2153 return mpData->mpMenu; in GetMenu()
2158 mpData->maMenuButtonHdl = rLink; in SetMenuButtonHdl()
2163 return mpData->maMenuButtonHdl; in GetMenuButtonHdl()
2172 std::vector< ImplToolItem >::const_iterator it = mpData->m_aItems.begin(); in ImplHasClippedItems()
2173 while ( it != mpData->m_aItems.end() ) in ImplHasClippedItems()
2204 if ( !mpData->m_aItems.empty() ) in ImplUpdateCustomMenu()
2206 for ( std::vector< ImplToolItem >::reverse_iterator it(mpData->m_aItems.rbegin()); in ImplUpdateCustomMenu()
2207 it != mpData->m_aItems.rend(); ++it) in ImplUpdateCustomMenu()
2233 mpData->mnEventId = 0; in IMPL_LINK()
2244 mpData->maMenuButtonHdl.Call( this ); in ImplExecuteCustomMenu()
2260 Rectangle aMenuRect = mpData->maMenubuttonItem.maRect; in ImplExecuteCustomMenu()
2304 … Application::PostUserEvent( mpData->mnEventId, LINK( this, ToolBox, ImplCallExecuteCustomMenu ) ); in ExecuteCustomMenu()
2313 DBG_ASSERT( !(mpData->mbAssumeDocked && mpData->mbAssumeFloating), in ImplIsFloatingMode()
2316 if( mpData->mbAssumeDocked ) in ImplIsFloatingMode()
2318 else if( mpData->mbAssumeFloating ) in ImplIsFloatingMode()
2327 if( mpData->mbAssumePopupMode ) in ImplIsInPopupMode()
2343 if( mpData->mbIsLocked != bLock ) in Lock()
2345 mpData->mbIsLocked = bLock; in Lock()
2399 return mpData->mbWillUsePopupMode; in WillUsePopupMode()
2404 mpData->mbWillUsePopupMode = b; in WillUsePopupMode()
2409 if (mpData->mpImageListProvider != NULL) in ImplUpdateImageList()
2416 if (eType != mpData->meImageListType) in ImplUpdateImageList()
2418 vcl::IImageListProvider* pImageListProvider = mpData->mpImageListProvider; in ImplUpdateImageList()
2420 mpData->meImageListType = eType; in ImplUpdateImageList()
2429 mpData->mpImageListProvider = _pProvider; in SetImageListProvider()