From 219703ba3bd991f20a445e9b34439815a5659509 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Mon, 5 Dec 2011 21:29:49 +0100 Subject: remove last uses of CellVertJustify in our code please use now only CellVertJustify2 --- oox/inc/oox/xls/stylesbuffer.hxx | 5 ++--- oox/source/xls/stylesbuffer.cxx | 8 ++++---- 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'oox') diff --git a/oox/inc/oox/xls/stylesbuffer.hxx b/oox/inc/oox/xls/stylesbuffer.hxx index 0d960e7fe9a5..0ab97dd7e072 100644 --- a/oox/inc/oox/xls/stylesbuffer.hxx +++ b/oox/inc/oox/xls/stylesbuffer.hxx @@ -32,7 +32,7 @@ #include #include #include -#include +#include #include #include #include "oox/drawingml/color.hxx" @@ -809,8 +809,7 @@ private: XfModel maModel; /// Cell XF or style XF model data. Alignment maAlignment; /// Cell alignment data. Protection maProtection; /// Cell protection data. - ::com::sun::star::table::CellVertJustify - meRotationRef; /// Rotation reference dependent on border. + sal_Int32 meRotationRef; /// Rotation reference dependent on border. }; typedef ::boost::shared_ptr< Xf > XfRef; diff --git a/oox/source/xls/stylesbuffer.cxx b/oox/source/xls/stylesbuffer.cxx index df6d93c3f53c..cc48ad578adb 100644 --- a/oox/source/xls/stylesbuffer.cxx +++ b/oox/source/xls/stylesbuffer.cxx @@ -2267,7 +2267,7 @@ Xf::Xf( const WorkbookHelper& rHelper ) : WorkbookHelper( rHelper ), maAlignment( rHelper ), maProtection( rHelper ), - meRotationRef( ::com::sun::star::table::CellVertJustify_STANDARD ) + meRotationRef( ::com::sun::star::table::CellVertJustify2::STANDARD ) { } @@ -2488,7 +2488,7 @@ void Xf::finalizeImport() sal_Int32 nBorderId = maModel.mbBorderUsed ? maModel.mnBorderId : (pStyleXf ? pStyleXf->maModel.mnBorderId : -1); if( const Border* pBorder = rStyles.getBorder( nBorderId ).get() ) if( (pAlignment->getApiData().mnRotation != 0) && pBorder->getApiData().hasAnyOuterBorder() ) - meRotationRef = ::com::sun::star::table::CellVertJustify_BOTTOM; + meRotationRef = ::com::sun::star::table::CellVertJustify2::BOTTOM; } } @@ -2527,9 +2527,9 @@ void Xf::writeToPropertyMap( PropertyMap& rPropMap ) const if( maModel.mbAlignUsed || maModel.mbBorderUsed ) rPropMap[ PROP_RotateReference ] <<= meRotationRef; - ::com::sun::star::table::CellVertJustify eRotRef = ::com::sun::star::table::CellVertJustify_STANDARD; + sal_Int32 eRotRef = ::com::sun::star::table::CellVertJustify2::STANDARD; if (maModel.mbBorderUsed && rStyles.hasBorder(maModel.mnBorderId) && maAlignment.getApiData().mnRotation) - eRotRef = ::com::sun::star::table::CellVertJustify_BOTTOM; + eRotRef = ::com::sun::star::table::CellVertJustify2::BOTTOM; rPropMap[ PROP_RotateReference ] <<= eRotRef; } -- cgit