From bb1a225066bc5a57f5a194e6f4dfd585a6d5a30e Mon Sep 17 00:00:00 2001 From: Oliver-Rainer Wittmann Date: Tue, 19 Jan 2010 08:57:57 +0100 Subject: sw33a11y01: #i88070# classes and - minor refactoring --- sw/inc/postithelper.hxx | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) (limited to 'sw/inc/postithelper.hxx') diff --git a/sw/inc/postithelper.hxx b/sw/inc/postithelper.hxx index 56ebe94228e2..5d9d58ed75d7 100644 --- a/sw/inc/postithelper.hxx +++ b/sw/inc/postithelper.hxx @@ -54,12 +54,23 @@ typedef sal_Int64 SwPostItBits; struct SwLayoutInfo { + SwFrm* mpAssociatedFrm; SwRect mPosition; SwRect mPageFrame; SwRect mPagePrtArea; unsigned long mnPageNumber; sw::sidebarwindows::SidebarPosition meSidebarPosition; USHORT mRedlineAuthor; + + SwLayoutInfo() + : mpAssociatedFrm(0) + , mPosition() + , mPageFrame() + , mPagePrtArea() + , mnPageNumber(1) + , meSidebarPosition(sw::sidebarwindows::SIDEBAR_NONE) + , mRedlineAuthor(0) + {} }; namespace SwPostItHelper @@ -82,22 +93,17 @@ public: sw::sidebarwindows::SwSidebarWin* pPostIt; bool bShow; bool bFocus; - sw::sidebarwindows::SidebarPosition meSidebarPosition; - SwRect mPos; - SwRect mFramePos; - SwRect mPagePos; - unsigned long mnPageNumber; + SwPostItHelper::SwLayoutStatus mLayoutStatus; - USHORT mRedlineAuthor; + SwLayoutInfo maLayoutInfo; + SwSidebarItem( const bool aShow, const bool aFocus) - : pPostIt(0), - bShow(aShow), - bFocus(aFocus), - meSidebarPosition(sw::sidebarwindows::SIDEBAR_NONE), - mnPageNumber(1), - mLayoutStatus( SwPostItHelper::INVISIBLE ), - mRedlineAuthor(0) + : pPostIt(0) + , bShow(aShow) + , bFocus(aFocus) + , mLayoutStatus( SwPostItHelper::INVISIBLE ) + , maLayoutInfo() {} virtual ~SwSidebarItem(){} virtual SwPosition GetPosition() = 0; -- cgit