INTEGRATION: CWS calcrtl (1.12.26); FILE MERGED

2004/01/13 12:43:24 sab 1.12.26.2: RESYNC: (1.12-1.13); FILE MERGED
2003/10/29 19:38:34 nn 1.12.26.1: #106948# handle text alignment in repaint
This commit is contained in:
Jens-Heiner Rechtien
2004-02-03 11:16:26 +00:00
parent f7bca6b02b
commit dbd839ed62

View File

@@ -2,9 +2,9 @@
*
* $RCSfile: attarray.cxx,v $
*
* $Revision: 1.13 $
* $Revision: 1.14 $
*
* last change: $Author: rt $ $Date: 2003-12-01 17:49:17 $
* last change: $Author: hr $ $Date: 2004-02-03 12:16:26 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1323,6 +1323,14 @@ BOOL ScAttrArray::HasAttrib( USHORT nRow1, USHORT nRow2, USHORT nMask ) const
if ( rDirection.GetValue() == FRMDIR_HORI_RIGHT_TOP )
bFound = TRUE;
}
if ( nMask & HASATTR_RIGHTORCENTER )
{
// called only if the sheet is LTR, so physical=logical alignment can be assumed
SvxCellHorJustify eHorJust = (SvxCellHorJustify)
((const SvxHorJustifyItem&) pPattern->GetItem( ATTR_HOR_JUSTIFY )).GetValue();
if ( eHorJust == SVX_HOR_JUSTIFY_RIGHT || eHorJust == SVX_HOR_JUSTIFY_CENTER )
bFound = TRUE;
}
}
return bFound;