diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-12-10 16:14:25 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-12-11 14:17:53 +0100 |
commit | 2579895f2c18fd7d606715f91b1463900f6d6937 (patch) | |
tree | c264aaa33baf77807523cd76316f70b8f6d46a98 /sc/source/ui/unoobj | |
parent | d87f6fd46dcb4f1e043877014330c11084c43c4e (diff) |
Related: tdf#129300 add ScVerticalStackCell to provide a description
Change-Id: I8ed99f19ff6f4751c0867147fc1a60ac917f083b
Reviewed-on: https://gerrit.libreoffice.org/84876
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/unoobj')
-rw-r--r-- | sc/source/ui/unoobj/afmtuno.cxx | 10 | ||||
-rw-r--r-- | sc/source/ui/unoobj/cellsuno.cxx | 10 | ||||
-rw-r--r-- | sc/source/ui/unoobj/styleuno.cxx | 10 |
3 files changed, 15 insertions, 15 deletions
diff --git a/sc/source/ui/unoobj/afmtuno.cxx b/sc/source/ui/unoobj/afmtuno.cxx index 0bd7b7baf669..1c637d2cd480 100644 --- a/sc/source/ui/unoobj/afmtuno.cxx +++ b/sc/source/ui/unoobj/afmtuno.cxx @@ -592,18 +592,18 @@ void SAL_CALL ScAutoFormatFieldObj::setPropertyValue( switch( eOrient ) { case table::CellOrientation_STANDARD: - pData->PutItem( nFieldIndex, SfxBoolItem( ATTR_STACKED, false ) ); + pData->PutItem( nFieldIndex, ScVerticalStackCell( false ) ); break; case table::CellOrientation_TOPBOTTOM: - pData->PutItem( nFieldIndex, SfxBoolItem( ATTR_STACKED, false ) ); + pData->PutItem( nFieldIndex, ScVerticalStackCell( false ) ); pData->PutItem( nFieldIndex, ScRotateValueItem( 27000 ) ); break; case table::CellOrientation_BOTTOMTOP: - pData->PutItem( nFieldIndex, SfxBoolItem( ATTR_STACKED, false ) ); + pData->PutItem( nFieldIndex, ScVerticalStackCell( false ) ); pData->PutItem( nFieldIndex, ScRotateValueItem( 9000 ) ); break; case table::CellOrientation_STACKED: - pData->PutItem( nFieldIndex, SfxBoolItem( ATTR_STACKED, true ) ); + pData->PutItem( nFieldIndex, ScVerticalStackCell( true ) ); break; default: { @@ -688,7 +688,7 @@ uno::Any SAL_CALL ScAutoFormatFieldObj::getPropertyValue( const OUString& aPrope { const ScRotateValueItem* pRotItem = pData->GetItem( nFieldIndex, ATTR_ROTATE_VALUE ); sal_Int32 nRot = pRotItem ? pRotItem->GetValue() : 0; - bool bStacked = static_cast<const SfxBoolItem*>(pItem)->GetValue(); + bool bStacked = static_cast<const ScVerticalStackCell*>(pItem)->GetValue(); SvxOrientationItem( nRot, bStacked, 0 ).QueryValue( aVal ); } break; diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index 676ab2bd4fe6..a5ffd152b5e0 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -2124,20 +2124,20 @@ static void lcl_SetCellProperty( const SfxItemPropertySimpleEntry& rEntry, const switch( eOrient ) { case table::CellOrientation_STANDARD: - rSet.Put( SfxBoolItem( ATTR_STACKED, false ) ); + rSet.Put( ScVerticalStackCell( false ) ); break; case table::CellOrientation_TOPBOTTOM: - rSet.Put( SfxBoolItem( ATTR_STACKED, false ) ); + rSet.Put( ScVerticalStackCell( false ) ); rSet.Put( ScRotateValueItem( 27000 ) ); rSecondItemId = ATTR_ROTATE_VALUE; break; case table::CellOrientation_BOTTOMTOP: - rSet.Put( SfxBoolItem( ATTR_STACKED, false ) ); + rSet.Put( ScVerticalStackCell( false ) ); rSet.Put( ScRotateValueItem( 9000 ) ); rSecondItemId = ATTR_ROTATE_VALUE; break; case table::CellOrientation_STACKED: - rSet.Put( SfxBoolItem( ATTR_STACKED, true ) ); + rSet.Put( ScVerticalStackCell( true ) ); break; default: { @@ -2415,7 +2415,7 @@ void ScCellRangesBase::GetOnePropertyValue( const SfxItemPropertySimpleEntry* pE case ATTR_STACKED: { sal_Int32 nRot = pDataSet->Get(ATTR_ROTATE_VALUE).GetValue(); - bool bStacked = static_cast<const SfxBoolItem&>(pDataSet->Get(pEntry->nWID)).GetValue(); + bool bStacked = static_cast<const ScVerticalStackCell&>(pDataSet->Get(pEntry->nWID)).GetValue(); SvxOrientationItem( nRot, bStacked, 0 ).QueryValue( rAny ); } break; diff --git a/sc/source/ui/unoobj/styleuno.cxx b/sc/source/ui/unoobj/styleuno.cxx index 493c77c84781..37af7b737f8b 100644 --- a/sc/source/ui/unoobj/styleuno.cxx +++ b/sc/source/ui/unoobj/styleuno.cxx @@ -1545,18 +1545,18 @@ void ScStyleObj::setPropertyValue_Impl( const OUString& rPropertyName, const Sfx switch (eOrient) { case table::CellOrientation_STANDARD: - rSet.Put(SfxBoolItem(ATTR_STACKED, false)); + rSet.Put(ScVerticalStackCell(false)); break; case table::CellOrientation_TOPBOTTOM: - rSet.Put(SfxBoolItem(ATTR_STACKED, false)); + rSet.Put(ScVerticalStackCell(false)); rSet.Put(ScRotateValueItem(27000)); break; case table::CellOrientation_BOTTOMTOP: - rSet.Put(SfxBoolItem(ATTR_STACKED, false)); + rSet.Put(ScVerticalStackCell(false)); rSet.Put(ScRotateValueItem(9000)); break; case table::CellOrientation_STACKED: - rSet.Put(SfxBoolItem(ATTR_STACKED, true)); + rSet.Put(ScVerticalStackCell(true)); break; default: { @@ -1795,7 +1795,7 @@ uno::Any ScStyleObj::getPropertyValue_Impl( const OUString& aPropertyName ) case ATTR_STACKED: { sal_Int32 nRot = pItemSet->Get(ATTR_ROTATE_VALUE).GetValue(); - bool bStacked = static_cast<const SfxBoolItem&>(pItemSet->Get(nWhich)).GetValue(); + bool bStacked = static_cast<const ScVerticalStackCell&>(pItemSet->Get(nWhich)).GetValue(); SvxOrientationItem( nRot, bStacked, 0 ).QueryValue( aAny ); } break; |