summaryrefslogtreecommitdiff
path: root/sw/inc/postithelper.hxx
diff options
context:
space:
mode:
authorOliver-Rainer Wittmann <od@openoffice.org>2010-01-19 08:57:57 +0100
committerOliver-Rainer Wittmann <od@openoffice.org>2010-01-19 08:57:57 +0100
commitbb1a225066bc5a57f5a194e6f4dfd585a6d5a30e (patch)
tree98db82aa078d78b8b049cba8bae7dded4fd1aa13 /sw/inc/postithelper.hxx
parentfa9e08d540d9221d7b86c558016edf2e08381d9b (diff)
sw33a11y01: #i88070# classes <SwPostItMgr> and <SwPostItHelper> - minor refactoring
Diffstat (limited to 'sw/inc/postithelper.hxx')
-rw-r--r--sw/inc/postithelper.hxx32
1 files changed, 19 insertions, 13 deletions
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;