summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/outlnvsh.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-10 14:12:10 +0200
committerNoel Grandin <noel@peralex.com>2015-04-13 09:37:13 +0200
commit593515e529d75f08f4d3766dac78b1792aea4be4 (patch)
treea82b7d8b52106727304b092273e3b8cc7c9175d0 /sd/source/ui/view/outlnvsh.cxx
parentee094bd46f55118993c72af719dc046476f9f311 (diff)
loplugin:staticmethods
Change-Id: I332d3b3158b46cf130540c6e1479dd01cb457d03
Diffstat (limited to 'sd/source/ui/view/outlnvsh.cxx')
-rw-r--r--sd/source/ui/view/outlnvsh.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/sd/source/ui/view/outlnvsh.cxx b/sd/source/ui/view/outlnvsh.cxx
index 4c6c1fb996cd..850a9f99fbc9 100644
--- a/sd/source/ui/view/outlnvsh.cxx
+++ b/sd/source/ui/view/outlnvsh.cxx
@@ -810,7 +810,7 @@ void OutlineViewShell::GetMenuState( SfxItemSet &rSet )
sal_Int16 nDepth;
sal_Int16 nTmpDepth = rOutl.GetDepth( rOutl.GetAbsPos( pPara ) );
- bool bPage = rOutl.HasParaFlag( pPara, ParaFlag::ISPAGE );
+ bool bPage = ::Outliner::HasParaFlag( pPara, ParaFlag::ISPAGE );
while (iter != aSelList.begin())
{
@@ -818,7 +818,7 @@ void OutlineViewShell::GetMenuState( SfxItemSet &rSet )
nDepth = rOutl.GetDepth( rOutl.GetAbsPos( pPara ) );
- if( nDepth != nTmpDepth || bPage != rOutl.HasParaFlag( pPara, ParaFlag::ISPAGE ))
+ if( nDepth != nTmpDepth || bPage != ::Outliner::HasParaFlag( pPara, ParaFlag::ISPAGE ))
bUnique = false;
if (rOutl.HasChildren(pPara))
@@ -1310,7 +1310,6 @@ void OutlineViewShell::GetStatusBarState(SfxItemSet& rSet)
::sd::Window* pWin = GetActiveWindow();
OutlinerView* pActiveView = pOlView->GetViewByWindow( pWin );
- ::Outliner& rOutliner = pOlView->GetOutliner();
std::vector<Paragraph*> aSelList;
pActiveView->CreateSelectionList(aSelList);
@@ -1324,10 +1323,10 @@ void OutlineViewShell::GetStatusBarState(SfxItemSet& rSet)
pLastPara = *(aSelList.rbegin());
}
- if( !rOutliner.HasParaFlag(pFirstPara,ParaFlag::ISPAGE) )
+ if( !::Outliner::HasParaFlag(pFirstPara,ParaFlag::ISPAGE) )
pFirstPara = pOlView->GetPrevTitle( pFirstPara );
- if( !rOutliner.HasParaFlag(pLastPara, ParaFlag::ISPAGE) )
+ if( !::Outliner::HasParaFlag(pLastPara, ParaFlag::ISPAGE) )
pLastPara = pOlView->GetPrevTitle( pLastPara );
// only one page selected?
@@ -1689,7 +1688,7 @@ bool OutlineViewShell::UpdateOutlineObject( SdPage* pPage, Paragraph* pPara )
sal_Int32 nPara = nTitlePara + 1;
sal_Int32 nParasInLayout = 0L;
pPara = rOutliner.GetParagraph( nPara );
- while( pPara && !rOutliner.HasParaFlag(pPara, ParaFlag::ISPAGE) )
+ while( pPara && !::Outliner::HasParaFlag(pPara, ParaFlag::ISPAGE) )
{
nParasInLayout++;
pPara = rOutliner.GetParagraph( ++nPara );