Lines Matching refs:it

472 		::std::hash_map< OUString, SelectionManager*, OUStringHash >::iterator it;  in ~SelectionManager()
473 for( it = getInstances().begin(); it != getInstances().end(); ++it ) in ~SelectionManager()
474 if( it->second == this ) in ~SelectionManager()
476 getInstances().erase( it ); in ~SelectionManager()
537 ::std::hash_map< Atom, Selection* >::iterator it = in getAdaptor()
539 return it != m_aSelections.end() ? it->second->m_pAdaptor : NULL; in getAdaptor()
704 …::std::hash_map< OUString, SelectionManager*, OUStringHash >::iterator it = getInstances().find( a… in get()
705 if( it != getInstances().end() ) in get()
706 pInstance = it->second; in get()
718 ::std::hash_map< Atom, OUString >::const_iterator it; in getString()
719 if( ( it = m_aAtomToString.find( aAtom ) ) == m_aAtomToString.end() ) in getString()
739 ::std::hash_map< OUString, Atom, OUStringHash >::const_iterator it; in getAtom()
740 if( ( it = m_aStringToAtom.find( rString ) ) == m_aStringToAtom.end() ) in getAtom()
898 ::std::hash_map< Atom, Selection* >::iterator it; in getPasteData()
913 it = m_aSelections.find( selection ); in getPasteData()
914 if( it == m_aSelections.end() ) in getPasteData()
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()
1039 ::std::hash_map< Atom, Selection* >::iterator it; in getPasteData()
1043 it = m_aSelections.find( selection ); in getPasteData()
1044 if( it == m_aSelections.end() ) 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()
1248 ::std::hash_map< Atom, Selection* >::iterator it; in getPasteDataTypes()
1252 it = m_aSelections.find( selection ); in getPasteDataTypes()
1253 if( it != m_aSelections.end() && in getPasteDataTypes()
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()
1414 it = m_aSelections.find( selection ); in getPasteDataTypes()
1415 if( it != m_aSelections.end() ) 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()
1454 std::hash_map< Atom, Selection* >::const_iterator it = m_aSelections.find( selection ); in getPixmapHolder() local
1455 if( it == m_aSelections.end() ) in getPixmapHolder()
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()
1673 std::list< Atom >::const_iterator it; in handleSelectionRequest() local
1674 for( i = 0, it = aConversions.begin(); i < nTypes; i++, ++it ) in handleSelectionRequest()
1675 pTypes[i] = *it; in handleSelectionRequest()
1850 ::std::hash_map< Atom, Selection* >::iterator it = in handleReceivePropertyNotify()
1852 if( it != m_aSelections.end() && in handleReceivePropertyNotify()
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()
1975 std::hash_map< XLIB_Window, std::hash_map< Atom, IncrementalTransfer > >::iterator it; in handleSendPropertyNotify() local
1976 it = m_aIncrementals.find( rNotify.window ); in handleSendPropertyNotify()
1977 if( it != m_aIncrementals.end() ) in handleSendPropertyNotify()
1984 for( inc_it = it->second.begin(); inc_it != it->second.end(); ++inc_it ) 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()
2045 it->second.erase( inc_it ); in handleSendPropertyNotify()
2050 if( it->second.begin() == it->second.end() ) in handleSendPropertyNotify()
2051 m_aIncrementals.erase( it ); in handleSendPropertyNotify()
2079 ::std::hash_map< Atom, Selection* >::iterator it = in handleSelectionNotify()
2083 it != m_aSelections.end() && in handleSelectionNotify()
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()
2144 else if( it != m_aSelections.end() ) in handleSelectionNotify()
2145 fprintf( stderr, "Warning: selection in state %d\n", it->second->m_eState ); in handleSelectionNotify()
2162 ::std::hash_map< XLIB_Window, DropTargetEntry >::iterator it = in handleDropEvent()
2172 if( it == m_aDropTargets.end() ) in handleDropEvent()
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()
2195 if( it != m_aDropTargets.end() && in handleDropEvent()
2196 it->second.m_pTarget->m_bActive && in handleDropEvent()
2223 it->second.m_aRootWindow, in handleDropEvent()
2224 it->first, 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()
2538 ::std::hash_map< XLIB_Window, DropTargetEntry >::const_iterator it = in sendDropPosition()
2540 if( it != m_aDropTargets.end() ) in sendDropPosition()
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()
2601 ::std::hash_map< XLIB_Window, DropTargetEntry >::const_iterator it = in handleDragEvent()
2732 if( it != m_aDropTargets.end() ) in handleDragEvent()
2735 dte.Source = static_cast< OWeakObject* >( it->second.m_pTarget ); in handleDragEvent()
2737 it->second.m_pTarget->dragExit( dte ); in handleDragEvent()
2798 if( it != m_aDropTargets.end() ) 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()
3103 ::std::hash_map< XLIB_Window, DropTargetEntry >::const_iterator it; in updateDragWindow()
3112 it = m_aDropTargets.find( m_aDropWindow ); in updateDragWindow()
3113 if( it != m_aDropTargets.end() ) in updateDragWindow()
3117 dte.Source = static_cast< OWeakObject* >( it->second.m_pTarget ); in updateDragWindow()
3119 it->second.m_pTarget->dragExit( dte ); in updateDragWindow()
3147 it = m_aDropTargets.find( m_aDropWindow ); in updateDragWindow()
3148 if( it != m_aDropTargets.end() && ! it->second.m_pTarget->m_bActive ) in updateDragWindow()
3160 it = m_aDropTargets.find( m_aDropWindow ); in updateDragWindow()
3161 if( it != m_aDropTargets.end() ) in updateDragWindow()
3165 dtde.Source = static_cast< OWeakObject* >( it->second.m_pTarget ); in updateDragWindow()
3173 it->second.m_pTarget->dragEnter( dtde ); in updateDragWindow()
3258 ::std::hash_map< XLIB_Window, DropTargetEntry >::const_iterator it; in startDrag()
3259 it = m_aDropTargets.begin(); in startDrag()
3260 while( it != m_aDropTargets.end() ) in startDrag()
3262 if( XQueryPointer( m_pDisplay, it->second.m_aRootWindow, in startDrag()
3268 aParent = it->second.m_aRootWindow; in startDrag()
3271 ++it; in startDrag()
3276 if( it == m_aDropTargets.end() || (mask & (Button1Mask|Button2Mask|Button3Mask)) == 0 ) 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()
3663 …std::hash_map< Atom, Selection* >::iterator it( m_aSelections.find( rEvent.xselectionclear.selecti… in handleXEvent() local
3664 if( it != m_aSelections.end() ) in handleXEvent()
3665 it->second->m_bOwner = false; in handleXEvent()
3791 …::hash_map< Atom, Selection* >::iterator it = This->m_aSelections.begin(); it != This->m_aSelectio… in run() local
3793 if( it->first != This->m_nXdndSelection && ! it->second->m_bOwner ) in run()
3795 XLIB_Window aOwner = XGetSelectionOwner( This->m_pDisplay, it->first ); 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()
3943 ::std::hash_map< Atom, Selection* >::iterator it = in deregisterHandler()
3945 if( it != m_aSelections.end() ) in deregisterHandler()
3947 delete it->second->m_pPixmap; in deregisterHandler()
3948 delete it->second; in deregisterHandler()
3949 m_aSelections.erase( it ); in deregisterHandler()
3972 ::std::hash_map< XLIB_Window, DropTargetEntry >::const_iterator it = in registerDropTarget()
3974 if( it != m_aDropTargets.end() ) in registerDropTarget()
4019 std::hash_map< XLIB_Window, DropTargetEntry >::const_iterator it = in deregisterDropTarget() local
4021 if( it != m_aDropTargets.end() ) in deregisterDropTarget()
4024 dte.Source = static_cast< OWeakObject* >( it->second.m_pTarget ); in deregisterDropTarget()
4026 it->second.m_pTarget->dragExit( dte ); in deregisterDropTarget()