LibreOffice Module filter (master) 1
Macros | Functions | Variables
svgexport.cxx File Reference
#include "svgwriter.hxx"
#include "svgfontexport.hxx"
#include "svgfilter.hxx"
#include <svgscript.hxx>
#include <com/sun/star/awt/Rectangle.hpp>
#include <com/sun/star/animations/XAnimationNodeSupplier.hpp>
#include <com/sun/star/container/XEnumerationAccess.hpp>
#include <com/sun/star/drawing/FillStyle.hpp>
#include <com/sun/star/drawing/XMasterPageTarget.hpp>
#include <com/sun/star/drawing/GraphicExportFilter.hpp>
#include <com/sun/star/presentation/XPresentationSupplier.hpp>
#include <com/sun/star/style/ParagraphAdjust.hpp>
#include <com/sun/star/text/textfield/Type.hpp>
#include <com/sun/star/util/MeasureUnit.hpp>
#include <com/sun/star/xml/sax/Writer.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/drawing/ShapeCollection.hpp>
#include <rtl/bootstrap.hxx>
#include <svx/unopage.hxx>
#include <svx/svdpage.hxx>
#include <svx/svdoutl.hxx>
#include <editeng/outliner.hxx>
#include <editeng/flditem.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/propertyvalue.hxx>
#include <comphelper/scopeguard.hxx>
#include <comphelper/sequenceashashmap.hxx>
#include <i18nlangtag/lang.h>
#include <svl/numformat.hxx>
#include <tools/debug.hxx>
#include <tools/urlobj.hxx>
#include <unotools/streamwrap.hxx>
#include <unotools/tempfile.hxx>
#include <unotools/ucbstreamhelper.hxx>
#include <vcl/filter/SvmReader.hxx>
#include <xmloff/unointerfacetouniqueidentifiermapper.hxx>
#include <xmloff/namespacemap.hxx>
#include <xmloff/xmlnamespace.hxx>
#include <xmloff/xmltoken.hxx>
#include <xmloff/animationexport.hxx>
#include <svx/svdograf.hxx>
#include <svx/svdmodel.hxx>
#include <svx/svdxcgv.hxx>
#include <sal/log.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <tools/zcodec.hxx>
#include <rtl/crc.h>
#include <memory>
#include <string_view>
Include dependency graph for svgexport.cxx:

Go to the source code of this file.

Macros

#define NSPREFIX   u"ooo:"
 

Functions

template<typename TextFieldType >
static OUString implGenerateFieldId (std::vector< std::unique_ptr< TextField > > &aFieldSet, const TextFieldType &aField, std::u16string_view sOOOElemField, const Reference< css::drawing::XDrawPage > &xMasterPage)
 Append aField to aFieldSet if it is not already present in the set and create the field id sFieldId. More...
 
 IMPL_LINK (SVGFilter, CalcFieldHdl, EditFieldInfo *, pInfo, void)
 

Variables

constexpr OUStringLiteral SVG_PROP_TINYPROFILE = u"TinyMode"
 
constexpr OUStringLiteral SVG_PROP_DTDSTRING = u"DTDString"
 
constexpr OUStringLiteral SVG_PROP_EMBEDFONTS = u"EmbedFonts"
 
constexpr OUStringLiteral SVG_PROP_NATIVEDECORATION = u"UseNativeTextDecoration"
 
constexpr OUStringLiteral SVG_PROP_OPACITY = u"Opacity"
 
constexpr OUStringLiteral SVG_PROP_POSITIONED_CHARACTERS = u"UsePositionedCharacters"
 
constexpr OUStringLiteral aOOOElemTextField = NSPREFIX "text_field"
 
constexpr OUStringLiteral aOOOAttrSlide = NSPREFIX "slide"
 
constexpr OUStringLiteral aOOOAttrMaster = NSPREFIX "master"
 
constexpr OUStringLiteral aOOOAttrHasCustomBackground = NSPREFIX "has-custom-background"
 
constexpr OUStringLiteral aOOOAttrDisplayName = NSPREFIX "display-name"
 
constexpr OUStringLiteral aOOOAttrBackgroundVisibility = NSPREFIX "background-visibility"
 
constexpr OUStringLiteral aOOOAttrMasterObjectsVisibility = NSPREFIX "master-objects-visibility"
 
constexpr OUStringLiteral aOOOAttrSlideDuration = NSPREFIX "slide-duration"
 
constexpr OUStringLiteral aOOOAttrDateTimeField = NSPREFIX "date-time-field"
 
constexpr OUStringLiteral aOOOAttrFooterField = NSPREFIX "footer-field"
 
constexpr OUStringLiteral aOOOAttrHasTransition = NSPREFIX "has-transition"
 
constexpr OUStringLiteral aOOOAttrName = NSPREFIX "name"
 
constexpr OUStringLiteral constSvgNamespace = u"http://www.w3.org/2000/svg"
 

Macro Definition Documentation

◆ NSPREFIX

#define NSPREFIX   u"ooo:"

Definition at line 82 of file svgexport.cxx.

Function Documentation

◆ IMPL_LINK()

IMPL_LINK ( SVGFilter  ,
CalcFieldHdl  ,
EditFieldInfo ,
pInfo  ,
void   
)

