Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1.  
  2. void SwNavigationPI::CreateNavigationTool(const Rectangle& rRect, bool bSetFocus, vcl::Window *pParent)
  3. {
  4. Reference< XFrame > xFrame = GetCreateView()->GetViewFrame()->GetFrame().GetFrameInterface();
  5. SwScrollNaviPopup* pPopup = new
  6. SwScrollNaviPopup(FN_SCROLL_NAVIGATION, xFrame, pParent);
  7.  
  8. Rectangle aRect(rRect);
  9. Point aT1 = aRect.TopLeft();
  10. aT1 = pPopup->GetParent()->OutputToScreenPixel(pPopup->GetParent()->AbsoluteScreenToOutputPixel(aContentToolBox.OutputToAbsoluteScreenPixel(aT1)));
  11. aRect.SetPos(aT1);
  12. pPopup->StartPopupMode(aRect, FLOATWIN_POPUPMODE_RIGHT|FLOATWIN_POPUPMODE_ALLOWTEAROFF);
  13. SetPopupWindow( pPopup );
  14. if(bSetFocus)
  15. {
  16. pPopup->EndPopupMode(FLOATWIN_POPUPMODEEND_TEAROFF);
  17. pPopup->GrabFocus();
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement