LibreOffice Module oox (master)  1
Public Member Functions | Private Attributes | List of all members
oox::ModelObjectHelper Class Reference

Contains tables for named drawing objects for a document model. More...

#include <modelobjecthelper.hxx>

Collaboration diagram for oox::ModelObjectHelper:
[legend]

Public Member Functions

 ModelObjectHelper (const css::uno::Reference< css::lang::XMultiServiceFactory > &rxModelFactory)
 
bool hasLineMarker (const OUString &rMarkerName) const
 Returns true, if the model contains a line marker with the passed name. More...
 
bool insertLineMarker (const OUString &rMarkerName, const css::drawing::PolyPolygonBezierCoords &rMarker)
 Inserts a new named line marker, overwrites an existing line marker with the same name. More...
 
OUString insertLineDash (const css::drawing::LineDash &rDash)
 Inserts a new named line dash, returns the line dash name, based on an internal constant name with a new unused index appended. More...
 
OUString insertFillGradient (const css::awt::Gradient &rGradient)
 Inserts a new named fill gradient, returns the gradient name, based on an internal constant name with a new unused index appended. More...
 
OUString insertTransGrandient (const css::awt::Gradient &rGradient)
 
OUString insertFillHatch (const css::drawing::Hatch &rHatch)
 
OUString insertFillBitmapXGraphic (css::uno::Reference< css::graphic::XGraphic > const &rxGraphic)
 Inserts a new named fill graphic, returns the bitmap name, based on an internal constant name with a new unused index appended. More...
 
css::uno::Reference< css::awt::XBitmap > getFillBitmap (OUString const &rGraphicName)
 

Private Attributes

ObjectContainer maMarkerContainer
 Contains all named line markers (line end polygons). More...
 
ObjectContainer maDashContainer
 Contains all named line dashes. More...
 
ObjectContainer maGradientContainer
 Contains all named fill gradients. More...
 
ObjectContainer maTransGradContainer
 Contains all named transparency Gradients. More...
 
ObjectContainer maBitmapUrlContainer
 Contains all named fill bitmap URLs. More...
 
ObjectContainer maHatchContainer
 Contains all named fill hatches. More...
 

Detailed Description

Contains tables for named drawing objects for a document model.

Contains tables for named line markers, line dashes, fill gradients, and fill bitmap URLs. The class is needed to handle different document models in the same filter (e.g. embedded charts) which carry their own drawing object tables.

Definition at line 84 of file modelobjecthelper.hxx.

Constructor & Destructor Documentation

oox::ModelObjectHelper::ModelObjectHelper ( const css::uno::Reference< css::lang::XMultiServiceFactory > &  rxModelFactory)
explicit

Definition at line 97 of file modelobjecthelper.cxx.

Member Function Documentation

uno::Reference< awt::XBitmap > oox::ModelObjectHelper::getFillBitmap ( OUString const &  rGraphicName)
bool oox::ModelObjectHelper::hasLineMarker ( const OUString &  rMarkerName) const

Returns true, if the model contains a line marker with the passed name.

Definition at line 107 of file modelobjecthelper.cxx.

References oox::ObjectContainer::hasObject(), and maMarkerContainer.

Referenced by oox::drawingml::ShapePropertyMap::hasNamedLineMarkerInTable().

OUString oox::ModelObjectHelper::insertFillBitmapXGraphic ( css::uno::Reference< css::graphic::XGraphic > const &  rxGraphic)

Inserts a new named fill graphic, returns the bitmap name, based on an internal constant name with a new unused index appended.

Definition at line 135 of file modelobjecthelper.cxx.

References Any, oox::gaBitmapUrlNameBase(), oox::ObjectContainer::insertObject(), and maBitmapUrlContainer.

Referenced by oox::drawingml::ShapePropertyMap::setFillBitmap(), and oox::drawingml::ShapePropertyMap::setFillBitmapName().

OUString oox::ModelObjectHelper::insertFillGradient ( const css::awt::Gradient &  rGradient)

Inserts a new named fill gradient, returns the gradient name, based on an internal constant name with a new unused index appended.

Definition at line 125 of file modelobjecthelper.cxx.

References Any, oox::gaGradientNameBase(), oox::ObjectContainer::insertObject(), and maGradientContainer.

Referenced by oox::drawingml::ShapePropertyMap::setFillGradient().

OUString oox::ModelObjectHelper::insertFillHatch ( const css::drawing::Hatch &  rHatch)
OUString oox::ModelObjectHelper::insertLineDash ( const css::drawing::LineDash &  rDash)

Inserts a new named line dash, returns the line dash name, based on an internal constant name with a new unused index appended.

Definition at line 120 of file modelobjecthelper.cxx.

References Any, oox::gaDashNameBase(), oox::ObjectContainer::insertObject(), and maDashContainer.

Referenced by oox::drawingml::ShapePropertyMap::setLineDash().

bool oox::ModelObjectHelper::insertLineMarker ( const OUString &  rMarkerName,
const css::drawing::PolyPolygonBezierCoords &  rMarker 
)

Inserts a new named line marker, overwrites an existing line marker with the same name.

Returns true, if the marker could be inserted.

Definition at line 112 of file modelobjecthelper.cxx.

References Any, oox::ObjectContainer::insertObject(), and maMarkerContainer.

Referenced by oox::drawingml::ShapePropertyMap::setLineMarker().

OUString oox::ModelObjectHelper::insertTransGrandient ( const css::awt::Gradient &  rGradient)

Member Data Documentation

ObjectContainer oox::ModelObjectHelper::maBitmapUrlContainer
private

Contains all named fill bitmap URLs.

Definition at line 122 of file modelobjecthelper.hxx.

Referenced by getFillBitmap(), and insertFillBitmapXGraphic().

ObjectContainer oox::ModelObjectHelper::maDashContainer
private

Contains all named line dashes.

Definition at line 119 of file modelobjecthelper.hxx.

Referenced by insertLineDash().

ObjectContainer oox::ModelObjectHelper::maGradientContainer
private

Contains all named fill gradients.

Definition at line 120 of file modelobjecthelper.hxx.

Referenced by insertFillGradient().

ObjectContainer oox::ModelObjectHelper::maHatchContainer
private

Contains all named fill hatches.

Definition at line 123 of file modelobjecthelper.hxx.

Referenced by insertFillHatch().

ObjectContainer oox::ModelObjectHelper::maMarkerContainer
private

Contains all named line markers (line end polygons).

Definition at line 118 of file modelobjecthelper.hxx.

Referenced by hasLineMarker(), and insertLineMarker().

ObjectContainer oox::ModelObjectHelper::maTransGradContainer
private

Contains all named transparency Gradients.

Definition at line 121 of file modelobjecthelper.hxx.

Referenced by insertTransGrandient().


The documentation for this class was generated from the following files: