C++ content XCell

Hello, colleagues !

I have to implement search in XTextTable, I have got access to Reference< XTextTable > and to cells in table via Reference< XCell > but when I try to get service Cell
via

Reference< com :: sun :: star :: text ::Cell > wcell = Reference < com :: sun :: star :: text ::Cell >( wCellRef, UNO_QUERY);

I receive compilation error, which way I can analyse text in XTextTable cell ?

Thanks a lot,
Yury.

The following Java code is from the developer’s guide.

XCell xCell = xCellRange.getCellByPosition(0, 1);
XText xText = UnoRuntime.queryInterface(XText.class, xCell);
XTextCursor xTextCursor = xText.createTextCursor();
XPropertySet xCursorProps = UnoRuntime.queryInterface(
    XPropertySet.class, xTextCursor);
xCursorProps.setPropertyValue("CharWeight",
    new Float(com.sun.star.awt.FontWeight.BOLD));
xText.insertString(xTextCursor, "\n  \"Is that the mill?\" he asked.", false);

Thanks a lot.

@YuryR: Glad it helped. Do not add [Solved] to the title. Instead, click to mark the answer as accepted. See guidelines for asking.