LibreOffice Module oox (master)  1
Namespaces | Macros | Typedefs | Functions
shapes.cxx File Reference
#include <sal/config.h>
#include <sal/log.hxx>
#include <filter/msfilter/util.hxx>
#include <o3tl/string_view.hxx>
#include <oox/core/xmlfilterbase.hxx>
#include <oox/export/shapes.hxx>
#include <oox/export/utils.hxx>
#include <oox/token/namespaces.hxx>
#include <oox/token/relationship.hxx>
#include <oox/token/tokens.hxx>
#include <initializer_list>
#include <string_view>
#include <com/sun/star/beans/PropertyValues.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/XPropertySetInfo.hpp>
#include <com/sun/star/beans/XPropertyState.hpp>
#include <com/sun/star/container/XChild.hpp>
#include <com/sun/star/document/XExporter.hpp>
#include <com/sun/star/document/XStorageBasedDocument.hpp>
#include <com/sun/star/drawing/CircleKind.hpp>
#include <com/sun/star/drawing/FillStyle.hpp>
#include <com/sun/star/drawing/ConnectorType.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeParameterPair.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeParameterType.hpp>
#include <com/sun/star/embed/EmbedStates.hpp>
#include <com/sun/star/embed/XEmbeddedObject.hpp>
#include <com/sun/star/embed/XEmbedPersist.hpp>
#include <com/sun/star/frame/XStorable.hpp>
#include <com/sun/star/graphic/XGraphic.hpp>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <com/sun/star/io/XOutputStream.hpp>
#include <com/sun/star/text/XSimpleText.hpp>
#include <com/sun/star/text/XText.hpp>
#include <com/sun/star/table/XTable.hpp>
#include <com/sun/star/table/XMergeableCell.hpp>
#include <com/sun/star/chart2/XChartDocument.hpp>
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/drawing/XDrawPages.hpp>
#include <com/sun/star/drawing/XDrawPagesSupplier.hpp>
#include <com/sun/star/document/XEventsSupplier.hpp>
#include <com/sun/star/presentation/ClickAction.hpp>
#include <tools/globname.hxx>
#include <comphelper/classids.hxx>
#include <comphelper/propertysequence.hxx>
#include <comphelper/storagehelper.hxx>
#include <sot/exchange.hxx>
#include <utility>
#include <vcl/graph.hxx>
#include <vcl/outdev.hxx>
#include <filter/msfilter/escherex.hxx>
#include <svx/svdoashp.hxx>
#include <svx/svdoole2.hxx>
#include <tools/diagnose_ex.h>
#include <svx/unoapi.hxx>
#include <oox/export/chartexport.hxx>
#include <oox/mathml/export.hxx>
#include <basegfx/numeric/ftools.hxx>
#include <oox/export/DMLPresetShapeExport.hxx>
Include dependency graph for shapes.cxx:

Go to the source code of this file.

Namespaces

 oox
 
 oox::drawingml
 

Macros

#define GETA(propName)   GetProperty( rXPropSet, #propName)
 
#define GETAD(propName)   ( GetPropertyAndState( rXPropSet, rXPropState, #propName, eState ) && eState == beans::PropertyState_DIRECT_VALUE )
 
#define GET(variable, propName)
 

Typedefs

typedef ShapeExport &(ShapeExport::* oox::drawingml::ShapeConverter) (const Reference< XShape > &)
 
typedef std::unordered_map< const char *, ShapeConverter, rtl::CStringHash, rtl::CStringEqual > oox::drawingml::NameToConvertMapType
 

Functions

static void oox::lcl_ConvertProgID (std::u16string_view rProgID, OUString &o_rMediaType, OUString &o_rRelationType, OUString &o_rFileExtension)
 
static uno::Reference< io::XInputStream > oox::lcl_StoreOwnAsOOXML (uno::Reference< uno::XComponentContext > const &xContext, uno::Reference< embed::XEmbeddedObject > const &xObj, char const *&o_rpProgID, OUString &o_rMediaType, OUString &o_rRelationType, OUString &o_rSuffix)
 
uno::Reference< io::XInputStream > oox::GetOLEObjectStream (uno::Reference< uno::XComponentContext > const &xContext, uno::Reference< embed::XEmbeddedObject > const &xObj, std::u16string_view i_rProgID, OUString &o_rMediaType, OUString &o_rRelationType, OUString &o_rSuffix, const char *&o_rpProgID)
 
static bool oox::drawingml::IsNonEmptySimpleText (const Reference< XInterface > &xIface)
 
static bool oox::drawingml::lcl_IsOnDenylist (OUString const &rShapeType)
 
static bool oox::drawingml::lcl_IsOnAllowlist (OUString const &rShapeType)
 
static bool oox::drawingml::lcl_GetHandlePosition (sal_Int32 &nValue, const EnhancedCustomShapeParameter &rParam, Sequence< EnhancedCustomShapeAdjustmentValue > &rSeq)
 
static void oox::drawingml::lcl_AnalyzeHandles (const uno::Sequence< beans::PropertyValues > &rHandles, std::vector< std::pair< sal_Int32, sal_Int32 > > &rHandlePositionList, Sequence< EnhancedCustomShapeAdjustmentValue > &rSeq)
 
static void oox::drawingml::lcl_AppendAdjustmentValue (std::vector< std::pair< sal_Int32, sal_Int32 > > &rAvList, sal_Int32 nAdjIdx, sal_Int32 nValue)
 
static sal_Int32 oox::drawingml::lcl_NormalizeAngle (sal_Int32 nAngle)
 
static sal_Int32 oox::drawingml::lcl_CircleAngle2CustomShapeEllipseAngleOOX (const sal_Int32 nInternAngle, const sal_Int32 nWidth, const sal_Int32 nHeight)
 
static OUString oox::drawingml::lcl_GetTarget (const css::uno::Reference< css::frame::XModel > &xModel, std::u16string_view rURL)
 
static const NameToConvertMapType & oox::drawingml::lcl_GetConverters ()
 

Macro Definition Documentation

#define GET (   variable,
  propName 
)
Value:
if ( GETA(propName) ) \
mAny >>= variable;
#define GETA(propName)
Definition: shapes.cxx:319

Definition at line 325 of file shapes.cxx.

Referenced by oox::drawingml::ShapeExport::WriteConnectorShape().

#define GETA (   propName)    GetProperty( rXPropSet, #propName)

Definition at line 319 of file shapes.cxx.

Referenced by oox::drawingml::ShapeExport::WriteCustomShape().

#define GETAD (   propName)    ( GetPropertyAndState( rXPropSet, rXPropState, #propName, eState ) && eState == beans::PropertyState_DIRECT_VALUE )

Definition at line 322 of file shapes.cxx.

Referenced by oox::drawingml::ShapeExport::WriteConnectorShape().