Kaydet (Commit) fa0f42ba authored tarafından Miklos Vajna's avatar Miklos Vajna

SwPageDesc: add GetFirstFmt methods

Change-Id: Id0e1185950446d0c9b7159a406315540956baed1
üst 3dc420a6
...@@ -127,8 +127,9 @@ namespace nsUseOnPage ...@@ -127,8 +127,9 @@ namespace nsUseOnPage
const UseOnPage PD_NONE = 0x0000; // For internal use only. const UseOnPage PD_NONE = 0x0000; // For internal use only.
const UseOnPage PD_LEFT = 0x0001; const UseOnPage PD_LEFT = 0x0001;
const UseOnPage PD_RIGHT = 0x0002; const UseOnPage PD_RIGHT = 0x0002;
const UseOnPage PD_ALL = 0x0003; const UseOnPage PD_FIRST = 0x0004;
const UseOnPage PD_MIRROR = 0x0007; const UseOnPage PD_ALL = 0x0007;
const UseOnPage PD_MIRROR = 0x000F;
const UseOnPage PD_HEADERSHARE = 0x0040; const UseOnPage PD_HEADERSHARE = 0x0040;
const UseOnPage PD_FOOTERSHARE = 0x0080; const UseOnPage PD_FOOTERSHARE = 0x0080;
const UseOnPage PD_NOHEADERSHARE = 0x00BF; // For internal use only. const UseOnPage PD_NOHEADERSHARE = 0x00BF; // For internal use only.
...@@ -217,6 +218,8 @@ public: ...@@ -217,6 +218,8 @@ public:
inline const SwFrmFmt *GetRightFmt() const; inline const SwFrmFmt *GetRightFmt() const;
inline SwFrmFmt *GetLeftFmt(); inline SwFrmFmt *GetLeftFmt();
inline const SwFrmFmt *GetLeftFmt() const; inline const SwFrmFmt *GetLeftFmt() const;
inline SwFrmFmt *GetFirstFmt();
inline const SwFrmFmt *GetFirstFmt() const;
sal_uInt16 GetRegHeight() const { return nRegHeight; } sal_uInt16 GetRegHeight() const { return nRegHeight; }
sal_uInt16 GetRegAscent() const { return nRegAscent; } sal_uInt16 GetRegAscent() const { return nRegAscent; }
...@@ -326,6 +329,14 @@ inline const SwFrmFmt *SwPageDesc::GetLeftFmt() const ...@@ -326,6 +329,14 @@ inline const SwFrmFmt *SwPageDesc::GetLeftFmt() const
{ {
return nsUseOnPage::PD_LEFT & eUse ? &aLeft : 0; 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 class SwPageDescExt
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment