diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-08-07 11:53:30 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-08-07 11:53:42 +0200 |
commit | 7fb48e7e3aa76ba48174d74da7b603b25ef68f56 (patch) | |
tree | 35b693ac4b4e3e39e6311112e48790bd4c4fe5c0 /include/svx | |
parent | ff929ad45cdd803db0da49423648256f8380b3a1 (diff) |
Consistency around SdrMetricItem in svx/sxmlhitm.hxx
...similar to what has been done for svx/sdtmfitm.hxx in
6a2ea81ca1622d2c2ad55bea8ddc28167fcc2794 "Remove unused ctors" and
68969cc61adecac481ae9656978ef952f435b310 "Consistency around SdrMetricItem."
Change-Id: I65c36bde166c5f78db8c76364fd057017982fed6
Diffstat (limited to 'include/svx')
-rw-r--r-- | include/svx/sxmlhitm.hxx | 40 |
1 files changed, 15 insertions, 25 deletions
diff --git a/include/svx/sxmlhitm.hxx b/include/svx/sxmlhitm.hxx index 9d5168ec796c..6b5ca4e1ef6e 100644 --- a/include/svx/sxmlhitm.hxx +++ b/include/svx/sxmlhitm.hxx @@ -39,40 +39,30 @@ // Abstand der Masslinie zur Bezugskante (Norm=8mm) // laesst sich auch draggen an den beiden Handles // die auf den Pfeilspitzen liegen -class SdrMeasureLineDistItem: public SdrMetricItem { -public: - SdrMeasureLineDistItem(long nVal=0): SdrMetricItem(SDRATTR_MEASURELINEDIST,nVal) {} - SdrMeasureLineDistItem(SvStream& rIn): SdrMetricItem(SDRATTR_MEASURELINEDIST,rIn) {} -}; +inline SdrMetricItem makeSdrMeasureLineDistItem(long nVal) { + return SdrMetricItem(SDRATTR_MEASURELINEDIST, nVal); +} // Ueberhang der Masshilfslinien an der Masslinie (Norm=2mm) -class SdrMeasureHelplineOverhangItem: public SdrMetricItem { -public: - SdrMeasureHelplineOverhangItem(long nVal=0): SdrMetricItem(SDRATTR_MEASUREHELPLINEOVERHANG,nVal) {} - SdrMeasureHelplineOverhangItem(SvStream& rIn): SdrMetricItem(SDRATTR_MEASUREHELPLINEOVERHANG,rIn) {} -}; +inline SdrMetricItem makeSdrMeasureHelplineOverhangItem(long nVal) { + return SdrMetricItem(SDRATTR_MEASUREHELPLINEOVERHANG, nVal); +} // Abstand der der Masshilfslinienenden zur Bezugskante // Damit die Masshilfslinien nicht das Objekt beruehren -class SdrMeasureHelplineDistItem: public SdrMetricItem { -public: - SdrMeasureHelplineDistItem(long nVal=0): SdrMetricItem(SDRATTR_MEASUREHELPLINEDIST,nVal) {} - SdrMeasureHelplineDistItem(SvStream& rIn): SdrMetricItem(SDRATTR_MEASUREHELPLINEDIST,rIn) {} -}; +inline SdrMetricItem makeSdrMeasureHelplineDistItem(long nVal) { + return SdrMetricItem(SDRATTR_MEASUREHELPLINEDIST, nVal); +} // Ueberlaenge der Hilfslinien ueber die Bezugskante // laesst sich auch draggen an den beiden runden Handles, // die sich default unter den beiden Referenzpunkten befinden -class SdrMeasureHelpline1LenItem: public SdrMetricItem { -public: - SdrMeasureHelpline1LenItem(long nVal=0): SdrMetricItem(SDRATTR_MEASUREHELPLINE1LEN,nVal) {} - SdrMeasureHelpline1LenItem(SvStream& rIn): SdrMetricItem(SDRATTR_MEASUREHELPLINE1LEN,rIn) {} -}; -class SdrMeasureHelpline2LenItem: public SdrMetricItem { -public: - SdrMeasureHelpline2LenItem(long nVal=0): SdrMetricItem(SDRATTR_MEASUREHELPLINE2LEN,nVal) {} - SdrMeasureHelpline2LenItem(SvStream& rIn): SdrMetricItem(SDRATTR_MEASUREHELPLINE2LEN,rIn) {} -}; +inline SdrMetricItem makeSdrMeasureHelpline1LenItem(long nVal) { + return SdrMetricItem(SDRATTR_MEASUREHELPLINE1LEN, nVal); +} +inline SdrMetricItem makeSdrMeasureHelpline2LenItem(long nVal) { + return SdrMetricItem(SDRATTR_MEASUREHELPLINE2LEN, nVal); +} #endif |