Rohan_Kanojia

Untitled

Feb 18th, 2016
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.95 KB | None | 0 0
  1.                const sal_uInt16 currPos = pShell->GetOutlinePos(MAXLEVEL);
  2.                 std::cout << "currPos : " << currPos << std::endl;
  3.                 SvTreeListEntry* ppp = First();
  4.  
  5.                 while( nullptr != (ppp = Next(ppp)) )
  6.                 {
  7.                     std::cout << static_cast<SwOutlineContent*>(ppp->GetUserData())->GetOutlineLevel() << "\n";
  8.                     if(static_cast<SwOutlineContent*>(ppp->GetUserData())->GetOutlineLevel() == currPos)
  9.                     {
  10.                         std::cout << "hit!!!!!!!!!!!!!! : fetching last selected position\n";
  11.                         m_nLastSelType = static_cast<SwContentType *>(ppp->GetUserData())->GetType();
  12.                         std::cout << (int)m_nLastSelType << std::endl;
  13.                         break;
  14.                        
  15.                     }
  16.                 }
  17.  
  18.                 if(nCntType == m_nLastSelType)
  19.                     pSelEntry = pEntry;
Add Comment
Please, Sign In to add comment