LibreOffice Module svx (master) 1
Functions
EnhancedCustomShape2d.cxx File Reference
#include <sal/config.h>
#include <o3tl/string_view.hxx>
#include <svx/EnhancedCustomShape2d.hxx>
#include <svx/EnhancedCustomShapeGeometry.hxx>
#include <svx/EnhancedCustomShapeTypeNames.hxx>
#include <svx/svdoashp.hxx>
#include <svx/svdtrans.hxx>
#include <svx/svdogrp.hxx>
#include <svx/svdopath.hxx>
#include <svx/svdorect.hxx>
#include <svx/svdpage.hxx>
#include <svx/xflclit.hxx>
#include <svx/xfillit0.hxx>
#include <svx/xlineit0.hxx>
#include <svx/xlnstit.hxx>
#include <svx/xlnedit.hxx>
#include <svx/xlnstwit.hxx>
#include <svx/xlnedwit.hxx>
#include <svx/xlnstcit.hxx>
#include <svx/xlnedcit.hxx>
#include <svx/xflgrit.hxx>
#include <svx/xflhtit.hxx>
#include <svx/xbtmpit.hxx>
#include <svx/xhatch.hxx>
#include <svx/sdshitm.hxx>
#include <com/sun/star/awt/Size.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeParameterType.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeSegmentCommand.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeAdjustmentValue.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeSegment.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeTextFrame.hpp>
#include <basegfx/numeric/ftools.hxx>
#include <basegfx/color/bcolortools.hxx>
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/polygon/b2dpolygontools.hxx>
#include <basegfx/matrix/b2dhommatrixtools.hxx>
#include <sal/log.hxx>
#include <algorithm>
#include <cstdlib>
#include <string_view>
#include <unordered_set>
Include dependency graph for EnhancedCustomShape2d.cxx:

Go to the source code of this file.

Functions

static double lcl_getXAdjustmentValue (std::u16string_view rShapeType, const sal_uInt32 nHandleIndex, const double fX, const double fW, const double fH)
 
static double lcl_getYAdjustmentValue (std::u16string_view rShapeType, const sal_uInt32 nHandleIndex, const double fY, const double fW, const double fH)
 
static double lcl_getAngleInOOXMLUnit (double fDY, double fDX)
 
static double lcl_getRadiusDistance (double fWR, double fHR, double fX, double fY)
 
static basegfx::B2DPolygon CreateArc (const tools::Rectangle &rRect, const Point &rStart, const Point &rEnd, const bool bClockwise)
 
static double lcl_getNormalizedCircleAngleRad (const double fWR, const double fHR, const double fEllipseAngleDeg)
 
static double lcl_getNormalizedAngleRad (const double fCircleAngleDeg)
 
static void CorrectCalloutArrows (MSO_SPT eSpType, sal_uInt32 nLineObjectCount, std::vector< std::pair< rtl::Reference< SdrPathObj >, double > > &vObjectList)
 

Function Documentation

◆ CorrectCalloutArrows()

static void CorrectCalloutArrows ( MSO_SPT  eSpType,
sal_uInt32  nLineObjectCount,
std::vector< std::pair< rtl::Reference< SdrPathObj >, double > > &  vObjectList 
)
static

◆ CreateArc()

static basegfx::B2DPolygon CreateArc ( const tools::Rectangle rRect,
const Point rStart,
const Point rEnd,
const bool  bClockwise 
)
static

◆ lcl_getAngleInOOXMLUnit()

static double lcl_getAngleInOOXMLUnit ( double  fDY,
double  fDX 
)
static

◆ lcl_getNormalizedAngleRad()

static double lcl_getNormalizedAngleRad ( const double  fCircleAngleDeg)
static

Definition at line 2040 of file EnhancedCustomShape2d.cxx.

References basegfx::deg2rad().

Referenced by EnhancedCustomShape2d::CreateSubPath().

◆ lcl_getNormalizedCircleAngleRad()

static double lcl_getNormalizedCircleAngleRad ( const double  fWR,
const double  fHR,
const double  fEllipseAngleDeg 
)
static

Definition at line 2021 of file EnhancedCustomShape2d.cxx.

References basegfx::deg2rad().

Referenced by EnhancedCustomShape2d::CreateSubPath().

◆ lcl_getRadiusDistance()

static double lcl_getRadiusDistance ( double  fWR,
double  fHR,
double  fX,
double  fY 
)
static

◆ lcl_getXAdjustmentValue()

static double lcl_getXAdjustmentValue ( std::u16string_view  rShapeType,
const sal_uInt32  nHandleIndex,
const double  fX,
const double  fW,
const double  fH 
)
static

◆ lcl_getYAdjustmentValue()

static double lcl_getYAdjustmentValue ( std::u16string_view  rShapeType,
const sal_uInt32  nHandleIndex,
const double  fY,
const double  fW,
const double  fH 
)
static