LibreOffice Module oox (master) 1
|
This helper manages named objects in a container, which is created on demand. More...
#include <modelobjecthelper.hxx>
Public Member Functions | |
ObjectContainer (const css::uno::Reference< css::lang::XMultiServiceFactory > &rxModelFactory, OUString aServiceName) | |
~ObjectContainer () | |
bool | hasObject (const OUString &rObjName) const |
Returns true, if the object with the passed name exists in the container. More... | |
css::uno::Any | getObject (const OUString &rObjName) const |
OUString | insertObject (const OUString &rObjName, const css::uno::Any &rObj, bool bInsertByUnusedName) |
Inserts the passed object into the container, returns its final name. More... | |
Private Member Functions | |
void | createContainer () const |
Private Attributes | |
css::uno::Reference< css::lang::XMultiServiceFactory > | mxModelFactory |
Factory to create the container. More... | |
css::uno::Reference< css::container::XNameContainer > | mxContainer |
Container for the objects. More... | |
OUString | maServiceName |
Service name to create the container. More... | |
sal_Int32 | mnIndex |
Index to create unique identifiers. More... | |
This helper manages named objects in a container, which is created on demand.
Definition at line 46 of file modelobjecthelper.hxx.
|
explicit |
Definition at line 41 of file modelobjecthelper.cxx.
References maServiceName, and mxModelFactory.
oox::ObjectContainer::~ObjectContainer | ( | ) |
Definition at line 49 of file modelobjecthelper.cxx.
|
private |
Definition at line 79 of file modelobjecthelper.cxx.
References Exception, maServiceName, mxContainer, and mxModelFactory.
Referenced by hasObject(), and insertObject().
Any oox::ObjectContainer::getObject | ( | const OUString & | rObjName | ) | const |
Definition at line 59 of file modelobjecthelper.cxx.
References Any, hasObject(), and mxContainer.
Referenced by oox::ModelObjectHelper::getFillBitmap().
bool oox::ObjectContainer::hasObject | ( | const OUString & | rObjName | ) | const |
Returns true, if the object with the passed name exists in the container.
Definition at line 53 of file modelobjecthelper.cxx.
References createContainer(), and mxContainer.
Referenced by getObject(), and oox::ModelObjectHelper::hasLineMarker().
OUString oox::ObjectContainer::insertObject | ( | const OUString & | rObjName, |
const css::uno::Any & | rObj, | ||
bool | bInsertByUnusedName | ||
) |
Inserts the passed object into the container, returns its final name.
Definition at line 66 of file modelobjecthelper.cxx.
References createContainer(), oox::ContainerHelper::insertByName(), oox::ContainerHelper::insertByUnusedName(), mnIndex, and mxContainer.
Referenced by oox::ModelObjectHelper::insertFillBitmapXGraphic(), oox::ModelObjectHelper::insertFillHatch(), oox::ModelObjectHelper::insertLineDash(), and oox::ModelObjectHelper::insertLineMarker().
|
private |
Service name to create the container.
Definition at line 73 of file modelobjecthelper.hxx.
Referenced by createContainer().
|
private |
Index to create unique identifiers.
Definition at line 74 of file modelobjecthelper.hxx.
Referenced by insertObject().
|
mutableprivate |
Container for the objects.
Definition at line 72 of file modelobjecthelper.hxx.
Referenced by createContainer(), getObject(), hasObject(), and insertObject().
|
mutableprivate |
Factory to create the container.
Definition at line 70 of file modelobjecthelper.hxx.
Referenced by createContainer(), and ObjectContainer().