LibreOffice Module xmloff (master) 1
|
Export an ImageMap as defined by service com.sun.star.image.ImageMap to XML. More...
#include <XMLImageMapExport.hxx>
Public Member Functions | |
XMLImageMapExport (SvXMLExport &rExport) | |
void | Export (const css::uno::Reference< css::beans::XPropertySet > &rPropertySet) |
Get the ImageMap object from the "ImageMap" property and subsequently export the map (if present). More... | |
void | Export (const css::uno::Reference< css::container::XIndexContainer > &rContainer) |
Export an ImageMap (XIndexContainer). More... | |
Private Member Functions | |
void | ExportMapEntry (const css::uno::Reference< css::beans::XPropertySet > &rPropertySet) |
Export a single, named map entry. More... | |
void | ExportRectangle (const css::uno::Reference< css::beans::XPropertySet > &rPropertySet) |
Export the specifics of a rectangular image map entry. More... | |
void | ExportCircle (const css::uno::Reference< css::beans::XPropertySet > &rPropertySet) |
Export the specifics of a circular image map entry. More... | |
void | ExportPolygon (const css::uno::Reference< css::beans::XPropertySet > &rPropertySet) |
Export the specifics of a polygonal image map entry; To be called by ExportMapEntry. More... | |
Private Attributes | |
SvXMLExport & | mrExport |
Export an ImageMap as defined by service com.sun.star.image.ImageMap to XML.
Definition at line 35 of file XMLImageMapExport.hxx.
XMLImageMapExport::XMLImageMapExport | ( | SvXMLExport & | rExport | ) |
Definition at line 68 of file XMLImageMapExport.cxx.
void XMLImageMapExport::Export | ( | const css::uno::Reference< css::beans::XPropertySet > & | rPropertySet | ) |
Get the ImageMap object from the "ImageMap" property and subsequently export the map (if present).
rPropertySet | the property set containing the ImageMap property |
Referenced by XMLTextParagraphExport::_exportTextFrame(), XMLTextParagraphExport::_exportTextGraphic(), XMLTextParagraphExport::exportEvents(), and XMLShapeExport::ImpExportGraphicObjectShape().
void XMLImageMapExport::Export | ( | const css::uno::Reference< css::container::XIndexContainer > & | rContainer | ) |
Export an ImageMap (XIndexContainer).
rContainer | the container containing the image map elements |
|
private |
Export the specifics of a circular image map entry.
To be called by ExportMapEntry.
Definition at line 274 of file XMLImageMapExport.cxx.
References aBuffer, SvXMLExport::AddAttribute(), Any, SvXMLUnitConverter::convertMeasureToXML(), SvXMLExport::GetMM100UnitConverter(), gsCenter(), gsRadius(), mrExport, xmloff::token::XML_CX, xmloff::token::XML_CY, XML_NAMESPACE_SVG, and xmloff::token::XML_R.
Referenced by ExportMapEntry().
|
private |
Export a single, named map entry.
(as given by com.sun.star.image.ImageMapObject) Calls methods for specific image map entries.
Definition at line 121 of file XMLImageMapExport.cxx.
References SvXMLExport::AddAttribute(), Any, SvXMLExport::Characters(), DBG_ASSERT, eType, XMLEventExport::Export(), ExportCircle(), ExportPolygon(), ExportRectangle(), SvXMLExport::GetEventExport(), SvXMLExport::GetRelativeReference(), gsDescription(), gsIsActive(), gsName(), gsTarget(), gsTitle(), gsURL(), mrExport, xmloff::token::XML_AREA_CIRCLE, xmloff::token::XML_AREA_POLYGON, xmloff::token::XML_AREA_RECTANGLE, xmloff::token::XML_DESC, xmloff::token::XML_HREF, xmloff::token::XML_NAME, XML_NAMESPACE_DRAW, XML_NAMESPACE_OFFICE, XML_NAMESPACE_SVG, XML_NAMESPACE_XLINK, xmloff::token::XML_NEW, xmloff::token::XML_NOHREF, xmloff::token::XML_REPLACE, xmloff::token::XML_SHOW, xmloff::token::XML_SIMPLE, xmloff::token::XML_TARGET_FRAME_NAME, xmloff::token::XML_TITLE, xmloff::token::XML_TOKEN_INVALID, and xmloff::token::XML_TYPE.
|
private |
Export the specifics of a polygonal image map entry; To be called by ExportMapEntry.
Definition at line 300 of file XMLImageMapExport.cxx.
References aBuffer, SvXMLExport::AddAttribute(), Any, SvXMLUnitConverter::convertMeasureToXML(), basegfx::utils::exportToSvgPoints(), basegfx::fround(), basegfx::B2DPolygon::getB2DRange(), SdXMLImExViewBox::GetExportString(), basegfx::Range2D< typename TYPE, typename TRAITS >::getHeight(), SvXMLExport::GetMM100UnitConverter(), basegfx::Range2D< typename TYPE, typename TRAITS >::getWidth(), gsPolygon(), mrExport, basegfx::utils::UnoPointSequenceToB2DPolygon(), xmloff::token::XML_HEIGHT, XML_NAMESPACE_DRAW, XML_NAMESPACE_SVG, xmloff::token::XML_POINTS, xmloff::token::XML_VIEWBOX, xmloff::token::XML_WIDTH, xmloff::token::XML_X, and xmloff::token::XML_Y.
Referenced by ExportMapEntry().
|
private |
Export the specifics of a rectangular image map entry.
To be called by ExportMapEntry.
Definition at line 248 of file XMLImageMapExport.cxx.
References aBuffer, SvXMLExport::AddAttribute(), Any, SvXMLUnitConverter::convertMeasureToXML(), SvXMLExport::GetMM100UnitConverter(), gsBoundary(), mrExport, xmloff::token::XML_HEIGHT, XML_NAMESPACE_SVG, xmloff::token::XML_WIDTH, xmloff::token::XML_X, and xmloff::token::XML_Y.
Referenced by ExportMapEntry().
|
private |
Definition at line 37 of file XMLImageMapExport.hxx.
Referenced by ExportCircle(), ExportMapEntry(), ExportPolygon(), and ExportRectangle().