diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-08-04 19:22:55 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-08-04 19:22:55 +0200 |
commit | 151fbebf8ced85ee8582fe1ad8a8176e061845a6 (patch) | |
tree | 1615fcdaf075969b08302c5fb33e0f10d31d4d1e /include/svx | |
parent | 013744a5b475e151ca0918565fb369e22dfbc1db (diff) |
Consistency around SdrOnOffItem in svx/sdtagitm.hxx
...similar to what has been done for svx/sdtmfitm.hxx in
6a2ea81ca1622d2c2ad55bea8ddc28167fcc2794 "Remove unused ctors" and
68969cc61adecac481ae9656978ef952f435b310 "Consistency around SdrMetricItem."
Change-Id: I6d8b3709d6d55bd6958d38f262141c43779dfdcc
Diffstat (limited to 'include/svx')
-rw-r--r-- | include/svx/sdtagitm.hxx | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/include/svx/sdtagitm.hxx b/include/svx/sdtagitm.hxx index 65f90e91b06e..df186107f697 100644 --- a/include/svx/sdtagitm.hxx +++ b/include/svx/sdtagitm.hxx @@ -22,23 +22,13 @@ #include <svx/sdooitm.hxx> #include <svx/svddef.hxx> +inline SdrOnOffItem makeSdrTextAutoGrowHeightItem(bool bAuto) { + return SdrOnOffItem(SDRATTR_TEXT_AUTOGROWHEIGHT, bAuto); +} -// class SdrTextAutoGrowHeightItem - -class SdrTextAutoGrowHeightItem: public SdrOnOffItem { -public: - SdrTextAutoGrowHeightItem(bool bAuto=true): SdrOnOffItem(SDRATTR_TEXT_AUTOGROWHEIGHT,bAuto) {} - SdrTextAutoGrowHeightItem(SvStream& rIn) : SdrOnOffItem(SDRATTR_TEXT_AUTOGROWHEIGHT,rIn) {} -}; - - -// class SdrTextAutoGrowWidthItem - -class SdrTextAutoGrowWidthItem: public SdrOnOffItem { -public: - SdrTextAutoGrowWidthItem(bool bAuto=false): SdrOnOffItem(SDRATTR_TEXT_AUTOGROWWIDTH,bAuto) {} - SdrTextAutoGrowWidthItem(SvStream& rIn) : SdrOnOffItem(SDRATTR_TEXT_AUTOGROWWIDTH,rIn) {} -}; +inline SdrOnOffItem makeSdrTextAutoGrowWidthItem(bool bAuto) { + return SdrOnOffItem(SDRATTR_TEXT_AUTOGROWWIDTH, bAuto); +} #endif |