Lines Matching refs:pEntry

80 …ImplGraphicItem( SvLBoxEntry* pEntry, sal_uInt16 nFlags, Image& aImage ) : SvLBoxBmp( pEntry, nFla…  in ImplGraphicItem()  argument
90 …ImplContextGraphicItem( SvLBoxEntry* pEntry,sal_uInt16 nFlags,Image& rI1,Image& rI2, sal_uInt16 nE… in ImplContextGraphicItem() argument
91 : SvLBoxContextBmp( pEntry, nFlags, rI1, rI2, nEntryFlagsBmp1 ) {} in ImplContextGraphicItem()
105 sal_uInt32 insert( SvLBoxEntry* pEntry,SvLBoxEntry* pParent,sal_uLong nPos=LIST_APPEND );
109 virtual sal_Bool EditingEntry( SvLBoxEntry* pEntry, Selection& );
110 virtual sal_Bool EditedEntry( SvLBoxEntry* pEntry, const XubString& rNewText );
187 void TreeControlPeer::addEntry( UnoTreeListEntry* pEntry ) in addEntry() argument
189 if( pEntry && pEntry->mxNode.is() ) in addEntry()
196 (*mpTreeNodeMap)[ pEntry->mxNode ] = pEntry; in addEntry()
202 void TreeControlPeer::removeEntry( UnoTreeListEntry* pEntry ) in removeEntry() argument
204 if( mpTreeNodeMap && pEntry && pEntry->mxNode.is() ) in removeEntry()
206 TreeNodeMap::iterator aIter( mpTreeNodeMap->find( pEntry->mxNode ) ); in removeEntry()
260 UnoTreeListEntry* pEntry = 0; in createEntry() local
264 pEntry = new UnoTreeListEntry( xNode, this ); in createEntry()
265 …ImplContextGraphicItem* pContextBmp= new ImplContextGraphicItem( pEntry,0, aImage, aImage, SVLISTE… in createEntry()
267 pEntry->AddItem( pContextBmp ); in createEntry()
269 UnoTreeListItem * pUnoItem = new UnoTreeListItem( pEntry ); in createEntry()
280 pEntry->AddItem( pUnoItem ); in createEntry()
282 mpTreeImpl->insert( pEntry, pParent, nPos ); in createEntry()
285 mpTreeImpl->SetExpandedEntryBmp( pEntry, maDefaultExpandedImage ); in createEntry()
288 mpTreeImpl->SetCollapsedEntryBmp( pEntry, maDefaultCollapsedImage ); in createEntry()
290 updateEntry( pEntry ); in createEntry()
292 return pEntry; in createEntry()
297 bool TreeControlPeer::updateEntry( UnoTreeListEntry* pEntry ) in updateEntry() argument
300 if( pEntry && pEntry->mxNode.is() && mpTreeImpl ) in updateEntry()
302 const OUString aValue( getEntryString( pEntry->mxNode->getDisplayValue() ) ); in updateEntry()
303 UnoTreeListItem* pUnoItem = dynamic_cast< UnoTreeListItem* >( pEntry->GetItem( 1 ) ); in updateEntry()
312 if( pUnoItem->GetGraphicURL() != pEntry->mxNode->getNodeGraphicURL() ) in updateEntry()
315 if( loadImage( pEntry->mxNode->getNodeGraphicURL(), aImage ) ) in updateEntry()
317 pUnoItem->SetGraphicURL( pEntry->mxNode->getNodeGraphicURL() ); in updateEntry()
325 …if( (pEntry->mxNode->hasChildrenOnDemand() == sal_True) != (pEntry->HasChildsOnDemand() == sal_Tru… in updateEntry()
327 pEntry->EnableChildsOnDemand( pEntry->mxNode->hasChildrenOnDemand() ? sal_True : sal_False ); in updateEntry()
331 …ImplContextGraphicItem* pContextGraphicItem = dynamic_cast< ImplContextGraphicItem* >( pEntry->Get… in updateEntry()
334 if( pContextGraphicItem->msExpandedGraphicURL != pEntry->mxNode->getExpandedGraphicURL() ) in updateEntry()
337 if( loadImage( pEntry->mxNode->getExpandedGraphicURL(), aImage ) ) in updateEntry()
339 pContextGraphicItem->msExpandedGraphicURL = pEntry->mxNode->getExpandedGraphicURL(); in updateEntry()
340 mpTreeImpl->SetExpandedEntryBmp( pEntry, aImage ); in updateEntry()
344 if( pContextGraphicItem->msCollapsedGraphicURL != pEntry->mxNode->getCollapsedGraphicURL() ) in updateEntry()
347 if( loadImage( pEntry->mxNode->getCollapsedGraphicURL(), aImage ) ) in updateEntry()
349 pContextGraphicItem->msCollapsedGraphicURL = pEntry->mxNode->getCollapsedGraphicURL(); in updateEntry()
350 mpTreeImpl->SetCollapsedEntryBmp( pEntry, aImage ); in updateEntry()
357 mpTreeImpl->GetModel()->InvalidateEntry( pEntry ); in updateEntry()
465 UnoTreeListEntry* pEntry = createEntry( xNode, pParentEntry, LIST_APPEND ); in addNode() local
468 addNode( rTree, xNode->getChildAt( nChild ), pEntry ); in addNode()
535 UnoTreeListEntry* pEntry = getEntry( *pNodes++ ); in ChangeNodesSelection() local
536 rTree.Select( pEntry, bSelect ? sal_True : sal_False ); in ChangeNodesSelection()
565 UnoTreeListEntry* pEntry = dynamic_cast< UnoTreeListEntry* >( rTree.FirstSelected() ); in getSelection() local
566 if( pEntry && pEntry->mxNode.is() ) in getSelection()
567 aRet <<= pEntry->mxNode; in getSelection()
573 UnoTreeListEntry* pEntry = dynamic_cast< UnoTreeListEntry* >( rTree.FirstSelected() ); in getSelection() local
574 while( pEntry && nSelectionCount ) in getSelection()
576 *pNodes++ = pEntry->mxNode; in getSelection()
577 pEntry = dynamic_cast< UnoTreeListEntry* >( rTree.NextSelected( pEntry ) ); in getSelection()
581 OSL_ASSERT( (pEntry == 0) && (nSelectionCount == 0) ); in getSelection()
684 UnoTreeListEntry* pEntry = dynamic_cast< UnoTreeListEntry* >( rTree.FirstSelected() ); in createSelectionEnumeration() local
685 while( pEntry && nSelectionCount ) in createSelectionEnumeration()
687 aSelection.push_back( Any( pEntry->mxNode ) ); in createSelectionEnumeration()
688 pEntry = dynamic_cast< UnoTreeListEntry* >( rTree.NextSelected( pEntry ) ); in createSelectionEnumeration()
692 OSL_ASSERT( (pEntry == 0) && (nSelectionCount == 0) ); in createSelectionEnumeration()
708 UnoTreeListEntry* pEntry = dynamic_cast< UnoTreeListEntry* >( rTree.FirstSelected() ); in createReverseSelectionEnumeration() local
709 while( pEntry && nSelectionCount ) in createReverseSelectionEnumeration()
711 aSelection.push_front( Any( pEntry->mxNode ) ); in createReverseSelectionEnumeration()
712 pEntry = dynamic_cast< UnoTreeListEntry* >( rTree.NextSelected( pEntry ) ); in createReverseSelectionEnumeration()
716 OSL_ASSERT( (pEntry == 0) && (nSelectionCount == 0) ); in createReverseSelectionEnumeration()
745 SvLBoxEntry* pEntry = rTree.First(); in setDefaultExpandedGraphicURL() local
746 while( pEntry ) in setDefaultExpandedGraphicURL()
748 …ImplContextGraphicItem* pContextGraphicItem = dynamic_cast< ImplContextGraphicItem* >( pEntry->Get… in setDefaultExpandedGraphicURL()
752 rTree.SetExpandedEntryBmp( pEntry, maDefaultExpandedImage ); in setDefaultExpandedGraphicURL()
754 pEntry = rTree.Next( pEntry ); in setDefaultExpandedGraphicURL()
783 SvLBoxEntry* pEntry = rTree.First(); in setDefaultCollapsedGraphicURL() local
784 while( pEntry ) in setDefaultCollapsedGraphicURL()
786 …ImplContextGraphicItem* pContextGraphicItem = dynamic_cast< ImplContextGraphicItem* >( pEntry->Get… in setDefaultCollapsedGraphicURL()
790 rTree.SetCollapsedEntryBmp( pEntry, maDefaultCollapsedImage ); in setDefaultCollapsedGraphicURL()
792 pEntry = rTree.Next( pEntry ); in setDefaultCollapsedGraphicURL()
806 UnoTreeListEntry* pEntry = getEntry( xNode ); in isNodeExpanded() local
807 return ( pEntry && rTree.IsExpanded( pEntry ) ) ? sal_True : sal_False; in isNodeExpanded()
825 UnoTreeListEntry* pEntry = getEntry( xNode ); in makeNodeVisible() local
826 if( pEntry ) in makeNodeVisible()
827 rTree.MakeVisible( pEntry ); in makeNodeVisible()
837 UnoTreeListEntry* pEntry = getEntry( xNode ); in isNodeVisible() local
838 return ( pEntry && rTree.IsEntryVisible( pEntry ) ) ? sal_True : sal_False; in isNodeVisible()
848 UnoTreeListEntry* pEntry = getEntry( xNode ); in expandNode() local
849 if( pEntry ) in expandNode()
850 rTree.Expand( pEntry ); in expandNode()
860 UnoTreeListEntry* pEntry = getEntry( xNode ); in collapseNode() local
861 if( pEntry ) in collapseNode()
862 rTree.Collapse( pEntry ); in collapseNode()
890 UnoTreeListEntry* pEntry = dynamic_cast< UnoTreeListEntry* >( rTree.GetEntry( aPos, sal_True ) ); in getNodeForLocation() local
891 if( pEntry ) in getNodeForLocation()
892 xNode = pEntry->mxNode; in getNodeForLocation()
908 UnoTreeListEntry* pEntry = dynamic_cast< UnoTreeListEntry* >( rTree.GetEntry( aPos, sal_True ) ); in getClosestNodeForLocation() local
909 if( pEntry ) in getClosestNodeForLocation()
910 xNode = pEntry->mxNode; in getClosestNodeForLocation()
922 UnoTreeListEntry* pEntry = getEntry( i_Node, true ); in getNodeRect() local
924 ::Rectangle aEntryRect( rTree.GetFocusRect( pEntry, rTree.GetEntryPosition( pEntry ).Y() ) ); in getNodeRect()
973 UnoTreeListEntry* pEntry = getEntry( xNode ); in startEditingAtNode() local
974 rTree.EditEntry( pEntry ); in startEditingAtNode()
987 bool TreeControlPeer::onEditingEntry( UnoTreeListEntry* pEntry ) in onEditingEntry() argument
989 if( mpTreeImpl && pEntry && pEntry->mxNode.is() && (maTreeEditListeners.getLength() > 0) ) in onEditingEntry()
993 maTreeEditListeners.nodeEditing( pEntry->mxNode ); in onEditingEntry()
1006 bool TreeControlPeer::onEditedEntry( UnoTreeListEntry* pEntry, const XubString& rNewText ) in onEditedEntry() argument
1008 if( mpTreeImpl && pEntry && pEntry->mxNode.is() ) try in onEditedEntry()
1014 maTreeEditListeners.nodeEdited( pEntry->mxNode, aNewText ); in onEditedEntry()
1019 Reference< XMutableTreeNode > xMutableNode( pEntry->mxNode, UNO_QUERY ); in onEditedEntry()
1557 UnoTreeListEntry* pEntry = dynamic_cast< UnoTreeListEntry* >( GetHdlEntry() ); in IMPL_LINK() local
1559 if( pEntry && mxPeer.is() ) in IMPL_LINK()
1561 return mxPeer->onExpanding( pEntry->mxNode, !IsExpanded( pEntry ) ) ? 1 : 0; in IMPL_LINK()
1570 UnoTreeListEntry* pEntry = dynamic_cast< UnoTreeListEntry* >( GetHdlEntry() ); in IMPL_LINK() local
1571 if( pEntry && mxPeer.is() ) in IMPL_LINK()
1573 mxPeer->onExpanded( pEntry->mxNode, IsExpanded( pEntry ) ); in IMPL_LINK()
1580 sal_uInt32 UnoTreeListBoxImpl::insert( SvLBoxEntry* pEntry,SvLBoxEntry* pParent,sal_uLong nPos ) in insert() argument
1583 return SvTreeListBox::Insert( pEntry, pParent, nPos ); in insert()
1585 return SvTreeListBox::Insert( pEntry, nPos ); in insert()
1592 UnoTreeListEntry* pEntry = dynamic_cast< UnoTreeListEntry* >( pParent ); in RequestingChilds() local
1593 if( pEntry && pEntry->mxNode.is() && mxPeer.is() ) in RequestingChilds()
1594 mxPeer->onRequestChildNodes( pEntry->mxNode ); in RequestingChilds()
1599 sal_Bool UnoTreeListBoxImpl::EditingEntry( SvLBoxEntry* pEntry, Selection& ) in EditingEntry() argument
1601 return mxPeer.is() ? mxPeer->onEditingEntry( dynamic_cast< UnoTreeListEntry* >( pEntry ) ) : false; in EditingEntry()
1606 sal_Bool UnoTreeListBoxImpl::EditedEntry( SvLBoxEntry* pEntry, const XubString& rNewText ) in EditedEntry() argument
1608 …return mxPeer.is() ? mxPeer->onEditedEntry( dynamic_cast< UnoTreeListEntry* >( pEntry ), rNewText … in EditedEntry()
1615 UnoTreeListItem::UnoTreeListItem( SvLBoxEntry* pEntry ) in UnoTreeListItem() argument
1616 : SvLBoxItem( pEntry, 0 ) in UnoTreeListItem()
1724 void UnoTreeListItem::InitViewData( SvLBox* pView,SvLBoxEntry* pEntry, SvViewDataItem* pViewData) in InitViewData() argument
1727 pViewData = pView->GetViewDataItem( pEntry, this ); in InitViewData()