summaryrefslogtreecommitdiff
path: root/sw/source/uibase
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase')
-rw-r--r--sw/source/uibase/utlui/attrdesc.cxx9
-rw-r--r--sw/source/uibase/utlui/uiitems.cxx4
2 files changed, 8 insertions, 5 deletions
diff --git a/sw/source/uibase/utlui/attrdesc.cxx b/sw/source/uibase/utlui/attrdesc.cxx
index a329e5a280fd..2295146d2db2 100644
--- a/sw/source/uibase/utlui/attrdesc.cxx
+++ b/sw/source/uibase/utlui/attrdesc.cxx
@@ -24,6 +24,7 @@
#include <vcl/GraphicObject.hxx>
#include <editeng/itemtype.hxx>
+#include <editeng/eerdll.hxx>
#include <unotools/intlwrapper.hxx>
#include <rtl/ustrbuf.hxx>
#include <fmtanchr.hxx>
@@ -236,7 +237,7 @@ bool SwFormatFrameSize::GetPresentation
else
{
rText = rText + ::GetMetricText( GetWidth(), eCoreUnit, ePresUnit, &rIntl ) +
- " " + ::GetSvxString( ::GetMetricId( ePresUnit ) );
+ " " + ::EditResId( ::GetMetricId( ePresUnit ) );
}
if ( ATT_VAR_SIZE != GetHeightSizeType() )
{
@@ -251,7 +252,7 @@ bool SwFormatFrameSize::GetPresentation
else
{
rText = ::GetMetricText( GetHeight(), eCoreUnit, ePresUnit, &rIntl ) +
- " " + ::GetSvxString( ::GetMetricId( ePresUnit ) );
+ " " + EditResId( ::GetMetricId( ePresUnit ) );
}
}
return true;
@@ -351,7 +352,7 @@ bool SwFormatVertOrient::GetPresentation
{
rText = rText + SwResId( STR_POS_Y ) + " " +
::GetMetricText( GetPos(), eCoreUnit, ePresUnit, &rIntl ) +
- " " + ::GetSvxString( ::GetMetricId( ePresUnit ) );
+ " " + EditResId( ::GetMetricId( ePresUnit ) );
}
break;
case text::VertOrientation::TOP:
@@ -397,7 +398,7 @@ bool SwFormatHoriOrient::GetPresentation
{
rText = rText + SwResId( STR_POS_X ) + " " +
::GetMetricText( GetPos(), eCoreUnit, ePresUnit, &rIntl ) +
- " " + ::GetSvxString( ::GetMetricId( ePresUnit ) );
+ " " + EditResId( ::GetMetricId( ePresUnit ) );
}
break;
case text::HoriOrientation::RIGHT:
diff --git a/sw/source/uibase/utlui/uiitems.cxx b/sw/source/uibase/utlui/uiitems.cxx
index 1e370d9d26be..8c7c515796af 100644
--- a/sw/source/uibase/utlui/uiitems.cxx
+++ b/sw/source/uibase/utlui/uiitems.cxx
@@ -28,6 +28,8 @@
#include <unomid.h>
#include <numrule.hxx>
+#include <editeng/eerdll.hxx>
+
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
@@ -66,7 +68,7 @@ bool SwPageFootnoteInfoItem::GetPresentation
{
rText = SwResId( STR_MAX_FTN_HEIGHT ) + " " +
::GetMetricText( nHght, eCoreUnit, ePresUnit, &rIntl ) + " " +
- ::GetSvxString( ::GetMetricId( ePresUnit ) );
+ EditResId( ::GetMetricId( ePresUnit ) );
}
return true;
}