diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-09-10 15:16:04 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-09-10 16:37:19 +0200 |
commit | a8d59b7f3e361538ad5409b9faa6c6ebca60ff59 (patch) | |
tree | fbe060d9efbc0145e21af959442a9e48ef69cfd1 /editeng/source | |
parent | 084ec901d53dfcbdf61b256a71c4f722d1c2bbe5 (diff) |
Replace uses of old SFX_ITEM_OFF alias with SFX_ITEM_DEFAULT
Change-Id: Ic8751562e4dbfa5b6be903d87d369a750d305495
Diffstat (limited to 'editeng/source')
-rw-r--r-- | editeng/source/editeng/editdbg.cxx | 2 | ||||
-rw-r--r-- | editeng/source/editeng/editdoc.cxx | 4 | ||||
-rw-r--r-- | editeng/source/editeng/impedit5.cxx | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/editeng/source/editeng/editdbg.cxx b/editeng/source/editeng/editdbg.cxx index 8703a6a1ed6b..a6a6c7acd2f8 100644 --- a/editeng/source/editeng/editdbg.cxx +++ b/editeng/source/editeng/editdbg.cxx @@ -300,7 +300,7 @@ void DbgOutItemSet( FILE* fp, const SfxItemSet& rSet, bool bSearchInParent, bool for ( sal_uInt16 nWhich = EE_PARA_START; nWhich <= EE_CHAR_END; nWhich++ ) { fprintf( fp, "\nWhich: %i\t", nWhich ); - if ( rSet.GetItemState( nWhich, bSearchInParent ) == SFX_ITEM_OFF ) + if ( rSet.GetItemState( nWhich, bSearchInParent ) == SFX_ITEM_DEFAULT ) fprintf( fp, "ITEM_OFF " ); else if ( rSet.GetItemState( nWhich, bSearchInParent ) == SFX_ITEM_DONTCARE ) fprintf( fp, "ITEM_DC " ); diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx index fb3820871041..03662ade8238 100644 --- a/editeng/source/editeng/editdoc.cxx +++ b/editeng/source/editeng/editdoc.cxx @@ -2621,7 +2621,7 @@ void EditDoc::FindAttribs( ContentNode* pNode, sal_Int32 nStartPos, sal_Int32 nE if ( pItem ) { sal_uInt16 nWhich = pItem->Which(); - if ( rCurSet.GetItemState( nWhich ) == SFX_ITEM_OFF ) + if ( rCurSet.GetItemState( nWhich ) == SFX_ITEM_DEFAULT ) { rCurSet.Put( *pItem ); } @@ -2671,7 +2671,7 @@ void EditDoc::FindAttribs( ContentNode* pNode, sal_Int32 nStartPos, sal_Int32 nE if ( pItem ) { sal_uInt16 nWhich = pItem->Which(); - if ( rCurSet.GetItemState( nWhich ) == SFX_ITEM_OFF ) + if ( rCurSet.GetItemState( nWhich ) == SFX_ITEM_DEFAULT ) { rCurSet.Put( *pItem ); } diff --git a/editeng/source/editeng/impedit5.cxx b/editeng/source/editeng/impedit5.cxx index 3e1a59909d95..66ca5a47c25f 100644 --- a/editeng/source/editeng/impedit5.cxx +++ b/editeng/source/editeng/impedit5.cxx @@ -335,7 +335,7 @@ SfxItemSet ImpEditEngine::GetAttribs( EditSelection aSel, EditEngineAttribs nOnl // and then paragraph formatting and template... for ( sal_uInt16 nWhich = EE_ITEMS_START; nWhich <= EE_CHAR_END; nWhich++) { - if ( aCurSet.GetItemState( nWhich ) == SFX_ITEM_OFF ) + if ( aCurSet.GetItemState( nWhich ) == SFX_ITEM_DEFAULT ) { if ( nOnlyHardAttrib == EditEngineAttribs_All ) { @@ -381,7 +381,7 @@ SfxItemSet ImpEditEngine::GetAttribs( EditSelection aSel, EditEngineAttribs nOnl { for ( sal_uInt16 nWhich = EE_ITEMS_START; nWhich <= EE_CHAR_END; nWhich++ ) { - if ( aCurSet.GetItemState( nWhich ) == SFX_ITEM_OFF ) + if ( aCurSet.GetItemState( nWhich ) == SFX_ITEM_DEFAULT ) { aCurSet.Put( aEditDoc.GetItemPool().GetDefaultItem( nWhich ) ); } |