summaryrefslogtreecommitdiff
path: root/oox/source/drawingml/table/tablecell.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-05-10 08:26:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-05-10 09:51:34 +0200
commit239ceb315521d9e88fb8290ba391c70a53095af4 (patch)
tree89d2c12874823ae5eea38385e5f89d5cc902b707 /oox/source/drawingml/table/tablecell.cxx
parent58a9c936bb065384d50e122ee2ac9037dd60cc32 (diff)
loplugin:ostr in oox
Change-Id: I08124ce2da1facbe2e84aa4a7a8e25fec24fa962 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167428 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox/source/drawingml/table/tablecell.cxx')
-rw-r--r--oox/source/drawingml/table/tablecell.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/oox/source/drawingml/table/tablecell.cxx b/oox/source/drawingml/table/tablecell.cxx
index 78ec4f61feeb..c04960240ec7 100644
--- a/oox/source/drawingml/table/tablecell.cxx
+++ b/oox/source/drawingml/table/tablecell.cxx
@@ -244,10 +244,10 @@ static void applyTableStylePart( const ::oox::core::XmlFilterBase& rFilterBase,
static void applyTableCellProperties( const Reference < css::table::XCell >& rxCell, const TableCell& rTableCell )
{
Reference< XPropertySet > xPropSet( rxCell, UNO_QUERY_THROW );
- xPropSet->setPropertyValue( "TextUpperDistance", Any( static_cast< sal_Int32 >( rTableCell.getTopMargin() / 360 ) ) );
- xPropSet->setPropertyValue( "TextRightDistance", Any( static_cast< sal_Int32 >( rTableCell.getRightMargin() / 360 ) ) );
- xPropSet->setPropertyValue( "TextLeftDistance", Any( static_cast< sal_Int32 >( rTableCell.getLeftMargin() / 360 ) ) );
- xPropSet->setPropertyValue( "TextLowerDistance", Any( static_cast< sal_Int32 >( rTableCell.getBottomMargin() / 360 ) ) );
+ xPropSet->setPropertyValue( u"TextUpperDistance"_ustr, Any( static_cast< sal_Int32 >( rTableCell.getTopMargin() / 360 ) ) );
+ xPropSet->setPropertyValue( u"TextRightDistance"_ustr, Any( static_cast< sal_Int32 >( rTableCell.getRightMargin() / 360 ) ) );
+ xPropSet->setPropertyValue( u"TextLeftDistance"_ustr, Any( static_cast< sal_Int32 >( rTableCell.getLeftMargin() / 360 ) ) );
+ xPropSet->setPropertyValue( u"TextLowerDistance"_ustr, Any( static_cast< sal_Int32 >( rTableCell.getBottomMargin() / 360 ) ) );
drawing::TextVerticalAdjust eVA;
switch( rTableCell.getAnchorToken() )
@@ -259,7 +259,7 @@ static void applyTableCellProperties( const Reference < css::table::XCell >& rxC
default:
case XML_t: eVA = drawing::TextVerticalAdjust_TOP; break;
}
- xPropSet->setPropertyValue( "TextVerticalAdjust", Any( eVA ) );
+ xPropSet->setPropertyValue( u"TextVerticalAdjust"_ustr, Any( eVA ) );
}
void TableCell::pushToXCell( const ::oox::core::XmlFilterBase& rFilterBase, const ::oox::drawingml::TextListStylePtr& pMasterTextListStyle,
@@ -575,7 +575,7 @@ void TableCell::pushToXCell( const ::oox::core::XmlFilterBase& rFilterBase, cons
if ( getVertToken() == XML_eaVert )
{
- xPropSet->setPropertyValue("TextWritingMode", Any(css::text::WritingMode_TB_RL));
+ xPropSet->setPropertyValue(u"TextWritingMode"_ustr, Any(css::text::WritingMode_TB_RL));
}
getTextBody()->insertAt( rFilterBase, xText, xAt, aTextStyleProps, pMasterTextListStyle );
@@ -596,19 +596,19 @@ void TableCell::pushToXCell( const ::oox::core::XmlFilterBase& rFilterBase, cons
if ( getVertToken() == XML_vert )
{
- xPropSet->setPropertyValue("RotateAngle", Any(short(27000)));
+ xPropSet->setPropertyValue(u"RotateAngle"_ustr, Any(short(27000)));
}
else if ( getVertToken() == XML_vert270 )
{
- xPropSet->setPropertyValue("RotateAngle", Any(short(9000)));
+ xPropSet->setPropertyValue(u"RotateAngle"_ustr, Any(short(9000)));
}
else if ( getVertToken() != XML_horz && getVertToken() != XML_eaVert )
{
// put the vert value in the grab bag for roundtrip
const OUString aTokenName(StaticTokenMap().getUnicodeTokenName(getVertToken()));
Sequence<PropertyValue> aGrabBag;
- xPropSet->getPropertyValue("CellInteropGrabBag") >>= aGrabBag;
- PropertyValue aPropertyValue = comphelper::makePropertyValue("mso-tcPr-vert-value", aTokenName);
+ xPropSet->getPropertyValue(u"CellInteropGrabBag"_ustr) >>= aGrabBag;
+ PropertyValue aPropertyValue = comphelper::makePropertyValue(u"mso-tcPr-vert-value"_ustr, aTokenName);
if (aGrabBag.hasElements())
{
sal_Int32 nLength = aGrabBag.getLength();
@@ -619,7 +619,7 @@ void TableCell::pushToXCell( const ::oox::core::XmlFilterBase& rFilterBase, cons
{
aGrabBag = { aPropertyValue };
}
- xPropSet->setPropertyValue("CellInteropGrabBag", Any(aGrabBag));
+ xPropSet->setPropertyValue(u"CellInteropGrabBag"_ustr, Any(aGrabBag));
}
}