summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-07-31 15:57:12 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-07-31 15:57:12 +0200
commit68969cc61adecac481ae9656978ef952f435b310 (patch)
tree823f5a951bd5ebf9e465fae8297ddc220cb6a2d5 /include
parent8b91280386f478f2e972e2aa71080f106783d762 (diff)
Consistency around SdrMetricItem
...where some instances of SDRATTR_TEXT_MINFRAMEHEIGHT etc. where SdrMetricItem while others where of trivial derived classes SdrTextMinFrameHeightItem etc., that appear to only existed for better-named constructors. Change-Id: If0af79fbb803275ed09fc7b950868c5de7d61615
Diffstat (limited to 'include')
-rw-r--r--include/svx/sdtmfitm.hxx38
1 files changed, 11 insertions, 27 deletions
diff --git a/include/svx/sdtmfitm.hxx b/include/svx/sdtmfitm.hxx
index 00a84d182bed..a590dde77d7e 100644
--- a/include/svx/sdtmfitm.hxx
+++ b/include/svx/sdtmfitm.hxx
@@ -22,37 +22,21 @@
#include <svx/sdmetitm.hxx>
#include <svx/svddef.hxx>
+inline SdrMetricItem makeSdrTextMinFrameHeightItem(long nHgt) {
+ return SdrMetricItem(SDRATTR_TEXT_MINFRAMEHEIGHT, nHgt);
+}
-// class SdrTextMinFrameHeighItem
+inline SdrMetricItem makeSdrTextMaxFrameHeightItem(long nHgt) {
+ return SdrMetricItem(SDRATTR_TEXT_MAXFRAMEHEIGHT, nHgt);
+}
-class SdrTextMinFrameHeightItem: public SdrMetricItem {
-public:
- SdrTextMinFrameHeightItem(long nHgt=0): SdrMetricItem(SDRATTR_TEXT_MINFRAMEHEIGHT,nHgt) {}
+inline SdrMetricItem makeSdrTextMinFrameWidthItem(long nWdt) {
+ return SdrMetricItem(SDRATTR_TEXT_MINFRAMEWIDTH, nWdt);
};
-
-// class SdrTextMaxFrameHeightItem
-
-class SdrTextMaxFrameHeightItem: public SdrMetricItem {
-public:
- SdrTextMaxFrameHeightItem(long nHgt=0): SdrMetricItem(SDRATTR_TEXT_MAXFRAMEHEIGHT,nHgt) {}
-};
-
-
-// class SdrTextMinFrameWidthItem
-
-class SdrTextMinFrameWidthItem: public SdrMetricItem {
-public:
- SdrTextMinFrameWidthItem(long nWdt=0): SdrMetricItem(SDRATTR_TEXT_MINFRAMEWIDTH,nWdt) {}
-};
-
-
-// class SdrTextMaxFrameWidthItem
-
-class SdrTextMaxFrameWidthItem: public SdrMetricItem {
-public:
- SdrTextMaxFrameWidthItem(long nWdt=0): SdrMetricItem(SDRATTR_TEXT_MAXFRAMEWIDTH,nWdt) {}
-};
+inline SdrMetricItem makeSdrTextMaxFrameWidthItem(long nWdt) {
+ return SdrMetricItem(SDRATTR_TEXT_MAXFRAMEWIDTH, nWdt);
+}
#endif