summaryrefslogtreecommitdiff
path: root/include/svx/sdtditm.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-08-04 11:29:51 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-08-04 11:29:51 +0200
commit768d32cf5b7dc35ab1b93e898e1bb5beab43c27c (patch)
tree7de7cb2ddb064469385520e0a74e03a349f4f689 /include/svx/sdtditm.hxx
parent83f37705679f5176f0aa0c8e58da681c0a3c2319 (diff)
Consistency around SdrMetricItem in svx/sdtditm.hxx
...similar to what has been done for svx/sdtmfitm.hxx in 6a2ea81ca1622d2c2ad55bea8ddc28167fcc2794 "Remove unused ctors" and 68969cc61adecac481ae9656978ef952f435b310 "Consistency around SdrMetricItem." Change-Id: Ib0234883d441be668700df5ccd0e855973dc5426
Diffstat (limited to 'include/svx/sdtditm.hxx')
-rw-r--r--include/svx/sdtditm.hxx35
1 files changed, 12 insertions, 23 deletions
diff --git a/include/svx/sdtditm.hxx b/include/svx/sdtditm.hxx
index 223fa3051150..ed57c860da98 100644
--- a/include/svx/sdtditm.hxx
+++ b/include/svx/sdtditm.hxx
@@ -22,32 +22,21 @@
#include <svx/sdmetitm.hxx>
#include <svx/svddef.hxx>
+inline SdrMetricItem makeSdrTextLeftDistItem(long nHgt) {
+ return SdrMetricItem(SDRATTR_TEXT_LEFTDIST, nHgt);
+}
-// class SdrTextLeft/Right/Upper/LowerDistItem
+inline SdrMetricItem makeSdrTextRightDistItem(long nHgt) {
+ return SdrMetricItem(SDRATTR_TEXT_RIGHTDIST, nHgt);
+}
-class SdrTextLeftDistItem: public SdrMetricItem {
-public:
- SdrTextLeftDistItem(long nHgt=0): SdrMetricItem(SDRATTR_TEXT_LEFTDIST,nHgt) {}
- SdrTextLeftDistItem(SvStream& rIn): SdrMetricItem(SDRATTR_TEXT_LEFTDIST,rIn) {}
-};
+inline SdrMetricItem makeSdrTextUpperDistItem(long nHgt) {
+ return SdrMetricItem(SDRATTR_TEXT_UPPERDIST, nHgt);
+}
-class SdrTextRightDistItem: public SdrMetricItem {
-public:
- SdrTextRightDistItem(long nHgt=0): SdrMetricItem(SDRATTR_TEXT_RIGHTDIST,nHgt) {}
- SdrTextRightDistItem(SvStream& rIn): SdrMetricItem(SDRATTR_TEXT_RIGHTDIST,rIn) {}
-};
-
-class SdrTextUpperDistItem: public SdrMetricItem {
-public:
- SdrTextUpperDistItem(long nHgt=0): SdrMetricItem(SDRATTR_TEXT_UPPERDIST,nHgt) {}
- SdrTextUpperDistItem(SvStream& rIn): SdrMetricItem(SDRATTR_TEXT_UPPERDIST,rIn) {}
-};
-
-class SdrTextLowerDistItem: public SdrMetricItem {
-public:
- SdrTextLowerDistItem(long nHgt=0): SdrMetricItem(SDRATTR_TEXT_LOWERDIST,nHgt) {}
- SdrTextLowerDistItem(SvStream& rIn): SdrMetricItem(SDRATTR_TEXT_LOWERDIST,rIn) {}
-};
+inline SdrMetricItem makeSdrTextLowerDistItem(long nHgt) {
+ return SdrMetricItem(SDRATTR_TEXT_LOWERDIST, nHgt);
+}
#endif