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::Gradient2 &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 insertFillGradient (const css::awt::Gradient &rGradient)
 
OUString insertTransGrandient (const css::awt::Gradient2 &rGradient)
 
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 85 of file modelobjecthelper.hxx.

Constructor & Destructor Documentation

◆ ModelObjectHelper()

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

Definition at line 98 of file modelobjecthelper.cxx.

Member Function Documentation

◆ getFillBitmap()

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

◆ hasLineMarker()

bool oox::ModelObjectHelper::hasLineMarker ( const OUString &  rMarkerName) const

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

Definition at line 108 of file modelobjecthelper.cxx.

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

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

◆ insertFillBitmapXGraphic()

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 146 of file modelobjecthelper.cxx.

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

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

◆ insertFillGradient() [1/2]

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

◆ insertFillGradient() [2/2]

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

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

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

◆ insertFillHatch()

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

◆ insertLineDash()

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 121 of file modelobjecthelper.cxx.

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

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

◆ insertLineMarker()

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 113 of file modelobjecthelper.cxx.

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

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

◆ insertTransGrandient() [1/2]

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

◆ insertTransGrandient() [2/2]

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

Member Data Documentation

◆ maBitmapUrlContainer

ObjectContainer oox::ModelObjectHelper::maBitmapUrlContainer
private

Contains all named fill bitmap URLs.

Definition at line 125 of file modelobjecthelper.hxx.

Referenced by getFillBitmap(), and insertFillBitmapXGraphic().

◆ maDashContainer

ObjectContainer oox::ModelObjectHelper::maDashContainer
private

Contains all named line dashes.

Definition at line 122 of file modelobjecthelper.hxx.

Referenced by insertLineDash().

◆ maGradientContainer

ObjectContainer oox::ModelObjectHelper::maGradientContainer
private

Contains all named fill gradients.

Definition at line 123 of file modelobjecthelper.hxx.

◆ maHatchContainer

ObjectContainer oox::ModelObjectHelper::maHatchContainer
private

Contains all named fill hatches.

Definition at line 126 of file modelobjecthelper.hxx.

Referenced by insertFillHatch().

◆ maMarkerContainer

ObjectContainer oox::ModelObjectHelper::maMarkerContainer
private

Contains all named line markers (line end polygons).

Definition at line 121 of file modelobjecthelper.hxx.

Referenced by hasLineMarker(), and insertLineMarker().

◆ maTransGradContainer

ObjectContainer oox::ModelObjectHelper::maTransGradContainer
private

Contains all named transparency Gradients.

Definition at line 124 of file modelobjecthelper.hxx.


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