Lines Matching refs:pEntry

187     sal_Bool        DontDelete_Impl( SvLBoxEntry* pEntry );
431 Path(SvLBox *pBox, SvLBoxEntry *pEntry);
462 Path::Path(SvLBox *pBox, SvLBoxEntry *pEntry) : in Path() argument
465 DBG_ASSERT(pEntry != 0, "EntryPtr ist NULL"); in Path()
466 if(!pEntry) in Path()
468 SvLBoxEntry *pParent = pBox->GetParent(pEntry); in Path()
470 pData->aUS.Insert((sal_uInt16)pBox->GetModel()->GetRelPos(pEntry), 0); in Path()
473 pEntry = pParent; in Path()
474 pParent = pBox->GetParent(pEntry); in Path()
492 SvLBoxEntry *pEntry, in GetIndices_Impl() argument
517 if(!pEntry) in GetIndices_Impl()
520 return pEntry; in GetIndices_Impl()
522 if(0 == pBox->GetModel()->GetDepth(pEntry)) in GetIndices_Impl()
524 rRegion = (sal_uInt16)pBox->GetModel()->GetRelPos(pEntry); in GetIndices_Impl()
526 return pEntry; in GetIndices_Impl()
528 SvLBoxEntry *pParent = pBox->GetParent(pEntry); in GetIndices_Impl()
530 rOffset = (sal_uInt16)pBox->GetModel()->GetRelPos(pEntry); in GetIndices_Impl()
531 return pEntry; in GetIndices_Impl()
536 sal_Bool SfxOrganizeListBox_Impl::Select( SvLBoxEntry* pEntry, sal_Bool bSelect ) in Select() argument
539 return SvTreeListBox::Select(pEntry,bSelect); in Select()
541 if(GetModel()->GetDepth(pEntry)+nLevel<3) in Select()
542 return SvTreeListBox::Select(pEntry,bSelect); in Select()
544 Path aPath(this, pEntry); in Select()
550 return SvTreeListBox::Select(pEntry,bSelect); in Select()
917 sal_Bool SfxOrganizeListBox_Impl::EditingEntry( SvLBoxEntry* pEntry, Selection& ) in EditingEntry() argument
930 GetModel()->GetDepth(pEntry) < 2 ) in EditingEntry()
940 sal_Bool SfxOrganizeListBox_Impl::EditedEntry(SvLBoxEntry* pEntry, const String& rText) in EditedEntry() argument
958 DBG_ASSERT(pEntry, "kein Entry selektiert"); in EditedEntry()
961 SvLBoxEntry* pParent = GetParent(pEntry); in EditedEntry()
969 if ( !IsUniqName_Impl( rText, pParent, pEntry ) ) in EditedEntry()
977 GetIndices_Impl( this, pEntry, nRegion, nIndex ); in EditedEntry()
1002 DragDropMode SfxOrganizeListBox_Impl::NotifyStartDrag( TransferDataContainer&, SvLBoxEntry* pEntry ) in NotifyStartDrag() argument
1004 sal_uInt16 nSourceLevel = GetModel()->GetDepth( pEntry ); in NotifyStartDrag()
1017 sal_Bool SfxOrganizeListBox_Impl::NotifyAcceptDrop( SvLBoxEntry* pEntry ) in NotifyAcceptDrop() argument
1019 if(!pEntry) in NotifyAcceptDrop()
1023 if(pEntry == pSourceEntry) in NotifyAcceptDrop()
1028 sal_uInt16 nTargetLevel = GetModel()->GetDepth(pEntry); in NotifyAcceptDrop()
1032 Path aTarget(this, pEntry); in NotifyAcceptDrop()
1169 void SfxOrganizeListBox_Impl::RequestingChilds( SvLBoxEntry* pEntry ) in RequestingChilds() argument
1193 if ( !GetModel()->HasChilds( pEntry ) ) in RequestingChilds()
1203 if(VIEW_TEMPLATES == GetViewType() && 0 == GetModel()->GetDepth(pEntry)) in RequestingChilds()
1205 sal_uInt16 i = (sal_uInt16)GetModel()->GetRelPos(pEntry); in RequestingChilds()
1208 InsertEntryByBmpType( pMgr->GetTemplates()->GetName( i, j ), BMPTYPE_DOC, pEntry, sal_True ); in RequestingChilds()
1213 Path aPath(this, pEntry); in RequestingChilds()
1240 pEntry, bCanHaveChilds); in RequestingChilds()
1265 SvLBoxEntry* pEntry = GetHdlEntry(); in ExpandingHdl() local
1266 const sal_uInt16 nLevel = GetModel()->GetDepth(pEntry); in ExpandingHdl()
1270 Path aPath(this, pEntry); in ExpandingHdl()
1277 SvLBoxEntry *pToDel = SvLBox::GetEntry(pEntry, 0); in ExpandingHdl()
1281 pToDel = SvLBox::GetEntry(pEntry, 0); in ExpandingHdl()
1291 SvLBoxEntry* pParent, SvLBoxEntry *pEntry) const in IsUniqName_Impl()
1311 if(COMPARE_EQUAL == aEntryText.CompareIgnoreCaseToAscii(rText)&&(!pEntry || pEntry!=pChild)) in IsUniqName_Impl()
1336 SvLBoxEntry* pEntry = NULL; in InsertEntryByBmpType() local
1361pEntry = SvTreeListBox::InsertEntry( rText, *pExp, *pCol, pParent, bChildsOnDemand, nPos, pUserDat… in InsertEntryByBmpType()
1363 SetExpandedEntryBmp( pEntry, *pExpHC, BMP_COLOR_HIGHCONTRAST ); in InsertEntryByBmpType()
1364 SetCollapsedEntryBmp( pEntry, *pColHC, BMP_COLOR_HIGHCONTRAST ); in InsertEntryByBmpType()
1366 return pEntry; in InsertEntryByBmpType()
1733 sal_Bool SfxOrganizeDlg_Impl::DontDelete_Impl( SvLBoxEntry* pEntry ) in DontDelete_Impl() argument
1735 sal_uInt16 nDepth = pFocusBox->GetModel()->GetDepth(pEntry); in DontDelete_Impl()
1739 if( (nDepth > 2 && !pEntry->GetUserData()) || in DontDelete_Impl()
1751 GetIndices_Impl( pFocusBox, pEntry, nRegion, nIndex ); in DontDelete_Impl()
1783 SvLBoxEntry* pEntry = pFocusBox ? pFocusBox->FirstSelected() : NULL; in GetServiceName_Impl() local
1785 GetIndices_Impl( pFocusBox, pEntry, nRegion, nIndex ); in GetServiceName_Impl()
1827 SvLBoxEntry *pEntry = pFocusBox? pFocusBox->FirstSelected(): 0; in Dispatch_Impl() local
1833 if(!pEntry) in Dispatch_Impl()
1837 if(0 == pFocusBox->GetModel()->GetDepth(pEntry)) in Dispatch_Impl()
1840 SvLBoxEntry* pParent = pFocusBox->GetParent(pEntry); in Dispatch_Impl()
1849 (sal_uInt16)pFocusBox->GetModel()->GetRelPos(pEntry)+1); in Dispatch_Impl()
1857 if(!pEntry || DontDelete_Impl(pEntry)) in Dispatch_Impl()
1859 const sal_uInt16 nDepth = pFocusBox->GetModel()->GetDepth(pEntry); in Dispatch_Impl()
1868 pDialog, nResId, pFocusBox->GetEntryText(pEntry))) in Dispatch_Impl()
1871 pFocusBox->GetChildCount(pEntry)) in Dispatch_Impl()
1878 GetIndices_Impl(pFocusBox, pEntry, nRegion, nIndex); in Dispatch_Impl()
1884 pFocusBox->GetEntryText(pEntry), in Dispatch_Impl()
1885 ( nDeleteInd == USHRT_MAX && pFocusBox->GetChildCount(pEntry) ) ); in Dispatch_Impl()
1891 if(!QueryDelete_Impl(pDialog, STR_DELETE_TEMPLATE, pFocusBox->GetEntryText(pEntry))) in Dispatch_Impl()
1893 Path aPath(pFocusBox, pEntry); in Dispatch_Impl()
1902 pFocusBox->GetModel()->Remove(pEntry); in Dispatch_Impl()
1904 ErrorDelete_Impl(pDialog, pFocusBox->GetEntryText(pEntry), sal_False ); in Dispatch_Impl()
1911 if(!pEntry) in Dispatch_Impl()
1914 GetIndices_Impl( pFocusBox, pEntry, nRegion, nIndex ); in Dispatch_Impl()
1916 const SfxStringItem aLongName( SID_FILE_LONGNAME, pFocusBox->GetEntryText( pEntry ) ); in Dispatch_Impl()
1929 if ( !pEntry ) in Dispatch_Impl()
1933 GetIndices_Impl( pFocusBox, pEntry, m_nRegion, m_nIndex ); in Dispatch_Impl()
1940 if ( !pEntry ) in Dispatch_Impl()
1944 GetIndices_Impl( pFocusBox, pEntry, m_nRegion, m_nIndex ); in Dispatch_Impl()
1960 if ( !pEntry ) in Dispatch_Impl()
1962 Path aPath( pFocusBox, pEntry ); in Dispatch_Impl()
1972 SvLBoxEntry *pDocEntry = pEntry; in Dispatch_Impl()
2059 SvLBoxEntry* pEntry = pFocusBox && pFocusBox->GetSelectionCount() ? in IMPL_LINK_INLINE_END() local
2061 return pEntry && ( pAccel->GetCurItemId() == ID_NEW || !DontDelete_Impl( pEntry ) ) ? in IMPL_LINK_INLINE_END()
2094 SvLBoxEntry* pEntry = bEnable ? pFocusBox->FirstSelected() : NULL; in IMPL_LINK() local
2096 ( bEnable && pFocusBox->GetSelectionCount() ) ? pFocusBox->GetModel()->GetDepth( pEntry ) : 0; in IMPL_LINK()
2105 pMenu->EnableItem( ID_DELETE, bEnable && !DontDelete_Impl( pEntry ) ); in IMPL_LINK()
2108 && !DontDelete_Impl( pEntry ) ); in IMPL_LINK()