summaryrefslogtreecommitdiff
path: root/svx/source/items
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-12-10 12:48:42 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-12-10 20:35:35 +0100
commite1807c61f1abc6cab74d0fa8ccac7a8ef9114b88 (patch)
tree07ead5860940989cb03c4792abed50fa883ba9a1 /svx/source/items
parent837902468522531c8d0ad35612dce53d4facb668 (diff)
Related: tdf#129300 rotation reference edge had no real description
Change-Id: I739c577d9a5f98969daa0c8fb3b7a63dea40743c Reviewed-on: https://gerrit.libreoffice.org/84831 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source/items')
-rw-r--r--svx/source/items/rotmodit.cxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/svx/source/items/rotmodit.cxx b/svx/source/items/rotmodit.cxx
index 8b378cdf5cc9..3ec86cc1ab3d 100644
--- a/svx/source/items/rotmodit.cxx
+++ b/svx/source/items/rotmodit.cxx
@@ -31,7 +31,9 @@
#include <com/sun/star/table/CellOrientation.hpp>
#include <com/sun/star/table/CellAddress.hpp>
+#include <svx/dialmgr.hxx>
#include <svx/rotmodit.hxx>
+#include <rotationstrings.hrc>
using namespace ::com::sun::star;
@@ -56,6 +58,12 @@ SvxRotateModeItem::~SvxRotateModeItem()
{
}
+OUString SvxRotateModeItem::GetValueText(SvxRotateMode nVal)
+{
+ assert(nVal <= SVX_ROTATE_MODE_BOTTOM && "enum overflow!");
+ return SvxResId(RID_SVXITEMS_ROTATE_MODE[static_cast<size_t>(nVal)]);
+}
+
bool SvxRotateModeItem::GetPresentation(
SfxItemPresentation ePres,
MapUnit /*eCoreUnit*/, MapUnit /*ePresUnit*/,
@@ -66,8 +74,9 @@ bool SvxRotateModeItem::GetPresentation(
switch ( ePres )
{
case SfxItemPresentation::Complete:
- rText += "...: ";
- [[fallthrough]]; // break; // FALL THROUGH!!!
+ rText += GetValueText(GetValue());
+ return true;
+ break;
case SfxItemPresentation::Nameless:
rText += OUString::number( GetValue() );