Lines Matching refs:aPage
834 bool SwPostItMgr::BorderOverPageBorder(unsigned long aPage) const in BorderOverPageBorder()
836 if ( mPages[aPage-1]->mList->empty() ) in BorderOverPageBorder()
842 SwSidebarItem_iterator aItem = mPages[aPage-1]->mList->end(); in BorderOverPageBorder()
847 …const long aSidebarheight = mPages[aPage-1]->bScrollbar ? mpEditWin->PixelToLogic(Size(0,GetSideba… in BorderOverPageBorder()
849 return aEndValue <= mPages[aPage-1]->mPageRect.Bottom()-aSidebarheight; in BorderOverPageBorder()
855 void SwPostItMgr::Scroll(const long lScroll,const unsigned long aPage) in Scroll() argument
859 …if ( ((mPages[aPage-1]->lOffset == 0) && (lScroll>0)) || ( BorderOverPageBorder(aPage) && (lScroll… in Scroll()
862 const bool bOldUp = ArrowEnabled(KEY_PAGEUP,aPage); in Scroll()
863 const bool bOldDown = ArrowEnabled(KEY_PAGEDOWN,aPage); in Scroll()
865 …for(SwSidebarItem_iterator i = mPages[aPage-1]->mList->begin(); i!= mPages[aPage-1]->mList->end();… in Scroll()
874 …PostIt->VirtualPos().Y()+pPostIt->VirtualSize().Height())).Y() <= (mPages[aPage-1]->mPageRect.Bott… in Scroll()
875 …bool bTop = mpEditWin->PixelToLogic(Point(0,pPostIt->VirtualPos().Y())).Y() >= (mPages[aPage-1]->… in Scroll()
882 …if ( mpEditWin->PixelToLogic(Point(0,pPostIt->VirtualPos().Y())).Y() < (mPages[aPage-1]->mPageRect… in Scroll()
884 if (mPages[aPage-1]->eSidebarPosition == sw::sidebarwindows::SIDEBAR_LEFT) in Scroll()
885 …pPostIt->ShowAnchorOnly(Point(mPages[aPage-1]->mPageRect.Left(),mPages[aPage-1]->mPageRect.Top())); in Scroll()
886 else if (mPages[aPage-1]->eSidebarPosition == sw::sidebarwindows::SIDEBAR_RIGHT) in Scroll()
887 …pPostIt->ShowAnchorOnly(Point(mPages[aPage-1]->mPageRect.Right(),mPages[aPage-1]->mPageRect.Top())… in Scroll()
891 if (mPages[aPage-1]->eSidebarPosition == sw::sidebarwindows::SIDEBAR_LEFT) in Scroll()
892 …pPostIt->ShowAnchorOnly(Point(mPages[aPage-1]->mPageRect.Left(),mPages[aPage-1]->mPageRect.Bottom(… in Scroll()
893 else if (mPages[aPage-1]->eSidebarPosition == sw::sidebarwindows::SIDEBAR_RIGHT) in Scroll()
894 …pPostIt->ShowAnchorOnly(Point(mPages[aPage-1]->mPageRect.Right(),mPages[aPage-1]->mPageRect.Bottom… in Scroll()
899 mPages[aPage-1]->lOffset += lScroll; in Scroll()
900 if ( (bOldUp != ArrowEnabled(KEY_PAGEUP,aPage)) ||(bOldDown != ArrowEnabled(KEY_PAGEDOWN,aPage)) ) in Scroll()
902 mpEditWin->Invalidate(GetBottomScrollRect(aPage)); in Scroll()
903 mpEditWin->Invalidate(GetTopScrollRect(aPage)); in Scroll()
907 void SwPostItMgr::AutoScroll(const SwSidebarWin* pPostIt,const unsigned long aPage ) in AutoScroll() argument
910 if (mPages[aPage-1]->bScrollbar) in AutoScroll()
913 …stIt->GetPosPixel().Y()+pPostIt->GetSizePixel().Height())).Y() <= (mPages[aPage-1]->mPageRect.Bott… in AutoScroll()
914 …EditWin->PixelToLogic(Point(0,pPostIt->GetPosPixel().Y())).Y() >= (mPages[aPage-1]->mPageRect.Top(… in AutoScroll()
917 …const long aDiff = bBottom ? mpEditWin->LogicToPixel(Point(0,mPages[aPage-1]->mPageRect.Top() + aS… in AutoScroll()
918 …mpEditWin->LogicToPixel(Point(0,mPages[aPage-1]->mPageRect.Bottom() - aSidebarheight)).Y() - (pPos… in AutoScroll()
922 Scroll(lScroll, aPage); in AutoScroll()
927 void SwPostItMgr::MakeVisible(const SwSidebarWin* pPostIt,long aPage ) in MakeVisible() argument
929 if (aPage == -1) in MakeVisible()
940 aPage = n+1; in MakeVisible()
947 if (aPage!=-1) in MakeVisible()
948 AutoScroll(pPostIt,aPage); in MakeVisible()
954 bool SwPostItMgr::ArrowEnabled(sal_uInt16 aDirection,unsigned long aPage) const in ArrowEnabled()
960 return (mPages[aPage-1]->lOffset != 0); in ArrowEnabled()
964 return (!BorderOverPageBorder(aPage)); in ArrowEnabled()
970 Color SwPostItMgr::GetArrowColor(sal_uInt16 aDirection,unsigned long aPage) const in GetArrowColor()
972 if (ArrowEnabled(aDirection,aPage)) in GetArrowColor()
1524 bool SwPostItMgr::ShowScrollbar(const unsigned long aPage) const in ShowScrollbar()
1526 if (mPages.size() > aPage-1) in ShowScrollbar()
1527 return (mPages[aPage-1]->bScrollbar && !mbWaitingForCalcRects); in ShowScrollbar()
1560 Rectangle SwPostItMgr::GetBottomScrollRect(const unsigned long aPage) const in GetBottomScrollRect()
1562 SwRect aPageRect = mPages[aPage-1]->mPageRect; in GetBottomScrollRect()
1563 Point aPointBottom = mPages[aPage-1]->eSidebarPosition == sw::sidebarwindows::SIDEBAR_LEFT in GetBottomScrollRect()
1571 Rectangle SwPostItMgr::GetTopScrollRect(const unsigned long aPage) const in GetTopScrollRect()
1573 SwRect aPageRect = mPages[aPage-1]->mPageRect; in GetTopScrollRect()
1574 Point aPointTop = mPages[aPage-1]->eSidebarPosition == sw::sidebarwindows::SIDEBAR_LEFT in GetTopScrollRect()
1583 bool SwPostItMgr::ScrollbarHit(const unsigned long aPage,const Point &aPoint) in ScrollbarHit() argument
1585 SwRect aPageRect = mPages[aPage-1]->mPageRect; in ScrollbarHit()
1586 Point aPointBottom = mPages[aPage-1]->eSidebarPosition == sw::sidebarwindows::SIDEBAR_LEFT in ScrollbarHit()
1590 Point aPointTop = mPages[aPage-1]->eSidebarPosition == sw::sidebarwindows::SIDEBAR_LEFT in ScrollbarHit()
1594 Rectangle aRectBottom(GetBottomScrollRect(aPage)); in ScrollbarHit()
1595 Rectangle aRectTop(GetTopScrollRect(aPage)); in ScrollbarHit()
1600 Scroll( GetScrollSize(),aPage); in ScrollbarHit()
1602 Scroll( -1*GetScrollSize(), aPage); in ScrollbarHit()
1609 Scroll(GetScrollSize(), aPage); in ScrollbarHit()
1611 Scroll(-1*GetScrollSize(), aPage); in ScrollbarHit()