Lines Matching refs:aPage

832 bool SwPostItMgr::BorderOverPageBorder(unsigned long aPage) const  in BorderOverPageBorder()
834 if ( mPages[aPage-1]->mList->empty() ) in BorderOverPageBorder()
840 SwSidebarItem_iterator aItem = mPages[aPage-1]->mList->end(); in BorderOverPageBorder()
845 …const long aSidebarheight = mPages[aPage-1]->bScrollbar ? mpEditWin->PixelToLogic(Size(0,GetSideba… in BorderOverPageBorder()
847 return aEndValue <= mPages[aPage-1]->mPageRect.Bottom()-aSidebarheight; in BorderOverPageBorder()
853 void SwPostItMgr::Scroll(const long lScroll,const unsigned long aPage) in Scroll() argument
857 …if ( ((mPages[aPage-1]->lOffset == 0) && (lScroll>0)) || ( BorderOverPageBorder(aPage) && (lScroll… in Scroll()
860 const bool bOldUp = ArrowEnabled(KEY_PAGEUP,aPage); in Scroll()
861 const bool bOldDown = ArrowEnabled(KEY_PAGEDOWN,aPage); in Scroll()
863 …for(SwSidebarItem_iterator i = mPages[aPage-1]->mList->begin(); i!= mPages[aPage-1]->mList->end();… in Scroll()
872 …PostIt->VirtualPos().Y()+pPostIt->VirtualSize().Height())).Y() <= (mPages[aPage-1]->mPageRect.Bott… in Scroll()
873 …bool bTop = mpEditWin->PixelToLogic(Point(0,pPostIt->VirtualPos().Y())).Y() >= (mPages[aPage-1]->… in Scroll()
880 …if ( mpEditWin->PixelToLogic(Point(0,pPostIt->VirtualPos().Y())).Y() < (mPages[aPage-1]->mPageRect… in Scroll()
882 if (mPages[aPage-1]->eSidebarPosition == sw::sidebarwindows::SIDEBAR_LEFT) in Scroll()
883 …pPostIt->ShowAnchorOnly(Point(mPages[aPage-1]->mPageRect.Left(),mPages[aPage-1]->mPageRect.Top())); in Scroll()
884 else if (mPages[aPage-1]->eSidebarPosition == sw::sidebarwindows::SIDEBAR_RIGHT) in Scroll()
885 …pPostIt->ShowAnchorOnly(Point(mPages[aPage-1]->mPageRect.Right(),mPages[aPage-1]->mPageRect.Top())… in Scroll()
889 if (mPages[aPage-1]->eSidebarPosition == sw::sidebarwindows::SIDEBAR_LEFT) in Scroll()
890 …pPostIt->ShowAnchorOnly(Point(mPages[aPage-1]->mPageRect.Left(),mPages[aPage-1]->mPageRect.Bottom(… in Scroll()
891 else if (mPages[aPage-1]->eSidebarPosition == sw::sidebarwindows::SIDEBAR_RIGHT) in Scroll()
892 …pPostIt->ShowAnchorOnly(Point(mPages[aPage-1]->mPageRect.Right(),mPages[aPage-1]->mPageRect.Bottom… in Scroll()
897 mPages[aPage-1]->lOffset += lScroll; in Scroll()
898 if ( (bOldUp != ArrowEnabled(KEY_PAGEUP,aPage)) ||(bOldDown != ArrowEnabled(KEY_PAGEDOWN,aPage)) ) in Scroll()
900 mpEditWin->Invalidate(GetBottomScrollRect(aPage)); in Scroll()
901 mpEditWin->Invalidate(GetTopScrollRect(aPage)); in Scroll()
905 void SwPostItMgr::AutoScroll(const SwSidebarWin* pPostIt,const unsigned long aPage ) in AutoScroll() argument
908 if (mPages[aPage-1]->bScrollbar) in AutoScroll()
911 …stIt->GetPosPixel().Y()+pPostIt->GetSizePixel().Height())).Y() <= (mPages[aPage-1]->mPageRect.Bott… in AutoScroll()
912 …EditWin->PixelToLogic(Point(0,pPostIt->GetPosPixel().Y())).Y() >= (mPages[aPage-1]->mPageRect.Top(… in AutoScroll()
915 …const long aDiff = bBottom ? mpEditWin->LogicToPixel(Point(0,mPages[aPage-1]->mPageRect.Top() + aS… in AutoScroll()
916 …mpEditWin->LogicToPixel(Point(0,mPages[aPage-1]->mPageRect.Bottom() - aSidebarheight)).Y() - (pPos… in AutoScroll()
920 Scroll(lScroll, aPage); in AutoScroll()
925 void SwPostItMgr::MakeVisible(const SwSidebarWin* pPostIt,long aPage ) in MakeVisible() argument
927 if (aPage == -1) in MakeVisible()
938 aPage = n+1; in MakeVisible()
945 if (aPage!=-1) in MakeVisible()
946 AutoScroll(pPostIt,aPage); in MakeVisible()
952 bool SwPostItMgr::ArrowEnabled(sal_uInt16 aDirection,unsigned long aPage) const in ArrowEnabled()
958 return (mPages[aPage-1]->lOffset != 0); in ArrowEnabled()
962 return (!BorderOverPageBorder(aPage)); in ArrowEnabled()
968 Color SwPostItMgr::GetArrowColor(sal_uInt16 aDirection,unsigned long aPage) const in GetArrowColor()
970 if (ArrowEnabled(aDirection,aPage)) in GetArrowColor()
1522 bool SwPostItMgr::ShowScrollbar(const unsigned long aPage) const in ShowScrollbar()
1524 if (mPages.size() > aPage-1) in ShowScrollbar()
1525 return (mPages[aPage-1]->bScrollbar && !mbWaitingForCalcRects); in ShowScrollbar()
1558 Rectangle SwPostItMgr::GetBottomScrollRect(const unsigned long aPage) const in GetBottomScrollRect()
1560 SwRect aPageRect = mPages[aPage-1]->mPageRect; in GetBottomScrollRect()
1561 Point aPointBottom = mPages[aPage-1]->eSidebarPosition == sw::sidebarwindows::SIDEBAR_LEFT in GetBottomScrollRect()
1569 Rectangle SwPostItMgr::GetTopScrollRect(const unsigned long aPage) const in GetTopScrollRect()
1571 SwRect aPageRect = mPages[aPage-1]->mPageRect; in GetTopScrollRect()
1572 Point aPointTop = mPages[aPage-1]->eSidebarPosition == sw::sidebarwindows::SIDEBAR_LEFT in GetTopScrollRect()
1581 bool SwPostItMgr::ScrollbarHit(const unsigned long aPage,const Point &aPoint) in ScrollbarHit() argument
1583 SwRect aPageRect = mPages[aPage-1]->mPageRect; in ScrollbarHit()
1584 Point aPointBottom = mPages[aPage-1]->eSidebarPosition == sw::sidebarwindows::SIDEBAR_LEFT in ScrollbarHit()
1588 Point aPointTop = mPages[aPage-1]->eSidebarPosition == sw::sidebarwindows::SIDEBAR_LEFT in ScrollbarHit()
1592 Rectangle aRectBottom(GetBottomScrollRect(aPage)); in ScrollbarHit()
1593 Rectangle aRectTop(GetTopScrollRect(aPage)); in ScrollbarHit()
1598 Scroll( GetScrollSize(),aPage); in ScrollbarHit()
1600 Scroll( -1*GetScrollSize(), aPage); in ScrollbarHit()
1607 Scroll(GetScrollSize(), aPage); in ScrollbarHit()
1609 Scroll(-1*GetScrollSize(), aPage); in ScrollbarHit()