LibreOffice
LibreOffice 24.2 SDK API Reference
|
extends the XFormsSupplier with convenience methods More...
import"XFormsSupplier2.idl";
Public Member Functions | |
boolean | hasForms () |
determines whether there are currently forms available at all More... | |
Public Member Functions inherited from XFormsSupplier | |
com::sun::star::container::XNameContainer | getForms () |
accesses the forms. More... | |
Public Member Functions inherited from XInterface | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. More... | |
void | acquire () |
increases the reference counter by one. More... | |
void | release () |
decreases the reference counter by one. More... | |
extends the XFormsSupplier with convenience methods
boolean hasForms | ( | ) |
determines whether there are currently forms available at all
If you need read access to the forms collection, then you might check the existence of forms using hasForms(), and if it returns FALSE
, you can do as if XFormsSupplier::getForms() would have returned an empty container.
Semantically, hasForms() is equivalent to calling XElementAccess::hasElements() on the container returned by XFormsSupplier::getForms(). But when using the latter, the implementation is forced to create an empty container, which might be potentially expensive.