Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


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

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.