summaryrefslogtreecommitdiff
path: root/sw/source/core/uibase/docvw/PostItMgr.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-15 09:42:32 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-16 11:16:05 +0100
commiteb1c0480050a1328287c4a85468afbec50b0e29d (patch)
tree044b94745a027b1620ebb5320731275dc86e7b18 /sw/source/core/uibase/docvw/PostItMgr.cxx
parent253ffdf2b0c22247e6208e0881838b1896c63116 (diff)
Resolves: fdo#36815 enable printing WYSIWYG sidewindow comments
in order for that to happen the document has to be scaled down so that the comments outside the border of the sheet of paper can be brought inside the printable area Change-Id: Ifafb8eec10a4ea3ea0014097728888603e61e5a4
Diffstat (limited to 'sw/source/core/uibase/docvw/PostItMgr.cxx')
-rw-r--r--sw/source/core/uibase/docvw/PostItMgr.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/sw/source/core/uibase/docvw/PostItMgr.cxx b/sw/source/core/uibase/docvw/PostItMgr.cxx
index 4193ad61c7e3..e63ce8b7b2cf 100644
--- a/sw/source/core/uibase/docvw/PostItMgr.cxx
+++ b/sw/source/core/uibase/docvw/PostItMgr.cxx
@@ -823,6 +823,22 @@ bool SwPostItMgr::BorderOverPageBorder(unsigned long aPage) const
return false;
}
+void SwPostItMgr::DrawNotesForPage(OutputDevice *pOutDev, sal_uInt32 nPage)
+{
+ assert(nPage < mPages.size());
+ if (nPage >= mPages.size())
+ return;
+ for(SwSidebarItem_iterator i = mPages[nPage]->mList->begin(); i != mPages[nPage]->mList->end(); ++i)
+ {
+ SwSidebarWin* pPostIt = (*i)->pPostIt;
+ if (!pPostIt)
+ continue;
+ Point aPoint(mpEditWin->PixelToLogic(pPostIt->GetPosPixel()));
+ Size aSize(pPostIt->PixelToLogic(pPostIt->GetSizePixel()));
+ pPostIt->Draw(pOutDev, aPoint, aSize, 0);
+ }
+}
+
void SwPostItMgr::Scroll(const long lScroll,const unsigned long aPage)
{
OSL_ENSURE((lScroll % GetScrollSize() )==0,"SwPostItMgr::Scroll: scrolling by wrong value");