LibreOffice Module svx (master) 1
Namespaces | Functions | Variables
xmlgrhlp.cxx File Reference
#include <sal/config.h>
#include <sal/log.hxx>
#include <com/sun/star/embed/XTransactedObject.hpp>
#include <com/sun/star/embed/ElementModes.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/io/NotConnectedException.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/util/XCancellable.hpp>
#include <com/sun/star/embed/XHierarchicalStorageAccess.hpp>
#include <comphelper/fileformat.h>
#include <comphelper/graphicmimetype.hxx>
#include <comphelper/compbase.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <rtl/ref.hxx>
#include <unotools/ucbstreamhelper.hxx>
#include <unotools/streamwrap.hxx>
#include <unotools/tempfile.hxx>
#include <unotools/saveopt.hxx>
#include <vcl/filter/SvmWriter.hxx>
#include <vcl/gfxlink.hxx>
#include <vcl/metaact.hxx>
#include <tools/zcodec.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <vcl/GraphicObject.hxx>
#include <vcl/graphicfilter.hxx>
#include <svx/xmlgrhlp.hxx>
#include <svx/xmleohlp.hxx>
#include <algorithm>
#include <memory>
#include <string_view>
#include <utility>
Include dependency graph for xmlgrhlp.cxx:

Go to the source code of this file.

Namespaces

namespace  com
 
namespace  com::sun
 
namespace  com::sun::star
 
namespace  com::sun::star::uno
 
namespace  impl
 
namespace  svx
 

Functions

SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_Svx_GraphicImportHelper_get_implementation (css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)
 Create this with createInstanceWithArguments. More...
 
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_Svx_GraphicExportHelper_get_implementation (css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)
 Create this with createInstanceWithArguments. More...
 
void svx::DropUnusedNamedItems (css::uno::Reference< css::uno::XInterface > const &xModel)
 

Variables

constexpr OUStringLiteral XML_GRAPHICSTORAGE_NAME = u"Pictures"
 
constexpr OUStringLiteral XML_GRAPHICOBJECT_URL_BASE = u"vnd.sun.star.GraphicObject:"
 

Function Documentation

◆ com_sun_star_comp_Svx_GraphicExportHelper_get_implementation()

SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_Svx_GraphicExportHelper_get_implementation ( css::uno::XComponentContext *  ,
css::uno::Sequence< css::uno::Any > const &   
)

Create this with createInstanceWithArguments.

service name "com.sun.star.comp.Svx.GraphicExportHelper", one argument which is the XStorage. Without arguments no helper class is created. With an empty argument the helper class is created and initialized like in the CTOR to SvXMLGraphicHelper that only gets the create mode

To write the Pictures stream, you have to call dispose at this component. Make sure you call dispose before you commit the parent storage.

uses eCreateMode == SvXMLGraphicHelperMode::Write, bDirect == sal_True in SvXMLGraphicHelper

Definition at line 1113 of file xmlgrhlp.cxx.

References Write.

◆ com_sun_star_comp_Svx_GraphicImportHelper_get_implementation()

SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_Svx_GraphicImportHelper_get_implementation ( css::uno::XComponentContext *  ,
css::uno::Sequence< css::uno::Any > const &   
)

Create this with createInstanceWithArguments.

service name "com.sun.star.comp.Svx.GraphicImportHelper", one argument which is the XStorage. Without arguments no helper class is created. With an empty argument the helper class is created and initialized like in the CTOR to SvXMLGraphicHelper that only gets the create mode.

You should call dispose after you no longer need this component.

uses eCreateMode == SvXMLGraphicHelperMode::Read, bDirect == sal_True in SvXMLGraphicHelper

Definition at line 1093 of file xmlgrhlp.cxx.

References Read.

Variable Documentation

◆ XML_GRAPHICOBJECT_URL_BASE

constexpr OUStringLiteral XML_GRAPHICOBJECT_URL_BASE = u"vnd.sun.star.GraphicObject:"
constexpr

Definition at line 66 of file xmlgrhlp.cxx.

Referenced by SvXMLGraphicHelper::resolveOutputStream().

◆ XML_GRAPHICSTORAGE_NAME

constexpr OUStringLiteral XML_GRAPHICSTORAGE_NAME = u"Pictures"
constexpr

Definition at line 65 of file xmlgrhlp.cxx.

Referenced by SvXMLGraphicHelper::implSaveGraphic().