summaryrefslogtreecommitdiff
path: root/writerfilter/inc
diff options
context:
space:
mode:
authorHenning Brinkmann <hbrinkm@openoffice.org>2010-08-17 16:44:32 +0200
committerHenning Brinkmann <hbrinkm@openoffice.org>2010-08-17 16:44:32 +0200
commit1fd3d9c3074b80f59279189d1b06f138990d8075 (patch)
treeb606b35a215e20a30a1461b8fe002979dd3e5ab8 /writerfilter/inc
parent86898639d4144a078ed295d0a8bef406868802cb (diff)
writerfilter09: Fraction: constructor from Fractions, init, assign, inverse, operator=
Diffstat (limited to 'writerfilter/inc')
-rw-r--r--writerfilter/inc/resourcemodel/Fraction.hxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/writerfilter/inc/resourcemodel/Fraction.hxx b/writerfilter/inc/resourcemodel/Fraction.hxx
index 1916bd433651..a038d25c98f1 100644
--- a/writerfilter/inc/resourcemodel/Fraction.hxx
+++ b/writerfilter/inc/resourcemodel/Fraction.hxx
@@ -34,10 +34,17 @@ namespace resourcemodel {
class Fraction
{
+public:
explicit Fraction(sal_Int32 nNumerator, sal_Int32 nDenominator = 1);
+ explicit Fraction(const Fraction & a, const Fraction & b);
virtual ~Fraction();
- Fraction operator=(const Fraction & rFraction) const;
+ void init(sal_Int32 nNumerator, sal_Int32 nDenominator);
+ void assign(const Fraction & rFraction);
+
+ Fraction inverse() const;
+
+ Fraction operator=(const Fraction & rFraction);
Fraction operator+(const Fraction & rFraction) const;
Fraction operator-(const Fraction & rFraction) const;
Fraction operator*(const Fraction & rFraction) const;