9 #ifndef MsiChart_NumberObject_h 10 #define MsiChart_NumberObject_h 34 #define CURR_SYMB_SIZE 5 35 #define FORMAT_SIZE 256 60 const static char sFixedStringTable[3][8] = {
95 bool iClientDrag =
false,
98 Int32 iColumnOffset = 0,
104 virtual void Draw()
const;
159 void FilterQuotes(
char* ipString,
bool iDividPosAndNeg =
true);
160 bool FilterQuotes(std::string& iorString,
bool iDividPosAndNeg =
true);
162 bool IsFraction(
const std::string& irNumberFormat)
const;
166 bool GetPreAndSuffix(std::string& iorFormatStr, std::string& orPrefix, std::string& orSuffix);
181 void SetNumberFormatForTimeSeries(
const ChartAdvFormat& irNumberFormat);
210 bool hGetPreAndSuffix(std::string& iorFormatStr, std::string& orPrefix, std::string& orSuffix,
bool& orHasBrakcket,
bool iDividPosAndNeg =
true);
212 void hParseColor(
char** oppSource);
214 std::string hConvertToFraction(
double value, std::string& formatString);
218 void hRemoveMinusFromNegExpComponet(std::string& iorNumberFormat);
219 bool replaceQuestionMarkWithHash(std::string& iorNumberFormat);
222 void hParseConditions(std::string& iorFormat);
223 void hReplaceCurencySymbol(std::string& iorFormat);
233 bool mIsReplacedText;
243 return mColumnOffset;
251 mIsThreshHold = iIsThreshHold;
257 mHasBracket = iHasBracket;
261 return mIsAbbreviated;
265 return mIsReplacedText;
bool HasBracket(std::string &iorFormatStr)
Definition: NumberObject.h:26
void SetPrefix(MBase::String iPrefix)
Definition: NumberObject.h:275
MSynch::SmartPtr< NumberObject > Ptr
Definition: NumberObject.h:73
void SetThreshHold(bool iIsThreshHold, Int32 iColor=0)
Definition: NumberObject.h:249
void SetCorrectDateFormatString(ChartAdvFormat &orFormat)
double AnalyzeSeperatorAtTail(std::string &iorNumberFormat)
void SetColor(Int32 iColor)
Definition: NumberObject.h:271
bool GetPreAndSuffix(std::string &iorFormatStr, std::string &orPrefix, std::string &orSuffix)
NumberObject(const TripleId &irTripleId, GraphObjectManager *ipManager, double iNumber, const ChartAdvFormat &irNumberFormat, GraphCollectionObject *ipParentObject=NULL, LCID iLocale=0, bool iClientDrag=false, Dataset::Ptr iDatasetPtr=NULL, bool iIsFinal=true, Int32 iColumnOffset=0, EnumDssGraphNumberFormatAsAxis iNumberFormatAsAxis=DssGraphNumberFormatAsDefaultAxis)
#define CURR_SYMB_SIZE
Definition: NumberObject.h:34
void SetSuffix(MBase::String iSuffix)
Definition: NumberObject.h:279
Definition: NumberObject.h:31
Definition: NumberObject.h:21
bool IsFraction(const std::string &irNumberFormat) const
bool IsReplacedText() const
Definition: NumberObject.h:263
Definition: NumberObject.h:23
double GetNumber() const
Definition: NumberObject.h:245
void AddTextBeforeNumber(const MBase::String &irString)
Definition: GraphCollectionObject.h:19
Definition: NumberObject.h:27
virtual void Draw() const
void HandleNegNumberFormat(const char *ipFormattingString, Int32 iNegFormat, LCID iLocale)
bool IsAbbreviated() const
Definition: NumberObject.h:259
Definition: NumberObject.h:22
Definition: Dataset.h:198
DWORD LCID
Definition: PDCwtypes.h:294
Definition: NumberObject.h:30
void FilterQuotes(char *ipString, bool iDividPosAndNeg=true)
bool GetNumberFromText(double &orValue)
#define Int32
Definition: BasicTypes.h:20
Definition: TextObject.h:181
Int32 GetColumnOffset() const
Definition: NumberObject.h:241
EnumDssGraphNumberFormatAsAxis
Definition: Common.h:44
Definition: SmartPtr.h:38
Definition: NumberObject.h:25
std::basic_string< WCHAR, std::char_traits< WCHAR >, Allocator< WCHAR > > String
Definition: BaseString.h:26
#define FORMAT_SIZE
Definition: NumberObject.h:35
void SetHasBracket(bool iHasBracket)
Definition: NumberObject.h:255
double AdjustFormatStringWithDot(std::string &formatString, int iDotIndex)
void GetPrefix(MBase::String &orPrefix)
Definition: NumberObject.h:283
Definition: NumberObject.h:28
void GetSuffix(MBase::String &orSuffix)
Definition: NumberObject.h:287
Definition: NumberObject.h:70
void SetNumber(double iNumber)
Definition: NumberObject.h:291
void hSetText(const MBase::String &irString)
void MapFormattingString(std::string &iorStr)
Definition: NumberObject.h:20
#define NULL
Definition: Null.h:10
Definition: GraphObjectManager.h:37
Int32 GetColor() const
Definition: NumberObject.h:267
Definition: NumberObjectHelper.h:9
Definition: NumberObject.h:29
Definition: NumberObject.h:24
NumberCategory
This enumeration is from ChartCtrl.h.
Definition: NumberObject.h:18