Mobile API Reference  MicroStrategy 2019
FormatLine.h
Go to the documentation of this file.
1 //==============================================================================================
2 // FILENAME : FormatLine.h
3 // AUTHOR : Xin Liu
4 // CREATION : 2008-09-26
5 // Copyright (C) MicroStrategy Incorporated 2008
6 // All Rights Reserved
7 //==============================================================================================
8 #ifndef MsiChart_FormatLine_h
9 #define MsiChart_FormatLine_h
10 
11 #include "StdAfx.h"
12 #include "PDCHeader/PDCvector"
13 #include "Base/Base/BaseString.h"
14 #include "Synch/Defines/SmartPtr.h"
15 #include "RGBColor.h"
16 #include "Point2D.h"
17 #include <map>
18 
19 namespace MsiChart
20 {
22 
26  typedef enum
27  {
45 
46  typedef enum{
53 
54  class ChartContext;
55 
59  class FormatLine
60  {
61  public:
63  FormatLine();
64 
72  FormatLine(unsigned char iLineStyle, unsigned char iTransparency,
73  Int32 iLineThickness, const RGBColor& iLineColor);
74 
81  bool GetOptions(Int32 iPropertyId, CComVariant* opValue) const;
82 
86  void ApplyLineFormat(ChartContext* ipChartContext) const;
87 
88  FormatLine::Ptr Clone() const;
89  inline void SetResolvedInDataSet(const bool iFlag ,const EnumFormatLineMembers iMember);
90  inline bool IsResolvedInDataSet(const EnumFormatLineMembers iMember) const;
91  public:
92  unsigned char mLineStyle;
93  unsigned char mAlpha;
98 
99  };
100  void FormatLine::SetResolvedInDataSet(const bool iFlag ,const EnumFormatLineMembers iMember)
101  {
102  mClassMemberMap ^= iFlag << iMember;
103  }
105  {
106  return (mClassMemberMap & 1 << iMember) != 0;
107  }
108  extern const Int32 gHoverStrokeThickness;
109 
110  extern const RGBColor gBlack;
111  extern const RGBColor gWhite;
112 
113  extern const FormatLine gOutlineWhite;
114  extern const FormatLine gOutlineWhite2;
115  extern const FormatLine gOutlineBlack;
116  extern const FormatLine gLeaderLine;
119  extern const FormatLine gBudgetingHoverOutLine;
120 
121  extern const FormatLine gOutlineHoverWhite;
122  extern const FormatLine gInnerOutlineHoverBlack;
124 }
125 #endif
Int32 mLineThickness
The line thickness or line width in pixel.
Definition: FormatLine.h:94
bool IsResolvedInDataSet(const EnumFormatLineMembers iMember) const
Definition: FormatLine.h:104
Definition: FormatLine.h:37
Definition: FormatLine.h:30
const FormatLine gInnerOutlineHoverBlack
MSynch::SmartPtr< FormatLine > Ptr
Definition: FormatLine.h:62
Definition: FormatLine.h:48
Definition: FormatLine.h:36
Int32 mClassMemberMap
Definition: FormatLine.h:97
const FormatLine gLeaderLine
FormatLine::Ptr Clone() const
const FormatLine gOutlineWhite
Definition: FormatLine.h:28
EnumFormatLineMembers
Definition: FormatLine.h:46
Int32 mLineThicknessPt
Definition: FormatLine.h:95
void ApplyLineFormat(ChartContext *ipChartContext) const
Definition: FormatLine.h:40
unsigned char mLineStyle
The line style.
Definition: FormatLine.h:92
Definition: FormatLine.h:59
const FormatLine gBudgetingHoverOutLine
const RGBColor gWhite
Definition: FormatLine.h:111
const FormatLine gStrokeForDarkBackground
Definition: FormatLine.h:33
Definition: FormatLine.h:31
Definition: FormatLine.h:32
const FormatLine gOutlineBlack
Definition: FormatLine.h:42
#define Int32
Definition: BasicTypes.h:20
const FormatLine gSubtleStrokeForOverlaidInnerPies
Definition: FormatLine.h:47
const FormatLine gStrokeForLightBackground
Definition: ChartContext.h:542
Definition: FormatLine.h:43
Definition: FormatLine.h:35
Definition: ABLPlot.h:21
const FormatLine gOutlineWhite2
Definition: FormatLine.h:49
Definition: FormatLine.h:38
RGBColor mLineColor
The line thickness in Pt multiplied by 100.
Definition: FormatLine.h:96
Definition: FormatLine.h:50
unsigned char mAlpha
The transparency of the line.
Definition: FormatLine.h:93
EnumLineStyle
Definition: FormatLine.h:26
Definition: Msi_ccomvariant.h:24
Definition: FormatLine.h:41
Definition: RGBColor.h:21
Definition: FormatLine.h:29
Definition: FormatLine.h:51
void SetResolvedInDataSet(const bool iFlag, const EnumFormatLineMembers iMember)
Definition: FormatLine.h:100
const RGBColor gBlack
Definition: FormatLine.h:110
Definition: FormatLine.h:39
bool GetOptions(Int32 iPropertyId, CComVariant *opValue) const
const Int32 gHoverStrokeThickness
const FormatLine gOutlineHoverWhite
Definition: FormatLine.h:34