diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-12 11:34:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-12 11:41:36 +0200 |
commit | cbd4266beff52cf210f1532b50f8bab74cb8ba8c (patch) | |
tree | 4f0b2c67f1cacfa67b8626b1060e488891e48564 /sw/source/core/doc/DocumentStylePoolManager.cxx | |
parent | 8ee31c5aac07a28a8208b4c2ca62025f3dafbb35 (diff) |
convert PD_ constants to typed_flags
Change-Id: Ia651dfae33cb1e901f124541a1e12f240d4a7458
Diffstat (limited to 'sw/source/core/doc/DocumentStylePoolManager.cxx')
-rw-r--r-- | sw/source/core/doc/DocumentStylePoolManager.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/core/doc/DocumentStylePoolManager.cxx b/sw/source/core/doc/DocumentStylePoolManager.cxx index cffded83b77e..5e1f71b6c446 100644 --- a/sw/source/core/doc/DocumentStylePoolManager.cxx +++ b/sw/source/core/doc/DocumentStylePoolManager.cxx @@ -1428,7 +1428,7 @@ SwPageDesc* DocumentStylePoolManager::GetPageDescFromPool( sal_uInt16 nId, bool { aSet.Put( aLR ); aSet.Put( aUL ); - pNewPgDsc->SetUseOn( nsUseOnPage::PD_ALL | nsUseOnPage::PD_FIRSTSHARE ); + pNewPgDsc->SetUseOn( UseOnPage::All | UseOnPage::FirstShare ); } break; @@ -1438,7 +1438,7 @@ SwPageDesc* DocumentStylePoolManager::GetPageDescFromPool( sal_uInt16 nId, bool lcl_PutStdPageSizeIntoItemSet( &m_rDoc, aSet ); aSet.Put( aLR ); aSet.Put( aUL ); - pNewPgDsc->SetUseOn( nsUseOnPage::PD_ALL ); + pNewPgDsc->SetUseOn( UseOnPage::All ); if( RES_POOLPAGE_FIRST == nId ) pNewPgDsc->SetFollow( GetPageDescFromPool( RES_POOLPAGE_STANDARD )); } @@ -1450,7 +1450,7 @@ SwPageDesc* DocumentStylePoolManager::GetPageDescFromPool( sal_uInt16 nId, bool aSet.Put( aLR ); aSet.Put( aUL ); bSetLeft = false; - pNewPgDsc->SetUseOn( nsUseOnPage::PD_LEFT ); + pNewPgDsc->SetUseOn( UseOnPage::Left ); // this relies on GetPageDescFromPool() not going into infinite recursion // (by this point RES_POOLPAGE_LEFT will not reach this place again) pNewPgDsc->SetFollow( GetPageDescFromPool( RES_POOLPAGE_RIGHT )); @@ -1462,7 +1462,7 @@ SwPageDesc* DocumentStylePoolManager::GetPageDescFromPool( sal_uInt16 nId, bool aSet.Put( aLR ); aSet.Put( aUL ); bSetLeft = false; - pNewPgDsc->SetUseOn( nsUseOnPage::PD_RIGHT ); + pNewPgDsc->SetUseOn( UseOnPage::Right ); pNewPgDsc->SetFollow( GetPageDescFromPool( RES_POOLPAGE_LEFT )); } break; @@ -1477,7 +1477,7 @@ SwPageDesc* DocumentStylePoolManager::GetPageDescFromPool( sal_uInt16 nId, bool aSet.Put( aLR ); aSet.Put( aUL ); - pNewPgDsc->SetUseOn( nsUseOnPage::PD_ALL ); + pNewPgDsc->SetUseOn( UseOnPage::All ); pNewPgDsc->SetLandscape( true ); } break; @@ -1491,7 +1491,7 @@ SwPageDesc* DocumentStylePoolManager::GetPageDescFromPool( sal_uInt16 nId, bool aSet.Put( aLR ); aSet.Put( aUL ); - pNewPgDsc->SetUseOn( nsUseOnPage::PD_ALL ); + pNewPgDsc->SetUseOn( UseOnPage::All ); } break; @@ -1501,7 +1501,7 @@ SwPageDesc* DocumentStylePoolManager::GetPageDescFromPool( sal_uInt16 nId, bool lcl_PutStdPageSizeIntoItemSet( &m_rDoc, aSet ); aSet.Put( aLR ); aSet.Put( aUL ); - pNewPgDsc->SetUseOn( nsUseOnPage::PD_ALL ); + pNewPgDsc->SetUseOn( UseOnPage::All ); SwPageFootnoteInfo aInf( pNewPgDsc->GetFootnoteInfo() ); aInf.SetLineWidth( 0 ); aInf.SetTopDist( 0 ); @@ -1523,7 +1523,7 @@ SwPageDesc* DocumentStylePoolManager::GetPageDescFromPool( sal_uInt16 nId, bool aSet.Put( aFrameSz ); aSet.Put( aLR ); aSet.Put( aUL ); - pNewPgDsc->SetUseOn( nsUseOnPage::PD_ALL ); + pNewPgDsc->SetUseOn( UseOnPage::All ); pNewPgDsc->SetLandscape( true ); } break; |