Lines Matching refs:nIndex
238 sal_uInt16 nIndex = PreviewValueSet::GetItemId (pEvent->GetPosPixel()); in IMPL_LINK() local
239 if (nIndex > 0) in IMPL_LINK()
240 PreviewValueSet::SelectItem (nIndex); in IMPL_LINK()
257 const sal_uInt16 nIndex = PreviewValueSet::GetSelectItemId(); in Command() local
258 if (nIndex > 0) in Command()
267 Rectangle aBBox (PreviewValueSet::GetItemRect(nIndex)); in Command()
367 sal_uInt16 nIndex = PreviewValueSet::GetSelectItemId(); in ExecuteCommand() local
369 PreviewValueSet::SelectItem (nIndex); in ExecuteCommand()
402 sal_uInt16 nIndex = PreviewValueSet::GetSelectItemId(); in GetSelectedMasterPage() local
403 UserData* pData = GetUserData(nIndex); in GetSelectedMasterPage()
511 int nIndex (GetIndexForToken(rEvent.maChildToken)); in NotifyContainerChangeEvent() local
512 if (nIndex >= 0) in NotifyContainerChangeEvent()
515 (sal_uInt16)nIndex, in NotifyContainerChangeEvent()
517 PreviewValueSet::Invalidate(PreviewValueSet::GetItemRect((sal_uInt16)nIndex)); in NotifyContainerChangeEvent()
538 int nIndex, in CreateUserData() argument
541 return new UserData(nIndex,aToken); in CreateUserData()
547 MasterPagesSelector::UserData* MasterPagesSelector::GetUserData (int nIndex) const in GetUserData()
551 if (nIndex>0 && nIndex<=PreviewValueSet::GetItemCount()) in GetUserData()
552 return reinterpret_cast<UserData*>(PreviewValueSet::GetItemData((sal_uInt16)nIndex)); in GetUserData()
560 void MasterPagesSelector::SetUserData (int nIndex, UserData* pData) in SetUserData() argument
564 if (nIndex>0 && nIndex<=PreviewValueSet::GetItemCount()) in SetUserData()
566 UserData* pOldData = GetUserData(nIndex); in SetUserData()
569 PreviewValueSet::SetItemData((sal_uInt16)nIndex, pData); in SetUserData()
608 sal_uInt16 nIndex, in SetItem() argument
613 RemoveTokenToIndexEntry(nIndex,aToken); in SetItem()
615 if (nIndex > 0) in SetItem()
624 if (PreviewValueSet::GetItemPos(nIndex) != VALUESET_ITEM_NOTFOUND) in SetItem()
626 PreviewValueSet::SetItemImage(nIndex,aPreview); in SetItem()
627 PreviewValueSet::SetItemText(nIndex, mpContainer->GetPageNameForToken(aToken)); in SetItem()
632 nIndex, in SetItem()
635 nIndex); in SetItem()
637 SetUserData(nIndex, CreateUserData(nIndex,aToken)); in SetItem()
639 AddTokenToIndexEntry(nIndex,aToken); in SetItem()
647 PreviewValueSet::RemoveItem(nIndex); in SetItem()
657 sal_uInt16 nIndex, in AddTokenToIndexEntry() argument
662 maTokenToValueSetIndex[aToken] = nIndex; in AddTokenToIndexEntry()
669 sal_uInt16 nIndex, in RemoveTokenToIndexEntry() argument
674 UserData* pData = GetUserData(nIndex); in RemoveTokenToIndexEntry()
681 && nIndex == GetIndexForToken(aOldToken)) in RemoveTokenToIndexEntry()
695 for (sal_uInt16 nIndex=1; nIndex<=PreviewValueSet::GetItemCount(); nIndex++) in InvalidatePreview() local
697 UserData* pData = GetUserData(nIndex); in InvalidatePreview()
715 for (sal_uInt16 nIndex=1; nIndex<=PreviewValueSet::GetItemCount(); nIndex++) in UpdateAllPreviews() local
717 UserData* pData = GetUserData(nIndex); in UpdateAllPreviews()
722 nIndex, in UpdateAllPreviews()
738 for (sal_uInt16 nIndex=1; nIndex<=PreviewValueSet::GetItemCount(); nIndex++) in ClearPageSet() local
740 UserData* pData = GetUserData(nIndex); in ClearPageSet()
810 sal_uInt16 nIndex (1); in UpdateItemList() local
813 for ( ; iNewItem!=iNewEnd && iCurrentItem!=iCurrentEnd; ++iNewItem, ++iCurrentItem,++nIndex) in UpdateItemList()
817 SetItem(nIndex,*iNewItem); in UpdateItemList()
822 for ( ; iNewItem!=iNewEnd; ++iNewItem,++nIndex) in UpdateItemList()
824 SetItem(nIndex,*iNewItem); in UpdateItemList()
828 for ( ; iCurrentItem!=iCurrentEnd; ++iCurrentItem,++nIndex) in UpdateItemList()
830 SetItem(nIndex,MasterPageContainer::NIL_TOKEN); in UpdateItemList()