Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const sal_uInt16 currPos = pShell->GetOutlinePos(MAXLEVEL);
- std::cout << "currPos : " << currPos << std::endl;
- SvTreeListEntry* ppp = First();
- while( nullptr != (ppp = Next(ppp)) )
- {
- std::cout << static_cast<SwOutlineContent*>(ppp->GetUserData())->GetOutlineLevel() << "\n";
- if(static_cast<SwOutlineContent*>(ppp->GetUserData())->GetOutlineLevel() == currPos)
- {
- std::cout << "hit!!!!!!!!!!!!!! : fetching last selected position\n";
- m_nLastSelType = static_cast<SwContentType *>(ppp->GetUserData())->GetType();
- std::cout << (int)m_nLastSelType << std::endl;
- break;
- }
- }
- if(nCntType == m_nLastSelType)
- pSelEntry = pEntry;
Add Comment
Please, Sign In to add comment