Hello Eike, > You can use XText::setString() to set an empty string, which effectively > clears any content, but just only the content. The XText interface is > exported by the Cell service.
Thank you! This works well. The class reference did not list this as member hence I never saw this. api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1text_1_1XText.html (The generalization (forgive me, if I'm wrong with the terminology) had the method, which I had missed) :( > Otherwise, clearContents() IS the canonical method to clear cell content > and formatting, actually at the sheet::XSheetOperation interface which > is exported by the sheet::SheetCellRange and sheet::SheetCellRanges > sevices. You probably obtained the XCell from one of those already, so > you could obtain that one cell as sub-range using > getCellRangeByPosition() if the existing range encompasses more than the > cell(s) to be cleared. Is there any benefit in using this ? I do use them but I discard them when I get the Cell Instance. >> 2. [... clang ...] > > Clang may have issues with the SDK, but I don't know details. Thank You for your help. I appreciate that you took your time out for helping me out. Anurag Ghosh _______________________________________________ LibreOffice mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice
