summaryrefslogtreecommitdiff
path: root/starmath/inc/node.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/inc/node.hxx')
-rw-r--r--starmath/inc/node.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx
index 93ed6210fcb4..220e30d2ffc9 100644
--- a/starmath/inc/node.hxx
+++ b/starmath/inc/node.hxx
@@ -134,8 +134,8 @@ public:
SmFace & GetFont() { return aFace; };
void SetFont(const SmFace &rFace);
- void SetFontSize(const boost::rational<long> &rRelSize, sal_uInt16 nType);
- void SetSize(const boost::rational<long> &rScale);
+ void SetFontSize(const Fraction &rRelSize, sal_uInt16 nType);
+ void SetSize(const Fraction &rScale);
virtual void Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell);
virtual void PrepareAttributes();
@@ -1240,18 +1240,18 @@ public:
class SmFontNode : public SmStructureNode
{
sal_uInt16 nSizeType;
- boost::rational<long> aFontSize;
+ Fraction aFontSize;
public:
SmFontNode(const SmToken &rNodeToken)
: SmStructureNode(NFONT, rNodeToken)
{
nSizeType = FNTSIZ_MULTIPLY;
- aFontSize = boost::rational<long>(1L);
+ aFontSize = Fraction(1L);
}
- void SetSizeParameter(const boost::rational<long> &rValue, sal_uInt16 nType);
- const boost::rational<long> & GetSizeParameter() const {return aFontSize;}
+ void SetSizeParameter(const Fraction &rValue, sal_uInt16 nType);
+ const Fraction & GetSizeParameter() const {return aFontSize;}
const sal_uInt16& GetSizeType() const {return nSizeType;}
virtual void Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell) SAL_OVERRIDE;