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:
Color GetRetoucheColor() const;
/// Management of the first visible Page
inline const SwPageFrm *GetFirstVisPage() const;
inline SwPageFrm *GetFirstVisPage();
const SwPageFrm *GetFirstVisPage() const;
SwPageFrm *GetFirstVisPage();
void SetFirstVisPageInvalid() { bFirstPageInvalid = true; }
bool AddPaintRect( const SwRect &rRect );
......@@ -272,20 +272,6 @@ public:
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()
{
if( !pAccMap )
......
......@@ -270,6 +270,20 @@ Color SwViewShellImp::GetRetoucheColor() const
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
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