summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-07-03 11:41:13 +0200
committerMiklos Vajna <vmiklos@suse.cz>2012-07-03 14:13:25 +0200
commitfa0f42bafbf24e9141ddee728b160b5ab47077f2 (patch)
tree633b8abf07c56f02a2f5feb89fd92b878d94b25e /sw
parent3dc420a6a3e2a47aa80f382cdd0e9c66b2fb6630 (diff)
SwPageDesc: add GetFirstFmt methods
Change-Id: Id0e1185950446d0c9b7159a406315540956baed1
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/pagedesc.hxx15
1 files changed, 13 insertions, 2 deletions
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
{