◆ implGenerateFieldId()

template<typename TextFieldType >
static OUString implGenerateFieldId ( std::vector< std::unique_ptr< TextField > > &  aFieldSet,
const TextFieldType &  aField,
std::u16string_view  sOOOElemField,
const Reference< css::drawing::XDrawPage > &  xMasterPage 
)
static

Append aField to aFieldSet if it is not already present in the set and create the field id sFieldId.

Definition at line 1184 of file svgexport.cxx.

References gentoken::i.

Referenced by SVGFilter::implGenerateMetaData().

Variable Documentation

◆ aOOOAttrBackgroundVisibility

constexpr OUStringLiteral aOOOAttrBackgroundVisibility = NSPREFIX "background-visibility"
constexpr

Definition at line 100 of file svgexport.cxx.

Referenced by SVGFilter::implGenerateMetaData().

◆ aOOOAttrDateTimeField

constexpr OUStringLiteral aOOOAttrDateTimeField = NSPREFIX "date-time-field"
constexpr

Definition at line 103 of file svgexport.cxx.

Referenced by IMPL_LINK(), and SVGFilter::implGenerateMetaData().

◆ aOOOAttrDisplayName

constexpr OUStringLiteral aOOOAttrDisplayName = NSPREFIX "display-name"
constexpr

Definition at line 99 of file svgexport.cxx.

Referenced by SVGFilter::implGenerateMetaData().

◆ aOOOAttrFooterField

constexpr OUStringLiteral aOOOAttrFooterField = NSPREFIX "footer-field"
constexpr

Definition at line 104 of file svgexport.cxx.

Referenced by IMPL_LINK(), and SVGFilter::implGenerateMetaData().

◆ aOOOAttrHasCustomBackground

constexpr OUStringLiteral aOOOAttrHasCustomBackground = NSPREFIX "has-custom-background"
constexpr

Definition at line 98 of file svgexport.cxx.

Referenced by SVGFilter::implGenerateMetaData().

◆ aOOOAttrHasTransition

constexpr OUStringLiteral aOOOAttrHasTransition = NSPREFIX "has-transition"
constexpr

Definition at line 105 of file svgexport.cxx.

Referenced by SVGFilter::implGenerateMetaData().

◆ aOOOAttrMaster

constexpr OUStringLiteral aOOOAttrMaster = NSPREFIX "master"
constexpr

Definition at line 97 of file svgexport.cxx.

Referenced by SVGFilter::implGenerateMetaData().

◆ aOOOAttrMasterObjectsVisibility

constexpr OUStringLiteral aOOOAttrMasterObjectsVisibility = NSPREFIX "master-objects-visibility"
constexpr

Definition at line 101 of file svgexport.cxx.

Referenced by SVGFilter::implGenerateMetaData().

◆ aOOOAttrName

constexpr OUStringLiteral aOOOAttrName = NSPREFIX "name"
constexpr

◆ aOOOAttrSlide

constexpr OUStringLiteral aOOOAttrSlide = NSPREFIX "slide"
constexpr

◆ aOOOAttrSlideDuration

constexpr OUStringLiteral aOOOAttrSlideDuration = NSPREFIX "slide-duration"
constexpr

Definition at line 102 of file svgexport.cxx.

Referenced by SVGFilter::implGenerateMetaData().

◆ aOOOElemTextField

constexpr OUStringLiteral aOOOElemTextField = NSPREFIX "text_field"
constexpr

Definition at line 92 of file svgexport.cxx.

Referenced by SVGFilter::implGenerateMetaData().

◆ constSvgNamespace

constexpr OUStringLiteral constSvgNamespace = u"http://www.w3.org/2000/svg"
constexpr

◆ SVG_PROP_DTDSTRING

constexpr OUStringLiteral SVG_PROP_DTDSTRING = u"DTDString"
constexpr

Definition at line 85 of file svgexport.cxx.

Referenced by SVGExport::SVGExport().

◆ SVG_PROP_EMBEDFONTS

constexpr OUStringLiteral SVG_PROP_EMBEDFONTS = u"EmbedFonts"
constexpr

Definition at line 86 of file svgexport.cxx.

Referenced by SVGExport::SVGExport().

◆ SVG_PROP_NATIVEDECORATION

constexpr OUStringLiteral SVG_PROP_NATIVEDECORATION = u"UseNativeTextDecoration"
constexpr

Definition at line 87 of file svgexport.cxx.

Referenced by SVGExport::SVGExport().

◆ SVG_PROP_OPACITY

constexpr OUStringLiteral SVG_PROP_OPACITY = u"Opacity"
constexpr

Definition at line 88 of file svgexport.cxx.

Referenced by SVGExport::SVGExport().

◆ SVG_PROP_POSITIONED_CHARACTERS

constexpr OUStringLiteral SVG_PROP_POSITIONED_CHARACTERS = u"UsePositionedCharacters"
constexpr

Definition at line 89 of file svgexport.cxx.

Referenced by SVGExport::SVGExport().

◆ SVG_PROP_TINYPROFILE

constexpr OUStringLiteral SVG_PROP_TINYPROFILE = u"TinyMode"
constexpr

Definition at line 84 of file svgexport.cxx.

Referenced by SVGExport::SVGExport().