LibreOffice Module xmloff (master) 1
|
#include <xmlmultiimagehelper.hxx>
Public Member Functions | |
MultiImageImportHelper () | |
virtual | ~MultiImageImportHelper () |
SvXMLImportContextRef | solveMultipleImages () |
solve multiple imported images. More... | |
void | addContent (const SvXMLImportContext &rSvXMLImportContext) |
add a content to the remembered image import contexts More... | |
bool | getSupportsMultipleContents () const |
read/write access to boolean switch More... | |
void | setSupportsMultipleContents (bool bNew) |
Protected Member Functions | |
virtual void | removeGraphicFromImportContext (const SvXMLImportContext &rContext)=0 |
helper to get the created xShape instance, override this More... | |
virtual OUString | getGraphicPackageURLFromImportContext (const SvXMLImportContext &rContext) const =0 |
virtual css::uno::Reference< css::graphic::XGraphic > | getGraphicFromImportContext (const SvXMLImportContext &rContext) const =0 |
Private Attributes | |
std::vector< SvXMLImportContextRef > | maImplContextVector |
bool | mbSupportsMultipleContents |
Definition at line 25 of file xmlmultiimagehelper.hxx.
MultiImageImportHelper::MultiImageImportHelper | ( | ) |
Definition at line 94 of file xmlmultiimagehelper.cxx.
|
virtual |
Definition at line 99 of file xmlmultiimagehelper.cxx.
void MultiImageImportHelper::addContent | ( | const SvXMLImportContext & | rSvXMLImportContext | ) |
add a content to the remembered image import contexts
Definition at line 170 of file xmlmultiimagehelper.cxx.
References maImplContextVector.
Referenced by SdXMLFrameShapeContext::createFastChildContext(), and XMLTextFrameContext::createFastChildContext().
|
protectedpure virtual |
Implemented in SdXMLFrameShapeContext, and XMLTextFrameContext.
Referenced by solveMultipleImages().
|
protectedpure virtual |
Implemented in SdXMLFrameShapeContext, and XMLTextFrameContext.
Referenced by solveMultipleImages().
|
inline |
read/write access to boolean switch
Definition at line 51 of file xmlmultiimagehelper.hxx.
References mbSupportsMultipleContents.
Referenced by SdXMLFrameShapeContext::createFastChildContext(), and XMLTextFrameContext::createFastChildContext().
|
protectedpure virtual |
helper to get the created xShape instance, override this
Implemented in SdXMLFrameShapeContext, and XMLTextFrameContext.
Referenced by solveMultipleImages().
|
inline |
Definition at line 52 of file xmlmultiimagehelper.hxx.
References mbSupportsMultipleContents.
Referenced by SdXMLFrameShapeContext::createFastChildContext(), and XMLTextFrameContext::createFastChildContext().
SvXMLImportContextRef MultiImageImportHelper::solveMultipleImages | ( | ) |
solve multiple imported images.
The most valuable one is chosen, see implementation for evtl. changing weights and/or adding filetypes.
Definition at line 103 of file xmlmultiimagehelper.cxx.
References a, getGraphicFromImportContext(), getGraphicPackageURLFromImportContext(), comphelper::GraphicMimeTypeHelper::GetMimeTypeForXGraphic(), maImplContextVector, and removeGraphicFromImportContext().
Referenced by SdXMLFrameShapeContext::createFastChildContext(), XMLTextFrameContext::createFastChildContext(), SdXMLFrameShapeContext::endFastElement(), and XMLTextFrameContext::endFastElement().
|
private |
Definition at line 28 of file xmlmultiimagehelper.hxx.
Referenced by addContent(), and solveMultipleImages().
|
private |
Definition at line 29 of file xmlmultiimagehelper.hxx.
Referenced by getSupportsMultipleContents(), and setSupportsMultipleContents().