Mobile API Reference  MicroStrategy 2019
NumberObjectHelper.h
Go to the documentation of this file.
1 #ifndef MsiChart_NumberObjectHelper_h
2 #define MsiChart_NumberObjectHelper_h
3 
4 #include "ChartContext.h"
5 
6 namespace MsiChart{
7  class NumberObject;
8 
10  public:
11  NumberObjectHelper(NumberObject * iNumberObject,ChartContext::Ptr iChartContext):mpNumberObject(iNumberObject),mChartContextPtr(iChartContext){};
13  virtual std::string ConvertToFraction(double value, std::string& formatString);
14  virtual bool GetPreAndSuffix(std::string& iorFormatStr, std::string& orPrefix, std::string& orSuffix, bool& orHasBrakcket, bool iDividPosAndNeg = true);
15  virtual void SetTextFromGrid(Dataset::Ptr iDatasetPtr, MFormat::NumberFormat* ipNumberFormat, LCID iLocale);
16  virtual void SetNumberFormat(Dataset::Ptr iDatasetPtr, const ChartAdvFormat& irNumberFormat, LCID iLocale);
17  virtual void RemoveMinusFromNegExpComponet(std::string& iorNumberFormat);
18  virtual bool replaceQuestionMarkWithHash(std::string& iorNumberFormat);
19  virtual bool GetNumberFromText(double& orValue) const;
20  virtual void ReplaceCurencySymbol(std::string& iorFormat);
21  virtual void ParseConditions(std::string& iorFormat);
22  virtual void SetCorrectDateFormatString(ChartAdvFormat& orFormat);
23  virtual void MapFormatType(const TripleId& irTripleId, ChartAdvFormat& iorNumberFormat);
24  protected:
27  };
28 }
29 #endif
ChartContext::Ptr mChartContextPtr
Definition: NumberObjectHelper.h:26
virtual void SetCorrectDateFormatString(ChartAdvFormat &orFormat)
Definition: NumberFormat.h:32
virtual bool replaceQuestionMarkWithHash(std::string &iorNumberFormat)
This struct is from ChartCtrl.h.
Definition: NumberObject.h:38
virtual void SetNumberFormat(Dataset::Ptr iDatasetPtr, const ChartAdvFormat &irNumberFormat, LCID iLocale)
Definition: Dataset.h:198
virtual std::string ConvertToFraction(double value, std::string &formatString)
NumberObject * mpNumberObject
Definition: NumberObjectHelper.h:25
DWORD LCID
Definition: PDCwtypes.h:294
virtual ~NumberObjectHelper()
Definition: NumberObjectHelper.h:12
virtual void RemoveMinusFromNegExpComponet(std::string &iorNumberFormat)
Definition: ChartContext.h:542
Definition: ABLPlot.h:21
virtual bool GetPreAndSuffix(std::string &iorFormatStr, std::string &orPrefix, std::string &orSuffix, bool &orHasBrakcket, bool iDividPosAndNeg=true)
Definition: NumberObject.h:70
virtual void ParseConditions(std::string &iorFormat)
virtual void ReplaceCurencySymbol(std::string &iorFormat)
#define NULL
Definition: Null.h:10
NumberObjectHelper(NumberObject *iNumberObject, ChartContext::Ptr iChartContext)
Definition: NumberObjectHelper.h:11
Definition: NumberObjectHelper.h:9
virtual void SetTextFromGrid(Dataset::Ptr iDatasetPtr, MFormat::NumberFormat *ipNumberFormat, LCID iLocale)
virtual void MapFormatType(const TripleId &irTripleId, ChartAdvFormat &iorNumberFormat)
virtual bool GetNumberFromText(double &orValue) const
Definition: Common.h:397