32 struct GridTableRenderer_Impl;
45 ::std::unique_ptr< GridTableRenderer_Impl >
m_pImpl;
70 bool _bIsColHeaderArea,
bool _bIsRowHeaderArea,
75 virtual void PrepareRow(
RowPos _nRow,
bool i_hasControlFocus,
bool _bSelected,
82 bool i_hasControlFocus,
bool _bSelected,
88 css::uno::Any
const & i_cellContent,
92 css::uno::Any
const & i_cellValue,
93 OUString & o_cellString
104 Image const & i_image
108 OUString
const & i_text
a default implementation for the ->ITableRenderer interface
virtual void PaintCell(ColPos const i_col, bool i_hasControlFocus, bool _bSelected, vcl::RenderContext &_rDevice, const tools::Rectangle &_rArea, const StyleSettings &_rStyle) override
paints a certain cell
::std::unique_ptr< GridTableRenderer_Impl > m_pImpl
virtual void PaintRowHeader(vcl::RenderContext &_rDevice, const tools::Rectangle &_rArea, const StyleSettings &_rStyle) override
paints the header of a row
virtual void HideCellCursor(vcl::Window &_rView) override
hides the cell cursor previously drawn into the given rectangle
virtual ~GridTableRenderer() override
bool useGridLines() const
determines whether or not to paint grid lines
virtual void PaintColumnHeader(ColPos _nCol, vcl::RenderContext &_rDevice, const tools::Rectangle &_rArea, const StyleSettings &_rStyle) override
paints the header for a given column
virtual void PrepareRow(RowPos _nRow, bool i_hasControlFocus, bool _bSelected, vcl::RenderContext &_rDevice, const tools::Rectangle &_rRowArea, const StyleSettings &_rStyle) override
prepares a row for painting
virtual void PaintHeaderArea(vcl::RenderContext &_rDevice, const tools::Rectangle &_rArea, bool _bIsColHeaderArea, bool _bIsRowHeaderArea, const StyleSettings &_rStyle) override
paints a (part of) header area
virtual void ShowCellCursor(vcl::Window &_rView, const tools::Rectangle &_rCursorRect) override
draws a cell cursor in the given rectangle
void impl_paintCellImage(CellRenderContext const &i_context, Image const &i_image)
virtual bool FitsIntoCell(css::uno::Any const &i_cellContent, OutputDevice &i_targetDevice, tools::Rectangle const &i_targetArea) const override
checks whether a given cell content fits into a given target area on a given device.
void impl_paintCellContent(CellRenderContext const &i_context)
GridTableRenderer(ITableModel &_rModel)
creates a table renderer associated with the given model
void impl_paintCellText(CellRenderContext const &i_context, OUString const &i_text)
virtual bool GetFormattedCellString(css::uno::Any const &i_cellValue, OUString &o_cellString) const override
attempts to format the content of the given cell as string
declares the interface to implement by an abstract table model
interface to implement by components rendering a ->TableControl
sal_Int32 RowPos
a value denoting a row position within a table
sal_Int32 ColPos
a value denoting a column position within a table