diff -r 304e9028b5d2 sw/source/core/docnode/ndtbl1.cxx --- a/sw/source/core/docnode/ndtbl1.cxx Mon Jan 24 10:35:39 2011 +0100 +++ b/sw/source/core/docnode/ndtbl1.cxx Wed Jan 26 16:12:07 2011 +0100 @@ -1216,6 +1216,18 @@ else if( rToFill != rDir ) bRet = FALSE; } + case RES_VERT_ORIENT: + { + const SwFmtVertOrient& rOrient = + aBoxes[i]->GetFrmFmt()->GetVertOrient(); + if( !bOneFound ) + { + (SwFmtVertOrient&)rToFill = rOrient; + bOneFound = TRUE; + } + else if( rToFill != rOrient ) + bRet = FALSE; + } } if ( FALSE == bRet ) diff -r 304e9028b5d2 sw/source/core/unocore/unotbl.cxx --- a/sw/source/core/unocore/unotbl.cxx Mon Jan 24 10:35:39 2011 +0100 +++ b/sw/source/core/unocore/unotbl.cxx Wed Jan 26 16:12:07 2011 +0100 @@ -68,6 +68,7 @@ #include #include #include +#include #include #include #include @@ -4246,6 +4247,14 @@ pDoc->SetBoxAttr( *pCrsr, aNumberFormat); } break; + case RES_VERT_ORIENT: + { + sal_Int16 nAlign = -1; + aValue >>= nAlign; + if( nAlign >= text::VertOrientation::NONE && nAlign <= text::VertOrientation::BOTTOM) + pDoc->SetBoxAlign( *pCrsr, nAlign ); + } + break; case FN_UNO_RANGE_ROW_LABEL: { sal_Bool bTmp = *(sal_Bool*)aValue.getValue(); @@ -4325,6 +4334,15 @@ rBoxItem.QueryValue(aRet, pEntry->nMemberId); } break; + case RES_VERT_ORIENT: + { + SwFmtVertOrient aVertOrient; + if( pTblCrsr->GetDoc()->GetBoxAttr( *pTblCrsr, aVertOrient ) ) + { + aVertOrient.QueryValue( aRet, pEntry->nMemberId ); + } + } + break; case RES_BOXATR_FORMAT: //GetAttr fuer Tabellenselektion am Doc fehlt noch DBG_WARNING("not implemented");