tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / toolkit / source / controls / table / gridtablerenderer.cxx
blobaa49f4afddc1c917d667408bdc62e95545b391d1
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 #include "cellvalueconversion.hxx"
22 #include <controls/table/gridtablerenderer.hxx>
23 #include <controls/table/tablesort.hxx>
25 #include <com/sun/star/graphic/XGraphic.hpp>
27 #include <tools/debug.hxx>
28 #include <comphelper/diagnose_ex.hxx>
29 #include <vcl/window.hxx>
30 #include <vcl/image.hxx>
31 #include <vcl/virdev.hxx>
32 #include <vcl/decoview.hxx>
33 #include <vcl/settings.hxx>
36 namespace svt::table
38 using ::css::uno::Any;
39 using ::css::uno::Reference;
40 using ::css::uno::UNO_QUERY;
41 using ::css::uno::XInterface;
42 using ::css::uno::TypeClass_INTERFACE;
43 using ::css::graphic::XGraphic;
44 using ::css::style::HorizontalAlignment;
45 using ::css::style::HorizontalAlignment_CENTER;
46 using ::css::style::HorizontalAlignment_RIGHT;
47 using ::css::style::VerticalAlignment;
48 using ::css::style::VerticalAlignment_MIDDLE;
49 using ::css::style::VerticalAlignment_BOTTOM;
52 //= CachedSortIndicator
54 namespace {
56 class CachedSortIndicator
58 public:
59 CachedSortIndicator()
60 : m_lastHeaderHeight( 0 )
61 , m_lastArrowColor( COL_TRANSPARENT )
65 BitmapEx const & getBitmapFor(vcl::RenderContext const & i_device, tools::Long const i_headerHeight,
66 StyleSettings const & i_style, bool const i_sortAscending);
68 private:
69 tools::Long m_lastHeaderHeight;
70 Color m_lastArrowColor;
71 BitmapEx m_sortAscending;
72 BitmapEx m_sortDescending;
77 BitmapEx const & CachedSortIndicator::getBitmapFor(vcl::RenderContext const& i_device, tools::Long const i_headerHeight,
78 StyleSettings const & i_style, bool const i_sortAscending )
80 BitmapEx& rBitmap(i_sortAscending ? m_sortAscending : m_sortDescending);
81 if (rBitmap.IsEmpty() || (i_headerHeight != m_lastHeaderHeight) || (i_style.GetActiveColor() != m_lastArrowColor))
83 tools::Long const nSortIndicatorWidth = 2 * i_headerHeight / 3;
84 tools::Long const nSortIndicatorHeight = 2 * nSortIndicatorWidth / 3;
86 Point const aBitmapPos( 0, 0 );
87 Size const aBitmapSize( nSortIndicatorWidth, nSortIndicatorHeight );
88 ScopedVclPtrInstance< VirtualDevice > aDevice(i_device, DeviceFormat::WITH_ALPHA);
89 aDevice->SetOutputSizePixel( aBitmapSize );
91 DecorationView aDecoView(aDevice.get());
92 aDecoView.DrawSymbol(tools::Rectangle(aBitmapPos, aBitmapSize),
93 i_sortAscending ? SymbolType::SPIN_UP : SymbolType::SPIN_DOWN,
94 i_style.GetActiveColor());
96 rBitmap = aDevice->GetBitmapEx(aBitmapPos, aBitmapSize);
97 m_lastHeaderHeight = i_headerHeight;
98 m_lastArrowColor = i_style.GetActiveColor();
100 return rBitmap;
104 //= GridTableRenderer_Impl
106 struct GridTableRenderer_Impl
108 ITableModel& rModel;
109 RowPos nCurrentRow;
110 bool bUseGridLines;
111 CachedSortIndicator aSortIndicator;
112 CellValueConversion aStringConverter;
114 explicit GridTableRenderer_Impl( ITableModel& _rModel )
115 : rModel( _rModel )
116 , nCurrentRow( ROW_INVALID )
117 , bUseGridLines( true )
118 , aSortIndicator( )
119 , aStringConverter()
125 //= helper
127 namespace
129 tools::Rectangle lcl_getContentArea( GridTableRenderer_Impl const & i_impl, tools::Rectangle const & i_cellArea )
131 tools::Rectangle aContentArea( i_cellArea );
132 if ( i_impl.bUseGridLines )
134 aContentArea.AdjustRight( -1 );
135 aContentArea.AdjustBottom( -1 );
137 return aContentArea;
139 tools::Rectangle lcl_getTextRenderingArea( tools::Rectangle const & i_contentArea )
141 tools::Rectangle aTextArea( i_contentArea );
142 aTextArea.AdjustLeft(2 ); aTextArea.AdjustRight( -2 );
143 aTextArea.AdjustTop( 1 ); aTextArea.AdjustBottom( -1 );
144 return aTextArea;
147 DrawTextFlags lcl_getAlignmentTextDrawFlags( GridTableRenderer_Impl const & i_impl, ColPos const i_columnPos )
149 DrawTextFlags nVertFlag = DrawTextFlags::Top;
150 VerticalAlignment const eVertAlign = i_impl.rModel.getVerticalAlign();
151 switch ( eVertAlign )
153 case VerticalAlignment_MIDDLE: nVertFlag = DrawTextFlags::VCenter; break;
154 case VerticalAlignment_BOTTOM: nVertFlag = DrawTextFlags::Bottom; break;
155 default:
156 break;
159 DrawTextFlags nHorzFlag = DrawTextFlags::Left;
160 HorizontalAlignment const eHorzAlign = i_impl.rModel.getColumnCount() > 0
161 ? i_impl.rModel.getColumnModel( i_columnPos )->getHorizontalAlign()
162 : HorizontalAlignment_CENTER;
163 switch ( eHorzAlign )
165 case HorizontalAlignment_CENTER: nHorzFlag = DrawTextFlags::Center; break;
166 case HorizontalAlignment_RIGHT: nHorzFlag = DrawTextFlags::Right; break;
167 default:
168 break;
171 return nVertFlag | nHorzFlag;
177 //= GridTableRenderer
180 GridTableRenderer::GridTableRenderer( ITableModel& _rModel )
181 :m_pImpl( new GridTableRenderer_Impl( _rModel ) )
186 GridTableRenderer::~GridTableRenderer()
191 bool GridTableRenderer::useGridLines() const
193 return m_pImpl->bUseGridLines;
197 void GridTableRenderer::useGridLines( bool const i_use )
199 m_pImpl->bUseGridLines = i_use;
203 namespace
205 Color lcl_getEffectiveColor(std::optional<Color> const& i_modelColor,
206 StyleSettings const& i_styleSettings,
207 Color const& (StyleSettings::*i_getDefaultColor) () const)
209 if (!!i_modelColor)
210 return *i_modelColor;
211 return (i_styleSettings.*i_getDefaultColor)();
216 void GridTableRenderer::PaintHeaderArea(vcl::RenderContext& rRenderContext, const tools::Rectangle& _rArea,
217 bool _bIsColHeaderArea, bool _bIsRowHeaderArea, const StyleSettings& _rStyle)
219 OSL_PRECOND(_bIsColHeaderArea || _bIsRowHeaderArea, "GridTableRenderer::PaintHeaderArea: invalid area flags!");
221 rRenderContext.Push(vcl::PushFlags::FILLCOLOR | vcl::PushFlags::LINECOLOR);
223 Color const background = lcl_getEffectiveColor(m_pImpl->rModel.getHeaderBackgroundColor(),
224 _rStyle, &StyleSettings::GetDialogColor);
225 rRenderContext.SetFillColor(background);
227 rRenderContext.SetLineColor();
228 rRenderContext.DrawRect(_rArea);
230 // delimiter lines at bottom/right
231 std::optional<Color> aLineColor(m_pImpl->rModel.getLineColor());
232 Color const lineColor = !aLineColor ? _rStyle.GetSeparatorColor() : *aLineColor;
233 rRenderContext.SetLineColor(lineColor);
234 rRenderContext.DrawLine(_rArea.BottomLeft(), _rArea.BottomRight());
235 rRenderContext.DrawLine(_rArea.BottomRight(), _rArea.TopRight());
237 rRenderContext.Pop();
241 void GridTableRenderer::PaintColumnHeader(
242 ColPos _nCol,
243 vcl::RenderContext& rRenderContext,
244 const tools::Rectangle& _rArea, const StyleSettings& _rStyle)
246 rRenderContext.Push(vcl::PushFlags::LINECOLOR);
248 OUString sHeaderText;
249 PColumnModel const pColumn = m_pImpl->rModel.getColumnModel( _nCol );
250 DBG_ASSERT( pColumn, "GridTableRenderer::PaintColumnHeader: invalid column model object!" );
251 if ( pColumn )
252 sHeaderText = pColumn->getName();
254 Color const textColor = lcl_getEffectiveColor( m_pImpl->rModel.getTextColor(), _rStyle, &StyleSettings::GetFieldTextColor );
255 rRenderContext.SetTextColor(textColor);
257 tools::Rectangle const aTextRect( lcl_getTextRenderingArea( lcl_getContentArea( *m_pImpl, _rArea ) ) );
258 DrawTextFlags nDrawTextFlags = lcl_getAlignmentTextDrawFlags( *m_pImpl, _nCol ) | DrawTextFlags::Clip;
259 if (!m_pImpl->rModel.isEnabled())
260 nDrawTextFlags |= DrawTextFlags::Disable;
261 rRenderContext.DrawText( aTextRect, sHeaderText, nDrawTextFlags );
263 std::optional<Color> const aLineColor( m_pImpl->rModel.getLineColor() );
264 Color const lineColor = !aLineColor ? _rStyle.GetSeparatorColor() : *aLineColor;
265 rRenderContext.SetLineColor( lineColor );
266 rRenderContext.DrawLine( _rArea.BottomRight(), _rArea.TopRight());
267 rRenderContext.DrawLine( _rArea.BottomLeft(), _rArea.BottomRight() );
269 // draw sort indicator if the model data is sorted by the given column
270 ITableDataSort const * pSortAdapter = m_pImpl->rModel.getSortAdapter();
271 ColumnSort aCurrentSortOrder;
272 if ( pSortAdapter != nullptr )
273 aCurrentSortOrder = pSortAdapter->getCurrentSortOrder();
274 if ( aCurrentSortOrder.nColumnPos == _nCol )
276 tools::Long const nHeaderHeight( _rArea.GetHeight() );
277 BitmapEx const aIndicatorBitmap = m_pImpl->aSortIndicator.getBitmapFor(rRenderContext, nHeaderHeight, _rStyle,
278 aCurrentSortOrder.eSortDirection == ColumnSortAscending);
279 Size const aBitmapSize( aIndicatorBitmap.GetSizePixel() );
280 tools::Long const nSortIndicatorPaddingX = 2;
281 tools::Long const nSortIndicatorPaddingY = ( nHeaderHeight - aBitmapSize.Height() ) / 2;
283 if ( nDrawTextFlags & DrawTextFlags::Right )
285 // text is right aligned => draw the sort indicator at the left hand side
286 rRenderContext.DrawBitmapEx(Point(_rArea.Left() + nSortIndicatorPaddingX, _rArea.Top() + nSortIndicatorPaddingY),
287 aIndicatorBitmap);
289 else
291 // text is left-aligned or centered => draw the sort indicator at the right hand side
292 rRenderContext.DrawBitmapEx(Point(_rArea.Right() - nSortIndicatorPaddingX - aBitmapSize.Width(), nSortIndicatorPaddingY),
293 aIndicatorBitmap);
297 rRenderContext.Pop();
301 void GridTableRenderer::PrepareRow(RowPos _nRow, bool i_hasControlFocus, bool _bSelected, vcl::RenderContext& rRenderContext,
302 const tools::Rectangle& _rRowArea, const StyleSettings& _rStyle)
304 // remember the row for subsequent calls to the other ->ITableRenderer methods
305 m_pImpl->nCurrentRow = _nRow;
307 rRenderContext.Push(vcl::PushFlags::FILLCOLOR | vcl::PushFlags::LINECOLOR);
309 Color backgroundColor = _rStyle.GetFieldColor();
311 Color const activeSelectionBackColor = lcl_getEffectiveColor(m_pImpl->rModel.getActiveSelectionBackColor(),
312 _rStyle, &StyleSettings::GetHighlightColor);
313 if (_bSelected)
315 // selected rows use the background color from the style
316 backgroundColor = i_hasControlFocus
317 ? activeSelectionBackColor
318 : lcl_getEffectiveColor(m_pImpl->rModel.getInactiveSelectionBackColor(), _rStyle, &StyleSettings::GetDeactiveColor);
320 else
322 std::optional< std::vector<Color> > aRowColors = m_pImpl->rModel.getRowBackgroundColors();
323 if (!aRowColors)
325 // use alternating default colors
326 Color const fieldColor = _rStyle.GetFieldColor();
327 if (_rStyle.GetHighContrastMode() || ((m_pImpl->nCurrentRow % 2) == 0))
329 backgroundColor = fieldColor;
331 else
333 Color hilightColor = activeSelectionBackColor;
334 hilightColor.SetRed( 9 * ( fieldColor.GetRed() - hilightColor.GetRed() ) / 10 + hilightColor.GetRed() );
335 hilightColor.SetGreen( 9 * ( fieldColor.GetGreen() - hilightColor.GetGreen() ) / 10 + hilightColor.GetGreen() );
336 hilightColor.SetBlue( 9 * ( fieldColor.GetBlue() - hilightColor.GetBlue() ) / 10 + hilightColor.GetBlue() );
337 backgroundColor = hilightColor;
340 else
342 if (aRowColors->empty())
344 // all colors have the same background color
345 backgroundColor = _rStyle.GetFieldColor();
347 else
349 backgroundColor = aRowColors->at(m_pImpl->nCurrentRow % aRowColors->size());
354 rRenderContext.SetLineColor();
355 rRenderContext.SetFillColor(backgroundColor);
356 rRenderContext.DrawRect(_rRowArea);
358 rRenderContext.Pop();
362 void GridTableRenderer::PaintRowHeader(vcl::RenderContext& rRenderContext,
363 const tools::Rectangle& _rArea, const StyleSettings& _rStyle)
365 rRenderContext.Push( vcl::PushFlags::LINECOLOR | vcl::PushFlags::TEXTCOLOR );
367 std::optional<Color> const aLineColor( m_pImpl->rModel.getLineColor() );
368 Color const lineColor = !aLineColor ? _rStyle.GetSeparatorColor() : *aLineColor;
369 rRenderContext.SetLineColor(lineColor);
370 rRenderContext.DrawLine(_rArea.BottomLeft(), _rArea.BottomRight());
372 Any const rowHeading( m_pImpl->rModel.getRowHeading( m_pImpl->nCurrentRow ) );
373 OUString const rowTitle( m_pImpl->aStringConverter.convertToString( rowHeading ) );
374 if (!rowTitle.isEmpty())
376 Color const textColor = lcl_getEffectiveColor(m_pImpl->rModel.getHeaderTextColor(),
377 _rStyle, &StyleSettings::GetFieldTextColor);
378 rRenderContext.SetTextColor(textColor);
380 tools::Rectangle const aTextRect(lcl_getTextRenderingArea(lcl_getContentArea(*m_pImpl, _rArea)));
381 DrawTextFlags nDrawTextFlags = lcl_getAlignmentTextDrawFlags(*m_pImpl, 0) | DrawTextFlags::Clip;
382 if (!m_pImpl->rModel.isEnabled())
383 nDrawTextFlags |= DrawTextFlags::Disable;
384 // TODO: is using the horizontal alignment of the 0'th column a good idea here? This is pretty ... arbitrary ..
385 rRenderContext.DrawText(aTextRect, rowTitle, nDrawTextFlags);
388 rRenderContext.Pop();
392 struct GridTableRenderer::CellRenderContext
394 OutputDevice& rDevice;
395 tools::Rectangle const aContentArea;
396 StyleSettings const & rStyle;
397 ColPos const nColumn;
398 bool const bSelected;
399 bool const bHasControlFocus;
401 CellRenderContext( OutputDevice& i_device, tools::Rectangle const & i_contentArea,
402 StyleSettings const & i_style, ColPos const i_column, bool const i_selected, bool const i_hasControlFocus )
403 :rDevice( i_device )
404 ,aContentArea( i_contentArea )
405 ,rStyle( i_style )
406 ,nColumn( i_column )
407 ,bSelected( i_selected )
408 ,bHasControlFocus( i_hasControlFocus )
414 void GridTableRenderer::PaintCell(ColPos const i_column, bool _bSelected, bool i_hasControlFocus,
415 vcl::RenderContext& rRenderContext, const tools::Rectangle& _rArea, const StyleSettings& _rStyle)
417 rRenderContext.Push(vcl::PushFlags::LINECOLOR | vcl::PushFlags::FILLCOLOR);
419 tools::Rectangle const aContentArea(lcl_getContentArea(*m_pImpl, _rArea));
420 CellRenderContext const aCellRenderContext(rRenderContext, aContentArea, _rStyle, i_column, _bSelected, i_hasControlFocus);
421 impl_paintCellContent(aCellRenderContext);
423 if ( m_pImpl->bUseGridLines )
425 ::std::optional< ::Color > aLineColor( m_pImpl->rModel.getLineColor() );
426 ::Color lineColor = !aLineColor ? _rStyle.GetSeparatorColor() : *aLineColor;
428 if ( _bSelected && !aLineColor )
430 // if no line color is specified by the model, use the usual selection color for lines in selected cells
431 lineColor = i_hasControlFocus
432 ? lcl_getEffectiveColor( m_pImpl->rModel.getActiveSelectionBackColor(), _rStyle, &StyleSettings::GetHighlightColor )
433 : lcl_getEffectiveColor( m_pImpl->rModel.getInactiveSelectionBackColor(), _rStyle, &StyleSettings::GetDeactiveColor );
436 rRenderContext.SetLineColor( lineColor );
437 rRenderContext.DrawLine( _rArea.BottomLeft(), _rArea.BottomRight() );
438 rRenderContext.DrawLine( _rArea.BottomRight(), _rArea.TopRight() );
441 rRenderContext.Pop();
445 void GridTableRenderer::impl_paintCellImage( CellRenderContext const & i_context, Image const & i_image )
447 Point imagePos( i_context.aContentArea.Left(), i_context.aContentArea.Top() );
448 Size imageSize = i_image.GetSizePixel();
449 if ( i_context.aContentArea.GetWidth() > imageSize.Width() )
451 const HorizontalAlignment eHorzAlign = m_pImpl->rModel.getColumnModel( i_context.nColumn )->getHorizontalAlign();
452 switch ( eHorzAlign )
454 case HorizontalAlignment_CENTER:
455 imagePos.AdjustX(( i_context.aContentArea.GetWidth() - imageSize.Width() ) / 2 );
456 break;
457 case HorizontalAlignment_RIGHT:
458 imagePos.setX( i_context.aContentArea.Right() - imageSize.Width() );
459 break;
460 default:
461 break;
465 else
466 imageSize.setWidth( i_context.aContentArea.GetWidth() );
468 if ( i_context.aContentArea.GetHeight() > imageSize.Height() )
470 const VerticalAlignment eVertAlign = m_pImpl->rModel.getVerticalAlign();
471 switch ( eVertAlign )
473 case VerticalAlignment_MIDDLE:
474 imagePos.AdjustY(( i_context.aContentArea.GetHeight() - imageSize.Height() ) / 2 );
475 break;
476 case VerticalAlignment_BOTTOM:
477 imagePos.setY( i_context.aContentArea.Bottom() - imageSize.Height() );
478 break;
479 default:
480 break;
483 else
484 imageSize.setHeight( i_context.aContentArea.GetHeight() - 1 );
485 DrawImageFlags const nStyle = m_pImpl->rModel.isEnabled() ? DrawImageFlags::NONE : DrawImageFlags::Disable;
486 i_context.rDevice.DrawImage( imagePos, imageSize, i_image, nStyle );
490 void GridTableRenderer::impl_paintCellContent( CellRenderContext const & i_context )
492 Any aCellContent;
493 m_pImpl->rModel.getCellContent( i_context.nColumn, m_pImpl->nCurrentRow, aCellContent );
495 if ( aCellContent.getValueTypeClass() == TypeClass_INTERFACE )
497 Reference< XInterface > const xContentInterface( aCellContent, UNO_QUERY );
498 if ( !xContentInterface.is() )
499 // allowed. kind of.
500 return;
502 Reference< XGraphic > const xGraphic( aCellContent, UNO_QUERY );
503 ENSURE_OR_RETURN_VOID( xGraphic.is(), "GridTableRenderer::impl_paintCellContent: only XGraphic interfaces (or NULL) are supported for painting." );
505 const Image aImage( xGraphic );
506 impl_paintCellImage( i_context, aImage );
507 return;
510 const OUString sText( m_pImpl->aStringConverter.convertToString( aCellContent ) );
511 impl_paintCellText( i_context, sText );
515 void GridTableRenderer::impl_paintCellText( CellRenderContext const & i_context, OUString const & i_text )
517 if ( i_context.bSelected )
519 ::Color const textColor = i_context.bHasControlFocus
520 ? lcl_getEffectiveColor( m_pImpl->rModel.getActiveSelectionTextColor(), i_context.rStyle, &StyleSettings::GetHighlightTextColor )
521 : lcl_getEffectiveColor( m_pImpl->rModel.getInactiveSelectionTextColor(), i_context.rStyle, &StyleSettings::GetDeactiveTextColor );
522 i_context.rDevice.SetTextColor( textColor );
524 else
526 ::Color const textColor = lcl_getEffectiveColor( m_pImpl->rModel.getTextColor(), i_context.rStyle, &StyleSettings::GetFieldTextColor );
527 i_context.rDevice.SetTextColor( textColor );
530 tools::Rectangle const textRect( lcl_getTextRenderingArea( i_context.aContentArea ) );
531 DrawTextFlags nDrawTextFlags = lcl_getAlignmentTextDrawFlags( *m_pImpl, i_context.nColumn ) | DrawTextFlags::Clip;
532 if ( !m_pImpl->rModel.isEnabled() )
533 nDrawTextFlags |= DrawTextFlags::Disable;
534 i_context.rDevice.DrawText( textRect, i_text, nDrawTextFlags );
538 void GridTableRenderer::ShowCellCursor( vcl::Window& _rView, const tools::Rectangle& _rCursorRect)
540 _rView.ShowFocus( _rCursorRect );
544 void GridTableRenderer::HideCellCursor( vcl::Window& _rView )
546 _rView.HideFocus();
550 bool GridTableRenderer::FitsIntoCell( Any const & i_cellContent,
551 OutputDevice& i_targetDevice, tools::Rectangle const & i_targetArea ) const
553 if ( !i_cellContent.hasValue() )
554 return true;
556 if ( i_cellContent.getValueTypeClass() == TypeClass_INTERFACE )
558 Reference< XInterface > const xContentInterface( i_cellContent, UNO_QUERY );
559 if ( !xContentInterface.is() )
560 return true;
562 Reference< XGraphic > const xGraphic( i_cellContent, UNO_QUERY );
563 if ( xGraphic.is() )
564 // for the moment, assume it fits. We can always scale it down during painting ...
565 return true;
567 OSL_ENSURE( false, "GridTableRenderer::FitsIntoCell: only XGraphic interfaces (or NULL) are supported for painting." );
568 return true;
571 OUString const sText( m_pImpl->aStringConverter.convertToString( i_cellContent ) );
572 if ( sText.isEmpty() )
573 return true;
575 tools::Rectangle const aTargetArea( lcl_getTextRenderingArea( lcl_getContentArea( *m_pImpl, i_targetArea ) ) );
577 tools::Long const nTextHeight = i_targetDevice.GetTextHeight();
578 if ( nTextHeight > aTargetArea.GetHeight() )
579 return false;
581 tools::Long const nTextWidth = i_targetDevice.GetTextWidth( sText );
582 return nTextWidth <= aTargetArea.GetWidth();
586 bool GridTableRenderer::GetFormattedCellString( Any const & i_cellValue, OUString & o_cellString ) const
588 o_cellString = m_pImpl->aStringConverter.convertToString( i_cellValue );
590 return true;
594 } // namespace svt::table
597 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */