Lines Matching refs:pEntry
123 static sal_Bool lcl_IsContent(SvLBoxEntry* pEntry) in lcl_IsContent() argument
125 return ((SwTypeNumber*)pEntry->GetUserData())->GetTypeId() == CTYPE_CNT; in lcl_IsContent()
129 static sal_Bool lcl_IsContentType(SvLBoxEntry* pEntry) in lcl_IsContentType() argument
131 return ((SwTypeNumber*)pEntry->GetUserData())->GetTypeId() == CTYPE_CTT; in lcl_IsContentType()
931 String SwContentTree::GetEntryAltText( SvLBoxEntry* pEntry ) const in GetEntryAltText()
933 if( pEntry == NULL) in GetEntryAltText()
936 SwContent* pCnt = (SwContent*)pEntry->GetUserData(); in GetEntryAltText()
1024 String SwContentTree::GetEntryLongDescription( SvLBoxEntry* pEntry ) const in GetEntryLongDescription()
1026 if( pEntry == NULL) in GetEntryLongDescription()
1029 SwContent* pCnt = (SwContent*)pEntry->GetUserData(); in GetEntryLongDescription()
1232 SvLBoxEntry* pEntry = 0; in CreateContextMenu() local
1235 && 0 != (pEntry = FirstSelected()) && lcl_IsContent(pEntry)) in CreateContextMenu()
1237 const SwContentType* pContType = ((SwContent*)pEntry->GetUserData())->GetParent(); in CreateContextMenu()
1240 sal_Bool bVisible = !((SwContent*)pEntry->GetUserData())->IsInvisible(); in CreateContextMenu()
1241 sal_Bool bProtected = ((SwContent*)pEntry->GetUserData())->IsProtect(); in CreateContextMenu()
1264 const SwTOXBase* pBase = ((SwTOXBaseContent*)pEntry->GetUserData())->GetTOXBase(); in CreateContextMenu()
1278 String sTblName = ((SwContent*)pEntry->GetUserData())->GetName(); in CreateContextMenu()
1316 else if( pEntry ) in CreateContextMenu()
1318 SwContentType* pType = (SwContentType*)pEntry->GetUserData(); in CreateContextMenu()
1348 long SwContentTree::GetTabPos( SvLBoxEntry* pEntry, SvLBoxTab* pTab) in GetTabPos() argument
1351 if(lcl_IsContent(pEntry)) in GetTabPos()
1354 SwContent* pCnt = (SwContent *) pEntry->GetUserData(); in GetTabPos()
1515 SvLBoxEntry* pEntry = GetCurEntry(); in IMPL_LINK() local
1517 DBG_ASSERT(pEntry, "kein aktueller Eintrag!"); in IMPL_LINK()
1518 if(pEntry) in IMPL_LINK()
1520 if(lcl_IsContentType(pEntry)) in IMPL_LINK()
1521 RequestingChilds(pEntry); in IMPL_LINK()
1529 SwContent* pCnt = (SwContent*)pEntry->GetUserData(); in IMPL_LINK()
1605 SvLBoxEntry* pEntry; in Display() local
1608 pEntry = InsertEntry(sEntry, rImage, rImage, in Display()
1611 pSelEntry = pEntry; in Display()
1617 Expand(pEntry); in Display()
1621 SvLBoxEntry* pChild = pEntry; in Display()
1679 SvLBoxEntry* pEntry = First(); in Display() local
1681 while( 0 != (pEntry = Next(pEntry)) ) in Display()
1683 if(((SwOutlineContent*)pEntry->GetUserData())->GetPos() == nActPos) in Display()
1685 MakeVisible(pEntry); in Display()
1686 Select(pEntry); in Display()
1752 SvLBoxEntry* pEntry = GetCurEntry(); in FillTransferData() local
1753 if(!pEntry || lcl_IsContentType(pEntry) || !pWrtShell) in FillTransferData()
1756 SwContent* pCnt = ((SwContent*)pEntry->GetUserData()); in FillTransferData()
1813 sEntry = GetEntryText(pEntry); in FillTransferData()
1895 SvLBoxEntry* pEntry = GetCurEntry(); in ToggleToRoot() local
1897 if(pEntry) in ToggleToRoot()
1899 if(lcl_IsContentType(pEntry)) in ToggleToRoot()
1900 pCntType = (SwContentType*)pEntry->GetUserData(); in ToggleToRoot()
1902 pCntType = ((SwContent*)pEntry->GetUserData())->GetParent(); in ToggleToRoot()
1954 SvLBoxEntry* pEntry = First(); in HasContentChanged() local
1955 if(!pEntry) in HasContentChanged()
1959 sal_uInt16 nType = ((SwContentType*)pEntry->GetUserData())->GetType(); in HasContentChanged()
1982 pEntry->SetUserData((void*)pArrType); in HasContentChanged()
1985 if(GetChildCount(pEntry) != pArrType->GetMemberCount()) in HasContentChanged()
1989 sal_uInt16 nChildCount = (sal_uInt16)GetChildCount(pEntry); in HasContentChanged()
1992 pEntry = Next(pEntry); in HasContentChanged()
1994 pEntry->SetUserData((void*)pCnt); in HasContentChanged()
1995 String sEntryText = GetEntryText(pEntry); in HasContentChanged()
2027 SvLBoxEntry* pEntry = First(); in HasContentChanged() local
2028 while ( pEntry ) in HasContentChanged()
2031 SwContentType* pTreeType = (SwContentType*)pEntry->GetUserData(); in HasContentChanged()
2040 pEntry->SetUserData((void*)pArrType); in HasContentChanged()
2041 if(IsExpanded(pEntry)) in HasContentChanged()
2050 sal_uInt16 nChildCount = (sal_uInt16)GetChildCount(pEntry); in HasContentChanged()
2060 pEntry = Next(pEntry); in HasContentChanged()
2063 pEntry->SetUserData((void*)pCnt); in HasContentChanged()
2064 String sEntryText = GetEntryText(pEntry); in HasContentChanged()
2072 else if(pEntry->HasChilds()) in HasContentChanged()
2083 sal_uInt16 nChildCount = (sal_uInt16)GetChildCount(pEntry); in HasContentChanged()
2090 SvLBoxEntry* pChild = FirstChild(pEntry); in HasContentChanged()
2104 SvLBoxEntry* pChild = FirstChild(pEntry); in HasContentChanged()
2115 pEntry->EnableChildsOnDemand(sal_False); in HasContentChanged()
2116 InvalidateEntry(pEntry); in HasContentChanged()
2127 while( pEntry && (bNext || GetParent(pEntry ) )) in HasContentChanged()
2129 pEntry = Next(pEntry); in HasContentChanged()
2146 SvLBoxEntry* pEntry = FirstSelected(); in FindActiveTypeAndRemoveUserData() local
2147 if(pEntry) in FindActiveTypeAndRemoveUserData()
2152 while(0 != (pParent = GetParent(pEntry))) in FindActiveTypeAndRemoveUserData()
2153 pEntry = pParent; in FindActiveTypeAndRemoveUserData()
2154 if(pEntry->GetUserData() && lcl_IsContentType(pEntry)) in FindActiveTypeAndRemoveUserData()
2155 nLastSelType = ((SwContentType*)pEntry->GetUserData())->GetType(); in FindActiveTypeAndRemoveUserData()
2159 pEntry = First(); in FindActiveTypeAndRemoveUserData()
2160 while(pEntry) in FindActiveTypeAndRemoveUserData()
2162 pEntry->SetUserData(0); in FindActiveTypeAndRemoveUserData()
2163 pEntry = Next(pEntry); in FindActiveTypeAndRemoveUserData()
2295 SvLBoxEntry* pEntry = pFirstEntry; in ExecCommand() local
2298 pEntry = Next(pEntry); in ExecCommand()
2299 while( pEntry && CONTENT_TYPE_OUTLINE == in ExecCommand()
2300 ((SwTypeNumber*)pEntry->GetUserData())->GetTypeId() ) in ExecCommand()
2303 pEntry->GetUserData())->GetOutlineLevel()) in ExecCommand()
2305 pEntry = Next(pEntry); in ExecCommand()
2313 if(pEntry && CONTENT_TYPE_OUTLINE == in ExecCommand()
2314 ((SwTypeNumber*)pEntry->GetUserData())->GetTypeId()) in ExecCommand()
2323 while(pEntry ) in ExecCommand()
2325 pEntry = Next(pEntry); in ExecCommand()
2328 if(pEntry && nDest++ && in ExecCommand()
2329 ( nActLevel >= ((SwOutlineContent*)pEntry->GetUserData())->GetOutlineLevel()|| in ExecCommand()
2330 CONTENT_TYPE_OUTLINE != ((SwTypeNumber*)pEntry->GetUserData())->GetTypeId())) in ExecCommand()
2347 pEntry = pFirstEntry; in ExecCommand()
2348 while(pEntry && nDest ) in ExecCommand()
2351 pEntry = Prev(pEntry); in ExecCommand()
2352 if(pEntry && in ExecCommand()
2353 (nActLevel >= ((SwOutlineContent*)pEntry->GetUserData())->GetOutlineLevel()|| in ExecCommand()
2355 ((SwTypeNumber*)pEntry->GetUserData())->GetTypeId())) in ExecCommand()
2482 SvLBoxEntry* pEntry ) in NotifyStartDrag() argument
2486 GetModel()->GetAbsPos( pEntry ) > 0 in NotifyStartDrag()
2507 SvLBoxEntry* pEntry, SvLBoxEntry*& , sal_uLong& ) in NotifyMoving() argument
2512 sal_uInt16 nSourcePos = (( SwOutlineContent* )pEntry->GetUserData())->GetPos(); in NotifyMoving()
2528 DBG_ASSERT( pEntry && in NotifyMoving()
2529 lcl_IsContent(pEntry),"Source == 0 oder Source hat keinen Content" ); in NotifyMoving()
2547 SvLBoxEntry* pEntry, SvLBoxEntry*& , sal_uLong& ) in NotifyCopying() argument
2552 sal_uInt16 nSourcePos = (( SwOutlineContent* )pEntry->GetUserData())->GetPos(); in NotifyCopying()
2570 DBG_ASSERT( pEntry && in NotifyCopying()
2571 lcl_IsContent(pEntry),"Source == 0 oder Source hat keinen Content" ); in NotifyCopying()
2585 sal_Bool SwContentTree::NotifyAcceptDrop( SvLBoxEntry* pEntry) in NotifyAcceptDrop() argument
2587 return pEntry != 0; in NotifyAcceptDrop()
2598 SvLBoxEntry* pEntry = GetEntry( aPos, sal_True ); in MouseButtonDown() local
2599 if( !pEntry && rMEvt.IsLeft() && rMEvt.IsMod1() && (rMEvt.GetClicks() % 2) == 0) in MouseButtonDown()
2644 SvLBoxEntry* pEntry = FirstSelected(); in KeyInput() local
2645 if ( pEntry ) in KeyInput()
2658 if(lcl_IsContentType(pEntry)) in KeyInput()
2660 IsExpanded(pEntry) ? in KeyInput()
2661 Collapse(pEntry) : in KeyInput()
2662 Expand(pEntry); in KeyInput()
2672 SvLBoxEntry* pEntry = FirstSelected(); in KeyInput() local
2673 if(pEntry && in KeyInput()
2674 lcl_IsContent(pEntry) && in KeyInput()
2675 ((SwContent*)pEntry->GetUserData())->GetParent()->IsDeletable() && in KeyInput()
2678 EditEntry(pEntry, EDIT_MODE_DELETE); in KeyInput()
2690 SvLBoxEntry* pEntry = GetCurEntry(); in KeyInput() local
2691 if( GetChildCount( pEntry ) == 0 ) in KeyInput()
2693 …Point tempPoint = GetEntryPosition( pEntry );//Change from "GetEntryPos" to "GetEntryPosition" for… in KeyInput()
2694 oldRectangle = GetFocusRect( pEntry,tempPoint.Y() ); in KeyInput()
2696 if(pEntry) in KeyInput()
2705 SwContent* pCnt = (SwContent*)pEntry->GetUserData(); in KeyInput()
2818 SvLBoxEntry* pEntry = GetEntry( aPos ); in RequestHelp() local
2819 if( pEntry ) in RequestHelp()
2824 void* pUserData = pEntry->GetUserData(); in RequestHelp()
2825 if(lcl_IsContentType(pEntry)) in RequestHelp()
2892 SvLBoxItem* pItem = GetItem( pEntry, aPos.X(), &pTab ); in RequestHelp()
2895 aPos = GetEntryPosition( pEntry ); in RequestHelp()
2897 aPos.X() = GetTabPos( pEntry, pTab ); in RequestHelp()
2898 Size aSize( pItem->GetSize( this, pEntry ) ); in RequestHelp()
3075 sal_Bool SwContentTree::Select( SvLBoxEntry* pEntry, sal_Bool bSelect ) in Select() argument
3077 if(!pEntry) in Select()
3080 SvLBoxEntry* pParentEntry = GetParent(pEntry); in Select()
3083 …(lcl_IsContent(pEntry) && ((SwContentType*)pParentEntry->GetUserData())->GetType() == CONTENT_TYPE… in Select()
3091 return SvTreeListBox::Select(pEntry, bSelect); in Select()
3123 void SwContentTree::EditEntry(SvLBoxEntry* pEntry, sal_uInt8 nMode) in EditEntry() argument
3125 SwContent* pCnt = (SwContent*)pEntry->GetUserData(); in EditEntry()
3526 SwContentLBoxString( SvLBoxEntry* pEntry, sal_uInt16 nFlags, in SwContentLBoxString() argument
3527 const String& rStr ) : SvLBoxString(pEntry,nFlags,rStr) {} in SwContentLBoxString()
3530 SvLBoxEntry* pEntry);
3536 void SwContentTree::InitEntry(SvLBoxEntry* pEntry, in InitEntry() argument
3541 SvTreeListBox::InitEntry( pEntry, rStr, rImg1, rImg2, eButtonKind ); in InitEntry()
3542 SvLBoxString* pCol = (SvLBoxString*)pEntry->GetItem( nColToHilite ); in InitEntry()
3543 SwContentLBoxString* pStr = new SwContentLBoxString( pEntry, 0, pCol->GetText() ); in InitEntry()
3544 pEntry->ReplaceItem( pStr, nColToHilite ); in InitEntry()
3550 SvLBoxEntry* pEntry ) in Paint() argument
3552 if(lcl_IsContent(pEntry) && in Paint()
3553 ((SwContent *)pEntry->GetUserData())->IsInvisible()) in Paint()
3583 SvLBoxString::Paint( rPos, rDev, nFlags, pEntry); in Paint()