Lines Matching refs:second
474 if( it->second == this ) in ~SelectionManager()
539 return it != m_aSelections.end() ? it->second->m_pAdaptor : NULL; in getAdaptor()
706 pInstance = it->second; in get()
936 it->second->m_eState = Selection::WaitingForResponse; in getPasteData()
937 it->second->m_aRequestedType = type; in getPasteData()
938 it->second->m_aData = Sequence< sal_Int8 >(); in getPasteData()
939 it->second->m_aDataArrived.reset(); in getPasteData()
1013 …} while( ! it->second->m_aDataArrived.check() && (tv_current.tv_sec - tv_last.tv_sec) < getSelecti… in getPasteData()
1019 if( it->second->m_aDataArrived.check() && in getPasteData()
1020 it->second->m_aData.getLength() ) in getPasteData()
1022 rData = it->second->m_aData; in getPasteData()
1048 if( it->second->m_aTypes.getLength() == 0 ) in getPasteData()
1052 if( it->second->m_aTypes.getLength() == 0 ) in getPasteData()
1056 const Sequence< DataFlavor >& rTypes( it->second->m_aTypes ); in getPasteData()
1057 const std::vector< Atom >& rNativeTypes( it->second->m_aNativeTypes ); in getPasteData()
1067 if( it->second->m_aTypes.getLength() && ! it->second->m_bHaveUTF16 ) in getPasteData()
1070 if( it->second->m_aUTF8Type != None && in getPasteData()
1072 it->second->m_aUTF8Type, in getPasteData()
1080 else if( it->second->m_bHaveCompound && in getPasteData()
1254 it->second->m_aTypes.getLength() && in getPasteDataTypes()
1255 abs( it->second->m_nLastTimestamp - time( NULL ) ) < 2 in getPasteDataTypes()
1258 rTypes = it->second->m_aTypes; in getPasteDataTypes()
1419 it->second->m_aTypes = rTypes; in getPasteDataTypes()
1420 it->second->m_aNativeTypes = aNativeTypes; in getPasteDataTypes()
1421 it->second->m_nLastTimestamp = time( NULL ); in getPasteDataTypes()
1422 it->second->m_bHaveUTF16 = bHaveUTF16; in getPasteDataTypes()
1423 it->second->m_aUTF8Type = aUTF8Type; in getPasteDataTypes()
1424 it->second->m_bHaveCompound = bHaveCompound; in getPasteDataTypes()
1428 it->second->m_aTypes = Sequence< DataFlavor >(); in getPasteDataTypes()
1429 it->second->m_aNativeTypes = std::vector< Atom >(); in getPasteDataTypes()
1430 it->second->m_nLastTimestamp = 0; in getPasteDataTypes()
1431 it->second->m_bHaveUTF16 = false; in getPasteDataTypes()
1432 it->second->m_aUTF8Type = None; in getPasteDataTypes()
1433 it->second->m_bHaveCompound = false; in getPasteDataTypes()
1457 if( ! it->second->m_pPixmap ) in getPixmapHolder()
1458 it->second->m_pPixmap = new PixmapHolder( m_pDisplay ); in getPixmapHolder()
1459 return it->second->m_pPixmap; in getPixmapHolder()
1579 …std::hash_map< Atom, IncrementalTransfer >::const_iterator inc_it = win_it->second.find( property … in sendData()
1580 if( inc_it != win_it->second.end() ) in sendData()
1582 const IncrementalTransfer& rInc = inc_it->second; in sendData()
1854 ( it->second->m_eState == Selection::WaitingForResponse || in handleReceivePropertyNotify()
1855 it->second->m_eState == Selection::WaitingForData || in handleReceivePropertyNotify()
1856 it->second->m_eState == Selection::IncrementalTransfer in handleReceivePropertyNotify()
1861 if( it->second->m_aRequestedType == m_nMULTIPLEAtom && in handleReceivePropertyNotify()
1862 ( it->second->m_eState == Selection::WaitingForResponse || in handleReceivePropertyNotify()
1863 it->second->m_eState == Selection::WaitingForData ) ) in handleReceivePropertyNotify()
1899 it->second->m_eState = Selection::IncrementalTransfer; in handleReceivePropertyNotify()
1921 if( it->second->m_eState == Selection::WaitingForData || in handleReceivePropertyNotify()
1922 it->second->m_eState == Selection::WaitingForResponse ) in handleReceivePropertyNotify()
1925 it->second->m_aData = Sequence< sal_Int8 >( (sal_Int8*)pData, nItems*nUnitSize ); in handleReceivePropertyNotify()
1926 it->second->m_eState = Selection::Inactive; in handleReceivePropertyNotify()
1927 it->second->m_aDataArrived.set(); in handleReceivePropertyNotify()
1929 else if( it->second->m_eState == Selection::IncrementalTransfer ) in handleReceivePropertyNotify()
1934 … Sequence< sal_Int8 > aData( it->second->m_aData.getLength() + nItems*nUnitSize ); in handleReceivePropertyNotify()
1935 … memcpy( aData.getArray(), it->second->m_aData.getArray(), it->second->m_aData.getLength() ); in handleReceivePropertyNotify()
1936 … memcpy( aData.getArray() + it->second->m_aData.getLength(), pData, nItems*nUnitSize ); in handleReceivePropertyNotify()
1937 it->second->m_aData = aData; in handleReceivePropertyNotify()
1941 it->second->m_eState = Selection::Inactive; in handleReceivePropertyNotify()
1942 it->second->m_aDataArrived.set(); in handleReceivePropertyNotify()
1948 else if( it->second->m_eState == Selection::IncrementalTransfer ) in handleReceivePropertyNotify()
1950 it->second->m_eState = Selection::Inactive; in handleReceivePropertyNotify()
1951 it->second->m_aDataArrived.set(); in handleReceivePropertyNotify()
1984 for( inc_it = it->second.begin(); inc_it != it->second.end(); ++inc_it ) in handleSendPropertyNotify()
1986 … if( (nCurrentTime - inc_it->second.m_nTransferStartTime) > (getSelectionTimeout()+2) ) in handleSendPropertyNotify()
1990 const IncrementalTransfer& rInc = inc_it->second; in handleSendPropertyNotify()
2004 it->second.erase( aTimeouts.front() ); in handleSendPropertyNotify()
2008 inc_it = it->second.find( rNotify.atom ); in handleSendPropertyNotify()
2009 if( inc_it != it->second.end() ) in handleSendPropertyNotify()
2011 IncrementalTransfer& rInc = inc_it->second; in handleSendPropertyNotify()
2045 it->second.erase( inc_it ); in handleSendPropertyNotify()
2050 if( it->second.begin() == it->second.end() ) in handleSendPropertyNotify()
2085 (it->second->m_eState == Selection::WaitingForResponse) || in handleSelectionNotify()
2086 (it->second->m_eState == Selection::WaitingForData) in handleSelectionNotify()
2091 if( it->second->m_aRequestedType == m_nMULTIPLEAtom ) in handleSelectionNotify()
2122 it->second->m_eState = Selection::Inactive; in handleSelectionNotify()
2124 it->second->m_aData = Sequence< sal_Int8 >((sal_Int8*)pData, nItems * nUnitSize); in handleSelectionNotify()
2125 it->second->m_aDataArrived.set(); in handleSelectionNotify()
2135 it->second->m_eState = Selection::Inactive; in handleSelectionNotify()
2136 it->second->m_aData = Sequence< sal_Int8 >(); in handleSelectionNotify()
2137 it->second->m_aDataArrived.set(); in handleSelectionNotify()
2141 it->second->m_eState = Selection::WaitingForData; in handleSelectionNotify()
2145 fprintf( stderr, "Warning: selection in state %d\n", it->second->m_eState ); in handleSelectionNotify()
2174 else if( ! it->second.m_pTarget->m_bActive ) in handleDropEvent()
2183 if( it != m_aDropTargets.end() && it->second.m_pTarget->m_bActive && in handleDropEvent()
2196 it->second.m_pTarget->m_bActive && in handleDropEvent()
2223 it->second.m_aRootWindow, in handleDropEvent()
2234 aEvent.Source = static_cast< XDropTarget* >(it->second.m_pTarget); in handleDropEvent()
2259 it->second->dragEnter( aEvent ); in handleDropEvent()
2264 it->second->dragOver( aEvent ); in handleDropEvent()
2277 aEvent.Source = static_cast< XDropTarget* >(it->second.m_pTarget); in handleDropEvent()
2283 it->second->dragExit( aEvent ); in handleDropEvent()
2299 aEvent.Source = static_cast< XDropTarget* >(it->second.m_pTarget); in handleDropEvent()
2311 it->second->drop( aEvent ); in handleDropEvent()
2319 aEvent.Source = static_cast< XDropTarget* >(it->second.m_pTarget); in handleDropEvent()
2321 it->second->dragExit( aEvent ); in handleDropEvent()
2542 if( it->second.m_pTarget->m_bActive ) in sendDropPosition()
2546 …XTranslateCoordinates( m_pDisplay, it->second.m_aRootWindow, m_aDropWindow, m_nLastDragX, m_nLastD… in sendDropPosition()
2548 dtde.Source = static_cast< OWeakObject* >(it->second.m_pTarget ); in sendDropPosition()
2555 it->second->dragOver( dtde ); in sendDropPosition()
2735 dte.Source = static_cast< OWeakObject* >( it->second.m_pTarget ); in handleDragEvent()
2737 it->second.m_pTarget->dragExit( dte ); in handleDragEvent()
2800 …if( it->second.m_pTarget->m_bActive && m_nUserDragAction != DNDConstants::ACTION_NONE && m_bLastDr… in handleDragEvent()
2807 dtde.Source = static_cast< OWeakObject* >(it->second.m_pTarget ); in handleDragEvent()
2818 it->second->drop( dtde ); in handleDragEvent()
3117 dte.Source = static_cast< OWeakObject* >( it->second.m_pTarget ); in updateDragWindow()
3119 it->second.m_pTarget->dragExit( dte ); in updateDragWindow()
3148 if( it != m_aDropTargets.end() && ! it->second.m_pTarget->m_bActive ) in updateDragWindow()
3165 dtde.Source = static_cast< OWeakObject* >( it->second.m_pTarget ); in updateDragWindow()
3173 it->second.m_pTarget->dragEnter( dtde ); in updateDragWindow()
3262 if( XQueryPointer( m_pDisplay, it->second.m_aRootWindow, in startDrag()
3268 aParent = it->second.m_aRootWindow; in startDrag()
3289 aParent = aRoot = it->second.m_aRootWindow; in startDrag()
3309 XGrabPointer( m_pDisplay, it->second.m_aRootWindow, True, in startDrag()
3332 XGrabPointer( m_pDisplay, it->second.m_aRootWindow, True, in startDrag()
3348 XGrabKeyboard( m_pDisplay, it->second.m_aRootWindow, True, in startDrag()
3665 it->second->m_bOwner = false; in handleXEvent()
3793 if( it->first != This->m_nXdndSelection && ! it->second->m_bOwner ) in run()
3796 if( aOwner != it->second->m_aLastOwner ) in run()
3798 it->second->m_aLastOwner = aOwner; in run()
3800 aKeep( it->second->m_pAdaptor, it->second->m_pAdaptor->getReference() ); in run()
3947 delete it->second->m_pPixmap; in deregisterHandler()
3948 delete it->second; in deregisterHandler()
4024 dte.Source = static_cast< OWeakObject* >( it->second.m_pTarget ); in deregisterDropTarget()
4026 it->second.m_pTarget->dragExit( dte ); in deregisterDropTarget()