20#ifndef INCLUDED_OOX_HELPER_MODELOBJECTHELPER_HXX
21#define INCLUDED_OOX_HELPER_MODELOBJECTHELPER_HXX
23#include <com/sun/star/uno/Any.hxx>
24#include <com/sun/star/uno/Reference.hxx>
26#include <rtl/ustring.hxx>
33 namespace graphic {
class XGraphic; }
34 namespace container {
class XNameContainer; }
35 namespace drawing {
struct LineDash; }
36 namespace drawing {
struct Hatch; }
37 namespace drawing {
struct PolyPolygonBezierCoords; }
38 namespace lang {
class XMultiServiceFactory; }
50 const css::uno::Reference< css::lang::XMultiServiceFactory >& rxModelFactory,
51 OUString aServiceName );
55 bool hasObject(
const OUString& rObjName )
const;
57 css::uno::Any getObject(
const OUString& rObjName )
const;
60 OUString insertObject(
61 const OUString& rObjName,
62 const css::uno::Any& rObj,
63 bool bInsertByUnusedName );
66 void createContainer()
const;
69 mutable css::uno::Reference< css::lang::XMultiServiceFactory >
71 mutable css::uno::Reference< css::container::XNameContainer >
89 const css::uno::Reference< css::lang::XMultiServiceFactory >& rxModelFactory );
92 bool hasLineMarker(
const OUString& rMarkerName )
const;
96 bool insertLineMarker(
97 const OUString& rMarkerName,
98 const css::drawing::PolyPolygonBezierCoords& rMarker );
102 OUString insertLineDash(
const css::drawing::LineDash& rDash );
112 OUString insertFillHatch(
const css::drawing::Hatch& rHatch );
116 OUString insertFillBitmapXGraphic(css::uno::Reference<css::graphic::XGraphic>
const & rxGraphic);
118 css::uno::Reference<css::awt::XBitmap> getFillBitmap(OUString
const & rGraphicName);
Contains tables for named drawing objects for a document model.
OUString insertTransGrandient(const css::awt::Gradient2 &rGradient)
ObjectContainer maBitmapUrlContainer
Contains all named fill bitmap URLs.
OUString insertFillGradient(const css::awt::Gradient &rGradient)
OUString insertTransGrandient(const css::awt::Gradient &rGradient)
ObjectContainer maHatchContainer
Contains all named fill hatches.
ObjectContainer maMarkerContainer
Contains all named line markers (line end polygons).
ObjectContainer maDashContainer
Contains all named line dashes.
ObjectContainer maTransGradContainer
Contains all named transparency Gradients.
OUString insertFillGradient(const css::awt::Gradient2 &rGradient)
Inserts a new named fill gradient, returns the gradient name, based on an internal constant name with...
ObjectContainer maGradientContainer
Contains all named fill gradients.
This helper manages named objects in a container, which is created on demand.
OUString maServiceName
Service name to create the container.
css::uno::Reference< css::lang::XMultiServiceFactory > mxModelFactory
Factory to create the container.
css::uno::Reference< css::container::XNameContainer > mxContainer
Container for the objects.
sal_Int32 mnIndex
Index to create unique identifiers.
@ LineDash
Explicit line dash or name of a line dash stored in a global container.