LibreOffice Module svx (master) 1
Functions
EnhancedCustomShapeFontWork.cxx File Reference
#include "EnhancedCustomShapeFontWork.hxx"
#include <svl/itemset.hxx>
#include <svx/compatflags.hxx>
#include <svx/svddef.hxx>
#include <svx/svdopath.hxx>
#include <vcl/kernarray.hxx>
#include <vcl/metric.hxx>
#include <svx/sdasitm.hxx>
#include <svx/sdtfsitm.hxx>
#include <vcl/virdev.hxx>
#include <svx/svditer.hxx>
#include <editeng/eeitem.hxx>
#include <editeng/frmdiritem.hxx>
#include <editeng/fontitem.hxx>
#include <editeng/postitem.hxx>
#include <editeng/wghtitem.hxx>
#include <editeng/fhgtitem.hxx>
#include <editeng/charscaleitem.hxx>
#include <svx/svdoashp.hxx>
#include <svx/sdshitm.hxx>
#include <svx/svdmodel.hxx>
#include <editeng/outlobj.hxx>
#include <editeng/editobj.hxx>
#include <o3tl/numeric.hxx>
#include <vector>
#include <numeric>
#include <algorithm>
#include <comphelper/processfactory.hxx>
#include <com/sun/star/i18n/BreakIterator.hpp>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <basegfx/polygon/b2dpolypolygontools.hxx>
#include <basegfx/polygon/b2dpolygontools.hxx>
#include <sal/log.hxx>
#include <rtl/math.hxx>
#include <unotools/configmgr.hxx>
#include <comphelper/string.hxx>
Include dependency graph for EnhancedCustomShapeFontWork.cxx:

Go to the source code of this file.

Functions

static bool InitializeFontWorkData (const SdrObjCustomShape &rSdrObjCustomShape, const sal_uInt16 nOutlinesCount2d, FWData &rFWData)
 
static double GetLength (const tools::Polygon &rPolygon)
 
static void CalculateHorizontalScalingFactor (const SdrObjCustomShape &rSdrObjCustomShape, FWData &rFWData, const tools::PolyPolygon &rOutline2d)
 
static void GetTextAreaOutline (const FWData &rFWData, const SdrObjCustomShape &rSdrObjCustomShape, FWTextArea &rTextArea, bool bSameLetterHeights)
 
static bool GetFontWorkOutline (FWData &rFWData, const SdrObjCustomShape &rSdrObjCustomShape)
 
static basegfx::B2DPolyPolygon GetOutlinesFromShape2d (const SdrObject *pShape2d)
 
static void CalcDistances (const tools::Polygon &rPoly, std::vector< double > &rDistances)
 
static void InsertMissingOutlinePoints (const std::vector< double > &rDistances, const tools::Rectangle &rTextAreaBoundRect, tools::Polygon &rPoly)
 
static void GetPoint (const tools::Polygon &rPoly, const std::vector< double > &rDistances, const double &fX, double &fx1, double &fy1)
 
static void FitTextOutlinesToShapeOutlines (const tools::PolyPolygon &aOutlines2d, FWData &rFWData)
 
static rtl::Reference< SdrObjectCreateSdrObjectFromParagraphOutlines (const FWData &rFWData, const SdrObjCustomShape &rSdrObjCustomShape)
 

Function Documentation

◆ CalcDistances()

static void CalcDistances ( const tools::Polygon rPoly,
std::vector< double > &  rDistances 
)
static

◆ CalculateHorizontalScalingFactor()

static void CalculateHorizontalScalingFactor ( const SdrObjCustomShape rSdrObjCustomShape,
FWData &  rFWData,
const tools::PolyPolygon rOutline2d 
)
static

◆ CreateSdrObjectFromParagraphOutlines()

static rtl::Reference< SdrObject > CreateSdrObjectFromParagraphOutlines ( const FWData &  rFWData,
const SdrObjCustomShape rSdrObjCustomShape 
)
static

◆ FitTextOutlinesToShapeOutlines()

static void FitTextOutlinesToShapeOutlines ( const tools::PolyPolygon aOutlines2d,
FWData &  rFWData 
)
static

◆ GetFontWorkOutline()

static bool GetFontWorkOutline ( FWData &  rFWData,
const SdrObjCustomShape rSdrObjCustomShape 
)
static

◆ GetLength()

static double GetLength ( const tools::Polygon rPolygon)
static

◆ GetOutlinesFromShape2d()

static basegfx::B2DPolyPolygon GetOutlinesFromShape2d ( const SdrObject pShape2d)
static

◆ GetPoint()

static void GetPoint ( const tools::Polygon rPoly,
const std::vector< double > &  rDistances,
const double &  fX,
double &  fx1,
double &  fy1 
)
static

◆ GetTextAreaOutline()

static void GetTextAreaOutline ( const FWData &  rFWData,
const SdrObjCustomShape rSdrObjCustomShape,
FWTextArea &  rTextArea,
bool  bSameLetterHeights 
)
static

◆ InitializeFontWorkData()

static bool InitializeFontWorkData ( const SdrObjCustomShape rSdrObjCustomShape,
const sal_uInt16  nOutlinesCount2d,
FWData &  rFWData 
)
static

◆ InsertMissingOutlinePoints()

static void InsertMissingOutlinePoints ( const std::vector< double > &  rDistances,
const tools::Rectangle rTextAreaBoundRect,
tools::Polygon rPoly 
)
static