Lines Matching refs:pEntry
129 static sal_Bool lcl_IsContent(SvLBoxEntry* pEntry) in lcl_IsContent() argument
131 return ((SwTypeNumber*)pEntry->GetUserData())->GetTypeId() == CTYPE_CNT; in lcl_IsContent()
135 static sal_Bool lcl_IsContentType(SvLBoxEntry* pEntry) in lcl_IsContentType() argument
137 return ((SwTypeNumber*)pEntry->GetUserData())->GetTypeId() == CTYPE_CTT; in lcl_IsContentType()
937 String SwContentTree::GetEntryAltText( SvLBoxEntry* pEntry ) const in GetEntryAltText()
939 if( pEntry == NULL) in GetEntryAltText()
942 SwContent* pCnt = (SwContent*)pEntry->GetUserData(); in GetEntryAltText()
1030 String SwContentTree::GetEntryLongDescription( SvLBoxEntry* pEntry ) const in GetEntryLongDescription()
1032 if( pEntry == NULL) in GetEntryLongDescription()
1035 SwContent* pCnt = (SwContent*)pEntry->GetUserData(); in GetEntryLongDescription()
1231 SvLBoxEntry* pEntry = 0; in CreateContextMenu() local
1234 && 0 != (pEntry = FirstSelected()) && lcl_IsContent(pEntry)) in CreateContextMenu()
1236 const SwContentType* pContType = ((SwContent*)pEntry->GetUserData())->GetParent(); in CreateContextMenu()
1239 sal_Bool bVisible = !((SwContent*)pEntry->GetUserData())->IsInvisible(); in CreateContextMenu()
1240 sal_Bool bProtected = ((SwContent*)pEntry->GetUserData())->IsProtect(); in CreateContextMenu()
1263 const SwTOXBase* pBase = ((SwTOXBaseContent*)pEntry->GetUserData())->GetTOXBase(); in CreateContextMenu()
1277 String sTblName = ((SwContent*)pEntry->GetUserData())->GetName(); in CreateContextMenu()
1315 else if( pEntry ) in CreateContextMenu()
1317 SwContentType* pType = (SwContentType*)pEntry->GetUserData(); in CreateContextMenu()
1347 long SwContentTree::GetTabPos( SvLBoxEntry* pEntry, SvLBoxTab* pTab) in GetTabPos() argument
1350 if(lcl_IsContent(pEntry)) in GetTabPos()
1353 SwContent* pCnt = (SwContent *) pEntry->GetUserData(); in GetTabPos()
1514 SvLBoxEntry* pEntry = GetCurEntry(); in IMPL_LINK() local
1516 DBG_ASSERT(pEntry, "kein aktueller Eintrag!"); in IMPL_LINK()
1517 if(pEntry) in IMPL_LINK()
1519 if(lcl_IsContentType(pEntry)) in IMPL_LINK()
1520 RequestingChilds(pEntry); in IMPL_LINK()
1528 SwContent* pCnt = (SwContent*)pEntry->GetUserData(); in IMPL_LINK()
1604 SvLBoxEntry* pEntry; in Display() local
1607 pEntry = InsertEntry(sEntry, rImage, rImage, in Display()
1610 pSelEntry = pEntry; in Display()
1616 Expand(pEntry); in Display()
1620 SvLBoxEntry* pChild = pEntry; in Display()
1678 SvLBoxEntry* pEntry = First(); in Display() local
1680 while( 0 != (pEntry = Next(pEntry)) ) in Display()
1682 if(((SwOutlineContent*)pEntry->GetUserData())->GetPos() == nActPos) in Display()
1684 MakeVisible(pEntry); in Display()
1685 Select(pEntry); in Display()
1751 SvLBoxEntry* pEntry = GetCurEntry(); in FillTransferData() local
1752 if(!pEntry || lcl_IsContentType(pEntry) || !pWrtShell) in FillTransferData()
1755 SwContent* pCnt = ((SwContent*)pEntry->GetUserData()); in FillTransferData()
1812 sEntry = GetEntryText(pEntry); in FillTransferData()
1894 SvLBoxEntry* pEntry = GetCurEntry(); in ToggleToRoot() local
1896 if(pEntry) in ToggleToRoot()
1898 if(lcl_IsContentType(pEntry)) in ToggleToRoot()
1899 pCntType = (SwContentType*)pEntry->GetUserData(); in ToggleToRoot()
1901 pCntType = ((SwContent*)pEntry->GetUserData())->GetParent(); in ToggleToRoot()
1953 SvLBoxEntry* pEntry = First(); in HasContentChanged() local
1954 if(!pEntry) in HasContentChanged()
1958 sal_uInt16 nType = ((SwContentType*)pEntry->GetUserData())->GetType(); in HasContentChanged()
1981 pEntry->SetUserData((void*)pArrType); in HasContentChanged()
1984 if(GetChildCount(pEntry) != pArrType->GetMemberCount()) in HasContentChanged()
1988 sal_uInt16 nChildCount = (sal_uInt16)GetChildCount(pEntry); in HasContentChanged()
1991 pEntry = Next(pEntry); in HasContentChanged()
1993 pEntry->SetUserData((void*)pCnt); in HasContentChanged()
1994 String sEntryText = GetEntryText(pEntry); in HasContentChanged()
2026 SvLBoxEntry* pEntry = First(); in HasContentChanged() local
2027 while ( pEntry ) in HasContentChanged()
2030 SwContentType* pTreeType = (SwContentType*)pEntry->GetUserData(); in HasContentChanged()
2039 pEntry->SetUserData((void*)pArrType); in HasContentChanged()
2040 if(IsExpanded(pEntry)) in HasContentChanged()
2049 sal_uInt16 nChildCount = (sal_uInt16)GetChildCount(pEntry); in HasContentChanged()
2059 pEntry = Next(pEntry); in HasContentChanged()
2062 pEntry->SetUserData((void*)pCnt); in HasContentChanged()
2063 String sEntryText = GetEntryText(pEntry); in HasContentChanged()
2071 else if(pEntry->HasChilds()) in HasContentChanged()
2082 sal_uInt16 nChildCount = (sal_uInt16)GetChildCount(pEntry); in HasContentChanged()
2089 SvLBoxEntry* pChild = FirstChild(pEntry); in HasContentChanged()
2103 SvLBoxEntry* pChild = FirstChild(pEntry); in HasContentChanged()
2114 pEntry->EnableChildsOnDemand(sal_False); in HasContentChanged()
2115 InvalidateEntry(pEntry); in HasContentChanged()
2126 while( pEntry && (bNext || GetParent(pEntry ) )) in HasContentChanged()
2128 pEntry = Next(pEntry); in HasContentChanged()
2145 SvLBoxEntry* pEntry = FirstSelected(); in FindActiveTypeAndRemoveUserData() local
2146 if(pEntry) in FindActiveTypeAndRemoveUserData()
2151 while(0 != (pParent = GetParent(pEntry))) in FindActiveTypeAndRemoveUserData()
2152 pEntry = pParent; in FindActiveTypeAndRemoveUserData()
2153 if(pEntry->GetUserData() && lcl_IsContentType(pEntry)) in FindActiveTypeAndRemoveUserData()
2154 nLastSelType = ((SwContentType*)pEntry->GetUserData())->GetType(); in FindActiveTypeAndRemoveUserData()
2158 pEntry = First(); in FindActiveTypeAndRemoveUserData()
2159 while(pEntry) in FindActiveTypeAndRemoveUserData()
2161 pEntry->SetUserData(0); in FindActiveTypeAndRemoveUserData()
2162 pEntry = Next(pEntry); in FindActiveTypeAndRemoveUserData()
2294 SvLBoxEntry* pEntry = pFirstEntry; in ExecCommand() local
2297 pEntry = Next(pEntry); in ExecCommand()
2298 while( pEntry && CONTENT_TYPE_OUTLINE == in ExecCommand()
2299 ((SwTypeNumber*)pEntry->GetUserData())->GetTypeId() ) in ExecCommand()
2302 pEntry->GetUserData())->GetOutlineLevel()) in ExecCommand()
2304 pEntry = Next(pEntry); in ExecCommand()
2312 if(pEntry && CONTENT_TYPE_OUTLINE == in ExecCommand()
2313 ((SwTypeNumber*)pEntry->GetUserData())->GetTypeId()) in ExecCommand()
2322 while(pEntry ) in ExecCommand()
2324 pEntry = Next(pEntry); in ExecCommand()
2327 if(pEntry && nDest++ && in ExecCommand()
2328 ( nActLevel >= ((SwOutlineContent*)pEntry->GetUserData())->GetOutlineLevel()|| in ExecCommand()
2329 CONTENT_TYPE_OUTLINE != ((SwTypeNumber*)pEntry->GetUserData())->GetTypeId())) in ExecCommand()
2346 pEntry = pFirstEntry; in ExecCommand()
2347 while(pEntry && nDest ) in ExecCommand()
2350 pEntry = Prev(pEntry); in ExecCommand()
2351 if(pEntry && in ExecCommand()
2352 (nActLevel >= ((SwOutlineContent*)pEntry->GetUserData())->GetOutlineLevel()|| in ExecCommand()
2354 ((SwTypeNumber*)pEntry->GetUserData())->GetTypeId())) in ExecCommand()
2481 SvLBoxEntry* pEntry ) in NotifyStartDrag() argument
2485 GetModel()->GetAbsPos( pEntry ) > 0 in NotifyStartDrag()
2506 SvLBoxEntry* pEntry, SvLBoxEntry*& , sal_uLong& ) in NotifyMoving() argument
2511 sal_uInt16 nSourcePos = (( SwOutlineContent* )pEntry->GetUserData())->GetPos(); in NotifyMoving()
2527 DBG_ASSERT( pEntry && in NotifyMoving()
2528 lcl_IsContent(pEntry),"Source == 0 oder Source hat keinen Content" ); in NotifyMoving()
2546 SvLBoxEntry* pEntry, SvLBoxEntry*& , sal_uLong& ) in NotifyCopying() argument
2551 sal_uInt16 nSourcePos = (( SwOutlineContent* )pEntry->GetUserData())->GetPos(); in NotifyCopying()
2569 DBG_ASSERT( pEntry && in NotifyCopying()
2570 lcl_IsContent(pEntry),"Source == 0 oder Source hat keinen Content" ); in NotifyCopying()
2584 sal_Bool SwContentTree::NotifyAcceptDrop( SvLBoxEntry* pEntry) in NotifyAcceptDrop() argument
2586 return pEntry != 0; in NotifyAcceptDrop()
2597 SvLBoxEntry* pEntry = GetEntry( aPos, sal_True ); in MouseButtonDown() local
2598 if( !pEntry && rMEvt.IsLeft() && rMEvt.IsMod1() && (rMEvt.GetClicks() % 2) == 0) in MouseButtonDown()
2643 SvLBoxEntry* pEntry = FirstSelected(); in KeyInput() local
2644 if ( pEntry ) in KeyInput()
2657 if(lcl_IsContentType(pEntry)) in KeyInput()
2659 IsExpanded(pEntry) ? in KeyInput()
2660 Collapse(pEntry) : in KeyInput()
2661 Expand(pEntry); in KeyInput()
2671 SvLBoxEntry* pEntry = FirstSelected(); in KeyInput() local
2672 if(pEntry && in KeyInput()
2673 lcl_IsContent(pEntry) && in KeyInput()
2674 ((SwContent*)pEntry->GetUserData())->GetParent()->IsDeletable() && in KeyInput()
2677 EditEntry(pEntry, EDIT_MODE_DELETE); in KeyInput()
2689 SvLBoxEntry* pEntry = GetCurEntry(); in KeyInput() local
2690 if( GetChildCount( pEntry ) == 0 ) in KeyInput()
2692 …Point tempPoint = GetEntryPosition( pEntry );//Change from "GetEntryPos" to "GetEntryPosition" for… in KeyInput()
2693 oldRectangle = GetFocusRect( pEntry,tempPoint.Y() ); in KeyInput()
2695 if(pEntry) in KeyInput()
2704 SwContent* pCnt = (SwContent*)pEntry->GetUserData(); in KeyInput()
2817 SvLBoxEntry* pEntry = GetEntry( aPos ); in RequestHelp() local
2818 if( pEntry ) in RequestHelp()
2823 void* pUserData = pEntry->GetUserData(); in RequestHelp()
2824 if(lcl_IsContentType(pEntry)) in RequestHelp()
2891 SvLBoxItem* pItem = GetItem( pEntry, aPos.X(), &pTab ); in RequestHelp()
2894 aPos = GetEntryPosition( pEntry ); in RequestHelp()
2896 aPos.X() = GetTabPos( pEntry, pTab ); in RequestHelp()
2897 Size aSize( pItem->GetSize( this, pEntry ) ); in RequestHelp()
3074 sal_Bool SwContentTree::Select( SvLBoxEntry* pEntry, sal_Bool bSelect ) in Select() argument
3076 if(!pEntry) in Select()
3079 SvLBoxEntry* pParentEntry = GetParent(pEntry); in Select()
3082 …(lcl_IsContent(pEntry) && ((SwContentType*)pParentEntry->GetUserData())->GetType() == CONTENT_TYPE… in Select()
3090 return SvTreeListBox::Select(pEntry, bSelect); in Select()
3122 void SwContentTree::EditEntry(SvLBoxEntry* pEntry, sal_uInt8 nMode) in EditEntry() argument
3124 SwContent* pCnt = (SwContent*)pEntry->GetUserData(); in EditEntry()
3525 SwContentLBoxString( SvLBoxEntry* pEntry, sal_uInt16 nFlags, in SwContentLBoxString() argument
3526 const String& rStr ) : SvLBoxString(pEntry,nFlags,rStr) {} in SwContentLBoxString()
3529 SvLBoxEntry* pEntry);
3535 void SwContentTree::InitEntry(SvLBoxEntry* pEntry, in InitEntry() argument
3540 SvTreeListBox::InitEntry( pEntry, rStr, rImg1, rImg2, eButtonKind ); in InitEntry()
3541 SvLBoxString* pCol = (SvLBoxString*)pEntry->GetItem( nColToHilite ); in InitEntry()
3542 SwContentLBoxString* pStr = new SwContentLBoxString( pEntry, 0, pCol->GetText() ); in InitEntry()
3543 pEntry->ReplaceItem( pStr, nColToHilite ); in InitEntry()
3549 SvLBoxEntry* pEntry ) in Paint() argument
3551 if(lcl_IsContent(pEntry) && in Paint()
3552 ((SwContent *)pEntry->GetUserData())->IsInvisible()) in Paint()
3582 SvLBoxString::Paint( rPos, rDev, nFlags, pEntry); in Paint()