Fraction.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------------------+
2 |
3 | Supplied under applicable software license agreement.
4 |
5 | Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
6 |
7 +---------------------------------------------------------------------------------------*/
8 #pragma once
9 
10 #include "TextAPICommon.h"
11 #include "Run.h"
12 
14 
17 
18 //=======================================================================================
22 // @remark Required library : DgnPlatform<ApiNumber>.lib i.e. DgnPlatform5.lib
23 // @bsiclass Bentley Systems
24 //=======================================================================================
25 struct Fraction : public Run
26  {
27 private:
28  virtual void MakeClassAbstract() = 0;
29 public:
30 
33  public: DGNPLATFORM_EXPORT StackedFractionType GetFractionType () const;
34 
37  public: DGNPLATFORM_EXPORT StackedFractionAlignment GetAlignment () const;
38 
41  public: DGNPLATFORM_EXPORT void SetAlignment (StackedFractionAlignment);
42 
45  public: DGNPLATFORM_EXPORT CharStreamCP GetNumerator () const;
46 
49  public: DGNPLATFORM_EXPORT CharStreamCP GetDenominator () const;
50 
51  }; // Fraction
52 
53 //=======================================================================================
58 // @bsiclass Bentley Systems
59 //=======================================================================================
60 struct NoBarFraction : public Fraction
61  {
62 private:
63  virtual void MakeClassAbstract() = 0;
64 public:
65 
66  }; // NoBarFraction
67 
68 //=======================================================================================
73 // @bsiclass Bentley Systems
74 //=======================================================================================
76  {
77 private:
78  virtual void MakeClassAbstract() = 0;
79 public:
80 
81  }; // HorizontalBarFraction
82 
83 //=======================================================================================
88 // @bsiclass Bentley Systems
89 //=======================================================================================
91  {
92 private:
93  virtual void MakeClassAbstract() = 0;
94 public:
95 
96  }; // DiagonalBarFraction
97 
99 
101 
#define END_BENTLEY_DGNPLATFORM_NAMESPACE
Definition: DgnPlatformBaseType.r.h:69
In the TextBlock DOM, a base class for all other runs.
Definition: Run.h:30
In the TextBlock DOM, a class for normal (non-diagonal) stacked fractions, where the numerator and de...
Definition: Fraction.h:60
In the TextBlock DOM, a class for normal (non-diagonal) stacked fractions, where the numerator and de...
Definition: Fraction.h:75
#define DGNPLATFORM_EXPORT
Definition: DgnPlatform/ExportMacros.h:58
StackedFractionAlignment
Describes how a fraction is aligned to neighboring runs.
Definition: TextAPICommon.h:93
#define BEGIN_BENTLEY_DGNPLATFORM_NAMESPACE
Definition: DgnPlatformBaseType.r.h:68
In the TextBlock DOM, a class for diagonal stacked fractions, where the numerator and denominator are...
Definition: Fraction.h:90
StackedFractionType
Describes what kind of a fraction to display.
Definition: TextParam.h:60
In the TextBlock DOM, a base class for stacked fractions representing a like-formatted numerator and ...
Definition: Fraction.h:25

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.