Kaydet (Commit) bfb681f8 authored tarafından Miklos Vajna's avatar Miklos Vajna Kaydeden (comit) Andras Timar

sw: outline SwViewShellImp::GetFirstVisPage() methods

Change-Id: Ib506b912752a16c514958896aa16b310f8e09200
(cherry picked from commit 7b632947)
üst 22547a9b
...@@ -146,8 +146,8 @@ public: ...@@ -146,8 +146,8 @@ public:
Color GetRetoucheColor() const; Color GetRetoucheColor() const;
/// Management of the first visible Page /// Management of the first visible Page
inline const SwPageFrm *GetFirstVisPage() const; const SwPageFrm *GetFirstVisPage() const;
inline SwPageFrm *GetFirstVisPage(); SwPageFrm *GetFirstVisPage();
void SetFirstVisPageInvalid() { bFirstPageInvalid = true; } void SetFirstVisPageInvalid() { bFirstPageInvalid = true; }
bool AddPaintRect( const SwRect &rRect ); bool AddPaintRect( const SwRect &rRect );
...@@ -272,20 +272,6 @@ public: ...@@ -272,20 +272,6 @@ public:
void FireAccessibleEvents(); void FireAccessibleEvents();
}; };
inline SwPageFrm *SwViewShellImp::GetFirstVisPage()
{
if ( bFirstPageInvalid )
SetFirstVisPage();
return pFirstVisPage;
}
inline const SwPageFrm *SwViewShellImp::GetFirstVisPage() const
{
if ( bFirstPageInvalid )
const_cast<SwViewShellImp*>(this)->SetFirstVisPage();
return pFirstVisPage;
}
inline SwAccessibleMap& SwViewShellImp::GetAccessibleMap() inline SwAccessibleMap& SwViewShellImp::GetAccessibleMap()
{ {
if( !pAccMap ) if( !pAccMap )
......
...@@ -270,6 +270,20 @@ Color SwViewShellImp::GetRetoucheColor() const ...@@ -270,6 +270,20 @@ Color SwViewShellImp::GetRetoucheColor() const
return aRet; return aRet;
} }
SwPageFrm *SwViewShellImp::GetFirstVisPage()
{
if ( bFirstPageInvalid )
SetFirstVisPage();
return pFirstVisPage;
}
const SwPageFrm *SwViewShellImp::GetFirstVisPage() const
{
if ( bFirstPageInvalid )
const_cast<SwViewShellImp*>(this)->SetFirstVisPage();
return pFirstVisPage;
}
// create page preview layout // create page preview layout
void SwViewShellImp::InitPagePreviewLayout() void SwViewShellImp::InitPagePreviewLayout()
{ {
......
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