diff options
author | Rüdiger Timm <rt@openoffice.org> | 2006-07-26 06:42:00 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2006-07-26 06:42:00 +0000 |
commit | d66e94c16862a67eb068bff32693466c8807ef1a (patch) | |
tree | b28765d5e0a5f64cc91195ca9cf6e74d7dd3b7d0 /svx/source | |
parent | cdaffaa535c383488957d1dbdcf286d00d505046 (diff) |
INTEGRATION: CWS dba204b (1.49.34); FILE MERGED
2006/07/13 06:32:16 fs 1.49.34.3: RESYNC: (1.49-1.50); FILE MERGED
2006/07/10 10:35:31 fs 1.49.34.2: warning-free code
2006/07/07 14:08:20 fs 1.49.34.1: #i50160# SetTextColor instead of Font::SetColor/SetFont to change an output device's text color
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/fmcomp/gridcell.cxx | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx index 7e9894cd045a..6335a02dad3e 100644 --- a/svx/source/fmcomp/gridcell.cxx +++ b/svx/source/fmcomp/gridcell.cxx @@ -4,9 +4,9 @@ * * $RCSfile: gridcell.cxx,v $ * - * $Revision: 1.50 $ + * $Revision: 1.51 $ * - * last change: $Author: obo $ $Date: 2006-07-10 14:55:57 $ + * last change: $Author: rt $ $Date: 2006-07-26 07:42:00 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -57,6 +57,9 @@ #ifndef _COM_SUN_STAR_SDBC_XSTATEMENT_HPP_ #include <com/sun/star/sdbc/XStatement.hpp> #endif +#ifndef _COM_SUN_STAR_SCRIPT_XEVENTATTACHERMANAGER_HPP_ +#include <com/sun/star/script/XEventAttacherManager.hpp> +#endif #ifndef _COM_SUN_STAR_SDDB_XCOLUMNSSUPPLIER_HPP_ #include <com/sun/star/sdbcx/XColumnsSupplier.hpp> #endif @@ -1929,7 +1932,7 @@ namespace } //------------------------------------------------------------------------------ -String DbNumericField::GetFormatText(const Reference< ::com::sun::star::sdb::XColumn >& _rxField, const Reference< ::com::sun::star::util::XNumberFormatter >& _rxFormatter, Color** ppColor) +String DbNumericField::GetFormatText(const Reference< ::com::sun::star::sdb::XColumn >& _rxField, const Reference< ::com::sun::star::util::XNumberFormatter >& _rxFormatter, Color** /*ppColor*/) { return lcl_setFormattedNumeric_nothrow( *dynamic_cast< DoubleNumericField* >( m_pPainter ), *this, _rxField, _rxFormatter ); } @@ -2063,7 +2066,7 @@ namespace } //------------------------------------------------------------------------------ -String DbCurrencyField::GetFormatText(const Reference< ::com::sun::star::sdb::XColumn >& _rxField, const Reference< ::com::sun::star::util::XNumberFormatter >& _rxFormatter, Color** ppColor) +String DbCurrencyField::GetFormatText(const Reference< ::com::sun::star::sdb::XColumn >& _rxField, const Reference< ::com::sun::star::util::XNumberFormatter >& _rxFormatter, Color** /*ppColor*/) { return lcl_setFormattedCurrency_nothrow( *dynamic_cast< LongCurrencyField* >( m_pPainter ), *this, _rxField, _rxFormatter ); } @@ -2197,7 +2200,7 @@ namespace } } //------------------------------------------------------------------------------ -String DbDateField::GetFormatText(const Reference< ::com::sun::star::sdb::XColumn >& _rxField, const Reference< ::com::sun::star::util::XNumberFormatter >& xFormatter, Color** ppColor) +String DbDateField::GetFormatText(const Reference< ::com::sun::star::sdb::XColumn >& _rxField, const Reference< ::com::sun::star::util::XNumberFormatter >& /*xFormatter*/, Color** /*ppColor*/) { return lcl_setFormattedDate_nothrow( *dynamic_cast< DateField* >( m_pPainter ), _rxField ); } @@ -2303,7 +2306,7 @@ namespace } } //------------------------------------------------------------------------------ -String DbTimeField::GetFormatText(const Reference< ::com::sun::star::sdb::XColumn >& _rxField, const Reference< ::com::sun::star::util::XNumberFormatter >& xFormatter, Color** ppColor) +String DbTimeField::GetFormatText(const Reference< ::com::sun::star::sdb::XColumn >& _rxField, const Reference< ::com::sun::star::util::XNumberFormatter >& /*xFormatter*/, Color** /*ppColor*/) { return lcl_setFormattedTime_nothrow( *static_cast< TimeField* >( m_pPainter ), _rxField ); } @@ -3285,12 +3288,10 @@ void FmXTextCell::PaintFieldToCell(OutputDevice& rDev, String aText = GetText(_rxField, xFormatter, &pColor); if (pColor != NULL) { - Font aFont = rDev.GetFont(); - Font aOldFont = aFont; - aFont.SetColor(*pColor); - rDev.SetFont(aFont); + Color aOldTextColor( rDev.GetTextColor() ); + rDev.SetTextColor( *pColor ); rDev.DrawText(rRect, aText, nStyle); - rDev.SetFont(aOldFont); + rDev.SetTextColor( aOldTextColor ); } else rDev.DrawText(rRect, aText, nStyle); @@ -3633,7 +3634,7 @@ short SAL_CALL FmXCheckBoxCell::getState() throw( RuntimeException ) if (m_pBox) { UpdateFromColumn(); - return m_pBox->GetState(); + return (short)m_pBox->GetState(); } return STATE_DONTKNOW; } |