From fa0f42bafbf24e9141ddee728b160b5ab47077f2 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 3 Jul 2012 11:41:13 +0200 Subject: SwPageDesc: add GetFirstFmt methods Change-Id: Id0e1185950446d0c9b7159a406315540956baed1 --- sw/inc/pagedesc.hxx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'sw') diff --git a/sw/inc/pagedesc.hxx b/sw/inc/pagedesc.hxx index 08e55c025d7b..be9073cdcd79 100644 --- a/sw/inc/pagedesc.hxx +++ b/sw/inc/pagedesc.hxx @@ -127,8 +127,9 @@ namespace nsUseOnPage const UseOnPage PD_NONE = 0x0000; // For internal use only. const UseOnPage PD_LEFT = 0x0001; const UseOnPage PD_RIGHT = 0x0002; - const UseOnPage PD_ALL = 0x0003; - const UseOnPage PD_MIRROR = 0x0007; + const UseOnPage PD_FIRST = 0x0004; + const UseOnPage PD_ALL = 0x0007; + const UseOnPage PD_MIRROR = 0x000F; const UseOnPage PD_HEADERSHARE = 0x0040; const UseOnPage PD_FOOTERSHARE = 0x0080; const UseOnPage PD_NOHEADERSHARE = 0x00BF; // For internal use only. @@ -217,6 +218,8 @@ public: inline const SwFrmFmt *GetRightFmt() const; inline SwFrmFmt *GetLeftFmt(); inline const SwFrmFmt *GetLeftFmt() const; + inline SwFrmFmt *GetFirstFmt(); + inline const SwFrmFmt *GetFirstFmt() const; sal_uInt16 GetRegHeight() const { return nRegHeight; } sal_uInt16 GetRegAscent() const { return nRegAscent; } @@ -326,6 +329,14 @@ inline const SwFrmFmt *SwPageDesc::GetLeftFmt() const { return nsUseOnPage::PD_LEFT & eUse ? &aLeft : 0; } +inline SwFrmFmt *SwPageDesc::GetFirstFmt() +{ + return nsUseOnPage::PD_FIRST & eUse ? &aFirst : 0; +} +inline const SwFrmFmt *SwPageDesc::GetFirstFmt() const +{ + return nsUseOnPage::PD_FIRST & eUse ? &aFirst : 0; +} class SwPageDescExt { -- cgit