LibreOffice Module oox (master) 1
|
Contains tables for named drawing objects for a document model. More...
#include <modelobjecthelper.hxx>
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... | |
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.
|
explicit |
Definition at line 98 of file modelobjecthelper.cxx.
uno::Reference< awt::XBitmap > oox::ModelObjectHelper::getFillBitmap | ( | OUString const & | rGraphicName | ) |
Definition at line 159 of file modelobjecthelper.cxx.
References oox::ObjectContainer::getObject(), and maBitmapUrlContainer.
Referenced by oox::drawingml::Shape::createAndInsert().
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().
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().
OUString oox::ModelObjectHelper::insertFillGradient | ( | const css::awt::Gradient & | rGradient | ) |
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().
OUString oox::ModelObjectHelper::insertFillHatch | ( | const css::drawing::Hatch & | rHatch | ) |
Definition at line 154 of file modelobjecthelper.cxx.
References Any, oox::gaHatchNameBase(), oox::ObjectContainer::insertObject(), and maHatchContainer.
Referenced by oox::drawingml::ShapePropertyMap::setFillHatch().
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().
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().
OUString oox::ModelObjectHelper::insertTransGrandient | ( | const css::awt::Gradient & | rGradient | ) |
OUString oox::ModelObjectHelper::insertTransGrandient | ( | const css::awt::Gradient2 & | rGradient | ) |
Referenced by oox::drawingml::ShapePropertyMap::setGradientTrans().
|
private |
Contains all named fill bitmap URLs.
Definition at line 125 of file modelobjecthelper.hxx.
Referenced by getFillBitmap(), and insertFillBitmapXGraphic().
|
private |
Contains all named line dashes.
Definition at line 122 of file modelobjecthelper.hxx.
Referenced by insertLineDash().
|
private |
Contains all named fill gradients.
Definition at line 123 of file modelobjecthelper.hxx.
|
private |
Contains all named fill hatches.
Definition at line 126 of file modelobjecthelper.hxx.
Referenced by insertFillHatch().
|
private |
Contains all named line markers (line end polygons).
Definition at line 121 of file modelobjecthelper.hxx.
Referenced by hasLineMarker(), and insertLineMarker().
|
private |
Contains all named transparency Gradients.
Definition at line 124 of file modelobjecthelper.hxx.