24#include <com/sun/star/util/Date.hpp>
25#include <osl/diagnose.h>
34 , sal_Int32 nNumberFormatKey )
35 : m_aNumberFormatterWrapper(xSupplier)
36 , m_nNumberFormatKey( nNumberFormatKey )
51 : m_xNumberFormatsSupplier(xSupplier)
52 , m_pNumberFormatter(nullptr)
56 OUString sNullDate(
"NullDate" );
57 if ( xProp.is() && xProp->getPropertySetInfo()->hasPropertyByName(sNullDate) )
71 bool getDate(
const css::uno::Any& rAny, util::Date& rDate)
75 util::DateTime aUtilDateTime;
76 if (rAny >>= aUtilDateTime)
78 rDate.Day = aUtilDateTime.Day;
79 rDate.Month = aUtilDateTime.Month;
80 rDate.Year = aUtilDateTime.Year;
83 SAL_WARN(
"chart2.tools",
"neither a util::Date nor a util::DateTime");
90 Date aRet(30,12,1899);
95 aRet =
Date(aUtilDate.Day,aUtilDate.Month,aUtilDate.Year);
105 Color& rLabelColor,
bool& rbColorChanged )
const
108 const Color* pTextColor =
nullptr;
111 OSL_FAIL(
"Need a NumberFormatter");
115 sal_Int16 nYear = 1899;
116 sal_uInt16 nDay = 30,nMonth = 12;
123 util::Date aNewNullDate;
138 rbColorChanged =
true;
139 rLabelColor = *pTextColor;
142 rbColorChanged =
false;
sal_Int16 GetYear() const
sal_uInt16 GetDay() const
sal_uInt16 GetMonth() const
#define SAL_WARN_IF(condition, area, stream)
#define SAL_WARN(area, stream)